:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #19233b;
  background: #f5f6fb;
  font-synthesis: none;
  --primary: #4f46e5;
  --border: #e4e8f1;
  --muted: #748097;
  --radius: 20px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button,
a {
  touch-action: manipulation;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #a5b4fc;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
  overflow-wrap: anywhere;
}
h1 {
  font-size: 23px;
  letter-spacing: -0.6px;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.7;
}
img {
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  min-height: 100dvh;
}
.editor-panel {
  height: 100dvh;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid var(--border);
}
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  flex-shrink: 0;
  z-index: 30;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.8px;
}
.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 11px 17px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.button:hover {
  background: #f7f8fc;
}
.button.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px #4f46e520;
}
.button.primary:hover {
  background: #4338ca;
}
.button.dark {
  background: #121b30;
  color: white;
  border-color: #121b30;
  border-radius: 24px;
  padding-inline: 22px;
}
.button.ghost {
  background: none;
  border-color: transparent;
  color: #647087;
}
.button.danger {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}
.danger-text {
  color: #dc264f !important;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  border-radius: 10px;
  font-size: 22px;
}
.icon-button:hover {
  background: #eef0f8;
}
.account-menu {
  position: relative;
}
.account-menu > .button {
  background: #eef2ff;
  color: #4f46e5;
  border: 1px solid #dce2ff;
  border-radius: 50%;
}
.menu-popover {
  position: absolute;
  right: 0;
  top: 50px;
  width: 250px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 40px #17233b20;
  padding: 6px;
  z-index: 50;
}
.menu-popover p {
  padding: 12px;
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
  border-bottom: 1px solid var(--border);
}
.menu-popover button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px;
  border-radius: 10px;
  font-size: 13px;
}
.menu-popover button:hover {
  background: #f5f6fb;
}
.eyebrow {
  display: block;
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 750;
  color: #8995ad;
  margin-bottom: 7px;
}
.published-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 20px;
  font-size: 12px;
  background: #f4f3ff;
  border-top: 1px solid #e9e6ff;
  color: var(--primary);
  flex-shrink: 0;
}
.published-bar a {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.editor-tabs {
  display: flex;
  overflow-x: auto;
  flex-shrink: 0;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
  scrollbar-width: thin;
}
.editor-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  padding: 17px 16px;
  font-size: 13px;
  color: #7a859a;
}
.editor-tabs button[aria-selected="true"] {
  color: var(--primary);
  border-color: var(--primary);
  background: #f7f6ff;
  font-weight: 650;
}
.editor-tabs .icon {
  width: 17px;
  height: 17px;
}
.editor-content {
  flex: 1;
  overflow-y: auto;
  padding: 28px 24px 48px;
  background: #f7f8fc;
  scrollbar-gutter: stable;
}
.editor-content > .content-stack {
  max-width: 620px;
  margin: auto;
}
.content-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: 0 3px 12px #28345003;
  min-width: 0;
}
.panel-header,
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.section-header {
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.panel-header p,
.section-header p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.fields {
  display: grid;
  gap: 18px;
}
.fields.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  min-width: 0;
}
.field > span {
  font-size: 11px;
  letter-spacing: 0.6px;
  font-weight: 700;
  color: #7c879b;
}
.field small,
.muted {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.field input,
.field textarea,
.field select,
.form-input {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  color: #27324a;
  background: #f9faff;
  border: 1px solid var(--border);
  border-radius: 11px;
  line-height: 1.5;
  transition: border-color 0.15s;
}
.field textarea {
  resize: vertical;
  min-height: 84px;
}
.field input:focus,
.field textarea:focus,
.field select:focus,
.form-input:focus {
  border-color: #818cf8;
  background: #fff;
  outline: 2px solid #e0e7ff;
  outline-offset: 1px;
}
.field input[type="color"] {
  padding: 4px;
  height: 45px;
  cursor: pointer;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
  cursor: pointer;
}
.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  flex-shrink: 0;
}
.check-row small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.profile-top {
  display: flex;
  gap: 25px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.profile-picture {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.upload-button {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #f2f4fa;
  border: 2px dashed #d4dbeb;
  color: #a1abc0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.upload-button .icon {
  width: 30px;
  height: 30px;
}
.upload-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.upload-button:focus-within {
  outline: 3px solid #a5b4fc;
  outline-offset: 3px;
}
.small-link {
  padding: 0;
  font-size: 11px;
  color: #68748c;
  text-decoration: underline;
}
.profile-top > .fields {
  flex: 1;
  min-width: 0;
}
.contact-fields {
  margin-top: 22px;
}
.link-item {
  padding: 20px;
}
.link-item.inactive {
  opacity: 0.65;
}
.link-item .fields.two {
  grid-template-columns: minmax(125px, 1fr) minmax(0, 2fr);
}
.link-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.button-group {
  display: flex;
  align-items: center;
  gap: 5px;
}
.link-tools .icon-button {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  background: #f4f6fb;
}
.link-tools .icon {
  width: 17px;
  height: 17px;
}
.link-tools .active {
  background: #e6f9f0;
  color: #059669;
}
.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.theme-choice {
  border: 2px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  min-width: 0;
  text-align: center;
  padding: 0;
}
.theme-choice.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px #e9e7ff;
}
.theme-swatch {
  display: flex;
  height: 78px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
}
.theme-swatch:before,
.theme-swatch:after {
  content: "";
  display: block;
  width: 55%;
  height: 8px;
  border-radius: 5px;
  background: #ffffff66;
}
.theme-choice > span:last-child {
  display: block;
  background: white;
  padding: 11px 5px;
  font-size: 11px;
  font-weight: 650;
}
.divider {
  height: 1px;
  background: var(--border);
  margin: 22px 0;
}
.subheading {
  font-size: 13px;
  font-weight: 700;
  margin: 8px 0 16px;
}
.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.preset {
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12px;
  background: #fafbff;
}
.preview-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  height: 100dvh;
  overflow-y: auto;
  padding: 36px 20px;
  background:
    radial-gradient(ellipse at 20% 20%, #e6e7fb, transparent 65%), #edf0f7;
  scrollbar-width: thin;
}
.preview-caption {
  text-align: center;
  flex-shrink: 0;
}
.preview-caption p {
  font-size: 12px;
  color: #8a95ac;
}
.phone-frame {
  position: relative;
  width: min(310px, 100%);
  height: 640px;
  flex-shrink: 0;
  background: #101827;
  border: 12px solid #101827;
  border-radius: 49px;
  box-shadow:
    0 0 0 2px #5f6571,
    0 28px 45px #17233b25;
  overflow: hidden;
}
.phone-notch {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 26px;
  border-radius: 0 0 18px 18px;
  background: #101827;
  z-index: 2;
  pointer-events: none;
}
.phone-screen {
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  border-radius: 36px;
  background: #fff;
}
.phone-screen::-webkit-scrollbar {
  display: none;
}
.preview-footer {
  font-size: 11px;
  letter-spacing: 0.3px;
  color: #9aa4ba;
  text-align: center;
}
.digital-card {
  display: flex;
  align-items: center;
  flex-direction: column;
  min-height: 100%;
  width: 100%;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.card-profile {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.card-avatar {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 3px solid #ffffff60;
}
.card-avatar-empty {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f1f5f9;
  border: 2px dashed #cbd5e1;
  color: #cbd5e1;
  font-size: 30px;
}
.card-profile h2 {
  width: 100%;
  white-space: pre-wrap;
  font-weight: 750;
  line-height: 1.45;
  letter-spacing: -0.35px;
}
.card-profile p {
  width: 100%;
  white-space: pre-wrap;
  opacity: 0.8;
  margin-top: 5px;
  line-height: 1.7;
}
.card-links {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.card-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding-inline: 16px;
  text-decoration: none;
  line-height: 1.5;
  transition: transform 0.15s;
}
.card-link:hover {
  transform: translateY(-2px);
}
.card-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  flex: 0 0 22px;
  opacity: 0.85;
}
.card-link-icon svg {
  width: 21px;
  height: 21px;
  display: block;
}
.card-link > span:last-child {
  min-width: 0;
  flex: 1;
  white-space: pre-wrap;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.card-contact {
  border-radius: 24px;
  padding: 13px 24px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 750;
  background: #101827;
  color: #fff;
  max-width: 100%;
  margin-top: 24px;
}
.card-brand {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 2px;
  opacity: 0.35;
  margin-top: 25px;
}
.qr-preview {
  width: 100%;
  max-width: 390px;
  text-align: center;
}
.qr-preview > div:first-child {
  padding: 15px;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 15px 40px #17233b15;
}
.qr-preview svg {
  max-width: 100%;
  height: auto;
  display: block;
  margin: auto;
}
.export-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 22px 0 12px;
}
.export-actions .button {
  flex: 1;
}
.mobile-preview-toggle {
  display: none;
}
.notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  max-width: min(92vw, 570px);
  padding: 13px 15px 13px 20px;
  background: #17223a;
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 35px #17233b25;
  font-size: 13px;
  line-height: 1.6;
}
.notice .icon-button:hover {
  background: #ffffff15;
}
dialog {
  width: calc(100% - 32px);
  max-width: 440px;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 25px;
  color: #19233b;
  box-shadow: 0 25px 100px #111a3040;
  overflow-y: auto;
}
dialog::backdrop {
  background: #141e38a8;
  backdrop-filter: blur(5px);
}
#modal-content {
  position: relative;
  padding: 35px 30px;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
}
.modal-heading {
  text-align: center;
  margin-bottom: 26px;
}
.modal-heading img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 15px;
}
.modal-heading p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-form > .button {
  width: 100%;
  margin-top: 5px;
}
.form-error {
  background: #fff1f2;
  border: 1px solid #ffe4e6;
  color: #be123c;
  padding: 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
}
.modal-footer {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 18px;
  line-height: 1.8;
}
.modal-footer button {
  color: var(--primary);
  font-weight: 650;
  padding: 4px;
}
.app-shell.full-width {
  grid-template-columns: 1fr;
}
.full-width .editor-content > .content-stack {
  max-width: 1120px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.project-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.project-card:hover {
  border-color: #c7cdf7;
  box-shadow: 0 12px 35px #323b6610;
}
.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.project-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #f2f3fb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 750;
  overflow: hidden;
  flex-shrink: 0;
}
.project-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-card h3 {
  font-size: 18px;
  line-height: 1.5;
}
.project-card p {
  font-size: 12px;
  color: var(--muted);
}
.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: auto;
}
.tag {
  font-size: 11px;
  background: #f1f3fb;
  color: #7b85a1;
  border-radius: 8px;
  padding: 5px 9px;
}
.empty-state {
  padding: 65px 24px;
  text-align: center;
  border: 1px dashed #cfd7e7;
  background: #fff;
  border-radius: 20px;
}
.empty-state > .icon {
  width: 34px;
  height: 34px;
  color: #b4bdd0;
  margin-bottom: 18px;
}
.empty-state h2 {
  font-size: 18px;
}
.empty-state p {
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0 20px;
}
.account-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.metric {
  padding: 18px 12px;
  background: #f7f8fc;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
}
.metric strong {
  display: block;
  font-size: 25px;
  color: var(--primary);
  margin-bottom: 5px;
  overflow-wrap: anywhere;
}
.metric span {
  font-size: 11px;
  color: var(--muted);
}
.report-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.report-table th,
.report-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.table-wrap {
  overflow-x: auto;
}
.performance {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.performance-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
  margin-bottom: 7px;
}
.progress {
  height: 7px;
  background: #eef0f7;
  border-radius: 6px;
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: 6px;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.plan-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.plan-card .button {
  margin-top: auto;
}
.plan-card p {
  font-size: 13px;
  color: var(--muted);
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.plan-price strong {
  font-size: 30px;
  color: var(--primary);
}
.plan-price span,
.plan-limit {
  font-size: 13px;
  color: var(--muted);
}
.plan-limit {
  color: inherit;
}
.plan-card.current {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px #e9e7ff;
}
.plan-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.9;
}
.panel > h2 + .muted {
  margin-top: 12px;
}
.panel .muted + .button {
  margin-top: 18px;
}
.account-plan {
  margin-top: 18px;
}
.viewer-page {
  background: #edf0f7;
  min-height: 100dvh;
}
.public-card-shell {
  min-height: 100dvh;
  padding: 36px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.public-card {
  width: 100%;
  max-width: 420px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 80px #27365a18;
}
.public-card .digital-card {
  min-height: calc(100dvh - 72px);
}
.viewer-message {
  max-width: 430px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 35px 25px;
  text-align: center;
  margin: auto;
}
.viewer-message h1 {
  margin-bottom: 12px;
}
.viewer-message p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}
.viewer-message .button {
  margin: 7px;
}
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e0e7ff;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 18px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1600px) {
  .preview-panel {
    justify-content: center;
  }
  .editor-content {
    padding-top: 38px;
  }
}
@media (max-width: 1100px) {
  .app-header {
    padding: 15px;
  }
  .desktop-only,
  .signed-in .plans-button {
    display: none;
  }
  .header-actions {
    gap: 4px;
  }
  .app-header .button {
    padding-inline: 13px;
  }
  .editor-tabs {
    padding-inline: 4px;
  }
  .editor-tabs button {
    padding-inline: 12px;
  }
  .editor-content {
    padding: 20px 16px;
  }
  .panel {
    padding: 20px;
  }
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .link-item .fields.two {
    grid-template-columns: 1fr;
  }
  .theme-grid {
    gap: 8px;
  }
}
@media (max-width: 767px) {
  input:not([type="color"]):not([type="range"]):not([type="checkbox"]),
  textarea,
  select {
    font-size: 16px !important;
  }
  .app-shell {
    display: block;
    padding-bottom: calc(90px + env(safe-area-inset-bottom));
    min-height: 100dvh;
  }
  .editor-panel {
    height: auto;
    min-height: calc(100dvh - 90px);
    border: 0;
    overflow: visible;
  }
  .app-header {
    position: sticky;
    top: 0;
    padding: 13px 16px;
    gap: 8px;
  }
  .brand {
    font-size: 21px;
    gap: 7px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .header-actions .button {
    padding: 10px 12px;
    font-size: 12px;
    min-height: 42px;
  }
  .editor-tabs {
    position: sticky;
    top: 69px;
    background: #fff;
    z-index: 20;
  }
  .editor-tabs button {
    font-size: 12px;
    padding: 15px 13px;
  }
  .editor-tabs .icon {
    width: 16px;
    height: 16px;
  }
  .editor-content {
    overflow: visible;
    padding: 18px 15px 30px;
    scrollbar-gutter: auto;
  }
  .content-stack {
    gap: 16px;
  }
  .fields.two {
    grid-template-columns: 1fr;
  }
  .profile-top {
    gap: 16px;
    align-items: center;
    flex-direction: column;
  }
  .profile-top > .fields {
    width: 100%;
  }
  .profile-picture {
    flex-direction: row;
    gap: 16px;
    width: 100%;
    align-items: center;
  }
  .upload-button {
    width: 75px;
    height: 75px;
    flex-shrink: 0;
  }
  .preview-panel {
    display: none;
    height: auto;
    overflow: visible;
    padding: 25px 16px 100px;
  }
  .show-mobile-preview .preview-panel {
    display: flex;
  }
  .show-mobile-preview .published-bar,
  .show-mobile-preview .editor-tabs,
  .show-mobile-preview .editor-content {
    display: none;
  }
  .show-mobile-preview .editor-panel {
    min-height: 0;
  }
  .mobile-preview-toggle {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 40;
    white-space: nowrap;
    background: var(--primary);
    color: #fff;
    padding: 15px 24px;
    border-radius: 30px;
    box-shadow: 0 8px 30px #4f46e540;
    font-size: 13px;
    font-weight: 650;
  }
  .notice {
    bottom: 90px;
    width: 92vw;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .account-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .report-metrics {
    gap: 7px;
  }
  .report-metrics .metric {
    padding: 16px 7px;
  }
  .report-metrics .metric strong {
    font-size: 23px;
  }
  .plan-grid {
    grid-template-columns: 1fr;
  }
  #modal-content {
    padding: 34px 22px;
  }
  .published-bar {
    padding-inline: 16px;
  }
  .full-width .editor-panel {
    min-height: 100dvh;
  }
  .qr-preview > div:first-child {
    padding: 8px;
  }
  .export-actions .button {
    padding-inline: 12px;
  }
  .public-card-shell {
    padding: 0;
  }
  .viewer-message {
    margin: auto 16px;
  }
  .public-card {
    max-width: none;
    border-radius: 0;
  }
  .public-card .digital-card {
    min-height: 100dvh;
  }
}
@media (max-width: 380px) {
  .brand span {
    display: none;
  }
  .header-actions .button {
    padding-inline: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
