:root {
  --navy: #052b55;
  --navy-2: #063b70;
  --gold: #efaa22;
  --paper: #f5f7fb;
  --line: #d9e1ec;
  --text: #17243a;
  --muted: #66758a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--paper);
}

.placeholder-page {
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(5, 43, 85, 0.88), rgba(23, 36, 58, 0.72)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=80") center / cover;
  color: #fff;
}

.placeholder-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.placeholder-hero {
  max-width: 680px;
  padding: 48px 0;
}

.placeholder-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  font-size: 18px;
  font-weight: 800;
}

.placeholder-mark {
  width: 56px;
  height: 56px;
  border: 2px solid var(--gold);
  display: grid;
  place-items: center;
  color: var(--gold);
}

.placeholder-hero h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 48px;
  line-height: 1.08;
}

.placeholder-hero p {
  max-width: 540px;
  margin: 0;
  color: #e6edf7;
  font-size: 20px;
  line-height: 1.5;
}

.topbar {
  min-height: 72px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 32px;
  border-bottom: 4px solid var(--gold);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border: 2px solid var(--gold);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--gold);
}

.brand-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-sub {
  font-size: 13px;
  color: #cdd8e8;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 56px;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 18px;
}

h1, h2, h3 {
  margin: 0 0 16px;
  color: var(--navy);
  letter-spacing: 0;
}

h1 {
  font-size: 26px;
}

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

.panel-title-row h1 {
  margin-bottom: 0;
}

.doc-link {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  padding: 10px 12px;
  text-decoration: none;
  white-space: nowrap;
}

.sheets-link {
  border-color: rgba(52, 168, 83, 0.34);
  color: #174c2f;
  background: linear-gradient(135deg, rgba(232, 245, 236, 0.96), rgba(219, 239, 228, 0.96) 44%, rgba(241, 248, 233, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.sheets-link:hover {
  border-color: rgba(52, 168, 83, 0.5);
  background: linear-gradient(135deg, rgba(224, 242, 229, 1), rgba(210, 234, 220, 1) 44%, rgba(235, 246, 226, 1));
}

.refresh-link {
  border-color: rgba(5, 43, 85, 0.16);
  color: var(--navy);
  background: linear-gradient(135deg, #f8fbff, #edf3fa);
}

.refresh-link::before {
  content: "↻";
  margin-right: 7px;
  color: var(--gold);
  font-weight: 900;
}

.refresh-link:hover {
  border-color: rgba(5, 43, 85, 0.28);
  background: linear-gradient(135deg, #fffaf0, #eef4fb);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.source-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 14px;
  background: #fbfdff;
}

.source-card strong,
.source-card small,
.source-label {
  display: block;
}

.source-label {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.source-card strong {
  color: var(--navy);
  font-size: 16px;
}

.source-card small {
  margin-top: 4px;
  color: var(--muted);
}

.ghost-link {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  padding: 10px 12px;
  text-decoration: none;
  white-space: nowrap;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 17px;
}

.load-grid, .field-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 220px auto;
  gap: 14px;
  align-items: end;
}

.connected-grid {
  grid-template-columns: minmax(260px, 420px) auto;
  justify-content: start;
}

.sheet-quick-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.sheet-quick-grid form {
  margin: 0;
}

.sheet-chip {
  appearance: none;
  border: 1px solid #ccd8e7;
  border-radius: 6px;
  padding: 0 14px;
  min-height: 42px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(5, 43, 85, 0.04);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.sheet-chip:hover,
.sheet-chip:focus-visible {
  border-color: rgba(5, 43, 85, 0.32);
  background: #f8fbff;
  box-shadow: 0 6px 14px rgba(5, 43, 85, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.sheet-chip.is-selected {
  border-color: rgba(5, 43, 85, 0.36);
  color: var(--navy);
  background: #eaf2fb;
  box-shadow: 0 4px 10px rgba(5, 43, 85, 0.05);
}

.field-grid {
  grid-template-columns: 1fr 1fr 170px 190px;
  align-items: start;
}

label span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: #fff;
  font-size: 14px;
}

input, select {
  height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 42px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.35;
  font-family: inherit;
}

input.needs-attention,
textarea.needs-attention {
  border-color: #e7a6a6;
  background: #fff3f3;
}

button {
  height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
}

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

.primary {
  background: var(--gold);
  color: #1d2430;
}

.secondary {
  background: var(--navy);
  color: #fff;
}

.ghost {
  background: #eef3f8;
  color: var(--navy);
}

.hero-panel,
.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.preview-toolbar {
  margin-bottom: 22px;
}

.preview-heading {
  min-width: 220px;
}

.hero-panel p,
.preview-heading p {
  margin: -8px 0 0;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.progress-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 20, 38, 0.48);
}

.progress-overlay.is-visible {
  display: flex;
}

.progress-panel {
  position: relative;
  width: min(460px, 100%);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(5, 20, 38, 0.28);
  padding: 24px;
}

.progress-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #eef3f8;
  color: var(--navy);
  font-size: 20px;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.progress-close:hover,
.progress-close:focus-visible {
  border-color: rgba(5, 43, 85, 0.2);
  background: #e4edf7;
  outline: none;
}

.progress-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-right: 42px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
}

.progress-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef6;
  margin-top: 18px;
}

.progress-bar div {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
  transition: width 260ms ease;
}

.progress-panel p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.share-result {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.share-result label span {
  color: var(--navy);
}

.share-result input {
  margin-top: 6px;
  background: #f8fbff;
}

.share-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.share-open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 6px;
  padding: 0 16px;
  font-weight: 800;
  text-decoration: none;
}

.edit-surface {
  opacity: 0.92;
}

.edit-surface:not(.is-editing) input,
.edit-surface:not(.is-editing) textarea {
  pointer-events: none;
  background: #f8fafc;
}

.edit-surface:not(.is-editing) input.needs-attention,
.edit-surface:not(.is-editing) textarea.needs-attention {
  background: #fff3f3;
}

.totals {
  display: grid;
  grid-template-columns: 190px 190px 190px minmax(260px, 1fr);
  gap: 12px;
  margin: 18px 0;
  align-items: stretch;
}

.totals div {
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 6px;
  padding: 12px 16px;
  min-width: 190px;
}

.totals span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.totals strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  color: var(--navy);
}

.spell-card {
  border: 1px solid #bfe2c7;
  border-left: 5px solid #31a354;
  border-radius: 6px;
  padding: 12px 16px;
  background: #f3fbf5;
}

.spell-card.has-issues {
  border-color: #e7a6a6;
  border-left-color: #d75858;
  background: #fff3f3;
}

.spell-card.is-ok {
  border-color: #bfe2c7;
  border-left-color: #31a354;
  background: #f3fbf5;
}

.spell-card span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.spell-card strong {
  display: block;
  color: var(--navy);
  font-size: 18px;
  margin-top: 4px;
}

.spell-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.spell-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 12px;
}

.spell-card li + li {
  margin-top: 5px;
}

.spell-card em {
  display: block;
  color: var(--muted);
  font-style: normal;
  margin-top: 2px;
}

.table-block {
  margin-top: 22px;
}

.service-table {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) 160px minmax(220px, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.service-table > * {
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-table > input,
.service-table > textarea {
  height: auto;
  min-height: 38px;
  align-self: stretch;
  font-size: 13px;
  line-height: 1.18;
}

.service-table > textarea {
  padding: 7px 10px;
  resize: none;
  overflow: hidden;
}

.service-table > input {
  padding: 0 10px;
}

.service-table > *:nth-child(3n) {
  border-right: 0;
}

.service-table .head {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}

.messages {
  margin-bottom: 16px;
}

.message {
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.message.success {
  background: #eaf8ee;
  color: #1f7a3f;
}

.message.error {
  background: #fff0ef;
  color: #a42b25;
}

.empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}

.empty h2 {
  color: var(--navy);
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(5, 43, 85, 0.08), rgba(239, 170, 34, 0.12)),
    var(--bg);
}

.login-shell {
  width: min(420px, calc(100vw - 32px));
}

.login-panel {
  display: grid;
  gap: 16px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(5, 43, 85, 0.12);
}

.login-panel .brand-mark {
  width: 56px;
  height: 56px;
  font-size: 18px;
}

.login-panel h1 {
  margin: 0;
  color: var(--navy);
}

.login-panel p {
  margin: -10px 0 4px;
  color: var(--muted);
}

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

.public-topbar {
  min-height: 72px;
  background: var(--navy);
  color: #fff;
  border-bottom: 4px solid var(--gold);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 32px;
}

.public-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.public-download {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  color: #fff;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 800;
}

.public-shell {
  width: min(1160px, calc(100% - 28px));
  margin: 22px auto 36px;
}

.public-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  margin-bottom: 18px;
}

.public-kicker,
.public-section-heading span {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.public-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: center;
}

.public-hero h1 {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--navy);
  font-size: 38px;
  line-height: 1.08;
}

.public-hero p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.public-device {
  padding: 12px 12px 0;
}

.public-device-screen {
  min-height: 190px;
  border: 9px solid #1d2430;
  border-radius: 8px 8px 4px 4px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f8fbff, #e7edf5);
  color: var(--navy);
  text-align: center;
}

.public-device-base {
  width: 82%;
  height: 12px;
  margin: 0 auto;
  border-radius: 0 0 18px 18px;
  background: #cfd6df;
}

.public-macbook {
  display: block;
  width: 100%;
  max-width: 420px;
  justify-self: center;
}

.public-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 34px;
}

.public-system-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.public-system-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fbfdff;
}

.public-system-grid h3 {
  margin-bottom: 14px;
}

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

.public-checklist li {
  position: relative;
  padding-left: 22px;
  line-height: 1.42;
}

.public-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.public-growth-formula {
  margin-top: 16px;
  border-radius: 8px;
  padding: 14px 18px;
  background: var(--navy);
  color: #fff;
  font-weight: 900;
  text-align: center;
}

.public-grid h2,
.public-card h2 {
  color: var(--navy);
}

.public-target-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 18px;
}

.public-target-row h3 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.2;
}

.public-target-icon {
  width: 54px;
  height: 54px;
  border: 2px solid #f0643f;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #f0643f;
  font-size: 28px;
  font-weight: 900;
}

.public-benefits {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.public-benefits li {
  position: relative;
  min-height: 34px;
  padding-left: 46px;
  line-height: 1.45;
}

.public-benefits li::before {
  content: counter(list-item);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #fff;
  font-weight: 900;
}

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

.public-service-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.public-service-icon {
  width: 44px;
  height: 44px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--navy);
  font-weight: 900;
}

.public-service-item p {
  margin: 0;
  line-height: 1.4;
}

.public-section-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.public-section-heading h2 {
  margin: 6px 0 0;
  font-size: 28px;
}

.public-section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.public-calendar-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.public-legend {
  position: sticky;
  top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfdff;
}

.public-legend h3 {
  margin-bottom: 14px;
}

.public-legend p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  font-weight: 700;
}

.legend-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #2d74c4;
}

.legend-dot.sms { border-color: #39a849; }
.legend-dot.call { border-color: #ef9f20; }
.legend-dot.webinar { border-color: #e43d3d; }
.legend-dot.telegram { border-color: #2ba7df; }

.public-calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
}

.public-month {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.public-month h3 {
  margin: 0;
  padding: 12px;
  background: var(--navy);
  color: #fff;
  text-align: center;
  font-size: 15px;
  text-transform: uppercase;
}

.public-month h3 small {
  color: #cdd8e8;
  font-size: 11px;
}

.public-weekdays,
.public-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.public-weekdays {
  padding: 10px 8px 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.public-days {
  gap: 4px 0;
  padding: 8px 8px 14px;
}

.public-days span {
  min-height: 26px;
  display: grid;
  place-items: center;
  color: var(--text);
  font-size: 13px;
}

.public-days span.muted {
  opacity: 0.22;
}

.public-days span.red {
  color: #e43d3d;
}

.public-days span.event {
  width: 26px;
  height: 26px;
  justify-self: center;
  border: 2px solid #2d74c4;
  border-radius: 50%;
  font-weight: 900;
}

.public-days span.event.sms { border-color: #39a849; }
.public-days span.event.call { border-color: #ef9f20; }
.public-days span.event.webinar { border-color: #e43d3d; }
.public-days span.event.telegram { border-color: #2ba7df; }

.public-subheading {
  margin: 24px 0 4px;
  color: var(--navy);
  font-size: 22px;
  font-weight: 900;
}

.public-price-block {
  margin-top: 20px;
}

.public-price-table {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) 140px minmax(180px, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.public-price-table > div {
  min-height: 42px;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  line-height: 1.35;
}

.public-price-table > div:nth-child(3n) {
  border-right: 0;
}

.public-price-table .head {
  background: var(--navy);
  color: #fff;
  font-weight: 900;
  text-align: center;
}

.public-price-table .public-total {
  background: var(--navy);
  color: #fff;
  font-weight: 900;
}

.public-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--navy);
  color: #fff;
}

.public-cta h2 {
  color: #fff;
}

.public-cta p {
  margin: 0;
  color: #dce6f2;
}

.public-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.public-pdf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 900;
  white-space: nowrap;
  font-family: inherit;
  font-size: 14px;
}

.public-pdf-button.primary {
  color: #1d2430;
}

.public-pdf-button.secondary {
  color: #fff;
}

.public-intro {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 14px;
}

.public-intro span {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.public-intro h1 {
  margin: 4px 0 0;
  font-size: 24px;
}

.public-intro p {
  margin: 6px 0 0;
  color: var(--muted);
}

.public-viewer {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  min-height: 78vh;
}

.public-viewer iframe {
  display: block;
  width: 100%;
  height: 78vh;
  min-height: 720px;
  border: 0;
}

.public-fallback {
  display: none;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.public-fallback p {
  margin: 0 0 12px;
  color: var(--muted);
}

.public-fallback-button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-radius: 6px;
  padding: 0 16px;
  text-decoration: none;
  font-weight: 800;
}

@media (max-width: 860px) {
  .load-grid, .field-grid, .service-table {
    grid-template-columns: 1fr;
  }

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

  .source-card,
  .panel-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-table .head {
    display: none;
  }

  .hero-panel,
  .preview-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .actions {
    justify-content: flex-start;
  }

  .share-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .public-viewer iframe {
    height: 72vh;
    min-height: 560px;
  }

  .public-card {
    padding: 18px;
  }

  .public-hero,
  .public-grid,
  .public-system-grid,
  .public-calendar-layout {
    grid-template-columns: 1fr;
  }

  .public-hero h1 {
    font-size: 28px;
  }

  .public-device-screen {
    min-height: 150px;
  }

  .public-macbook {
    max-width: 100%;
  }

  .public-legend {
    position: static;
  }

  .public-calendar-grid {
    grid-template-columns: 1fr;
  }

  .public-price-table {
    display: block;
  }

  .public-price-table .head {
    display: none;
  }

  .public-price-table > div {
    border-right: 0;
  }

  .public-price-table > div:nth-child(3n + 1) {
    padding-top: 16px;
    font-weight: 900;
    color: var(--navy);
  }

  .public-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-cta-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media print {
  body.public-page {
    background: #fff;
  }

  .public-topbar,
  .public-cta-actions {
    display: none;
  }

  .public-shell {
    width: 100%;
    margin: 0;
  }

  .public-card {
    break-inside: avoid;
    border-color: #d9e1ec;
    box-shadow: none;
  }

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

  .public-cta {
    background: #fff;
    color: var(--text);
  }

  .public-cta h2 {
    color: var(--navy);
  }

  .public-cta p {
    color: var(--text);
  }
}
