:root {
  --bg: #f8f7f3;
  --surface: #fbfaf6;
  --surface-strong: #ffffff;
  --ink: #171b19;
  --muted: #606a65;
  --line: #dedfdb;
  --soft-line: #ecebe6;
  --teal: #159c91;
  --teal-dark: #08766d;
  --coral: #f05d48;
  --yellow: #f5c84c;
  --violet: #3157ff;
  --shadow: 0 22px 70px rgba(23, 27, 25, 0.12);
  --shadow-soft: 0 12px 34px rgba(23, 27, 25, 0.08);
  --radius: 8px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(222, 216, 206, 0.82);
  background: rgba(247, 244, 239, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--surface);
  font-weight: 900;
  transition:
    transform 0.24s var(--ease-out),
    box-shadow 0.24s var(--ease-out);
}

.brand:hover .brand-mark {
  transform: rotate(-4deg) scale(1.05);
  box-shadow: 0 10px 24px rgba(29, 35, 32, 0.18);
}

.nav-actions,
.toolbar-actions,
.row-actions,
.inline-actions,
.modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-actions {
  justify-content: flex-end;
}

.nav-link {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 9px 4px;
  transition:
    color 0.18s ease,
    transform 0.18s ease;
}

.nav-link:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--ink);
  padding: 0 14px;
  font-weight: 700;
  isolation: isolate;
  overflow: hidden;
  transition:
    transform 0.18s var(--ease-out),
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: -45% -80%;
  z-index: -1;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.45), transparent 58%);
  transform: translateX(-115%) rotate(8deg);
  transition: transform 0.55s var(--ease-soft);
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: #bdb4a8;
  box-shadow: 0 10px 22px rgba(31, 35, 32, 0.11);
}

.btn:hover::after {
  transform: translateX(115%) rotate(8deg);
}

.btn:active {
  transform: translateY(0);
}

.btn.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}

.btn.teal {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
}

.btn.coral {
  border-color: var(--coral);
  background: var(--coral);
  color: white;
}

.btn.ghost {
  background: transparent;
}

.btn.small {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

.btn.icon {
  width: 40px;
  padding: 0;
}

.layout {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.landing-main {
  overflow: hidden;
}

.hero-band {
  min-height: calc(100vh - 68px);
  display: grid;
  align-items: center;
  padding: 42px 0 26px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: clamp(26px, 5vw, 68px);
  align-items: center;
}

.hero-grid > *,
.page-head > *,
.section-heading > *,
.editor-grid > * {
  min-width: 0;
}

.eyebrow {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  margin: 14px 0 18px;
  max-width: 690px;
  font-size: clamp(46px, 7vw, 88px);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy {
  margin: 0 0 26px;
  max-width: 620px;
  color: #52605a;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
  overflow-wrap: break-word;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.trust-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  padding: 8px 12px;
  color: #52605a;
  font-size: 13px;
  font-weight: 700;
}

.product-shot {
  position: relative;
  min-width: 0;
  max-width: 100%;
  min-height: 520px;
  border: 1px solid #d7d0c5;
  border-radius: 8px;
  background: #fbfaf6;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, transparent 0 36%, rgba(255, 255, 255, 0.42) 45%, transparent 54% 100%);
  transform: translateX(-120%);
  animation: productSheen 7s ease-in-out infinite;
  pointer-events: none;
}

.browser-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid #e3ddd4;
  background: #fffdf8;
  overflow: hidden;
}

.traffic {
  display: flex;
  gap: 7px;
}

.traffic span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.traffic span:nth-child(1) {
  background: var(--coral);
}

.traffic span:nth-child(2) {
  background: var(--yellow);
}

.traffic span:nth-child(3) {
  background: var(--teal);
}

.browser-url {
  width: min(52%, 330px);
  min-width: 76px;
  height: 24px;
  flex: 1 1 160px;
  border-radius: 999px;
  background: #f0ebe3;
}

.shot-editor {
  display: grid;
  grid-template-columns: 132px 1fr 164px;
  min-width: 0;
  height: calc(100% - 42px);
  min-height: 478px;
}

.shot-sidebar,
.shot-inspector {
  background: #f1ece4;
  padding: 14px;
}

.shot-inspector {
  border-left: 1px solid #e1dacd;
}

.shot-sidebar {
  border-right: 1px solid #e1dacd;
}

.shot-chip,
.shot-field,
.shot-button {
  border-radius: 8px;
  background: #fffdf8;
}

.shot-chip {
  height: 30px;
  margin-bottom: 9px;
  transition:
    transform 0.2s var(--ease-out),
    background 0.2s ease;
}

.shot-chip.active {
  background: #d8f2ee;
  animation: softPulse 2.8s ease-in-out infinite;
}

.shot-chip:nth-child(2) {
  animation: shotStep 5s ease-in-out infinite 0.4s;
}

.shot-chip:nth-child(4) {
  animation: shotStep 5s ease-in-out infinite 1.1s;
}

.shot-canvas {
  min-width: 0;
  padding: 20px;
  background:
    linear-gradient(90deg, rgba(21, 156, 145, 0.08), transparent 42%),
    #faf8f1;
}

.shot-page {
  min-width: 0;
  width: 100%;
  height: 100%;
  border: 1px solid #dfd7cb;
  border-radius: 8px;
  background: #fffdf8;
  overflow: hidden;
}

.shot-page-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  padding: 22px;
  border-bottom: 1px solid #ece4da;
}

.shot-page-hero > * {
  min-width: 0;
}

.shot-line {
  height: 12px;
  border-radius: 999px;
  background: #e4ded5;
  margin-bottom: 10px;
}

.shot-line:not(.big) {
  background: linear-gradient(90deg, #e4ded5, #f4efe7, #e4ded5);
  background-size: 220% 100%;
  animation: skeletonShift 3.6s linear infinite;
}

.shot-line.big {
  width: 88%;
  height: 28px;
  background: #1d2320;
}

.shot-line.mid {
  width: 70%;
}

.shot-line.short {
  width: 44%;
}

.shot-avatar {
  aspect-ratio: 1;
  border-radius: 8px;
  background:
    radial-gradient(circle at 68% 34%, #ffb7a5 0 12%, transparent 13%),
    linear-gradient(135deg, #d8f2ee, #ffe4dc);
  animation: floatSoft 6.5s ease-in-out infinite;
}

.shot-projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px 22px;
}

.shot-project {
  min-height: 98px;
  border: 1px solid #e5ded5;
  border-radius: 8px;
  background: #faf8f2;
  animation: cardBreath 5.8s ease-in-out infinite;
}

.shot-project:nth-child(2) {
  animation-delay: 0.35s;
}

.shot-project:nth-child(3) {
  animation-delay: 0.7s;
}

.shot-field {
  height: 32px;
  margin-bottom: 10px;
}

.shot-button {
  height: 34px;
  background: var(--teal);
  animation: buttonGlow 3.8s ease-in-out infinite;
}

.section-band {
  padding: 70px 0;
}

.section-band.alt {
  background: #fffdf8;
  border-top: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: 0;
}

.section-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.feature-grid,
.pricing-grid,
.template-grid,
.dashboard-grid,
.message-grid {
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(4, 1fr);
}

.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
}

.template-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.feature-card,
.price-card,
.template-card,
.portfolio-card,
.message-card,
.settings-panel,
.empty-state,
.auth-panel,
.modal-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.26s var(--ease-out),
    border-color 0.26s ease,
    box-shadow 0.26s ease,
    background 0.26s ease;
}

.feature-card,
.price-card,
.template-card,
.portfolio-card,
.message-card,
.settings-panel,
.empty-state,
.auth-panel {
  padding: 18px;
}

.feature-card h3,
.price-card h3,
.template-card h3,
.portfolio-card h3,
.message-card h3 {
  margin: 0 0 8px;
}

.feature-card p,
.price-card p,
.template-card p,
.portfolio-card p,
.message-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.price-card.featured {
  border-color: var(--ink);
  box-shadow: var(--shadow);
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.price-card .btn {
  margin-top: auto;
}

.plan-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 12px;
  padding: 0 10px;
  border-radius: 999px;
  background: #111412;
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
}

.pricing-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -4px 0 22px;
  flex-wrap: wrap;
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(23, 27, 25, 0.06);
}

.billing-toggle button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #3e4743;
  padding: 0 15px;
  font-size: 14px;
  font-weight: 850;
}

.billing-toggle button.active {
  background: #111412;
  color: #ffffff;
}

.billing-toggle button span {
  margin-left: 5px;
  color: var(--teal);
  font-weight: 900;
}

.billing-toggle button.active span {
  color: #7df3df;
}

.billing-note {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.feature-card:hover,
.price-card:hover,
.template-card:hover,
.portfolio-card:hover,
.message-card:hover {
  transform: translateY(-5px);
  border-color: #c9bfb2;
  box-shadow: 0 18px 44px rgba(31, 35, 32, 0.13);
}

.price {
  margin: 18px 0;
  font-size: 36px;
  font-weight: 900;
}

.price span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.price-note {
  min-height: 40px;
  margin: -8px 0 14px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: #4d5a55;
  line-height: 1.35;
}

.check-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(21, 156, 145, 0.11);
}

.pricing-compare {
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.compare-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--soft-line);
}

.compare-head h3 {
  margin: 0 0 6px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1;
}

.compare-head p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.comparison-scroll {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--soft-line);
  text-align: center;
  vertical-align: middle;
}

.comparison-table thead th {
  background: #fbfaf6;
  color: #303833;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.comparison-table th:first-child {
  width: 42%;
  text-align: left;
}

.comparison-table tbody th span {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.comparison-table tbody th small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: 0;
}

.is-included span,
.is-excluded span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 900;
}

.is-included span {
  background: #e6f6f4;
  color: var(--teal-dark);
}

.is-excluded span {
  background: #fff0ed;
  color: #bd4938;
}

.auth-screen {
  min-height: calc(100vh - 68px);
  display: grid;
  place-items: center;
  padding: 36px 18px;
}

.auth-panel {
  width: min(430px, 100%);
}

.auth-panel h1,
.auth-panel p {
  margin-top: 0;
}

.auth-panel p {
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: #39433e;
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d8d0c4;
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.field textarea {
  min-height: 104px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(21, 156, 145, 0.12);
}

.field-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}

.dashboard-page,
.settings-page,
.messages-page {
  padding: 34px 0 70px;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.page-head h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: 0;
}

.page-head p {
  margin: 0;
  max-width: 650px;
  color: var(--muted);
  line-height: 1.5;
}

.dashboard-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.portfolio-card {
  display: grid;
  gap: 18px;
}

.portfolio-preview-mini {
  min-height: 150px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(21, 156, 145, 0.13), transparent 48%),
    #fbf7ef;
  padding: 14px;
  transition:
    transform 0.26s var(--ease-out),
    border-color 0.26s ease,
    background-position 0.6s ease;
  background-size: 140% 140%;
}

.portfolio-card:hover .portfolio-preview-mini,
.template-card:hover .portfolio-preview-mini {
  transform: translateY(-2px);
  border-color: rgba(21, 156, 145, 0.28);
  background-position: 100% 0;
}

.mini-line {
  height: 10px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: rgba(29, 35, 32, 0.18);
}

.mini-line.title {
  width: 58%;
  height: 22px;
  background: var(--ink);
}

.mini-line.wide {
  width: 88%;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.mini-block {
  height: 48px;
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid rgba(222, 216, 206, 0.8);
  transition:
    transform 0.22s var(--ease-out),
    border-color 0.22s ease;
}

.portfolio-card:hover .mini-block:nth-child(1),
.template-card:hover .mini-block:nth-child(1) {
  transform: translateY(-3px);
}

.portfolio-card:hover .mini-block:nth-child(2),
.template-card:hover .mini-block:nth-child(2) {
  transform: translateY(-5px);
}

.portfolio-card:hover .mini-block:nth-child(3),
.template-card:hover .mini-block:nth-child(3) {
  transform: translateY(-2px);
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  background: #f1ece4;
  color: #59645f;
  font-size: 12px;
  font-weight: 800;
}

.status-pill.published {
  background: #d8f2ee;
  color: var(--teal-dark);
}

.empty-state {
  display: grid;
  min-height: 280px;
  place-items: center;
  text-align: center;
}

.editor-page {
  height: 100vh;
  min-height: 720px;
  display: grid;
  grid-template-rows: 62px 1fr;
  background: #ece7de;
}

.editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid #d9d1c6;
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(16px);
}

.portfolio-name {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.portfolio-name strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.save-indicator {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.editor-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 330px;
  min-height: 0;
}

.editor-sidebar,
.editor-inspector {
  min-height: 0;
  overflow: auto;
  background: #fffdf8;
}

.editor-sidebar {
  border-right: 1px solid #d9d1c6;
  padding: 16px;
}

.editor-inspector {
  border-left: 1px solid #d9d1c6;
  padding: 16px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-title h2,
.panel-title h3 {
  margin: 0;
  font-size: 16px;
}

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

.section-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  border: 1px solid #e0d8cd;
  border-radius: 8px;
  background: #fbf8f2;
  padding: 0 8px 0 11px;
  transition:
    transform 0.18s var(--ease-out),
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.section-row.active {
  border-color: rgba(21, 156, 145, 0.55);
  background: #e9f8f5;
  box-shadow: inset 3px 0 0 var(--teal);
}

.section-row:hover {
  transform: translateX(3px);
  border-color: rgba(21, 156, 145, 0.35);
}

.section-row button {
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--ink);
  font-weight: 800;
}

.section-tools {
  display: flex;
  gap: 3px;
}

.mini-btn {
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid #d4cbc0;
  border-radius: 7px;
  background: #fffdf8;
  color: #52605a;
  font-size: 12px;
  font-weight: 900;
  transition:
    transform 0.16s var(--ease-out),
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease;
}

.mini-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(21, 156, 145, 0.45);
  background: #e9f8f5;
  color: var(--teal-dark);
}

.editor-nav {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e2dbd1;
}

.editor-nav button {
  justify-content: flex-start;
}

.canvas-wrap {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 22px;
  background:
    linear-gradient(90deg, rgba(21, 156, 145, 0.08), transparent 36%),
    #ebe6dd;
}

.preview-device {
  width: min(100%, 1060px);
  min-height: 100%;
  margin: 0 auto;
  border: 1px solid #d7d0c5;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition:
    width 0.28s var(--ease-out),
    box-shadow 0.28s ease,
    transform 0.28s var(--ease-out);
}

.preview-device.mobile {
  width: min(390px, 100%);
  transform: translateY(2px);
}

.portfolio-preview {
  color: var(--ink);
  background: var(--preview-bg, #fffdf8);
}

.folio-section {
  padding: clamp(34px, 6vw, 74px) clamp(22px, 5vw, 68px);
  border-bottom: 1px solid rgba(222, 216, 206, 0.7);
}

.folio-section.hidden {
  display: none;
}

.folio-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
  min-height: 510px;
}

.folio-kicker {
  color: var(--accent, var(--teal));
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.folio-hero h1 {
  margin: 12px 0 16px;
  max-width: 740px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.97;
  letter-spacing: 0;
}

.folio-hero p,
.folio-text {
  color: #56615c;
  font-size: 18px;
  line-height: 1.58;
}

.folio-photo {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #ded5c9;
  border-radius: 8px;
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 105, 87, 0.32) 0 14%, transparent 15%),
    linear-gradient(135deg, rgba(21, 156, 145, 0.22), rgba(245, 200, 76, 0.2)),
    #fffaf0;
  overflow: hidden;
  color: #46504b;
  font-weight: 900;
  animation: floatSoft 7.5s ease-in-out infinite;
  transition:
    transform 0.28s var(--ease-out),
    box-shadow 0.28s ease;
}

.folio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.folio-photo:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 38px rgba(31, 35, 32, 0.12);
}

.folio-photo:hover img {
  transform: scale(1.04);
}

.folio-photo .initials {
  font-size: clamp(48px, 8vw, 90px);
}

.folio-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.folio-meta span,
.tag,
.skill-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(21, 156, 145, 0.22);
  border-radius: 999px;
  background: rgba(21, 156, 145, 0.08);
  color: #244d49;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
  transition:
    transform 0.18s var(--ease-out),
    border-color 0.18s ease,
    background 0.18s ease;
}

.folio-meta span:hover,
.tag:hover,
.skill-chip:hover,
.trust-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(21, 156, 145, 0.38);
  background: rgba(21, 156, 145, 0.12);
}

.folio-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.folio-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.project-card {
  min-height: 220px;
  border: 1px solid #e1d9cd;
  border-radius: 8px;
  background: #fffaf3;
  overflow: hidden;
  transition:
    transform 0.25s var(--ease-out),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.project-media {
  min-height: 100px;
  background:
    linear-gradient(135deg, rgba(21, 156, 145, 0.18), rgba(255, 105, 87, 0.16)),
    #f3eee4;
  transition: filter 0.25s ease;
}

.project-media img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  transition: transform 0.48s var(--ease-out);
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(21, 156, 145, 0.3);
  box-shadow: 0 18px 38px rgba(31, 35, 32, 0.12);
}

.project-card:hover .project-media {
  filter: saturate(1.08);
}

.project-card:hover .project-media img {
  transform: scale(1.04);
}

.project-body {
  padding: 14px;
}

.project-body h3 {
  margin: 0 0 8px;
}

.project-body p {
  margin: 0 0 12px;
  color: #5b6761;
  line-height: 1.45;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skills-layout,
.timeline,
.service-grid,
.testimonial-grid,
.contact-layout {
  display: grid;
  gap: 14px;
}

.skills-layout {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.skill-group,
.timeline-item,
.service-item,
.testimonial-item {
  border: 1px solid #e1d9cd;
  border-radius: 8px;
  background: #fffaf3;
  padding: 16px;
  transition:
    transform 0.24s var(--ease-out),
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.skill-group:hover,
.timeline-item:hover,
.service-item:hover,
.testimonial-item:hover {
  transform: translateY(-4px);
  border-color: rgba(21, 156, 145, 0.28);
  box-shadow: 0 14px 30px rgba(31, 35, 32, 0.1);
}

.skill-group h3,
.timeline-item h3,
.service-item h3,
.testimonial-item h3 {
  margin: 0 0 10px;
}

.timeline-item p,
.service-item p,
.testimonial-item p {
  color: #5b6761;
  line-height: 1.5;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-layout {
  grid-template-columns: 0.9fr 1.1fr;
}

.contact-box {
  border: 1px solid #e1d9cd;
  border-radius: 8px;
  background: #fffaf3;
  padding: 18px;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inspector-section {
  display: grid;
  gap: 14px;
}

.field-array {
  display: grid;
  gap: 12px;
}

.array-item {
  border: 1px solid #e0d8cd;
  border-radius: 8px;
  background: #fbf8f2;
  padding: 12px;
}

.array-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.array-item-head strong {
  font-size: 14px;
}

.color-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.swatch {
  min-height: 36px;
  border: 2px solid transparent;
  border-radius: 8px;
  transition:
    transform 0.16s var(--ease-out),
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.swatch.active {
  border-color: var(--ink);
  box-shadow: 0 8px 16px rgba(31, 35, 32, 0.14);
}

.swatch:hover {
  transform: translateY(-2px) scale(1.03);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  border: 1px solid #d8d0c4;
  border-radius: 8px;
  background: #f1ece4;
  padding: 4px;
}

.segmented button {
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s var(--ease-out),
    box-shadow 0.18s ease;
}

.segmented button.active {
  background: #fffdf8;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(31, 35, 32, 0.08);
}

.segmented button:hover {
  transform: translateY(-1px);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(29, 35, 32, 0.36);
  animation: backdropFade 0.18s ease both;
}

.modal-panel {
  width: min(980px, 100%);
  max-height: min(780px, calc(100vh - 36px));
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  background: #fffdf8;
}

.modal-head,
.modal-actions {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.modal-actions {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  justify-content: flex-end;
}

.modal-head h2 {
  margin: 0 0 4px;
}

.modal-head p {
  margin: 0;
  color: var(--muted);
}

.code-area {
  width: 100%;
  height: 100%;
  min-height: 440px;
  border: 0;
  background: #151917;
  color: #f6efe5;
  padding: 18px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.55;
  resize: none;
  outline: none;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  max-width: min(420px, calc(100% - 36px));
  border: 1px solid #cfc5b8;
  border-radius: 8px;
  background: #1d2320;
  color: #fffdf8;
  padding: 13px 14px;
  box-shadow: var(--shadow);
  font-weight: 800;
  animation: toastIn 0.34s var(--ease-out) both;
}

.public-page {
  min-height: 100vh;
  background: #fffdf8;
}

.public-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 12px clamp(20px, 5vw, 70px);
  border-bottom: 1px solid rgba(222, 216, 206, 0.72);
  background: rgba(255, 253, 248, 0.86);
  backdrop-filter: blur(12px);
}

.public-nav strong {
  overflow-wrap: anywhere;
}

.not-found {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 32px;
  text-align: center;
}

.muted {
  color: var(--muted);
}

.danger {
  color: #b54134;
}

[data-animate] {
  opacity: 0;
  filter: blur(8px);
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 0.7s var(--ease-out),
    filter 0.7s var(--ease-out),
    transform 0.7s var(--ease-out),
    border-color 0.24s ease,
    box-shadow 0.24s ease,
    background 0.24s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

[data-animate="scale"] {
  transform: translate3d(0, 22px, 0) scale(0.96);
}

[data-animate="slide-left"] {
  transform: translate3d(22px, 0, 0);
}

[data-animate="slide-right"] {
  transform: translate3d(-22px, 0, 0);
}

[data-animate="drop"] {
  transform: translate3d(0, -12px, 0);
}

[data-animate="lift"] {
  transform: translate3d(0, 10px, 0) scale(0.98);
}

[data-animate].is-visible {
  opacity: 1;
  filter: none;
  transform: translate3d(0, 0, 0) scale(1);
}

[data-animate].is-visible.feature-card:hover,
[data-animate].is-visible.price-card:hover,
[data-animate].is-visible.template-card:hover,
[data-animate].is-visible.portfolio-card:hover,
[data-animate].is-visible.message-card:hover {
  transform: translateY(-5px);
}

[data-animate].is-visible.trust-pill:hover {
  transform: translateY(-2px);
}

@keyframes productSheen {
  0%,
  24% {
    transform: translateX(-120%);
  }

  46%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes softPulse {
  0%,
  100% {
    box-shadow: inset 0 0 0 0 rgba(21, 156, 145, 0.18);
  }

  50% {
    box-shadow: inset 0 0 0 999px rgba(21, 156, 145, 0.08);
  }
}

@keyframes shotStep {
  0%,
  100% {
    transform: translateX(0);
  }

  42%,
  58% {
    transform: translateX(5px);
  }
}

@keyframes skeletonShift {
  from {
    background-position: 180% 0;
  }

  to {
    background-position: -40% 0;
  }
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

@keyframes cardBreath {
  0%,
  100% {
    transform: translateY(0);
    border-color: #e5ded5;
  }

  50% {
    transform: translateY(-4px);
    border-color: rgba(21, 156, 145, 0.22);
  }
}

@keyframes buttonGlow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(21, 156, 145, 0);
  }

  50% {
    box-shadow: 0 10px 24px rgba(21, 156, 145, 0.22);
  }
}

@keyframes backdropFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  [data-animate] {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
}

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .product-shot {
    min-height: 480px;
  }

  .feature-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .editor-grid {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .editor-inspector {
    position: fixed;
    right: 0;
    top: 62px;
    bottom: 0;
    z-index: 50;
    width: min(360px, 92vw);
    box-shadow: var(--shadow);
  }
}

@media (max-width: 820px) {
  .topbar,
  .editor-toolbar,
  .page-head,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-actions,
  .toolbar-actions {
    justify-content: flex-start;
  }

  .topbar .nav-actions {
    width: 100%;
  }

  .hero-title {
    font-size: 50px;
  }

  .shot-editor {
    grid-template-columns: 92px 1fr;
  }

  .shot-inspector {
    display: none;
  }

  .feature-grid,
  .pricing-grid,
  .form-grid.two,
  .contact-layout,
  .folio-hero {
    grid-template-columns: 1fr;
  }

  .compare-head {
    align-items: flex-start;
    padding: 20px;
  }

  .pricing-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .comparison-table {
    min-width: 680px;
  }

  .editor-page {
    height: auto;
    min-height: 100vh;
    grid-template-rows: auto 1fr;
  }

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

  .editor-sidebar {
    border-right: 0;
    border-bottom: 1px solid #d9d1c6;
  }

  .editor-inspector {
    position: static;
    width: 100%;
    box-shadow: none;
  }

  .canvas-wrap {
    min-height: 620px;
    padding: 12px;
  }
}

@media (max-width: 560px) {
  .layout {
    width: min(1180px, calc(100% - 24px));
  }

  .hero-grid > :first-child {
    width: calc(100vw - 24px);
    max-width: 100%;
    justify-self: center;
  }

  .topbar {
    padding: 14px 12px;
  }

  .nav-actions {
    gap: 7px;
  }

  .nav-link {
    font-size: 14px;
    padding: 8px 2px;
  }

  .btn.small {
    font-size: 12px;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-copy {
    max-width: 34ch;
  }

  .pricing-compare {
    margin-top: 20px;
  }

  .billing-toggle {
    width: 100%;
  }

  .billing-toggle button {
    flex: 1;
    padding: 0 10px;
  }

  .billing-note {
    max-width: none;
  }

  .compare-head {
    padding: 18px;
  }

  .comparison-table {
    min-width: 620px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 14px 12px;
  }

  .product-shot {
    width: calc(100vw - 24px);
    max-width: 100%;
    min-height: 420px;
    justify-self: center;
  }

  .trust-row {
    display: grid;
    grid-template-columns: repeat(2, fit-content(170px));
    align-items: start;
  }

  .browser-chrome {
    padding: 0 10px;
  }

  .browser-chrome strong {
    display: none;
  }

  .browser-url {
    min-width: 0;
    flex-basis: 0;
  }

  .shot-editor {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .shot-canvas {
    padding: 14px;
  }

  .shot-page-hero,
  .shot-projects {
    grid-template-columns: 1fr;
  }

  .shot-page-hero {
    padding: 16px;
  }

  .shot-projects {
    padding: 14px 16px;
  }

  .shot-line.big {
    width: 82%;
  }

  .folio-section {
    padding: 30px 18px;
  }

  .folio-hero h1 {
    font-size: 40px;
  }

  .modal-panel {
    max-height: calc(100vh - 20px);
  }
}

/* Premium redesign inspired by the generated my-folio.io mockups. */
.topbar {
  min-height: 78px;
  border-bottom-color: rgba(222, 223, 219, 0.92);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(23, 27, 25, 0.04);
}

.brand {
  font-size: 22px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 7px;
  background: #111412;
  box-shadow: 0 10px 24px rgba(23, 27, 25, 0.16);
  text-transform: lowercase;
}

.brand-mark.tiny {
  width: 30px;
  height: 30px;
  font-size: 12px;
  box-shadow: none;
}

.nav-link {
  position: relative;
  font-weight: 700;
}

.nav-link.active {
  color: var(--teal-dark);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 0;
  height: 2px;
  background: var(--teal);
}

.nav-badge {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  margin-left: 4px;
  place-items: center;
  border-radius: 999px;
  background: var(--coral);
  color: white;
  font-size: 11px;
}

.btn {
  min-height: 44px;
  border-color: #dfe1dc;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(23, 27, 25, 0.03);
}

.btn.primary,
.btn.teal {
  border-color: #078c82;
  background: linear-gradient(180deg, #12aaa0, #078176);
  color: white;
  box-shadow: 0 12px 28px rgba(7, 129, 118, 0.2);
}

.btn.ghost {
  background: #ffffff;
  border-color: #171b19;
}

.landing-main {
  background:
    linear-gradient(180deg, #ffffff 0%, #f8f7f3 62%, #ffffff 100%);
}

.hero-band {
  min-height: calc(100vh - 78px);
  padding: 52px 0 38px;
}

.hero-grid {
  width: min(1480px, calc(100% - 64px));
  grid-template-columns: minmax(420px, 0.72fr) minmax(620px, 1.28fr);
  gap: clamp(42px, 5vw, 96px);
}

.hero-copy-block {
  padding-top: clamp(20px, 6vw, 96px);
}

.eyebrow,
.section-kicker {
  display: inline-block;
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-title {
  max-width: none;
  margin: 18px 0 26px;
  font-size: clamp(72px, 10vw, 150px);
  line-height: 0.86;
  font-weight: 900;
}

.hero-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 22px;
  background: var(--coral);
}

.hero-copy {
  max-width: 620px;
  color: var(--ink);
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.16;
  font-weight: 500;
}

.hero-cta {
  min-width: 230px;
}

.hero-secondary {
  min-width: 190px;
}

.trust-row {
  gap: 26px;
  margin-top: 32px;
}

.trust-pill {
  border: 0;
  background: transparent;
  color: #59625d;
  padding: 0;
  font-size: 14px;
}

.trust-pill::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: -3px;
  border: 1px solid rgba(21, 156, 145, 0.55);
  border-radius: 4px;
  background: rgba(21, 156, 145, 0.1);
}

.product-shot-live {
  min-height: 610px;
  border-color: #dddfda;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(23, 27, 25, 0.12);
}

.product-shot-live::after {
  display: none;
}

.browser-chrome {
  height: 54px;
  border-color: #e8e9e5;
  background: #ffffff;
}

.browser-url {
  display: flex;
  align-items: center;
  max-width: 190px;
  padding: 0 12px;
  color: #4f5853;
  font-size: 12px;
  background: transparent;
}

.shot-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.shot-device {
  display: inline-block;
  width: 30px;
  height: 28px;
  border: 1px solid #e2e4df;
  border-radius: 6px;
  background: #fbfaf6;
}

.shot-device.active {
  border-color: rgba(21, 156, 145, 0.42);
  background: rgba(21, 156, 145, 0.09);
}

.shot-editor {
  grid-template-columns: 74px minmax(0, 1fr) 174px;
  min-height: 556px;
}

.shot-sidebar,
.shot-inspector {
  background: #fbfbf8;
  border-color: #e8e9e5;
}

.shot-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px 10px;
}

.shot-tool {
  display: grid;
  min-height: 48px;
  place-items: center;
  border-radius: 8px;
  color: #4f5a55;
  font-size: 11px;
  font-weight: 800;
}

.shot-tool.active {
  background: rgba(21, 156, 145, 0.1);
  color: var(--teal-dark);
}

.shot-canvas {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  background: #ffffff;
}

.shot-sections {
  display: grid;
  align-content: start;
  gap: 10px;
}

.shot-section {
  min-height: 42px;
  border: 1px solid #e4e5e0;
  border-radius: 7px;
  background: #ffffff;
  padding: 12px;
  color: #29302c;
  font-size: 12px;
  font-weight: 800;
}

.shot-section.active {
  border-color: var(--teal);
  background: rgba(21, 156, 145, 0.08);
}

.shot-page {
  border-color: #e2e4df;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(23, 27, 25, 0.06);
}

.shot-page-hero {
  min-height: 275px;
  border-color: #eceeea;
  padding: 42px;
}

.shot-kicker {
  margin-bottom: 14px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.shot-line.big {
  width: 84%;
  height: 44px;
  background: #111412;
}

.shot-line.title {
  width: 74%;
  height: 22px;
  background: #171b19;
}

.shot-buttons {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.shot-buttons span {
  display: block;
  width: 92px;
  height: 34px;
  border-radius: 7px;
  background: var(--teal);
}

.shot-buttons span + span {
  width: 76px;
  background: #ffffff;
  border: 1px solid #dfe1dc;
}

.shot-avatar {
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(23, 27, 25, 0.1), rgba(23, 27, 25, 0.02)),
    radial-gradient(circle at 58% 38%, #222 0 18%, transparent 19%),
    linear-gradient(135deg, #f3f2ed, #ffffff);
}

.shot-inspector {
  display: grid;
  align-content: start;
  gap: 12px;
}

.shot-inspector strong {
  margin-bottom: 2px;
}

.shot-field {
  margin: 0;
  border: 1px solid #e4e5e0;
  background: #ffffff;
}

.shot-field.tall {
  height: 64px;
}

.shot-toggle {
  width: 38px;
  height: 20px;
  border-radius: 999px;
  background: var(--teal);
  justify-self: end;
}

.section-band {
  padding: 76px 0;
}

.section-band.alt {
  background: #ffffff;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.55fr);
  align-items: end;
}

.section-heading .section-kicker {
  grid-column: 1 / -1;
}

.section-heading h2 {
  max-width: 620px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.08;
}

.feature-card,
.price-card,
.template-card,
.portfolio-card,
.message-card,
.settings-panel,
.empty-state,
.auth-panel,
.modal-panel {
  border-color: #dedfdb;
  background: #ffffff;
}

.dashboard-page,
.settings-page,
.messages-page {
  min-height: calc(100vh - 78px);
  padding: 36px 0 28px;
  background: #fbfaf6;
}

.page-head {
  margin-bottom: 26px;
}

.page-head h1 {
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 28px;
  border: 1px solid #dedfdb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(23, 27, 25, 0.05);
}

.stat-card {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 122px;
  padding: 20px 26px;
  border-right: 1px solid #e6e7e2;
}

.stat-card:last-child {
  border-right: 0;
}

.stat-card span:not(.stat-icon) {
  color: #59635e;
  font-size: 15px;
}

.stat-card strong {
  display: block;
  margin: 4px 0 8px;
  font-size: 34px;
  line-height: 1;
}

.stat-card p {
  margin: 0;
  color: var(--teal-dark);
  font-weight: 700;
}

.stat-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: rgba(21, 156, 145, 0.12);
}

.stat-icon::before {
  content: "";
  width: 24px;
  height: 20px;
  border: 2px solid var(--teal-dark);
  border-radius: 5px;
}

.stat-icon.globe::before,
.stat-icon.message::before,
.stat-icon.download::before,
.stat-icon.bulb::before {
  border-radius: 50%;
}

.stat-icon.message {
  background: rgba(49, 87, 255, 0.1);
}

.stat-icon.download::before {
  border-radius: 3px;
  border-top: 0;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 400px);
  gap: 26px;
  align-items: start;
}

.dashboard-main-panel {
  min-width: 0;
}

.dashboard-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.dashboard-section-head h2 {
  margin: 0;
  font-size: 26px;
}

.dashboard-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.search-shell,
.dashboard-filters select {
  min-height: 42px;
  border: 1px solid #dedfdb;
  border-radius: 8px;
  background: #ffffff;
}

.search-shell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(280px, 100%);
  padding: 0 12px;
}

.search-shell span {
  width: 14px;
  height: 14px;
  border: 2px solid #8d9792;
  border-radius: 50%;
}

.search-shell input,
.dashboard-filters select {
  border: 0;
  outline: none;
  background: transparent;
  color: #68726d;
}

.dashboard-filters select {
  padding: 0 12px;
}

.portfolio-list {
  display: grid;
  gap: 14px;
}

.portfolio-row-card {
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr) 150px;
  align-items: center;
  gap: 28px;
  padding: 16px;
  box-shadow: 0 8px 28px rgba(23, 27, 25, 0.05);
}

.portfolio-row-card .portfolio-preview-mini {
  min-height: 150px;
  margin: 0;
}

.preview-theme-1 {
  background:
    radial-gradient(circle at 72% 42%, rgba(21, 156, 145, 0.12), transparent 32%),
    linear-gradient(135deg, #ffffff, #eee8dd);
}

.preview-theme-2 {
  background:
    radial-gradient(circle at 70% 55%, rgba(49, 87, 255, 0.34), transparent 25%),
    radial-gradient(circle at 52% 55%, rgba(21, 156, 145, 0.34), transparent 20%),
    #141816;
}

.preview-theme-2 .mini-line,
.preview-theme-2 .mini-block {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.16);
}

.portfolio-row-body {
  display: grid;
  gap: 9px;
}

.portfolio-url {
  color: var(--teal-dark);
  font-weight: 800;
}

.portfolio-row-card .row-actions {
  display: grid;
  gap: 8px;
  justify-items: stretch;
}

.portfolio-row-card .row-actions .btn {
  width: 100%;
}

.dashboard-side-panel {
  display: grid;
  gap: 16px;
}

.side-card {
  border: 1px solid #dedfdb;
  border-radius: 8px;
  background: #ffffff;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(23, 27, 25, 0.05);
}

.side-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.side-card h2 {
  margin: 0;
  font-size: 20px;
}

.compact-message {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid #eceeea;
}

.compact-message > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #f0ebe4;
  color: #46504b;
  font-size: 12px;
  font-weight: 800;
}

.compact-message p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.compact-message small {
  color: #7d8782;
}

.side-link {
  margin-top: 12px;
  padding-left: 0;
}

.plan-progress {
  height: 6px;
  margin: 18px 0 8px;
  border-radius: 999px;
  background: #eceeea;
  overflow: hidden;
}

.plan-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.tip-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
}

.editor-page {
  min-height: 760px;
  grid-template-rows: 68px 1fr;
  background: #f4f2ed;
}

.editor-toolbar {
  padding: 10px 16px;
  border-color: #e3e5e0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(23, 27, 25, 0.04);
}

.editor-brand .brand-mark {
  width: 44px;
  height: 44px;
}

.toolbar-menu {
  width: 28px;
  height: 28px;
}

.save-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4f5a55;
}

.save-indicator span {
  width: 18px;
  height: 18px;
  border: 2px solid var(--teal);
  border-radius: 50%;
}

.toolbar-actions {
  flex-wrap: nowrap;
}

.toolbar-square {
  width: 44px;
  padding: 0;
}

.device-icon {
  display: inline-block;
  width: 14px;
  height: 11px;
  margin-right: 6px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.device-icon.mobile {
  width: 9px;
  height: 14px;
}

.editor-grid {
  grid-template-columns: 76px 250px minmax(420px, 1fr) 350px;
  background: #ffffff;
}

.editor-rail {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px 10px;
  border-right: 1px solid #e4e6e1;
  background: #fbfbf8;
}

.rail-button {
  display: grid;
  gap: 6px;
  justify-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #4e5954;
  padding: 10px 4px;
  font-size: 12px;
  font-weight: 800;
}

.rail-button.active {
  background: rgba(21, 156, 145, 0.1);
  color: var(--teal-dark);
}

.rail-icon {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 6px;
}

.rail-icon.ai {
  border-radius: 50%;
}

.rail-icon.settings {
  border-radius: 50%;
  border-style: dashed;
}

.editor-sidebar {
  border-color: #e4e6e1;
  background: #ffffff;
  padding: 22px 18px;
}

.editor-sidebar .panel-title h2 {
  font-size: 18px;
}

.add-section-btn {
  width: 100%;
  margin-bottom: 16px;
  color: #46504b;
}

.section-list {
  gap: 10px;
}

.section-row {
  min-height: 54px;
  border-color: #e4e6e1;
  background: #ffffff;
  padding: 0 10px;
  box-shadow: 0 1px 0 rgba(23, 27, 25, 0.02);
}

.section-row.active {
  border-color: var(--teal);
  background: rgba(21, 156, 145, 0.06);
  box-shadow: inset 0 0 0 1px rgba(21, 156, 145, 0.28);
}

.section-row button:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid #d9ddd8;
  border-radius: 7px;
  color: var(--teal-dark);
  font-size: 11px;
}

.section-tools .mini-btn {
  width: 20px;
  height: 26px;
  border: 0;
  background: transparent;
}

.drag-hint {
  margin: 18px 0 0;
  color: #7a8580;
  font-size: 12px;
}

.editor-nav {
  display: none;
}

.canvas-wrap {
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(21, 156, 145, 0.04), transparent 36%),
    #f3f2ed;
}

.preview-device {
  width: min(100%, 1060px);
  min-height: calc(100vh - 104px);
  border-color: #dedfdb;
  background: #ffffff;
  box-shadow: 0 16px 46px rgba(23, 27, 25, 0.1);
}

.preview-device.mobile {
  width: min(390px, 100%);
}

.editor-inspector {
  border-color: #e4e6e1;
  background: #ffffff;
  padding: 22px 18px;
}

.inspector-head {
  margin-bottom: 20px;
}

.inspector-head .panel-title {
  margin-bottom: 18px;
}

.inspector-head h2 {
  font-size: 22px;
  font-weight: 800;
}

.inspector-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid #e8e9e5;
}

.inspector-tabs button {
  min-height: 42px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #59635e;
  font-weight: 800;
}

.inspector-tabs button.active {
  border-bottom-color: var(--teal);
  color: var(--teal-dark);
}

.field label {
  color: #4a544f;
  font-size: 13px;
}

.field input,
.field textarea,
.field select {
  border-color: #dfe1dc;
  background: #ffffff;
}

.field-line {
  grid-template-columns: minmax(0, 1fr) 52px;
  align-items: end;
}

.ai-chip {
  min-width: 48px;
  padding: 0 8px;
  color: var(--teal-dark);
}

.array-item {
  border-color: #e3e5e0;
  background: #fbfbf8;
}

.color-row {
  grid-template-columns: repeat(4, 1fr);
}

.swatch {
  min-height: 38px;
  border-color: #e1e3de;
}

.portfolio-preview {
  min-height: 100%;
  background: #ffffff;
}

.folio-preview-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 0 clamp(26px, 5vw, 58px);
  border-bottom: 1px solid #eceeea;
}

.folio-preview-nav strong {
  font-size: 18px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.folio-preview-nav div {
  display: flex;
  gap: clamp(18px, 3vw, 36px);
  color: #171b19;
  font-size: 13px;
  font-weight: 800;
}

.theme-dot {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 0 2px, transparent 3px),
    #111412;
}

.folio-section {
  border-color: #eceeea;
  padding: clamp(42px, 6vw, 82px) clamp(26px, 5vw, 58px);
}

.folio-hero {
  min-height: 460px;
  grid-template-columns: minmax(0, 1.2fr) minmax(270px, 0.82fr);
}

.folio-kicker {
  color: var(--teal-dark);
  letter-spacing: 0;
  text-transform: none;
}

.folio-hero h1 {
  font-size: clamp(54px, 6vw, 86px);
  line-height: 0.92;
  font-weight: 900;
}

.folio-hero p:not(.folio-text) {
  max-width: 620px;
  margin: 0 0 16px;
  color: #171b19;
  font-size: clamp(25px, 3vw, 40px);
  line-height: 1.18;
  font-weight: 800;
}

.folio-text {
  max-width: 620px;
  color: #4f5a55;
  font-size: 17px;
}

.folio-photo {
  position: relative;
  border: 0;
  background: #eeefeb;
  box-shadow: none;
}

.portrait-placeholder {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 28%, #171b19 0 14%, transparent 15%),
    radial-gradient(ellipse at 50% 72%, #171b19 0 27%, transparent 28%),
    linear-gradient(135deg, #f1f1ee, #ffffff);
}

.portrait-placeholder .initials {
  z-index: 2;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(54px, 7vw, 86px);
}

.portrait-grid {
  position: absolute;
  right: 8%;
  top: 28%;
  width: 60px;
  height: 80px;
  opacity: 0.32;
  background-image: radial-gradient(#6d7772 1.3px, transparent 1.4px);
  background-size: 12px 12px;
}

.portrait-scribble {
  position: absolute;
  right: -2%;
  bottom: 5%;
  width: 110px;
  height: 52px;
  border-top: 7px solid var(--teal);
  border-bottom: 7px solid var(--teal);
  transform: rotate(-18deg);
}

.folio-meta {
  color: #59635e;
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card,
.skill-group,
.timeline-item,
.service-item,
.testimonial-item,
.contact-box {
  border-color: #e1e3de;
  background: #ffffff;
}

.project-media {
  min-height: 138px;
  background: #141816;
}

.project-media span {
  display: block;
  width: 100%;
  height: 150px;
}

.project-visual-0 {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 80% 25%, rgba(21, 156, 145, 0.55), transparent 18%),
    #121614;
  background-size: 28px 28px, 28px 28px, auto, auto;
}

.project-visual-1 {
  background:
    linear-gradient(135deg, rgba(240, 93, 72, 0.32), transparent 42%),
    linear-gradient(180deg, #d9d0c1, #2b302d);
}

.project-visual-2 {
  background:
    radial-gradient(circle at 64% 42%, rgba(21, 156, 145, 0.32), transparent 22%),
    linear-gradient(135deg, #f7f6f3, #d7e1df);
}

@media (max-width: 1260px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy-block {
    padding-top: 0;
  }

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

  .editor-inspector {
    position: fixed;
    top: 68px;
    right: 0;
    bottom: 0;
    z-index: 50;
    width: min(360px, 92vw);
    box-shadow: var(--shadow);
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }
}

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

  .stat-card:nth-child(2) {
    border-right: 0;
  }

  .portfolio-row-card {
    grid-template-columns: 1fr;
  }

  .portfolio-row-card .row-actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .shot-editor {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .shot-inspector {
    display: none;
  }

  .shot-canvas {
    grid-template-columns: 1fr;
  }

  .shot-sections {
    grid-template-columns: repeat(4, 1fr);
  }

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

@media (max-width: 760px) {
  .topbar,
  .editor-toolbar,
  .page-head,
  .dashboard-section-head,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .hero-grid {
    width: min(1180px, calc(100% - 24px));
  }

  .hero-title {
    font-size: 58px;
  }

  .hero-copy {
    font-size: 28px;
  }

  .product-shot-live {
    min-height: 520px;
  }

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

  .stat-card {
    border-right: 0;
    border-bottom: 1px solid #e6e7e2;
  }

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

  .editor-page {
    height: auto;
  }

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

  .editor-rail {
    grid-template-columns: repeat(5, 1fr);
    border-right: 0;
    border-bottom: 1px solid #e4e6e1;
  }

  .editor-sidebar {
    border-right: 0;
    border-bottom: 1px solid #e4e6e1;
  }

  .editor-inspector {
    position: static;
    width: auto;
    box-shadow: none;
  }

  .toolbar-actions {
    flex-wrap: wrap;
  }

  .folio-preview-nav,
  .folio-preview-nav div,
  .folio-hero,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .folio-preview-nav {
    display: grid;
    min-height: auto;
    padding: 20px;
  }

  .folio-preview-nav div {
    display: flex;
    flex-wrap: wrap;
  }

  .folio-hero h1 {
    font-size: 46px;
  }
}

/* Menu polish from the latest references. */
.app-topbar {
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(280px, 1fr) minmax(220px, auto);
  align-items: center;
  min-height: 78px;
  padding: 14px clamp(28px, 4vw, 72px);
}

.app-topbar .brand {
  justify-self: start;
  padding: 0;
  color: var(--ink);
}

.app-topbar .brand::after {
  display: none;
}

.topbar-nav {
  justify-self: center;
  justify-content: center;
  gap: clamp(28px, 4vw, 64px);
}

.topbar-nav .nav-link {
  min-height: 44px;
  padding: 0;
  color: #171b19;
  font-size: 15px;
  font-weight: 700;
}

.topbar-nav .nav-link.active::after {
  left: 0;
  right: 0;
  bottom: 4px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 14px;
}

.topbar-actions .btn.primary {
  min-width: 178px;
  min-height: 48px;
  border-radius: 6px;
}

.dashboard-topbar .topbar-nav {
  gap: clamp(22px, 3vw, 48px);
}

.dashboard-topbar .topbar-actions .btn.primary {
  min-width: 190px;
}

.user-menu {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f0efeb;
  color: #303733;
  font-weight: 900;
}

.account-caret {
  border: 0;
  background: transparent;
}

.editor-toolbar {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) auto minmax(390px, 1fr);
  min-height: 68px;
  padding: 8px 16px;
}

.portfolio-name {
  gap: 14px;
}

.portfolio-name strong {
  max-width: 360px;
  font-size: 15px;
  font-weight: 800;
}

.editor-brand {
  padding: 0;
}

.editor-brand::after {
  display: none;
}

.editor-brand .brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 8px;
}

.toolbar-divider {
  display: inline-block;
  width: 1px;
  height: 34px;
  background: #e3e5e0;
}

.save-indicator {
  font-size: 14px;
  font-weight: 700;
}

.save-indicator span {
  position: relative;
}

.save-indicator span::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 6px;
  height: 4px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}

.editor-device-switch {
  justify-self: center;
  min-width: 250px;
  grid-template-columns: repeat(2, 1fr);
  background: #ffffff;
}

.editor-device-switch button {
  min-height: 42px;
  padding: 0 18px;
}

.toolbar-actions {
  justify-self: end;
  gap: 10px;
}

.toolbar-actions .btn {
  min-height: 42px;
  border-color: #e1e3de;
  border-radius: 7px;
  box-shadow: none;
}

.toolbar-square {
  width: 42px;
  color: #4e5752;
}

.publish-btn {
  min-width: 96px;
  border-color: #f05d48 !important;
  background: linear-gradient(180deg, #ff6b57, #f04f3f) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(240, 93, 72, 0.2) !important;
}

.editor-grid {
  grid-template-columns: 86px 224px minmax(460px, 1fr) 350px;
}

.editor-rail {
  gap: 18px;
  padding: 14px 10px;
  background: #fbfbf8;
}

.rail-button {
  min-height: 66px;
  border-radius: 9px;
  color: #2f3b36;
  font-size: 12px;
  font-weight: 700;
}

.rail-button.active {
  background: rgba(21, 156, 145, 0.09);
  color: var(--teal-dark);
}

.rail-icon {
  position: relative;
  width: 25px;
  height: 25px;
  border: 0;
  color: currentColor;
}

.rail-icon.sections {
  background:
    linear-gradient(currentColor 0 0) 0 0 / 9px 9px no-repeat,
    linear-gradient(currentColor 0 0) 16px 0 / 9px 9px no-repeat,
    linear-gradient(currentColor 0 0) 0 16px / 9px 9px no-repeat,
    linear-gradient(currentColor 0 0) 16px 16px / 9px 9px no-repeat;
}

.rail-icon.content::before {
  content: "";
  position: absolute;
  inset: 3px 4px;
  border: 2px solid currentColor;
  border-radius: 3px;
  box-shadow: inset 0 6px 0 -4px currentColor, inset 0 12px 0 -10px currentColor;
}

.rail-icon.design::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.rail-icon.design::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.rail-icon.ai::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid currentColor;
  transform: rotate(45deg);
}

.rail-icon.ai::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.rail-icon.settings::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.rail-icon.settings::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  width: 5px;
  height: 25px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 3px #fbfbf8;
  transform: rotate(45deg);
}

.editor-sidebar {
  padding: 20px 16px;
}

.add-section-btn {
  min-height: 44px;
  border-style: solid;
  background: #ffffff;
}

.section-row {
  min-height: 56px;
}

.section-row button:first-child {
  font-size: 14px;
}

.section-icon {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #25312d;
  font-size: 13px;
  font-weight: 900;
}

.section-row.active .section-icon {
  color: var(--teal-dark);
}

.section-tools {
  align-items: center;
}

.section-tools .mini-btn {
  font-size: 0;
}

.section-tools .mini-btn::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #87918c;
  box-shadow: 0 7px 0 #87918c, 0 14px 0 #87918c;
}

.section-tools .mini-btn:nth-child(1),
.section-tools .mini-btn:nth-child(2) {
  display: none;
}

@media (max-width: 1180px) {
  .app-topbar,
  .editor-toolbar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .topbar-nav,
  .topbar-actions,
  .editor-device-switch,
  .toolbar-actions {
    justify-self: start;
  }

  .editor-grid {
    grid-template-columns: 76px 230px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .app-topbar {
    padding: 14px 16px;
  }

  .topbar-nav {
    justify-content: flex-start;
    gap: 18px;
  }

  .topbar-actions {
    width: 100%;
  }

  .topbar-actions .btn.primary {
    width: 100%;
  }

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

  .editor-rail {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }

  .rail-button {
    min-height: 58px;
  }
}
