@import "https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap";

/* fakecss:/app/src/client/lib/components/Sidebar.esbuild-svelte-fake-css */
.sidebar.svelte-11gnzwa {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}
.sidebar-top.svelte-11gnzwa {
  padding: 1.5rem 1.15rem 1.25rem;
}
.brand.svelte-11gnzwa {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--sidebar-active);
  margin-bottom: 1.5rem;
  padding: 0.15rem 0;
  transition: opacity 0.15s;
}
.brand.svelte-11gnzwa:hover {
  opacity: 0.85;
}
.brand-logo.svelte-11gnzwa {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(166, 47, 36, 0.3);
  border-radius: 8px;
  overflow: hidden;
}
.brand-name.svelte-11gnzwa {
  display: flex;
  align-items: center;
  line-height: 1;
}
.brand-text.svelte-11gnzwa {
  font-family: var(--font-display), sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.new-btn.svelte-11gnzwa {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 0.8rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-body), sans-serif;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  box-shadow: 0 1px 4px rgba(166, 47, 36, 0.25);
}
.new-btn.svelte-11gnzwa:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(166, 47, 36, 0.3);
}
.new-btn.svelte-11gnzwa:active {
  transform: translateY(0);
}
.sidebar-nav.svelte-11gnzwa {
  flex: 1;
  padding: 0.25rem 0.65rem;
}
.nav-group.svelte-11gnzwa {
  margin-bottom: 0.25rem;
}
.nav-label.svelte-11gnzwa {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.2);
  padding: 1rem 0.55rem 0.4rem;
}
.nav-link.svelte-11gnzwa {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.55rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--sidebar-text);
  transition: all 0.15s var(--ease-out);
  position: relative;
}
.nav-indicator.svelte-11gnzwa {
  position: absolute;
  left: -0.65rem;
  width: 3px;
  height: 0;
  background: var(--sidebar-accent);
  border-radius: 0 2px 2px 0;
  transition: height 0.2s var(--ease-out);
}
.nav-link.svelte-11gnzwa:hover {
  color: var(--sidebar-text-hover);
  background: var(--sidebar-active-bg);
}
.nav-link.active.svelte-11gnzwa {
  color: var(--sidebar-active);
  background: var(--sidebar-active-bg);
  font-weight: 500;
}
.nav-link.active.svelte-11gnzwa .nav-indicator:where(.svelte-11gnzwa) {
  height: 16px;
}
.nav-link.svelte-11gnzwa svg:where(.svelte-11gnzwa) {
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.15s;
}
.nav-link.svelte-11gnzwa:hover svg:where(.svelte-11gnzwa),
.nav-link.active.svelte-11gnzwa svg:where(.svelte-11gnzwa) {
  opacity: 0.9;
}
.sidebar-footer.svelte-11gnzwa {
  padding: 0.5rem 0.65rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-settings-link.svelte-11gnzwa {
  font-size: 0.775rem;
  opacity: 0.75;
}
.footer-settings-link.svelte-11gnzwa:hover {
  opacity: 1;
}
.footer-divider.svelte-11gnzwa {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin: 0.35rem 0.55rem 0.5rem;
}
.footer-app-version.svelte-11gnzwa {
  padding: 0 0.55rem;
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: 0.06em;
  margin-bottom: 0.45rem;
  text-decoration: none;
  transition: color 0.15s;
  display: block;
}
.footer-app-version.svelte-11gnzwa:hover {
  color: rgba(255, 255, 255, 0.5);
}
.footer-versions.svelte-11gnzwa {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0 0.55rem;
}
.footer-badge.svelte-11gnzwa {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-badge.svelte-11gnzwa:hover {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}
.footer-badge.svelte-11gnzwa svg:where(.svelte-11gnzwa) {
  opacity: 0.5;
  flex-shrink: 0;
}
.footer-badge.svelte-11gnzwa:hover svg:where(.svelte-11gnzwa) {
  opacity: 0.8;
}
@media (max-width: 860px) {
  .sidebar.svelte-11gnzwa {
    display: none;
  }
}

/* fakecss:/app/src/client/lib/components/AppBadge.esbuild-svelte-fake-css */
.app-badge.svelte-1k84p6c {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 6px;
  white-space: nowrap;
  line-height: 1.4;
}
.app-badge.pill.svelte-1k84p6c {
  border-radius: 9999px;
}
.app-badge.primary.svelte-1k84p6c {
  background: var(--primary-light);
  color: var(--primary);
}
.app-badge.success.svelte-1k84p6c {
  background: var(--success-bg);
  color: var(--success);
}
.app-badge.danger.svelte-1k84p6c {
  background: #fef2f2;
  color: var(--danger);
}
.app-badge.amber.svelte-1k84p6c {
  background: var(--amber-bg);
  color: var(--amber);
}
.app-badge.amber-solid.svelte-1k84p6c {
  background: var(--amber);
  color: white;
}
.app-badge.neutral.svelte-1k84p6c {
  background: var(--surface-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* fakecss:/app/src/client/lib/components/SendEmailDialog.esbuild-svelte-fake-css */
.modal-backdrop.svelte-fqhoio {
  position: fixed;
  inset: 0;
  background: rgba(28, 27, 24, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
  animation: fadeIn 0.15s var(--ease-out);
}
.modal.svelte-fqhoio {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  animation: scaleIn 0.2s var(--ease-out);
}
.modal-header.svelte-fqhoio {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.35rem 0.85rem;
  border-bottom: 1px solid var(--border);
}
.modal-header.svelte-fqhoio h2:where(.svelte-fqhoio) {
  font-family: var(--font-display), sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
}
.modal-close.svelte-fqhoio {
  background: none;
  border: none;
  padding: 0.3rem;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.12s;
  height: auto;
}
.modal-close.svelte-fqhoio:hover {
  background: var(--surface-alt);
  color: var(--text);
}
.modal-body.svelte-fqhoio {
  padding: 1.35rem;
}
.modal-footer.svelte-fqhoio {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem 1.15rem;
  border-top: 1px solid var(--border);
}
.error-banner.svelte-fqhoio {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--danger);
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.modal-error.svelte-fqhoio {
  margin: 0.85rem 1.35rem 0;
}
.success-banner.svelte-fqhoio {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  margin: 0.85rem 1.35rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: fadeIn 0.2s var(--ease-out);
}
.modal-success.svelte-fqhoio {
  margin: 0.85rem 1.35rem 0;
}
.dialog-loading.svelte-fqhoio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.loading-pulse.svelte-fqhoio {
  width: 28px;
  height: 28px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.cc-toggle-row.svelte-fqhoio {
  margin-bottom: 0.5rem;
}
.cc-toggle.svelte-fqhoio {
  background: none;
  border: none;
  height: auto;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.15s;
}
.cc-toggle.svelte-fqhoio:hover {
  color: var(--primary);
}
.radio-group.svelte-fqhoio {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.3rem;
}
.radio-option.svelte-fqhoio {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text);
  text-transform: none;
  letter-spacing: normal;
}
.radio-option.svelte-fqhoio input[type=radio]:where(.svelte-fqhoio) {
  width: auto;
  height: auto;
  margin: 0;
}
.form-label-text.svelte-fqhoio {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.section-divider.svelte-fqhoio {
  font-family: var(--font-display), sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0.85rem 0 0.6rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-divider.svelte-fqhoio::before {
  content: "";
  width: 3px;
  height: 12px;
  background: var(--amber);
  border-radius: 2px;
}
.preview-box.svelte-fqhoio {
  margin-bottom: 0.5rem;
  padding: 0.65rem 0.9rem;
  background: var(--primary-light);
  border: 1px solid rgba(166, 47, 36, 0.12);
  border-radius: var(--radius);
}
.preview-value.svelte-fqhoio {
  font-family: var(--font-display), sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}
.body-preview.svelte-fqhoio {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 200px;
  overflow-y: auto;
  line-height: 1.5;
}
.html-preview.svelte-fqhoio {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  font-size: 0.8125rem;
  max-height: 250px;
  overflow-y: auto;
  line-height: 1.5;
}
.html-preview.svelte-fqhoio img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.html-preview.svelte-fqhoio h1,
.html-preview.svelte-fqhoio h2,
.html-preview.svelte-fqhoio h3 {
  font-family: var(--font-display), sans-serif;
  font-weight: 600;
  margin: 0.5em 0 0.25em;
}
.html-preview.svelte-fqhoio h2 {
  font-size: 1.1rem;
}
.html-preview.svelte-fqhoio h3 {
  font-size: 0.95rem;
}
.html-preview.svelte-fqhoio ul,
.html-preview.svelte-fqhoio ol {
  padding-left: 1.5em;
  margin: 0.3em 0;
}
.html-preview.svelte-fqhoio li {
  margin-bottom: 0.15em;
}
.html-preview.svelte-fqhoio a {
  color: var(--primary);
  text-decoration: underline;
}
.html-preview.svelte-fqhoio p {
  margin: 0 0 0.5em;
}
.html-preview.svelte-fqhoio p:last-child {
  margin-bottom: 0;
}
.html-preview.svelte-fqhoio strong {
  font-weight: 600;
}
.html-preview.svelte-fqhoio blockquote {
  border-left: 3px solid var(--border-strong);
  padding-left: 0.75em;
  margin: 0.5em 0;
  color: var(--text-secondary);
}
.save-spinner.svelte-fqhoio {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

/* fakecss:/app/src/client/pages/DashboardPage.esbuild-svelte-fake-css */
.page-header.svelte-fwb47v {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.page-title-group.svelte-fwb47v {
  display: flex;
  flex-direction: column;
}
h1.svelte-fwb47v {
  font-family: var(--font-display), sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
}
.subtitle.svelte-fwb47v {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.error-banner.svelte-fwb47v {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--danger);
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.loading-card.svelte-fwb47v {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.loading-pulse.svelte-fwb47v {
  width: 32px;
  height: 32px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.empty-state.svelte-fwb47v {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  text-align: center;
  animation: slideUp 0.4s var(--ease-out);
}
.empty-illustration.svelte-fwb47v {
  margin-bottom: 1.25rem;
  color: var(--border-strong);
}
.empty-state.svelte-fwb47v h2:where(.svelte-fwb47v) {
  font-family: var(--font-display), sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.empty-state.svelte-fwb47v p:where(.svelte-fwb47v) {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}
.table-card.svelte-fwb47v {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: slideUp 0.3s var(--ease-out);
}
.invoice-number.svelte-fwb47v {
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.01em;
}
.date-cell.svelte-fwb47v {
  color: var(--text-secondary);
}
.buyer-cell.svelte-fwb47v {
  font-weight: 500;
}
.amount-cell.svelte-fwb47v {
  font-weight: 600;
  letter-spacing: -0.01em;
}
tbody.svelte-fwb47v tr:where(.svelte-fwb47v) {
  cursor: default;
}
.col-actions.svelte-fwb47v {
  width: 1%;
  white-space: nowrap;
}

/* fakecss:/app/node_modules/.pnpm/flowbite-svelte@1.33.0_rollup@4.57.1_svelte@5.55.1_tailwindcss@4.2.2/node_modules/flowbite-svelte/dist/utils/Arrow.esbuild-svelte-fake-css */
.clip {
  clip-path: polygon(0 0, 0% 100%, 100% 100%, 100% 85%, 15% 0);
}

/* fakecss:/app/src/client/lib/components/FormSelect.esbuild-svelte-fake-css */
.form-select-wrapper.svelte-7up4u8 {
  position: relative;
  display: block;
}
.form-select-trigger.svelte-7up4u8 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  width: 100%;
  height: var(--ctrl-h);
  padding: 0 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  font-size: 0.8125rem;
  font-family: var(--font-body), sans-serif;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-align: left;
  letter-spacing: normal;
  font-weight: 400;
  box-shadow: none;
  box-sizing: border-box;
  line-height: 1.3;
}
.form-select-trigger.svelte-7up4u8:hover {
  border-color: var(--border-strong);
  transform: none;
  box-shadow: none;
  background: var(--surface);
}
.form-select-trigger.svelte-7up4u8:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-focus);
}
.form-select-trigger.open.svelte-7up4u8 {
  border-color: var(--primary);
  box-shadow: var(--shadow-focus);
}
.form-select-trigger.svelte-7up4u8:disabled {
  background: var(--surface-alt);
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}
.form-select-trigger.svelte-7up4u8:active {
  transform: none;
}
.form-select-label.svelte-7up4u8 {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.form-select-label.is-placeholder.svelte-7up4u8 {
  color: var(--text-muted);
  opacity: 0.6;
}
.form-select-chevron.svelte-7up4u8 {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.form-select-chevron.open.svelte-7up4u8 {
  transform: rotate(180deg);
}
.form-select-dropdown.svelte-7up4u8 {
  position: fixed;
  z-index: 9000;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 0.25rem 0;
  animation: scaleIn 0.1s var(--ease-out);
}
.form-select-dropdown.svelte-7up4u8:focus {
  outline: none;
}
.form-select-item.svelte-7up4u8 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  font-family: var(--font-body), sans-serif;
  color: var(--text);
  background: none;
  cursor: pointer;
  transition: background 0.1s;
  font-weight: 400;
  letter-spacing: normal;
  border: none;
  border-radius: 0;
  height: auto;
  min-height: 0;
  box-shadow: none;
  text-align: left;
  user-select: none;
}
.item-text.svelte-7up4u8 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.form-select-item.svelte-7up4u8:hover,
.form-select-item.highlighted.svelte-7up4u8 {
  background: var(--primary-light);
}
.form-select-item.selected.svelte-7up4u8 {
  color: var(--primary);
  font-weight: 500;
}
.form-select-item.item-disabled.svelte-7up4u8 {
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.5;
}
.form-select-item.item-disabled.svelte-7up4u8:hover {
  background: none;
}
.item-check.svelte-7up4u8 {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: var(--primary);
}

/* fakecss:/app/src/client/lib/components/HeaderSection.esbuild-svelte-fake-css */
.kleinunternehmer-row.svelte-11giks2 {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.toggle-label.svelte-11giks2 {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  margin-bottom: 0;
}
.toggle-label.svelte-11giks2 input[type=checkbox]:where(.svelte-11giks2) {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-track.svelte-11giks2 {
  position: relative;
  width: 38px;
  height: 22px;
  background: var(--border-strong);
  border-radius: 11px;
  transition: background 0.25s var(--ease-out);
  flex-shrink: 0;
}
.toggle-thumb.svelte-11giks2 {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transition: transform 0.25s var(--ease-out);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.toggle-label.svelte-11giks2 input:where(.svelte-11giks2):checked + .toggle-track:where(.svelte-11giks2) {
  background: var(--primary);
}
.toggle-label.svelte-11giks2 input:where(.svelte-11giks2):checked + .toggle-track:where(.svelte-11giks2) .toggle-thumb:where(.svelte-11giks2) {
  transform: translateX(16px);
}
.kleinunternehmer-notice.svelte-11giks2 {
  margin-top: 0.65rem;
  padding: 0.6rem 0.85rem;
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius);
  font-size: 0.8rem;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: fadeIn 0.2s var(--ease-out);
}
.invnum-row.svelte-11giks2 {
  grid-template-columns: minmax(280px, 2fr) 1fr 1fr 1fr;
}
.invnum-template-row.svelte-11giks2 {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.invnum-template-row.svelte-11giks2 .template-select {
  flex: 1;
  min-width: 0;
}
.invnum-preview-hint.svelte-11giks2 {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  font-style: italic;
}
.required.svelte-11giks2 {
  color: var(--danger);
  font-weight: 700;
}
.additional-section.svelte-11giks2 {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}
.section-toggle.svelte-11giks2 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: none;
  border: none;
  padding: 0.25rem 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s;
  font-family: var(--font-body), sans-serif;
  outline: none;
}
.section-toggle.svelte-11giks2:hover {
  color: var(--text);
}
.chevron.svelte-11giks2 {
  transition: transform 0.2s var(--ease-out);
}
.chevron.expanded.svelte-11giks2 {
  transform: rotate(90deg);
}
.additional-row.svelte-11giks2 {
  grid-template-columns: 1fr 1fr 1fr;
}

/* fakecss:/app/src/client/lib/components/PartySection.esbuild-svelte-fake-css */
.required.svelte-pb84jx {
  color: var(--danger);
  font-weight: 700;
}
.loading-state.svelte-pb84jx {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
  padding: 1rem 0;
}
.loading-pulse.svelte-pb84jx {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.empty-hint.svelte-pb84jx {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 1.25rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
}
.empty-hint.svelte-pb84jx svg:where(.svelte-pb84jx) {
  flex-shrink: 0;
  margin-top: 0.1rem;
  opacity: 0.5;
}
.hint-sub.svelte-pb84jx {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  opacity: 0.75;
}
.party-selector.svelte-pb84jx {
  margin-bottom: 0.85rem;
}
.party-details.svelte-pb84jx {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 0.65rem 0.85rem;
  animation: fadeIn 0.2s var(--ease-out);
}
.detail-row.svelte-pb84jx {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.3rem 0;
  font-size: 0.8125rem;
}
.detail-row.svelte-pb84jx + .detail-row:where(.svelte-pb84jx) {
  border-top: 1px solid var(--border);
}
.detail-icon.svelte-pb84jx {
  flex-shrink: 0;
  color: var(--text-muted);
  opacity: 0.5;
  margin-top: 0.15rem;
}
.detail-row.svelte-pb84jx div:where(.svelte-pb84jx) {
  display: flex;
  flex-direction: column;
}
.detail-name.svelte-pb84jx {
  font-weight: 600;
  color: var(--text);
}
.detail-value.svelte-pb84jx {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* fakecss:/app/src/client/lib/components/PaymentSection.esbuild-svelte-fake-css */
.required.svelte-1us3nlb {
  color: var(--danger);
  font-weight: 700;
}
.template-selector.svelte-1us3nlb {
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.iban-input.svelte-1us3nlb {
  min-width: min(22rem, 100%);
  letter-spacing: 0.05em;
}

/* fakecss:/app/src/client/lib/components/LinesSection.esbuild-svelte-fake-css */
.lines-header.svelte-1pqfwow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}
.lines-header-actions.svelte-1pqfwow {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}
.lines-header-actions.svelte-1pqfwow .template-select {
  width: auto;
  min-width: 120px;
}
.empty-lines.svelte-1pqfwow {
  color: var(--text-muted);
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}
.empty-lines.svelte-1pqfwow svg:where(.svelte-1pqfwow) {
  opacity: 0.35;
}
.lines-table-wrap.svelte-1pqfwow {
  overflow-x: auto;
  margin: 0 -1.35rem;
  padding: 0 1.35rem;
}
.required.svelte-1pqfwow {
  color: var(--danger);
  font-weight: 700;
  text-transform: none;
}
th.svelte-1pqfwow {
  white-space: nowrap;
}
tbody.svelte-1pqfwow tr:where(.svelte-1pqfwow):not(.desc-row) td:where(.svelte-1pqfwow) {
  border-bottom: none;
}
.col-nr.svelte-1pqfwow {
  width: 40px;
  color: var(--text-muted);
}
.col-name.svelte-1pqfwow {
  min-width: 180px;
}
.col-qty.svelte-1pqfwow {
  width: 80px;
}
.col-unit.svelte-1pqfwow {
  width: 130px;
}
.col-price.svelte-1pqfwow {
  width: 100px;
}
.col-vat.svelte-1pqfwow {
  width: 65px;
}
.col-vatrate.svelte-1pqfwow {
  width: 65px;
}
.col-total.svelte-1pqfwow {
  width: 90px;
  text-align: right;
  font-weight: 600;
  color: var(--text);
}
.col-actions.svelte-1pqfwow {
  width: 36px;
}
.remove-btn.svelte-1pqfwow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
}
.remove-btn.svelte-1pqfwow:hover {
  background: #fef2f2;
  color: var(--danger);
}
.remove-btn.svelte-1pqfwow:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}
.price-display.svelte-1pqfwow {
  text-align: right;
  cursor: text;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.desc-row.svelte-1pqfwow td:where(.svelte-1pqfwow) {
  padding-top: 0;
  padding-bottom: 0.5rem;
}
.item-desc.svelte-1pqfwow {
  width: 100%;
  font-size: 0.75rem;
  padding: 0.35rem 0.5rem;
  resize: vertical;
  min-height: 40px;
  height: auto;
}
.add-desc-btn.svelte-1pqfwow {
  display: inline-block;
  padding: 0;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 0.7rem;
  cursor: pointer;
  transition: color 0.15s;
  outline: none;
}
.add-desc-btn.svelte-1pqfwow:hover {
  color: var(--primary);
}

/* fakecss:/app/src/client/lib/components/TotalsSection.esbuild-svelte-fake-css */
.totals-card.svelte-dh2p10 {
  max-width: 440px;
  margin-left: auto;
  border-left: 3px solid var(--primary);
}
.totals.svelte-dh2p10 {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.total-row.svelte-dh2p10 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  font-size: 0.875rem;
}
.total-label.svelte-dh2p10 {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.total-value.svelte-dh2p10 {
  font-weight: 500;
  letter-spacing: -0.01em;
}
.exempt-row.svelte-dh2p10 {
  color: var(--text-muted);
  font-style: italic;
}
.exempt-row.svelte-dh2p10 .total-value:where(.svelte-dh2p10) {
  font-weight: 400;
}
.grand-total.svelte-dh2p10 {
  border-top: 2px solid var(--text);
  margin-top: 0.5rem;
  padding-top: 0.65rem;
  font-size: 1.05rem;
}
.grand-total.svelte-dh2p10 .total-label:where(.svelte-dh2p10) {
  color: var(--text);
  font-weight: 700;
  font-family: var(--font-display), sans-serif;
}
.grand-total.svelte-dh2p10 .total-value:where(.svelte-dh2p10) {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary);
}
.prepaid-input.svelte-dh2p10 {
  width: 120px;
  text-align: right;
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
  height: auto;
}
.prepaid-row.svelte-dh2p10 {
  border-top: 1px dashed var(--border);
  padding-top: 0.5rem;
  margin-top: 0.25rem;
}
.amount-due.svelte-dh2p10 {
  padding-top: 0.35rem;
}
.amount-due.svelte-dh2p10 .total-label:where(.svelte-dh2p10) {
  color: var(--text);
  font-weight: 600;
}
.amount-due.svelte-dh2p10 .total-value:where(.svelte-dh2p10) {
  font-weight: 700;
  color: var(--primary);
}
.badge-sm {
  font-size: 0.6rem;
  padding: 0.1rem 0.35rem;
}

/* fakecss:/app/src/client/pages/InvoiceEditPage.esbuild-svelte-fake-css */
.editor-header.svelte-dg6vek {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  gap: 1rem;
}
.editor-title-group.svelte-dg6vek {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.back-btn.svelte-dg6vek {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  border-radius: var(--radius);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}
.back-btn.svelte-dg6vek:hover {
  background: var(--surface-alt);
  color: var(--text);
  border-color: var(--border-strong);
}
h1.svelte-dg6vek {
  font-family: var(--font-display), sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.subtitle.svelte-dg6vek {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.header-actions.svelte-dg6vek {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
  align-items: center;
}
.save-btn.svelte-dg6vek {
  padding: 0.5rem 1.25rem;
}
.save-spinner.svelte-dg6vek {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
.loading-card.svelte-dg6vek {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.loading-pulse.svelte-dg6vek {
  width: 32px;
  height: 32px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.error-banner.svelte-dg6vek {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--danger);
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: slideUp 0.2s var(--ease-out);
}
.two-col.svelte-dg6vek {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.template-select {
  width: auto;
  min-width: 160px;
}
.required.svelte-dg6vek {
  color: var(--danger);
  font-weight: 700;
}
.modal-backdrop.svelte-dg6vek {
  position: fixed;
  inset: 0;
  background: rgba(28, 27, 24, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
  animation: fadeIn 0.15s var(--ease-out);
}
.modal.svelte-dg6vek {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
  animation: scaleIn 0.2s var(--ease-out);
}
.modal-header.svelte-dg6vek {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.35rem 0.85rem;
  border-bottom: 1px solid var(--border);
}
.modal-header.svelte-dg6vek h2:where(.svelte-dg6vek) {
  font-family: var(--font-display), sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
}
.modal-close.svelte-dg6vek {
  background: none;
  border: none;
  padding: 0.3rem;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.12s;
}
.modal-close.svelte-dg6vek:hover {
  background: var(--surface-alt);
  color: var(--text);
}
.modal-body.svelte-dg6vek {
  padding: 1.35rem;
}
.modal-footer.svelte-dg6vek {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem 1.15rem;
  border-top: 1px solid var(--border);
}
@media (max-width: 768px) {
  .two-col.svelte-dg6vek {
    grid-template-columns: 1fr;
  }
  .editor-header.svelte-dg6vek {
    flex-direction: column;
  }
}
.error-banner-list.svelte-dg6vek {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.error-banner-header.svelte-dg6vek {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
}
.error-fields.svelte-dg6vek {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.error-fields.svelte-dg6vek li:where(.svelte-dg6vek) {
  font-size: 0.75rem;
  color: var(--danger);
  padding-left: 1.25rem;
  position: relative;
}
.error-fields.svelte-dg6vek li:where(.svelte-dg6vek)::before {
  content: "\2022";
  position: absolute;
  left: 0.35rem;
  color: var(--danger);
}
.warnings-banner.svelte-dg6vek {
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  animation: slideUp 0.2s var(--ease-out);
}
.warnings-banner-header.svelte-dg6vek {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.warnings-banner-header.clickable.svelte-dg6vek {
  cursor: pointer;
}
.warnings-banner-title.svelte-dg6vek {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #92400e;
}
.warnings-banner-title.svelte-dg6vek svg:where(.svelte-dg6vek) {
  color: #d97706;
  flex-shrink: 0;
}
.warnings-banner-list.svelte-dg6vek {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.warnings-banner-list.svelte-dg6vek li:where(.svelte-dg6vek) {
  font-size: 0.75rem;
  color: #92400e;
  padding-left: 1.25rem;
  position: relative;
}
.warnings-banner-list.svelte-dg6vek li:where(.svelte-dg6vek)::before {
  content: "\2022";
  position: absolute;
  left: 0.35rem;
  color: #d97706;
}
.warnings-chevron.svelte-dg6vek {
  transition: transform 0.2s var(--ease-out);
  color: #d97706;
  flex-shrink: 0;
}
.warnings-chevron.expanded.svelte-dg6vek {
  transform: rotate(180deg);
}

/* fakecss:/app/src/client/pages/PartiesPage.esbuild-svelte-fake-css */
.page-header.svelte-at4j0f {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.page-title-group.svelte-at4j0f {
  display: flex;
  flex-direction: column;
}
h1.svelte-at4j0f {
  font-family: var(--font-display), sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.subtitle.svelte-at4j0f {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.error-banner.svelte-at4j0f {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--danger);
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.modal-error.svelte-at4j0f {
  margin: 0.85rem 1.35rem 0;
}
.loading-card.svelte-at4j0f {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.loading-pulse.svelte-at4j0f {
  width: 32px;
  height: 32px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.empty-state.svelte-at4j0f {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  text-align: center;
  animation: slideUp 0.4s var(--ease-out);
}
.empty-illustration.svelte-at4j0f {
  margin-bottom: 1.25rem;
  color: var(--border-strong);
}
.empty-state.svelte-at4j0f h2:where(.svelte-at4j0f) {
  font-family: var(--font-display), sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.empty-state.svelte-at4j0f p:where(.svelte-at4j0f) {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}
.parties-grid.svelte-at4j0f {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.85rem;
}
.party-card.svelte-at4j0f {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.35rem;
  transition: all 0.2s var(--ease-out);
  animation: slideUp 0.3s var(--ease-out) both;
}
.party-card.svelte-at4j0f:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.party-card-top.svelte-at4j0f {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 0.65rem;
}
.party-avatar.svelte-at4j0f {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-lg);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  font-family: var(--font-display), sans-serif;
  flex-shrink: 0;
}
.party-info.svelte-at4j0f {
  min-width: 0;
  flex: 1;
}
.party-name.svelte-at4j0f {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.party-address.svelte-at4j0f {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 0.15rem;
}
.party-meta.svelte-at4j0f {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.meta-tag.svelte-at4j0f {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius);
}
.party-actions.svelte-at4j0f {
  display: flex;
  gap: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}
.party-actions.svelte-at4j0f button:where(.svelte-at4j0f) {
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
}
.modal-backdrop.svelte-at4j0f {
  position: fixed;
  inset: 0;
  background: rgba(28, 27, 24, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
  animation: fadeIn 0.15s var(--ease-out);
}
.modal.svelte-at4j0f {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  animation: scaleIn 0.2s var(--ease-out);
}
.modal-header.svelte-at4j0f {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.35rem 0.85rem;
  border-bottom: 1px solid var(--border);
}
.modal-header.svelte-at4j0f h2:where(.svelte-at4j0f) {
  font-family: var(--font-display), sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
}
.modal-close.svelte-at4j0f {
  background: none;
  border: none;
  padding: 0.3rem;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.12s;
}
.modal-close.svelte-at4j0f:hover {
  background: var(--surface-alt);
  color: var(--text);
}
.modal-body.svelte-at4j0f {
  padding: 1.35rem;
}
.section-divider.svelte-at4j0f {
  font-family: var(--font-display), sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0.85rem 0 0.6rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-divider.svelte-at4j0f::before {
  content: "";
  width: 3px;
  height: 12px;
  background: var(--amber);
  border-radius: 2px;
}
.modal-footer.svelte-at4j0f {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem 1.15rem;
  border-top: 1px solid var(--border);
}
.save-spinner.svelte-at4j0f {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}
.required.svelte-at4j0f {
  color: var(--danger);
  font-weight: 700;
}
.field-error.svelte-at4j0f {
  display: block;
  font-size: 0.75rem;
  color: var(--danger);
  margin-top: 0.2rem;
}
.field-invalid {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(242, 76, 61, 0.08) !important;
}
.city-suggestion.svelte-at4j0f {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--primary);
  background: none;
  border: none;
  padding: 0.15rem 0;
  margin-top: 0.2rem;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}
.city-suggestion.svelte-at4j0f:hover {
  color: var(--primary-hover);
  text-decoration-style: solid;
}

/* fakecss:/app/src/client/pages/TemplatesPage.esbuild-svelte-fake-css */
.page-header.svelte-1i7r6d8 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.page-title-group.svelte-1i7r6d8 {
  display: flex;
  flex-direction: column;
}
h1.svelte-1i7r6d8 {
  font-family: var(--font-display), sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.subtitle.svelte-1i7r6d8 {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.error-banner.svelte-1i7r6d8 {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--danger);
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.modal-error.svelte-1i7r6d8 {
  margin: 0.85rem 1.35rem 0;
}
.loading-card.svelte-1i7r6d8 {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.loading-pulse.svelte-1i7r6d8 {
  width: 32px;
  height: 32px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.empty-state.svelte-1i7r6d8 {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  text-align: center;
  animation: slideUp 0.4s var(--ease-out);
}
.empty-state.svelte-1i7r6d8 h2:where(.svelte-1i7r6d8) {
  font-family: var(--font-display), sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.empty-state.svelte-1i7r6d8 p:where(.svelte-1i7r6d8) {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}
.templates-grid.svelte-1i7r6d8 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.85rem;
}
.template-card.svelte-1i7r6d8 {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.35rem;
  transition: all 0.2s var(--ease-out);
  animation: slideUp 0.3s var(--ease-out) both;
}
.template-card.svelte-1i7r6d8:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.template-name.svelte-1i7r6d8 {
  font-family: var(--font-display), sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.6rem;
  color: var(--text);
}
.template-details.svelte-1i7r6d8 {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.65rem;
}
.template-detail.svelte-1i7r6d8 {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  padding: 0.15rem 0;
}
.detail-key.svelte-1i7r6d8 {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.detail-val.svelte-1i7r6d8 {
  color: var(--text-secondary);
  font-weight: 500;
}
.preview-num.svelte-1i7r6d8 {
  color: var(--primary);
  font-weight: 600;
}
.template-actions.svelte-1i7r6d8 {
  display: flex;
  gap: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}
.template-actions.svelte-1i7r6d8 button:where(.svelte-1i7r6d8) {
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
}
.preview-box.svelte-1i7r6d8 {
  margin-top: 0.85rem;
  padding: 0.65rem 0.9rem;
  background: var(--primary-light);
  border: 1px solid rgba(166, 47, 36, 0.12);
  border-radius: var(--radius);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.preview-label.svelte-1i7r6d8 {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.preview-value.svelte-1i7r6d8 {
  font-family: var(--font-display), sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
}
.required.svelte-1i7r6d8 {
  color: var(--danger);
  font-weight: 700;
}
.modal-backdrop.svelte-1i7r6d8 {
  position: fixed;
  inset: 0;
  background: rgba(28, 27, 24, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
  animation: fadeIn 0.15s var(--ease-out);
}
.modal.svelte-1i7r6d8 {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  animation: scaleIn 0.2s var(--ease-out);
}
.modal-header.svelte-1i7r6d8 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.35rem 0.85rem;
  border-bottom: 1px solid var(--border);
}
.modal-header.svelte-1i7r6d8 h2:where(.svelte-1i7r6d8) {
  font-family: var(--font-display), sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
}
.modal-close.svelte-1i7r6d8 {
  background: none;
  border: none;
  padding: 0.3rem;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.12s;
}
.modal-close.svelte-1i7r6d8:hover {
  background: var(--surface-alt);
  color: var(--text);
}
.modal-body.svelte-1i7r6d8 {
  padding: 1.35rem;
}
.modal-footer.svelte-1i7r6d8 {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem 1.15rem;
  border-top: 1px solid var(--border);
}
.iban-input.svelte-1i7r6d8 {
  min-width: min(22rem, 100%);
  letter-spacing: 0.05em;
}

/* fakecss:/app/src/client/pages/PdfBuilderPage.esbuild-svelte-fake-css */
.page-header.svelte-rg5vmi {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.page-title-group.svelte-rg5vmi {
  display: flex;
  flex-direction: column;
}
h1.svelte-rg5vmi {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.subtitle.svelte-rg5vmi {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.error-banner.svelte-rg5vmi {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--danger);
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.loading-card.svelte-rg5vmi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.loading-pulse.svelte-rg5vmi {
  width: 32px;
  height: 32px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.empty-state.svelte-rg5vmi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  text-align: center;
  animation: slideUp 0.4s var(--ease-out);
}
.empty-icon.svelte-rg5vmi {
  color: var(--text-muted);
  opacity: 0.35;
  margin-bottom: 1rem;
}
.empty-state.svelte-rg5vmi h2:where(.svelte-rg5vmi) {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.empty-state.svelte-rg5vmi p:where(.svelte-rg5vmi) {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}
.templates-grid.svelte-rg5vmi {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.85rem;
}
.template-card.svelte-rg5vmi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  transition: all 0.2s var(--ease-out);
  animation: slideUp 0.3s var(--ease-out) backwards;
}
.template-card.svelte-rg5vmi:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.card-preview-strip.svelte-rg5vmi {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  display: flex;
  justify-content: center;
}
.mini-page.svelte-rg5vmi {
  width: 56px;
  height: 79px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.mini-block.svelte-rg5vmi {
  position: absolute;
  background: var(--primary-10);
  border: 1px solid rgba(166, 47, 36, 0.15);
  border-radius: 1px;
}
.template-name.svelte-rg5vmi {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 1rem 1.35rem 0;
  margin-bottom: 0.6rem;
  color: var(--text);
}
.template-details.svelte-rg5vmi {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0 1.35rem;
  margin-bottom: 0.65rem;
}
.template-detail.svelte-rg5vmi {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  padding: 0.15rem 0;
}
.detail-key.svelte-rg5vmi {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.detail-val.svelte-rg5vmi {
  color: var(--text-secondary);
  font-weight: 500;
}
.template-pdf-row.svelte-rg5vmi {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  padding: 0.6rem 0.85rem;
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
}
.template-pdf-row.svelte-rg5vmi .template-pdf-select {
  flex: 1;
  width: auto;
}
.pdf-dl-btn.svelte-rg5vmi {
  font-size: 0.8125rem;
  padding: 0.35rem 0.65rem;
  flex-shrink: 0;
}
.btn-spinner.svelte-rg5vmi {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.template-actions.svelte-rg5vmi {
  display: flex;
  gap: 0.35rem;
  padding: 0.65rem 1.35rem;
  border-top: 1px solid var(--border);
}
.template-actions.svelte-rg5vmi button:where(.svelte-rg5vmi) {
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
}
.editor-toolbar.svelte-rg5vmi {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.4rem 0.5rem;
  margin-bottom: 0.75rem;
  animation: slideUp 0.3s var(--ease-out);
}
.toolbar-back.svelte-rg5vmi {
  padding: 0.45rem;
  flex-shrink: 0;
}
.toolbar-field.svelte-rg5vmi {
  flex: 1;
  min-width: 0;
}
.toolbar-name.svelte-rg5vmi {
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius);
  width: 100%;
}
.toolbar-name.svelte-rg5vmi:hover {
  border-color: var(--border);
}
.toolbar-name.svelte-rg5vmi:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--primary-10);
  outline: none;
}
.toolbar-actions.svelte-rg5vmi {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
  margin-left: auto;
}
.toolbar-zoom.svelte-rg5vmi {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
  align-self: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 0.2rem;
}
.zoom-btn.svelte-rg5vmi {
  padding: 0.25rem 0.45rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  border: none;
  background: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius);
  align-self: stretch;
  display: flex;
  align-items: center;
}
.zoom-btn.svelte-rg5vmi:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.zoom-btn-preset.svelte-rg5vmi {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.35rem;
}
.zoom-divider.svelte-rg5vmi {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  margin: 0.2rem 0.1rem;
}
.zoom-display.svelte-rg5vmi {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 34px;
  text-align: center;
  user-select: none;
}
.editor-layout.svelte-rg5vmi {
  display: grid;
  grid-template-columns: 180px 1fr 220px;
  gap: 0.75rem;
  min-height: calc(100vh - 180px);
  animation: fadeIn 0.4s var(--ease-out);
}
.editor-panel.svelte-rg5vmi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  overflow-y: auto;
  max-height: calc(100vh - 180px);
}
.panel-header.svelte-rg5vmi {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.panel-header-toggle.svelte-rg5vmi {
  cursor: pointer;
  user-select: none;
}
.panel-header-toggle.svelte-rg5vmi:hover {
  color: var(--primary);
}
.panel-header.svelte-rg5vmi::before {
  content: "";
  width: 3px;
  height: 10px;
  background: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
}
.panel-divider.svelte-rg5vmi {
  height: 1px;
  background: var(--border);
  margin: 0.75rem 0;
}
.palette-btn.svelte-rg5vmi {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.45rem 0.55rem;
  border-radius: var(--radius);
  background: none;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s var(--ease-out);
  justify-content: flex-start;
}
.palette-btn.svelte-rg5vmi:hover {
  background: var(--primary-light);
  border-color: rgba(166, 47, 36, 0.12);
  color: var(--primary);
}
.palette-btn.svelte-rg5vmi:active {
  transform: scale(0.97);
}
.palette-btn.svelte-rg5vmi svg:where(.svelte-rg5vmi) {
  opacity: 0.55;
  flex-shrink: 0;
}
.palette-btn.svelte-rg5vmi:hover svg:where(.svelte-rg5vmi) {
  opacity: 0.85;
}
.palette-group-header.svelte-rg5vmi {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.2rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  border-radius: var(--radius);
  transition: color 0.12s;
}
.palette-group-header.svelte-rg5vmi:hover {
  color: var(--text-secondary);
}
.group-chevron.svelte-rg5vmi {
  flex-shrink: 0;
  transition: transform 0.15s var(--ease-out);
}
.group-chevron.expanded.svelte-rg5vmi {
  transform: rotate(90deg);
}
.palette-items.svelte-rg5vmi {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-left: 0.35rem;
  margin-bottom: 0.3rem;
}
.logo-preview.svelte-rg5vmi {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.logo-preview.svelte-rg5vmi img:where(.svelte-rg5vmi) {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80px;
  object-fit: contain;
  background: white;
  padding: 0.35rem;
}
.logo-actions.svelte-rg5vmi {
  display: flex;
  border-top: 1px solid var(--border);
}
.logo-action-btn.svelte-rg5vmi {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: 0;
  border: none;
  background: none;
  transition: background 0.1s, color 0.1s;
  font-size: inherit;
}
.logo-action-btn.svelte-rg5vmi:hover {
  background: var(--bg);
  color: var(--text);
}
.logo-action-btn.svelte-rg5vmi + .logo-action-btn:where(.svelte-rg5vmi) {
  border-left: 1px solid var(--border);
}
.upload-area.svelte-rg5vmi {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 0.55rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.15s var(--ease-out);
  text-transform: none;
  font-weight: 500;
  letter-spacing: normal;
}
.upload-area.svelte-rg5vmi:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.upload-area-small.svelte-rg5vmi {
  padding: 0.55rem 0.4rem;
  font-size: 0.675rem;
  flex-direction: row;
  gap: 0.3rem;
}
.font-list.svelte-rg5vmi {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 0.4rem;
}
.font-list-item.svelte-rg5vmi {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.3rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
}
.font-apply-btn.svelte-rg5vmi {
  opacity: 0;
  transition: opacity 0.15s;
}
.font-list-item.svelte-rg5vmi:hover .font-apply-btn:where(.svelte-rg5vmi) {
  opacity: 1;
}
.font-list-info.svelte-rg5vmi {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.font-list-name.svelte-rg5vmi {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.font-list-weights.svelte-rg5vmi {
  display: flex;
  align-items: center;
  gap: 3px;
}
.font-weight-tag.svelte-rg5vmi {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0 3px;
  border-radius: 2px;
  background: var(--border);
  color: var(--text-muted);
  line-height: 1.6;
  letter-spacing: 0.02em;
}
.font-weight-tag-bold.svelte-rg5vmi {
  background: var(--primary-light);
  color: var(--primary);
}
.font-weight-tag-add.svelte-rg5vmi {
  background: transparent;
  border: 1px dashed var(--text-muted);
  color: var(--text-muted);
  cursor: pointer;
}
.font-replace-label.svelte-rg5vmi {
  cursor: pointer;
  display: flex;
  align-items: center;
}
.font-replace-label.svelte-rg5vmi:hover {
  opacity: 0.75;
}
.font-weight-tag-replaceable.svelte-rg5vmi {
  cursor: pointer;
}
.font-bold-upload.svelte-rg5vmi {
  cursor: pointer;
  display: flex;
  align-items: center;
}
.font-bold-upload.svelte-rg5vmi:hover {
  opacity: 0.75;
}
.sr-only.svelte-rg5vmi {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.editor-canvas-wrap.svelte-rg5vmi {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  border-radius: var(--radius-lg);
  background: var(--bg-warm);
  border: 1px solid var(--border);
  padding: 1.5rem;
  max-height: calc(100vh - 180px);
  outline: none;
}
.canvas-scroll.svelte-rg5vmi {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.canvas-outer.svelte-rg5vmi {
  position: relative;
  flex-shrink: 0;
  box-shadow:
    0 1px 3px rgba(28, 27, 24, 0.08),
    0 4px 16px rgba(28, 27, 24, 0.06),
    0 0 0 1px rgba(28, 27, 24, 0.04);
  border-radius: 2px;
  overflow: hidden;
}
.canvas-page.svelte-rg5vmi {
  position: relative;
  background: white;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.02) 1px,
      transparent 1px);
  background-size: 20px 20px;
  font-family:
    Helvetica,
    Arial,
    sans-serif;
}
.canvas-block.svelte-rg5vmi {
  position: absolute;
  border-radius: 2px;
  background: rgba(166, 47, 36, 0.04);
  cursor: move;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(166, 47, 36, 0.18);
  transition: box-shadow 0.1s, background 0.1s;
}
.canvas-block.svelte-rg5vmi:hover {
  box-shadow: inset 0 0 0 1px rgba(166, 47, 36, 0.35);
  background: rgba(166, 47, 36, 0.06);
}
.canvas-block.selected.svelte-rg5vmi {
  box-shadow: inset 0 0 0 2px var(--primary), 0 0 0 3px var(--primary-10);
  background: rgba(166, 47, 36, 0.06);
  z-index: 10;
  overflow: visible;
}
.block-snap-target.svelte-rg5vmi {
  box-shadow: inset 0 0 0 1px var(--accent) !important;
  background: rgba(242, 76, 61, 0.06) !important;
}
.block-preview-content.svelte-rg5vmi {
  pointer-events: none;
  overflow: hidden;
  line-height: 1.4;
  width: 100%;
  height: 100%;
  padding: 0;
  box-sizing: border-box;
}
.block-preview-content.svelte-rg5vmi > div:where(.svelte-rg5vmi) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.preview-muted.svelte-rg5vmi {
  opacity: 0.45;
  font-style: italic;
}
.preview-kv-row.svelte-rg5vmi {
  display: flex;
  justify-content: space-between;
  white-space: nowrap;
  overflow: hidden;
}
.preview-kv-left.svelte-rg5vmi {
  display: flex;
  justify-content: flex-start;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
}
.preview-table.svelte-rg5vmi {
  overflow: hidden;
  width: 100%;
}
.preview-table-grid-outer.svelte-rg5vmi {
  border: 0.5px solid #d1cfc7;
}
.preview-table-row.svelte-rg5vmi {
  display: flex;
}
.preview-table-cell.svelte-rg5vmi {
  padding: 0 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.preview-table-cell-vborder.svelte-rg5vmi {
  border-right: 0.5px solid #d1cfc7;
}
.preview-table-header.svelte-rg5vmi {
  font-weight: 700;
  display: flex;
  align-items: center;
}
.preview-table-row-minimal.svelte-rg5vmi {
  border-bottom: 0.3px solid #e8e6e0;
}
.preview-table-row-grid.svelte-rg5vmi {
  border-bottom: 0.5px solid #d1cfc7;
}
.preview-table-header-striped.svelte-rg5vmi {
  background: #d8d6d0 !important;
  font-weight: 700;
  border-bottom: 1px solid #bbb9b0 !important;
}
.preview-table-stripe.svelte-rg5vmi {
  background: #eeecea;
}
.preview-table-header-compact.svelte-rg5vmi {
  background: transparent !important;
  font-weight: 700;
  padding-bottom: 1px;
}
.preview-table-row-compact.svelte-rg5vmi {
  border-bottom: 0.7px solid #ccc;
}
.preview-table-header-elegant.svelte-rg5vmi {
  background: transparent !important;
}
.preview-table-row-modern.svelte-rg5vmi {
  border-bottom: 0.3px solid var(--accent);
}
.block-logo-img.svelte-rg5vmi {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.preview-line.svelte-rg5vmi {
  pointer-events: none;
  flex-shrink: 0;
}
.rh.svelte-rg5vmi {
  position: absolute;
  width: 8px;
  height: 8px;
  background: white;
  border: 1.5px solid var(--primary);
  border-radius: 2px;
  z-index: 20;
}
.rh.svelte-rg5vmi:hover {
  background: var(--primary-light);
}
.rh-nw.svelte-rg5vmi {
  top: -4px;
  left: -4px;
  cursor: nw-resize;
}
.rh-n.svelte-rg5vmi {
  top: -4px;
  left: calc(50% - 4px);
  cursor: n-resize;
}
.rh-ne.svelte-rg5vmi {
  top: -4px;
  right: -4px;
  cursor: ne-resize;
}
.rh-e.svelte-rg5vmi {
  top: calc(50% - 4px);
  right: -4px;
  cursor: e-resize;
}
.rh-se.svelte-rg5vmi {
  bottom: -4px;
  right: -4px;
  cursor: se-resize;
}
.rh-s.svelte-rg5vmi {
  bottom: -4px;
  left: calc(50% - 4px);
  cursor: s-resize;
}
.rh-sw.svelte-rg5vmi {
  bottom: -4px;
  left: -4px;
  cursor: sw-resize;
}
.rh-w.svelte-rg5vmi {
  top: calc(50% - 4px);
  left: -4px;
  cursor: w-resize;
}
.overlay.svelte-rg5vmi {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
.overlay-margins.svelte-rg5vmi {
  border: 1.5px dashed rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.02);
}
.overlay-window.svelte-rg5vmi {
  border: 1.5px dashed rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.04);
}
.overlay-foldmark.svelte-rg5vmi {
  left: 0;
  width: 100%;
  height: 0;
  border-top: 1.5px dashed rgba(249, 115, 22, 0.4);
}
.overlay-foldmark.svelte-rg5vmi::before {
  content: "";
  position: absolute;
  left: 0;
  top: -4px;
  width: 12px;
  height: 8px;
  border-right: 1.5px solid rgba(249, 115, 22, 0.5);
}
.overlay-punchmark.svelte-rg5vmi::before {
  left: 0;
  top: -3px;
  width: 8px;
  height: 6px;
}
.overlay-label.svelte-rg5vmi {
  position: absolute;
  font-size: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1px 3px;
  border-radius: 2px;
  white-space: nowrap;
}
.overlay-label-green.svelte-rg5vmi {
  bottom: -1px;
  right: 2px;
  color: rgba(34, 197, 94, 0.7);
  background: rgba(34, 197, 94, 0.08);
}
.overlay-label-orange.svelte-rg5vmi {
  top: 2px;
  left: 14px;
  color: rgba(249, 115, 22, 0.7);
  background: rgba(249, 115, 22, 0.08);
}
.canvas-guide.svelte-rg5vmi {
  position: absolute;
  z-index: 5;
  cursor: move;
}
.canvas-guide.svelte-rg5vmi:not(.locked) {
  border-top: 1.5px dashed rgba(168, 85, 247, 0.5);
  border-left: 1.5px dashed rgba(168, 85, 247, 0.5);
}
.canvas-guide.locked.svelte-rg5vmi {
  border-top: 1.5px dashed rgba(168, 85, 247, 0.25);
  border-left: 1.5px dashed rgba(168, 85, 247, 0.25);
  pointer-events: none;
}
.canvas-guide.snapping.svelte-rg5vmi {
  border-top: 2px solid rgba(168, 85, 247, 0.8);
  border-left: 2px solid rgba(168, 85, 247, 0.8);
}
.canvas-guide.active.svelte-rg5vmi:not(.snapping) {
  border-top: 1.5px solid rgba(168, 85, 247, 0.7);
  border-left: 1.5px solid rgba(168, 85, 247, 0.7);
}
.guide-edit-input.svelte-rg5vmi {
  position: absolute;
  width: 56px;
  padding: 1px 3px;
  font-size: 8px;
  border: 1px solid rgba(168, 85, 247, 0.5);
  border-radius: 2px;
  background: white;
  z-index: 6;
}
.guide-visibility-btn.svelte-rg5vmi {
  margin-left: auto;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--text-muted);
  padding: 1px 2px;
  border-radius: 2px;
  opacity: 0.7;
  transition: opacity 0.1s, color 0.1s;
}
.guide-visibility-btn.svelte-rg5vmi:hover {
  opacity: 1;
  color: var(--text);
}
.guide-add-btns.svelte-rg5vmi {
  display: flex;
  gap: 0.25rem;
}
.guide-add-btn.svelte-rg5vmi {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.3rem 0.3rem;
  font-size: 0.65rem;
}
.guide-list.svelte-rg5vmi {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.35rem;
}
.guide-list-item.svelte-rg5vmi {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem 0.3rem;
  border-radius: var(--radius);
  font-size: 0.68rem;
  transition: background 0.1s;
}
.guide-list-item.active.svelte-rg5vmi {
  background: rgba(168, 85, 247, 0.08);
}
.guide-list-label.svelte-rg5vmi {
  flex: 1;
  font-weight: 500;
  color: var(--text-secondary);
  font-family: monospace;
  font-size: 0.65rem;
}
.guide-list-btn.svelte-rg5vmi {
  padding: 0.15rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
.guide-list-btn.svelte-rg5vmi:hover {
  color: var(--text);
}
.overlay-toggles.svelte-rg5vmi {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.overlay-toggle.svelte-rg5vmi {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
  padding: 0.1rem 0.2rem;
  border-radius: 3px;
  transition: background 0.12s;
}
.overlay-toggle.svelte-rg5vmi:hover {
  background: rgba(255, 255, 255, 0.04);
}
.overlay-hidden.svelte-rg5vmi {
  opacity: 0.45;
}
.overlay-eye.svelte-rg5vmi {
  flex-shrink: 0;
  color: var(--sidebar-text);
  display: flex;
  align-items: center;
}
.overlay-swatch.svelte-rg5vmi {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}
.sr-only.svelte-rg5vmi {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.margin-inputs.svelte-rg5vmi {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.4rem;
  padding-left: 0.15rem;
}
.margin-row.svelte-rg5vmi label:where(.svelte-rg5vmi) {
  display: grid;
  grid-template-columns: 42px 48px auto;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: normal;
}
.margin-label.svelte-rg5vmi {
  font-weight: 500;
}
.margin-unit.svelte-rg5vmi {
  font-size: 0.68rem;
  color: var(--text-muted);
}
.margin-input.svelte-rg5vmi {
  width: 48px;
  padding: 0.2rem 0.3rem;
  font-size: 0.68rem;
  text-align: right;
}
.props-empty.svelte-rg5vmi {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-align: center;
  opacity: 0.6;
}
.prop-section.svelte-rg5vmi {
  margin-bottom: 0.55rem;
}
.prop-section.svelte-rg5vmi label:where(.svelte-rg5vmi),
.prop-label.svelte-rg5vmi {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.prop-section.svelte-rg5vmi input[type=number]:where(.svelte-rg5vmi),
.prop-section.svelte-rg5vmi textarea:where(.svelte-rg5vmi) {
  padding: 0.35rem 0.5rem;
  font-size: 0.75rem;
}
.prop-type-badge.svelte-rg5vmi {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 0.02em;
}
.color-input-wrap.svelte-rg5vmi {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.color-input-wrap.svelte-rg5vmi input[type=color]:where(.svelte-rg5vmi) {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  flex-shrink: 0;
}
.color-hex.svelte-rg5vmi {
  font-size: 0.7rem;
  font-family: monospace;
  color: var(--text-muted);
}
.toggle-group.svelte-rg5vmi {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.toggle-btn.svelte-rg5vmi {
  flex: 1;
  padding: 0.3rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 500;
  border: none;
  border-radius: 0;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.12s;
}
.toggle-btn.svelte-rg5vmi + .toggle-btn:where(.svelte-rg5vmi) {
  border-left: 1px solid var(--border);
}
.toggle-btn.active.svelte-rg5vmi {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}
.prop-pair.svelte-rg5vmi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
}
.prop-pair-field.svelte-rg5vmi {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
}
.prop-pair-field.svelte-rg5vmi input:where(.svelte-rg5vmi) {
  flex: 1;
  min-width: 0;
  width: auto;
}
.prop-pair-label.svelte-rg5vmi {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  white-space: nowrap;
}
.prop-divider.svelte-rg5vmi {
  height: 1px;
  background: var(--border);
  margin: 0.6rem 0;
}
.prop-delete.svelte-rg5vmi {
  width: 100%;
  font-size: 0.72rem;
}
.prop-checkbox.svelte-rg5vmi {
  width: auto;
  margin-right: 0.35rem;
  vertical-align: middle;
}
.range-wrap.svelte-rg5vmi {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.range-wrap.svelte-rg5vmi input[type=range]:where(.svelte-rg5vmi) {
  flex: 1;
  height: 4px;
  accent-color: var(--primary);
  cursor: pointer;
}
.range-value.svelte-rg5vmi {
  font-size: 0.7rem;
  font-family: monospace;
  color: var(--text-muted);
  min-width: 24px;
  text-align: right;
}
.col-config-row.svelte-rg5vmi {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.15rem;
}
.col-config-row.col-hidden.svelte-rg5vmi {
  opacity: 0.38;
}
.col-check.svelte-rg5vmi {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
  flex: 1;
}
.col-align-btns.svelte-rg5vmi {
  display: flex;
  gap: 1px;
}
.col-align-btn.svelte-rg5vmi {
  padding: 1px 5px;
  font-size: 0.6rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 2px;
  line-height: 1.6;
}
.col-align-btn.svelte-rg5vmi:first-child {
  border-radius: 2px 0 0 2px;
}
.col-align-btn.svelte-rg5vmi:last-child {
  border-radius: 0 2px 2px 0;
}
.col-align-btn.svelte-rg5vmi:not(:first-child):not(:last-child) {
  border-radius: 0;
  border-left: none;
}
.col-align-btn.active.svelte-rg5vmi {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.preview-section.svelte-rg5vmi {
  margin-top: 0.35rem;
}
.preview-section .form-select-trigger {
  font-size: 0.75rem !important;
  padding: 0.35rem 2rem 0.35rem 0.5rem !important;
  margin-top: 0.2rem;
  text-overflow: ellipsis;
}
.preview-hint.svelte-rg5vmi {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  line-height: 1.4;
}
.modal-backdrop.svelte-rg5vmi {
  position: fixed;
  inset: 0;
  background: rgba(28, 27, 24, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
  animation: fadeIn 0.15s var(--ease-out);
}
.modal.svelte-rg5vmi {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: scaleIn 0.2s var(--ease-out);
}
.preview-modal.svelte-rg5vmi {
  max-width: 860px;
}
.modal-header.svelte-rg5vmi {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.35rem 0.85rem;
  border-bottom: 1px solid var(--border);
}
.modal-header.svelte-rg5vmi h2:where(.svelte-rg5vmi) {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}
.modal-close.svelte-rg5vmi {
  background: none;
  border: none;
  padding: 0.3rem;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.12s;
}
.modal-close.svelte-rg5vmi:hover {
  background: var(--surface-alt);
  color: var(--text);
}
.modal-body.svelte-rg5vmi {
  padding: 1.35rem;
}
.preview-body.svelte-rg5vmi {
  padding: 0;
  min-height: 500px;
}
.preview-pdf.svelte-rg5vmi {
  width: 100%;
  height: 75vh;
  border: none;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* fakecss:/app/src/client/pages/InvoiceTemplateEditPage.esbuild-svelte-fake-css */
.loading-card.svelte-1k8zbde {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  font-size: 0.875rem;
}
.loading-pulse.svelte-1k8zbde {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
.editor-header.svelte-1k8zbde {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.editor-title-group.svelte-1k8zbde {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.back-btn.svelte-1k8zbde {
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.15s;
  outline: none;
}
.back-btn.svelte-1k8zbde:hover {
  background: var(--surface-alt);
  border-color: var(--border-strong);
  color: var(--text);
}
h1.svelte-1k8zbde {
  font-family: var(--font-display), sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.subtitle.svelte-1k8zbde {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.header-actions.svelte-1k8zbde {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.save-btn.svelte-1k8zbde {
  min-width: 100px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.save-spinner.svelte-1k8zbde {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.error-banner.svelte-1k8zbde {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: #fef2f2;
  border: 1px solid rgba(242, 76, 61, 0.2);
  border-radius: var(--radius-lg);
  color: var(--danger);
  font-size: 0.8125rem;
  margin-bottom: 1.25rem;
}
.name-group.svelte-1k8zbde {
  max-width: 400px;
  margin-bottom: 1rem;
}
.required.svelte-1k8zbde {
  color: var(--danger);
  font-weight: 700;
}

/* fakecss:/app/src/client/pages/SettingsPage.esbuild-svelte-fake-css */
.settings-page.svelte-kse7em {
  padding: 2rem 2.5rem;
  max-width: 760px;
}
.page-header.svelte-kse7em {
  margin-bottom: 2rem;
}
.page-title.svelte-kse7em {
  font-family: var(--font-display), sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}
.page-subtitle.svelte-kse7em {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}
.loading-state.svelte-kse7em {
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 1rem 0;
}
.settings-card.svelte-kse7em {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 680px;
}
.settings-card.svelte-kse7em::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--primary);
}
.settings-section.svelte-kse7em {
  padding: 0.5rem 0;
}
.settings-row.svelte-kse7em {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.125rem 1.75rem;
}
.settings-divider.svelte-kse7em {
  height: 1px;
  background: var(--border);
  margin: 0 1.75rem;
  opacity: 0.6;
}
.settings-label.svelte-kse7em {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.settings-label-text.svelte-kse7em {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}
.settings-control.svelte-kse7em {
  flex-shrink: 0;
  width: 280px;
}
.settings-control.svelte-kse7em .settings-select {
  width: 100%;
}
.settings-footer.svelte-kse7em {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.settings-error.svelte-kse7em {
  font-size: 0.8125rem;
  color: var(--danger);
}
.settings-success.svelte-kse7em {
  font-size: 0.8125rem;
  color: #2d7a3a;
  font-weight: 500;
}
.btn-primary.svelte-kse7em {
  padding: 0.55rem 1.25rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-body), sans-serif;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary.svelte-kse7em:hover:not(:disabled) {
  background: var(--primary-hover);
}
.btn-primary.svelte-kse7em:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.smtp-card.svelte-kse7em {
  margin-top: 1.5rem;
  max-width: 680px;
}
.smtp-card-header.svelte-kse7em {
  padding: 1.15rem 1.75rem 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.smtp-title.svelte-kse7em {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display), sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.smtp-desc.svelte-kse7em {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}
.smtp-loading.svelte-kse7em {
  padding: 1.25rem 1.75rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.smtp-body.svelte-kse7em {
  padding: 1.15rem 1.75rem 0;
}
.smtp-footer.svelte-kse7em {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.75rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
  margin-top: 1.15rem;
}
.btn-ghost.svelte-kse7em {
  padding: 0.5rem 1rem;
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-body), sans-serif;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}
.btn-ghost.svelte-kse7em:hover:not(:disabled) {
  background: var(--surface-alt);
  border-color: var(--border-strong);
}
.btn-ghost.svelte-kse7em:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.checkbox-label.svelte-kse7em {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.7rem;
}
.checkbox-label.svelte-kse7em input[type=checkbox]:where(.svelte-kse7em) {
  width: auto;
  margin: 0;
  cursor: pointer;
}
.smtp-hint.svelte-kse7em {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: normal;
  margin-left: 0.2rem;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.7rem;
  margin-bottom: 0;
}
.form-group {
  margin-bottom: 0.7rem;
}

/* fakecss:/app/src/client/pages/ImportPage.esbuild-svelte-fake-css */
.page-header.svelte-1il81ba {
  margin-bottom: 1.5rem;
}
.page-header.svelte-1il81ba h1:where(.svelte-1il81ba) {
  font-family: var(--font-display), sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.subtitle.svelte-1il81ba {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.error-banner.svelte-1il81ba {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--danger);
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: slideUp 0.2s var(--ease-out);
}
.import-layout.svelte-1il81ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 900px) {
  .import-layout.svelte-1il81ba {
    grid-template-columns: 1fr;
  }
}
.preview-card.svelte-1il81ba {
  animation: slideUp 0.2s var(--ease-out);
}
.drop-zone.svelte-1il81ba {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 1.5rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  text-align: center;
  outline: none;
}
.drop-zone.svelte-1il81ba:hover,
.drop-zone.drag-over.svelte-1il81ba {
  border-color: var(--primary);
  background: rgba(166, 47, 36, 0.03);
}
.upload-icon.svelte-1il81ba {
  color: var(--text-muted);
  opacity: 0.5;
}
.drop-text.svelte-1il81ba {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}
.drop-hint.svelte-1il81ba {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
}
.file-name.svelte-1il81ba {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}
.divider-with-text.svelte-1il81ba {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: var(--text-muted);
  font-size: 0.75rem;
}
.divider-with-text.svelte-1il81ba::before,
.divider-with-text.svelte-1il81ba::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--border);
}
.xml-input.svelte-1il81ba {
  width: 100%;
  font-family:
    "SF Mono",
    "Menlo",
    "Monaco",
    monospace;
  font-size: 0.75rem;
  resize: vertical;
}
.action-row.svelte-1il81ba {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
  gap: 0.5rem;
}
.spinner.svelte-1il81ba {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  flex-shrink: 0;
}
.preview-grid.svelte-1il81ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.preview-item.svelte-1il81ba {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.preview-item.full-width.svelte-1il81ba {
  grid-column: 1 / -1;
}
.preview-label.svelte-1il81ba {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.preview-value.svelte-1il81ba {
  font-size: 0.875rem;
  font-weight: 500;
}
.mono.svelte-1il81ba {
  font-family:
    "SF Mono",
    "Menlo",
    "Monaco",
    monospace;
}
.preview-lines.svelte-1il81ba {
  overflow-x: auto;
  margin: 0 -1.35rem;
  padding: 0 1.35rem;
}
.preview-lines.svelte-1il81ba table:where(.svelte-1il81ba) {
  width: 100%;
  font-size: 0.8rem;
  border-collapse: collapse;
}
.preview-lines.svelte-1il81ba th:where(.svelte-1il81ba) {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.preview-lines.svelte-1il81ba td:where(.svelte-1il81ba) {
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--border);
}
.text-right.svelte-1il81ba {
  text-align: right;
}
.line-desc.svelte-1il81ba {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}
.import-btn.svelte-1il81ba {
  padding: 0.55rem 1.5rem;
}
.warnings-section.svelte-1il81ba {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  animation: fadeIn 0.2s var(--ease-out);
}
.warnings-header.svelte-1il81ba {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 0.4rem;
}
.warnings-header.svelte-1il81ba svg:where(.svelte-1il81ba) {
  color: #d97706;
  flex-shrink: 0;
}
.warnings-list.svelte-1il81ba {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.warnings-list.svelte-1il81ba li:where(.svelte-1il81ba) {
  font-size: 0.75rem;
  color: #92400e;
  padding-left: 1.25rem;
  position: relative;
}
.warnings-list.svelte-1il81ba li:where(.svelte-1il81ba)::before {
  content: "\2022";
  position: absolute;
  left: 0.35rem;
  color: #d97706;
}

/* fakecss:/app/src/client/lib/components/BadgeDot.esbuild-svelte-fake-css */
.badge-dot.svelte-154lld4 {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.badge-dot.primary.svelte-154lld4 {
  background: var(--primary);
}
.badge-dot.success.svelte-154lld4 {
  background: var(--success);
}
.badge-dot.danger.svelte-154lld4 {
  background: var(--danger);
}
.badge-dot.amber.svelte-154lld4 {
  background: var(--amber);
}
.badge-dot.neutral.svelte-154lld4 {
  background: var(--text-muted);
}

/* fakecss:/app/src/client/lib/components/RecurringCalendarPreview.esbuild-svelte-fake-css */
.calendar-nav.svelte-17q0zgt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.calendar-nav-btn.svelte-17q0zgt {
  padding: 0.2rem 0.4rem !important;
  height: auto !important;
  min-width: 0;
  outline: none;
}
.calendar-nav-btn.svelte-17q0zgt:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}
.calendar-nav-label.svelte-17q0zgt {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.calendar-grid.svelte-17q0zgt {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.month-block.svelte-17q0zgt {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem 0.75rem;
}
.month-header.svelte-17q0zgt {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: capitalize;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.day-grid.svelte-17q0zgt {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}
.day-label.svelte-17q0zgt {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  padding: 2px 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.day-cell.svelte-17q0zgt {
  font-size: 0.65rem;
  text-align: center;
  padding: 3px 1px;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: var(--text);
  position: relative;
  transition: background 0.1s;
}
.day-cell.empty.svelte-17q0zgt {
  visibility: hidden;
}
.day-cell.highlighted.svelte-17q0zgt {
  background: var(--primary);
  color: white;
  font-weight: 600;
}
.day-cell.today.svelte-17q0zgt:not(.highlighted) {
  outline: 1.5px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
}
.day-cell.today.highlighted.svelte-17q0zgt {
  background: var(--primary-hover);
  outline: 2px solid var(--primary-hover);
}

/* fakecss:/app/src/client/pages/RecurringInvoicesPage.esbuild-svelte-fake-css */
.page-header.svelte-122zzpc {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.page-title-group.svelte-122zzpc {
  display: flex;
  flex-direction: column;
}
h1.svelte-122zzpc {
  font-family: var(--font-display), sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
}
.subtitle.svelte-122zzpc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.success-banner.svelte-122zzpc {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: fadeIn 0.2s var(--ease-out);
}
.error-banner.svelte-122zzpc {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--danger);
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.loading-card.svelte-122zzpc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.loading-pulse.svelte-122zzpc {
  width: 32px;
  height: 32px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.empty-state.svelte-122zzpc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  text-align: center;
  animation: slideUp 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.empty-illustration.svelte-122zzpc {
  color: var(--border-strong);
}
.empty-state.svelte-122zzpc h2:where(.svelte-122zzpc) {
  font-family: var(--font-display), sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}
.rules-list.svelte-122zzpc {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.rule-card.svelte-122zzpc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  animation: fadeIn 0.3s var(--ease-out) both;
  position: relative;
}
.rule-card.svelte-122zzpc::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.rule-card-header.svelte-122zzpc {
  margin-bottom: 0.65rem;
}
.rule-card-title-group.svelte-122zzpc {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
  flex-wrap: wrap;
}
.rule-name.svelte-122zzpc {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.rule-meta.svelte-122zzpc {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.rule-schedule.svelte-122zzpc {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 500;
}
.rule-template.svelte-122zzpc {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.rule-card-dates.svelte-122zzpc {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}
.date-pair.svelte-122zzpc {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.date-label.svelte-122zzpc {
  font-size: 0.675rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.date-value.svelte-122zzpc {
  font-size: 0.8125rem;
  color: var(--text);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.rule-card-actions.svelte-122zzpc {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.modal-backdrop.svelte-122zzpc {
  position: fixed;
  inset: 0;
  background: rgba(28, 27, 24, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
  animation: fadeIn 0.15s var(--ease-out);
}
.modal.svelte-122zzpc {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: scaleIn 0.2s var(--ease-out);
  outline: none;
}
.modal-header.svelte-122zzpc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem 0.9rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-header.svelte-122zzpc h2:where(.svelte-122zzpc) {
  font-family: var(--font-display), sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.modal-close.svelte-122zzpc {
  background: none;
  border: none;
  height: auto;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.25rem;
  display: flex;
  align-items: center;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
  outline: none;
}
.modal-close.svelte-122zzpc:hover {
  color: var(--text);
  background: var(--bg);
}
.modal-error.svelte-122zzpc {
  background: #fef2f2;
  border-bottom: 1px solid #fecaca;
  color: var(--danger);
  padding: 0.6rem 1.4rem;
  font-size: 0.8125rem;
  flex-shrink: 0;
}
.modal-body.svelte-122zzpc {
  padding: 1.25rem 1.4rem;
  overflow-y: auto;
  flex: 1;
}
.modal-cols.svelte-122zzpc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}
@media (max-width: 680px) {
  .modal-cols.svelte-122zzpc {
    grid-template-columns: 1fr;
  }
}
.modal-footer.svelte-122zzpc {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 0.9rem 1.4rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.form-col-half.svelte-122zzpc {
  flex: 1;
}
.input-with-unit.svelte-122zzpc {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.input-with-unit.svelte-122zzpc input:where(.svelte-122zzpc) {
  flex: 1;
}
.unit-label.svelte-122zzpc {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.template-override-badge.svelte-122zzpc {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.4rem;
  margin-left: 0.35rem;
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  vertical-align: middle;
}
.checkbox-label.svelte-122zzpc {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.checkbox-label.svelte-122zzpc input[type=checkbox]:where(.svelte-122zzpc) {
  width: auto;
  margin: 0;
  cursor: pointer;
}
.weekday-picker.svelte-122zzpc {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.weekday-btn.svelte-122zzpc {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  padding: 0;
}
.weekday-btn.svelte-122zzpc:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.weekday-btn.selected.svelte-122zzpc {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.anchor-options.svelte-122zzpc {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.65rem 0.75rem;
}
.radio-option.svelte-122zzpc {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--text);
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}
.radio-option.svelte-122zzpc span:where(.svelte-122zzpc) {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.inline-number.svelte-122zzpc {
  width: 52px !important;
  padding: 0.2rem 0.35rem !important;
  text-align: center;
  display: inline-block;
}
.preview-col.svelte-122zzpc {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.preview-header.svelte-122zzpc {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.preview-dates-section.svelte-122zzpc {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.preview-no-dates.svelte-122zzpc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}
.preview-next-list.svelte-122zzpc {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
}
.preview-date-row.svelte-122zzpc {
  display: contents;
}
.preview-idx.svelte-122zzpc {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
  padding: 0.2rem 0.5rem 0.2rem 0.35rem;
  white-space: nowrap;
}
.preview-date-chip.svelte-122zzpc {
  background: rgba(166, 47, 36, 0.08);
  color: var(--primary);
  border-radius: 9999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.preview-invoice-nr.svelte-122zzpc {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  padding: 0.2rem 0.35rem 0.2rem 0.5rem;
}
.section-divider.svelte-122zzpc {
  font-family: var(--font-display), sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0.85rem 0 0.6rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-divider.svelte-122zzpc::before {
  content: "";
  width: 3px;
  height: 12px;
  background: var(--amber);
  border-radius: 2px;
}
.radio-group.svelte-122zzpc {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.3rem;
}

/* fakecss:/app/src/client/pages/AuditLogPage.esbuild-svelte-fake-css */
.page-header.svelte-1fftsi4 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.tab-bar.svelte-1fftsi4 {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.tab-btn.svelte-1fftsi4 {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  margin-bottom: -2px;
  padding: 0.55rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  height: auto;
  transition: color 0.15s, border-color 0.15s;
}
.tab-btn.svelte-1fftsi4:hover {
  color: var(--text);
  background: none;
}
.tab-btn.active.svelte-1fftsi4 {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}
.tab-btn.svelte-1fftsi4 svg:where(.svelte-1fftsi4) {
  flex-shrink: 0;
}
.email-cell.svelte-1fftsi4 {
  font-family:
    ui-monospace,
    "Cascadia Code",
    monospace;
  font-size: 0.775rem;
  color: var(--text-secondary);
}
.attachment-type.svelte-1fftsi4 {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.page-title-group.svelte-1fftsi4 {
  display: flex;
  flex-direction: column;
}
h1.svelte-1fftsi4 {
  font-family: var(--font-display), sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
}
.subtitle.svelte-1fftsi4 {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.error-banner.svelte-1fftsi4 {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--danger);
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.loading-card.svelte-1fftsi4 {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.loading-pulse.svelte-1fftsi4 {
  width: 32px;
  height: 32px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.empty-state.svelte-1fftsi4 {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  text-align: center;
  animation: slideUp 0.4s var(--ease-out);
}
.empty-illustration.svelte-1fftsi4 {
  margin-bottom: 1rem;
  color: var(--border-strong);
}
.empty-state.svelte-1fftsi4 p:where(.svelte-1fftsi4) {
  color: var(--text-muted);
  font-size: 0.875rem;
}
.table-card.svelte-1fftsi4 {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: slideUp 0.3s var(--ease-out);
}
thead.svelte-1fftsi4 th:where(.svelte-1fftsi4) {
  white-space: nowrap;
}
tbody.svelte-1fftsi4 td:where(.svelte-1fftsi4) {
  vertical-align: top;
}
.date-cell.svelte-1fftsi4 {
  white-space: nowrap;
  color: var(--text-muted);
}
.rule-cell.svelte-1fftsi4 {
  font-weight: 500;
  color: var(--text);
}
.muted.svelte-1fftsi4 {
  color: var(--text-muted);
}
.invoice-link.svelte-1fftsi4 {
  background: none;
  border: none;
  padding: 0;
  height: auto;
  font-family:
    ui-monospace,
    "Cascadia Code",
    "Source Code Pro",
    monospace;
  font-size: 0.775rem;
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.invoice-link.svelte-1fftsi4:hover {
  color: var(--primary-hover);
}
.status-cell.svelte-1fftsi4 {
  white-space: nowrap;
}
.status-error-group.svelte-1fftsi4 {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-start;
}
.error-message.svelte-1fftsi4 {
  font-size: 0.7rem;
  color: var(--text-muted);
  max-width: 28ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.load-more-row.svelte-1fftsi4 {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}
.load-more-btn.svelte-1fftsi4 {
  font-size: 0.8125rem;
  padding: 0.5rem 1.5rem;
}
.all-loaded.svelte-1fftsi4 {
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* fakecss:/app/src/client/lib/components/RichTextEditor.esbuild-svelte-fake-css */
.rich-editor.svelte-17gov02 {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.rich-editor.svelte-17gov02:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-10);
}
.toolbar.svelte-17gov02 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}
.tb.svelte-17gov02 {
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.2rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  height: auto;
  min-width: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
}
.tb.svelte-17gov02:hover {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.tb.active.svelte-17gov02 {
  background: var(--primary-light);
  border-color: rgba(166, 47, 36, 0.2);
  color: var(--primary);
}
.tb-sep.svelte-17gov02 {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 0.2rem;
  align-self: center;
  display: inline-block;
  flex-shrink: 0;
}
.editor-content.svelte-17gov02 {
  min-height: 200px;
  max-height: 400px;
  overflow-y: auto;
}
.editor-content.svelte-17gov02 .tiptap {
  padding: 0.75rem;
  outline: none;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text);
  font-family: var(--font-body), sans-serif;
  min-height: 200px;
}
.editor-content.svelte-17gov02 .tiptap p {
  margin: 0 0 0.5em;
}
.editor-content.svelte-17gov02 .tiptap p:last-child {
  margin-bottom: 0;
}
.editor-content.svelte-17gov02 .tiptap h1,
.editor-content.svelte-17gov02 .tiptap h2,
.editor-content.svelte-17gov02 .tiptap h3 {
  font-family: var(--font-display), sans-serif;
  font-weight: 600;
  margin: 0.8em 0 0.3em;
  line-height: 1.3;
}
.editor-content.svelte-17gov02 .tiptap h2 {
  font-size: 1.1rem;
}
.editor-content.svelte-17gov02 .tiptap h3 {
  font-size: 0.95rem;
}
.editor-content.svelte-17gov02 .tiptap ul,
.editor-content.svelte-17gov02 .tiptap ol {
  padding-left: 1.5em;
  margin: 0.3em 0;
}
.editor-content.svelte-17gov02 .tiptap li {
  margin-bottom: 0.15em;
}
.editor-content.svelte-17gov02 .tiptap a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.editor-content.svelte-17gov02 .tiptap img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.editor-content.svelte-17gov02 .tiptap blockquote {
  border-left: 3px solid var(--border-strong);
  padding-left: 0.75em;
  margin: 0.5em 0;
  color: var(--text-secondary);
}
.editor-content.svelte-17gov02 .tiptap hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1em 0;
}
.editor-content.svelte-17gov02 .tiptap code {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.1em 0.3em;
  font-size: 0.875em;
  font-family:
    ui-monospace,
    "Cascadia Code",
    "Fira Code",
    monospace;
}
.editor-content.svelte-17gov02 .tiptap pre {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  overflow-x: auto;
  font-family:
    ui-monospace,
    "Cascadia Code",
    "Fira Code",
    monospace;
  font-size: 0.8125rem;
}
.editor-content.svelte-17gov02 .tiptap pre code {
  background: none;
  border: none;
  padding: 0;
}
.editor-content.svelte-17gov02 .tiptap p.is-editor-empty:first-child::before {
  content: attr(data-placeholder);
  color: var(--text-muted);
  opacity: 0.6;
  pointer-events: none;
  float: left;
  height: 0;
}

/* fakecss:/app/src/client/pages/EmailTemplatesPage.esbuild-svelte-fake-css */
.page-header.svelte-m04zys {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.page-title-group.svelte-m04zys {
  display: flex;
  flex-direction: column;
}
h1.svelte-m04zys {
  font-family: var(--font-display), sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
}
.subtitle.svelte-m04zys {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.error-banner.svelte-m04zys {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--danger);
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.loading-card.svelte-m04zys {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.loading-pulse.svelte-m04zys {
  width: 32px;
  height: 32px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.empty-state.svelte-m04zys {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  text-align: center;
  animation: slideUp 0.4s var(--ease-out);
}
.empty-illustration.svelte-m04zys {
  margin-bottom: 1.25rem;
  color: var(--border-strong);
}
.empty-state.svelte-m04zys h2:where(.svelte-m04zys) {
  font-family: var(--font-display), sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.empty-state.svelte-m04zys p:where(.svelte-m04zys) {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}
.templates-grid.svelte-m04zys {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.85rem;
}
.template-card.svelte-m04zys {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.35rem;
  transition: all 0.2s var(--ease-out);
  animation: slideUp 0.3s var(--ease-out) backwards;
}
.template-card.svelte-m04zys:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.template-name.svelte-m04zys {
  font-family: var(--font-display), sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.6rem;
  color: var(--text);
  display: flex;
  align-items: center;
}
.template-details.svelte-m04zys {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.65rem;
}
.template-detail.svelte-m04zys {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  padding: 0.15rem 0;
  gap: 0.5rem;
}
.detail-key.svelte-m04zys {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.detail-val.svelte-m04zys {
  color: var(--text-secondary);
  font-weight: 500;
}
.subject-preview.svelte-m04zys {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}
.template-actions.svelte-m04zys {
  display: flex;
  gap: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}
.template-actions.svelte-m04zys button:where(.svelte-m04zys) {
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
}
.modal-backdrop.svelte-m04zys {
  position: fixed;
  inset: 0;
  background: rgba(28, 27, 24, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
  animation: fadeIn 0.15s var(--ease-out);
}
.modal.svelte-m04zys {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  animation: scaleIn 0.2s var(--ease-out);
}
.modal-header.svelte-m04zys {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.35rem 0.85rem;
  border-bottom: 1px solid var(--border);
}
.modal-header.svelte-m04zys h2:where(.svelte-m04zys) {
  font-family: var(--font-display), sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
}
.modal-close.svelte-m04zys {
  background: none;
  border: none;
  padding: 0.3rem;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.12s;
  height: auto;
}
.modal-close.svelte-m04zys:hover {
  background: var(--surface-alt);
  color: var(--text);
}
.modal-error.svelte-m04zys {
  margin: 0.85rem 1.35rem 0;
}
.modal-body.svelte-m04zys {
  padding: 1.35rem;
}
.modal-footer.svelte-m04zys {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem 1.15rem;
  border-top: 1px solid var(--border);
}
.body-textarea.svelte-m04zys {
  min-height: 200px;
  resize: vertical;
}
.body-type-row.svelte-m04zys {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
}
.body-type-row.svelte-m04zys label:where(.svelte-m04zys) {
  margin-bottom: 0;
}
.body-type-toggle.svelte-m04zys {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.toggle-btn.svelte-m04zys {
  background: var(--surface);
  border: none;
  border-radius: 0;
  padding: 0.2rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  height: auto;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.15s;
}
.toggle-btn.svelte-m04zys:hover {
  background: var(--surface-alt);
  color: var(--text);
}
.toggle-btn.active.svelte-m04zys {
  background: var(--primary);
  color: white;
}
.html-hint.svelte-m04zys {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  font-style: italic;
}
.platzhalter-section.svelte-m04zys {
  margin-top: 0.4rem;
  margin-bottom: 0.5rem;
}
.platzhalter-toggle.svelte-m04zys {
  background: none;
  border: none;
  height: auto;
  padding: 0.25rem 0.1rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.platzhalter-toggle.svelte-m04zys:hover {
  color: var(--primary);
}
.chevron.svelte-m04zys {
  transition: transform 0.15s var(--ease-out);
  flex-shrink: 0;
}
.chevron.expanded.svelte-m04zys {
  transform: rotate(90deg);
}
.platzhalter-grid.svelte-m04zys {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.platzhalter-chip.svelte-m04zys {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  padding: 0.3rem 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
  height: auto;
  text-align: left;
}
.platzhalter-chip.svelte-m04zys:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.ph-key.svelte-m04zys {
  font-family:
    ui-monospace,
    "Cascadia Code",
    monospace;
  font-size: 0.7rem;
  color: var(--primary);
  font-weight: 600;
}
.ph-label.svelte-m04zys {
  font-size: 0.65rem;
  color: var(--text-muted);
}
.checkbox-label.svelte-m04zys {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.checkbox-label.svelte-m04zys input[type=checkbox]:where(.svelte-m04zys) {
  width: auto;
  margin: 0;
  cursor: pointer;
}
.save-spinner.svelte-m04zys {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

/* src/client/app.css */
:root {
  --ctrl-h: 2.375rem;
  --primary: #A62F24;
  --primary-light: #fdf2f1;
  --primary-hover: #731F17;
  --primary-10: rgba(166, 47, 36, 0.08);
  --primary-20: rgba(166, 47, 36, 0.15);
  --accent: #F24C3D;
  --danger: #F24C3D;
  --danger-hover: #d93829;
  --success: #41634A;
  --success-bg: #F1F5DC;
  --amber: #b45309;
  --amber-bg: #fffbeb;
  --amber-border: #fde68a;
  --bg: #f7f6f4;
  --bg-warm: #f2f0ed;
  --surface: #ffffff;
  --surface-alt: #fafaf8;
  --surface-raised: #ffffff;
  --border: #e2e0dc;
  --border-strong: #c5c2bc;
  --text: #1c1b18;
  --text-secondary: #57554f;
  --text-muted: #8c8a84;
  --sidebar-bg: #1c1b18;
  --sidebar-bg-alt: #252420;
  --sidebar-text: #a8a5a0;
  --sidebar-text-hover: #f0ede8;
  --sidebar-active: #ffffff;
  --sidebar-active-bg: rgba(255,255,255,0.06);
  --sidebar-accent: var(--accent);
  --sidebar-width: 230px;
  --radius: 6px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --shadow-sm: 0 1px 2px rgba(28,27,24,0.04);
  --shadow: 0 2px 8px rgba(28,27,24,0.06), 0 1px 2px rgba(28,27,24,0.04);
  --shadow-lg: 0 8px 24px rgba(28,27,24,0.1), 0 2px 8px rgba(28,27,24,0.04);
  --shadow-focus: 0 0 0 3px var(--primary-10);
  --font-body:
    "DM Sans",
    -apple-system,
    sans-serif;
  --font-display:
    "Plus Jakarta Sans",
    -apple-system,
    sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 0.12s;
  --duration: 0.2s;
  --duration-slow: 0.35s;
}
@layer base {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  input,
  button,
  select,
  textarea,
  optgroup {
    font-family: var(--font-body), sans-serif;
    font-size: 0.8125rem;
    line-height: inherit;
    box-sizing: border-box;
  }
  body {
    font-family: var(--font-body), sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  button {
    cursor: pointer;
    border: none;
    border-radius: var(--radius-lg);
    padding: 0.55rem 1.15rem;
    height: var(--ctrl-h);
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: var(--font-body), sans-serif;
    letter-spacing: 0.005em;
    transition: all var(--duration) var(--ease-out);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    position: relative;
    user-select: none;
    white-space: nowrap;
  }
  button:active {
    transform: scale(0.97);
  }
  input,
  select,
  textarea {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 0.8125rem;
    font-family: var(--font-body), sans-serif;
    color: var(--text);
    background: var(--surface);
    transition:
      border-color var(--duration) var(--ease-out),
      box-shadow var(--duration) var(--ease-out),
      background var(--duration) var(--ease-out);
  }
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),
  select {
    height: var(--ctrl-h);
  }
  textarea {
    height: auto;
  }
  input:hover,
  select:hover,
  textarea:hover {
    border-color: var(--border-strong);
  }
  input:focus,
  select:focus,
  textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-10);
    background: var(--surface);
  }
  input:disabled,
  select:disabled {
    background: var(--surface-alt);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.7;
  }
  input::placeholder,
  textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
  }
  input:invalid,
  select:invalid,
  textarea:invalid {
    box-shadow: none;
  }
  ::-moz-ui-invalid {
    box-shadow: none;
  }
  input[type=number] {
    -webkit-appearance: none;
    appearance: none;
    -moz-appearance: textfield;
    font-size: 0.8125rem;
    font-family: var(--font-body), sans-serif;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
  }
  input[type=number]::-webkit-inner-spin-button,
  input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
  input[type=email] {
    -webkit-appearance: none;
    appearance: none;
    font-size: 0.8125rem;
    font-family: var(--font-body), sans-serif;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
  }
  select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238c8a84' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    background-size: 14px;
    padding-right: 2rem;
    cursor: pointer;
    line-height: 1.3;
    padding-top: 0;
    padding-bottom: 0;
  }
  input[type=date] {
    cursor: pointer;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color-scheme: light;
  }
  input[type=date]::-webkit-datetime-edit {
    padding: 0;
    font-family: var(--font-body), sans-serif;
    font-size: 0.8125rem;
    color: var(--text);
  }
  input[type=date]::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  input[type=date]::-webkit-datetime-edit-year-field,
  input[type=date]::-webkit-datetime-edit-month-field,
  input[type=date]::-webkit-datetime-edit-day-field,
  input[type=date]::-webkit-datetime-edit-text {
    font-size: 0.8125rem;
    font-family: var(--font-body), sans-serif;
    color: var(--text);
    padding: 0 1px;
  }
  input[type=date]::-webkit-datetime-edit-year-field:focus,
  input[type=date]::-webkit-datetime-edit-month-field:focus,
  input[type=date]::-webkit-datetime-edit-day-field:focus {
    background: var(--primary-20);
    color: var(--primary);
    border-radius: 2px;
    outline: none;
  }
  textarea {
    height: auto;
    resize: vertical;
    min-height: 2.5rem;
  }
  label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
  }
  table {
    width: 100%;
    border-collapse: collapse;
  }
  th,
  td {
    padding: 0.65rem 0.8rem;
    text-align: left;
    font-size: 0.8125rem;
  }
  th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 2px solid var(--border);
    background: var(--surface-alt);
  }
  td {
    border-bottom: 1px solid var(--border);
  }
  tbody tr {
    transition: background var(--duration-fast);
  }
  tbody tr:hover {
    background: var(--primary-light);
  }
  optgroup {
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text-muted);
  }
  option {
    padding: 0.4rem 0.6rem;
    font-weight: 400;
  }
  ::selection {
    background: var(--primary-20);
    color: var(--text);
  }
  :focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
  }
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible {
    outline: none;
  }
  ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }
  ::-webkit-scrollbar-track {
    background: transparent;
  }
  ::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 3px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
  }
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @keyframes scaleIn {
    from {
      opacity: 0;
      transform: scale(0.97);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
}
[type=checkbox],
[type=radio] {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  width: 3px !important;
  height: 1rem !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0;
  background-color: var(--border-strong);
  cursor: pointer;
  transition: background-color 0.15s;
}
[type=checkbox]:hover,
[type=radio]:hover {
  background-color: var(--primary-hover);
}
[type=checkbox]:focus,
[type=radio]:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-10);
}
[type=checkbox]:checked,
[type=radio]:checked {
  background-color: var(--primary) !important;
}
[type=checkbox]:checked:hover,
[type=radio]:checked:hover {
  background-color: var(--primary-hover) !important;
}
[type=radio]:checked::before,
[type=radio]:disabled:checked::before,
[type=radio]:checked::after,
[type=radio]:disabled:checked::after {
  display: none !important;
}
@layer components {
  .app-layout {
    display: flex;
    min-height: 100vh;
  }
  .app-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2.25rem 2.75rem 3.5rem;
    max-width: calc(1100px + var(--sidebar-width));
    min-height: 100vh;
    animation: fadeIn var(--duration-slow) var(--ease-out);
  }
  .row-enter {
    animation: fadeIn 0.3s var(--ease-out) both;
  }
  button.primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 1px 3px rgba(166, 47, 36, 0.2);
  }
  button.primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(166, 47, 36, 0.25);
    transform: translateY(-1px);
  }
  button.primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 1px 2px rgba(166, 47, 36, 0.15);
  }
  button.primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
  }
  button.danger {
    background: transparent;
    color: var(--danger);
    border: 1px solid rgba(242, 76, 61, 0.2);
    font-weight: 500;
  }
  button.danger:hover {
    background: #fef2f2;
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(242, 76, 61, 0.06);
  }
  button.ghost {
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
  }
  button.ghost:hover {
    background: var(--surface-alt);
    border-color: var(--border-strong);
    color: var(--text);
    box-shadow: var(--shadow-sm);
  }
  button.ghost svg {
    opacity: 0.6;
  }
  button.ghost:hover svg {
    opacity: 1;
  }
  .form-label-text {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
  }
  .form-group {
    margin-bottom: 0.7rem;
  }
  .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.7rem;
  }
  .card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.35rem;
    margin-bottom: 0.85rem;
    position: relative;
    transition: box-shadow var(--duration) var(--ease-out);
  }
  .card:hover {
    box-shadow: var(--shadow-sm);
  }
  .card-header {
    font-family: var(--font-display), sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .card-header::before {
    content: "";
    width: 3px;
    height: 14px;
    background: var(--primary);
    border-radius: 2px;
    flex-shrink: 0;
  }
  .actions {
    display: flex;
    gap: 0.35rem;
  }
  .actions button {
    padding: 0.3rem 0.65rem;
    font-size: 0.75rem;
  }
  .mono {
    font-variant-numeric: tabular-nums;
  }
  .text-right {
    text-align: right;
  }
  @media (max-width: 860px) {
    .app-content {
      margin-left: 0;
      padding: 1.25rem;
    }
  }
}
/*# sourceMappingURL=app.css.map */
