:root {
  --bg: #f5f6f7;
  --panel: #ffffff;
  --panel-soft: #f9faf8;
  --ink: #151a17;
  --muted: #64706a;
  --line: #dce2de;
  --line-strong: #c7d0ca;
  --teal: #0f766e;
  --teal-dark: #0b4d49;
  --yellow: #f3c742;
  --success: #15803d;
  --danger: #b42318;
  --shadow: 0 18px 44px rgba(17, 24, 39, 0.08);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
}

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

img,
svg,
canvas {
  max-width: 100%;
}

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

input,
select,
textarea {
  direction: ltr;
  text-align: left;
  unicode-bidi: normal;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 22px 16px;
  color: #f6fbf8;
  background: #101613;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

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

.brand-lockup strong,
.sidebar-note strong {
  display: block;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.brand-lockup span,
.sidebar-note span {
  display: block;
  color: rgba(246, 251, 248, 0.62);
  font-size: 12px;
  line-height: 1.45;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  color: #101613;
  background: #101613;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.side-nav {
  display: grid;
  gap: 6px;
}

.nav-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  color: rgba(246, 251, 248, 0.72);
  background: transparent;
  text-align: left;
  font-size: 14px;
}

.nav-button svg,
.icon-button svg,
.primary-button svg,
.secondary-button svg,
.ghost-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.nav-button:hover,
.nav-button.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-button.locked {
  color: rgba(246, 251, 248, 0.45);
}

.nav-button.active {
  box-shadow: inset 3px 0 0 var(--yellow);
}

.sidebar-note {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

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

.workspace-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #101613;
  background: var(--yellow);
  font-size: 15px;
  font-weight: 900;
}

.workspace-avatar.has-image {
  background: #ffffff;
}

.workspace-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.workspace-copy {
  min-width: 0;
}

.note-label {
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 10px !important;
  color: var(--yellow) !important;
  font-weight: 800;
}

.content-shell {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(18px, 3vw, 34px);
  background: rgba(245, 246, 247, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.date-label {
  color: var(--muted);
  font-size: 13px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 3px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  line-height: 1.55;
}

.topbar-actions,
.button-row,
.inline-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 9px 13px;
  font-weight: 750;
  font-size: 13px;
  line-height: 1.1;
  white-space: nowrap;
}

.primary-button {
  color: #ffffff;
  background: var(--teal);
}

.primary-button:hover {
  background: var(--teal-dark);
}

.secondary-button {
  color: var(--ink);
  background: var(--yellow);
  border-color: #e3b92e;
}

.ghost-button {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
}

.icon-button {
  width: 38px;
  padding: 0;
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
}

.compact {
  min-height: 32px;
  padding: 7px 10px;
}

.main-area {
  min-width: 0;
  padding: 24px clamp(18px, 3vw, 34px) 40px;
}

.layout-grid {
  display: grid;
  gap: 18px;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  align-items: start;
}

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

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

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel.flat {
  box-shadow: none;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.panel-header p {
  margin-top: 4px;
  font-size: 13px;
}

.panel-body {
  padding: 18px;
}

.stat-panel {
  min-height: 118px;
  display: grid;
  align-content: space-between;
  gap: 16px;
  padding: 16px;
}

.stat-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.stat-top > svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--muted);
}

.stat-value {
  font-size: 28px;
  font-weight: 850;
  line-height: 1;
}

.stat-label {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--teal-dark);
  background: #e6f3f0;
}

.status-pill.warning {
  color: #6d4c00;
  background: #fff4cc;
}

.status-pill.dark {
  color: #ffffff;
  background: #151a17;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid.full {
  grid-template-columns: 1fr;
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.wide-field {
  grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
  direction: ltr;
  text-align: left;
  unicode-bidi: normal;
}

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

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

.profile-page {
  gap: 18px;
}

.profile-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.92), rgba(21, 26, 23, 0.96)),
    var(--preview-dark);
  box-shadow: var(--shadow);
}

.profile-hero h2 {
  margin-top: 5px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1;
}

.profile-hero p,
.profile-hero .date-label {
  color: rgba(255, 255, 255, 0.76);
}

.profile-hero p {
  max-width: 780px;
  margin-top: 10px;
  font-size: 15px;
}

.profile-score {
  min-width: 210px;
  display: grid;
  gap: 5px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.profile-score strong {
  font-size: 38px;
  line-height: 1;
}

.profile-score span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  line-height: 1.4;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: 18px;
  align-items: start;
}

.profile-form-stack {
  max-width: 920px;
}

.profile-side {
  position: sticky;
  top: 106px;
}

.fact-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.fact-row {
  display: grid;
  gap: 5px;
  padding: 13px;
  background: #ffffff;
}

.fact-row + .fact-row {
  border-top: 1px solid var(--line);
}

.fact-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.fact-row strong {
  font-size: 13px;
  line-height: 1.35;
}

.color-input {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.color-field {
  position: relative;
}

.color-swatch-button {
  width: 44px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.36), rgba(0, 0, 0, 0.08)),
    var(--picked-color);
  box-shadow: inset 0 0 0 3px #ffffff;
}

.color-swatch-button:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow:
    inset 0 0 0 3px #ffffff,
    0 0 0 3px rgba(15, 118, 110, 0.12);
}

.color-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  grid-template-columns: repeat(6, 28px);
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.color-menu[hidden] {
  display: none;
}

.color-choice {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(17, 24, 39, 0.18);
  border-radius: 999px;
  background: var(--choice-color);
}

.color-choice.selected {
  outline: 3px solid rgba(15, 118, 110, 0.22);
  outline-offset: 2px;
}

.brand-preview {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.brand-preview.large {
  grid-template-columns: 148px minmax(0, 1fr);
}

.brand-kit-page {
  gap: 18px;
}

.brand-command {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.96), rgba(21, 26, 23, 0.96)),
    var(--preview-dark);
  box-shadow: var(--shadow);
}

.brand-command h2 {
  margin-top: 5px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

.brand-command p,
.brand-command .date-label {
  color: rgba(255, 255, 255, 0.76);
}

.brand-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.segmented-control button {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.segmented-control button.active {
  color: #ffffff;
  background: var(--preview-primary);
}

.logo-generator-panel,
.logo-upload-panel,
.official-logo-panel {
  display: grid;
  gap: 14px;
}

.logo-brief {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.logo-brief strong {
  font-size: 18px;
}

.logo-brief span {
  color: var(--muted);
  font-size: 12px;
}

.logo-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.logo-option {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
}

.logo-option.selected {
  border-color: var(--preview-primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.logo-option img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 6px;
  background: var(--panel-soft);
}

.logo-option span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.logo-option .logo-style-name {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.asset-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.asset-list span {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.upload-drop {
  min-height: 220px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--panel-soft);
  text-align: center;
  cursor: pointer;
}

.upload-drop input {
  display: none;
}

.upload-drop svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.business-card-generator,
.brand-identity-generator,
.letterhead-generator {
  overflow: hidden;
}

.card-generator-brief {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.card-generator-brief strong {
  display: block;
  font-size: 18px;
}

.card-generator-brief p,
.card-generator-brief span {
  color: var(--muted);
  font-size: 13px;
}

.card-generator-brief span {
  flex: 0 0 auto;
  font-weight: 800;
}

.identity-suite-brief {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(21, 26, 23, 0.12);
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(21, 26, 23, 0.94), rgba(15, 118, 110, 0.9)),
    var(--preview-dark);
}

.identity-suite-brief strong {
  display: block;
  font-size: 18px;
}

.identity-suite-brief p,
.identity-suite-brief span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.identity-suite-brief span {
  flex: 0 0 auto;
  font-weight: 900;
}

.identity-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.identity-preview-tile {
  min-height: 168px;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff, var(--panel-soft));
}

.identity-preview-tile > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--preview-dark);
  background: var(--preview-accent);
}

.identity-preview-tile svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.identity-preview-tile strong {
  font-size: 15px;
}

.identity-preview-tile p {
  color: var(--muted);
  font-size: 13px;
}

.card-option-grid,
.letterhead-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.card-option,
.letterhead-option {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
}

.card-option.selected,
.letterhead-option.selected {
  border-color: var(--preview-primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.card-option img {
  width: 100%;
  aspect-ratio: 3 / 2;
  display: block;
  object-fit: contain;
  border-radius: 6px;
  background: var(--panel-soft);
}

.letterhead-option img {
  width: 100%;
  aspect-ratio: 8.5 / 11;
  display: block;
  object-fit: contain;
  border-radius: 6px;
  background: var(--panel-soft);
}

.card-option span,
.letterhead-option span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.card-option .card-style-name,
.letterhead-option .letterhead-style-name {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.social-page {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.social-command {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(120deg, rgba(21, 26, 23, 0.96), rgba(15, 118, 110, 0.9)),
    var(--preview-dark);
  box-shadow: var(--shadow);
}

.social-command h2 {
  margin-top: 5px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.social-command p,
.social-command .date-label {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.76);
}

.social-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.34fr);
  gap: 18px;
  align-items: start;
}

.social-side {
  align-self: stretch;
}

.social-brief {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(21, 26, 23, 0.12);
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(21, 26, 23, 0.94), rgba(15, 118, 110, 0.9)),
    var(--preview-dark);
}

.social-brief strong {
  display: block;
  font-size: 18px;
}

.social-brief p,
.social-brief span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.social-brief span {
  flex: 0 0 auto;
  font-weight: 900;
}

.social-creative-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.social-creative-card {
  display: grid;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.social-creative-card.ready {
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.06);
}

.social-creative-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.social-creative-top span {
  display: block;
  color: var(--preview-primary);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.social-creative-top strong {
  display: block;
  margin-top: 3px;
  font-size: 15px;
  line-height: 1.2;
}

.social-creative-top small {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--preview-dark);
  background: var(--preview-accent);
  font-size: 11px;
  font-weight: 950;
}

.social-creative-media {
  position: relative;
  width: 100%;
  aspect-ratio: var(--social-ratio);
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(21, 26, 23, 0.94), rgba(15, 118, 110, 0.78)),
    var(--preview-dark);
}

.social-profile .social-creative-media {
  aspect-ratio: 1;
}

.social-story .social-creative-media,
.social-ad .social-creative-media {
  max-height: 520px;
}

.social-creative-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.social-empty-art {
  height: 100%;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 18px;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.social-empty-art span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--preview-dark);
  background: var(--preview-accent);
}

.social-empty-art svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.social-empty-art strong {
  font-size: 26px;
  line-height: 1;
}

.social-creative-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.social-creative-meta span {
  padding: 6px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel-soft);
  font-size: 11px;
  font-weight: 850;
}

.social-spec-list {
  display: grid;
  gap: 9px;
}

.social-spec-list div {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.social-spec-list span {
  color: var(--preview-primary);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.social-spec-list strong {
  font-size: 13px;
  line-height: 1.2;
}

.social-spec-list small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.social-brand-notes {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.social-brand-notes p,
.social-brand-notes span {
  color: var(--muted);
  font-size: 13px;
}

.social-brand-notes span {
  font-weight: 850;
}

.generator-page {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.generator-command {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(120deg, rgba(21, 26, 23, 0.96), rgba(15, 118, 110, 0.9)),
    var(--preview-dark);
  box-shadow: var(--shadow);
}

.generator-command h2 {
  margin-top: 5px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.generator-command p,
.generator-command .date-label {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.76);
}

.deck-command {
  background:
    linear-gradient(120deg, rgba(15, 23, 42, 0.96), rgba(15, 118, 110, 0.86)),
    var(--preview-dark);
}

.docs-command {
  background:
    linear-gradient(120deg, rgba(21, 26, 23, 0.94), rgba(51, 65, 85, 0.88)),
    var(--preview-dark);
}

.website-command {
  background:
    linear-gradient(120deg, rgba(15, 118, 110, 0.96), rgba(21, 26, 23, 0.92)),
    var(--preview-dark);
}

.generator-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.38fr);
  gap: 18px;
  align-items: start;
}

.generator-side {
  display: grid;
  gap: 18px;
}

.document-preview-card,
.website-mini-preview {
  display: grid;
  gap: 16px;
  min-height: 360px;
  padding: 24px;
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(150deg, rgba(21, 26, 23, 0.96), rgba(15, 118, 110, 0.88)),
    var(--preview-dark);
  box-shadow: var(--shadow);
}

.document-preview-card > span {
  color: var(--preview-accent);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.document-preview-card strong {
  font-size: 32px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.document-preview-card p,
.document-preview-card small {
  color: rgba(255, 255, 255, 0.74);
}

.document-preview-total {
  align-self: end;
  padding-top: 18px;
  border-top: 2px solid var(--preview-accent);
  color: #ffffff;
  font-size: 42px;
  font-weight: 950;
}

.preview-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.preview-chip-row b,
.website-mini-links b {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--preview-dark);
  background: var(--preview-accent);
  font-size: 12px;
  font-weight: 900;
}

.website-mini-preview {
  color: var(--preview-dark);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--preview-accent) 34%, transparent), transparent 38%),
    linear-gradient(180deg, color-mix(in srgb, var(--preview-primary) 10%, #ffffff), #ffffff 42%, var(--panel-soft));
  border: 1px solid color-mix(in srgb, var(--preview-primary) 20%, var(--line));
  box-shadow:
    inset 0 6px 0 var(--preview-primary),
    var(--shadow);
}

.website-mini-preview nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.website-mini-logo {
  width: 58px;
  height: 58px;
  min-width: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: color-mix(in srgb, var(--preview-primary) 12%, #ffffff);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--preview-accent) 62%, #ffffff),
    0 14px 30px color-mix(in srgb, var(--preview-primary) 20%, transparent);
}

.website-mini-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.website-mini-title {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.website-mini-title strong {
  font-size: 18px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.website-mini-title small {
  color: color-mix(in srgb, var(--preview-primary) 78%, var(--preview-dark));
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.website-mini-preview h3 {
  font-size: 34px;
  line-height: 1.02;
}

.website-mini-preview p {
  color: var(--muted);
}

.website-mini-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.deck-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.deck-source-card {
  min-height: 136px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, var(--panel-soft));
}

.deck-source-card span {
  color: var(--preview-primary);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.deck-source-card p,
.deck-helper-text {
  color: var(--muted);
  font-size: 13px;
}

.deck-lock-progress {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.deck-lock-progress > span {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e1ebe7;
}

.deck-lock-progress b {
  display: block;
  width: var(--deck-ready);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--preview-primary), var(--preview-accent));
}

.deck-missing-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.deck-missing-list span {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--panel-soft);
  font-size: 12px;
  font-weight: 850;
}

.website-link-card {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, var(--panel-soft));
}

.website-link-card span {
  color: var(--preview-primary);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.website-link-card > a {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.website-link-card .button-row {
  margin-top: 2px;
}

.website-link-card .primary-button,
.website-link-card .secondary-button {
  text-decoration: none;
}

.bio-builder-section {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.mini-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.mini-section-heading h3 {
  margin: 0;
  font-size: 18px;
}

.mini-section-heading p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.bio-template-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.bio-template-card {
  min-height: 122px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

.bio-template-card.selected {
  border-color: color-mix(in srgb, var(--preview-primary) 62%, #ffffff);
  background: linear-gradient(180deg, color-mix(in srgb, var(--preview-primary) 8%, #ffffff), #ffffff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--preview-primary) 42%, #ffffff);
}

.bio-template-card span {
  font-size: 14px;
  font-weight: 950;
}

.bio-template-card small {
  color: var(--muted);
  line-height: 1.45;
}

.bio-link-editor {
  display: grid;
  gap: 10px;
}

.bio-link-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.bio-link-row .field {
  margin: 0;
}

.bio-generator-simple {
  display: grid;
  gap: 18px;
}

.bio-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.56fr);
  gap: 18px;
  align-items: start;
}

.bio-links-panel .panel-body {
  display: grid;
  gap: 18px;
}

.bio-links-panel .bio-builder-section {
  margin-top: 0;
}

.bio-subdomain-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--preview-primary) 18%, var(--line));
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--preview-primary) 4%, #ffffff));
}

.bio-subdomain-card .field {
  margin: 0;
}

.bio-subdomain-preview {
  display: grid;
  gap: 5px;
}

.bio-subdomain-preview span {
  color: var(--preview-primary);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.bio-subdomain-preview strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.bio-simple-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 4px;
}

.bio-simple-actions .secondary-button {
  text-decoration: none;
}

.bio-public-url {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--preview-primary) 22%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--preview-primary) 5%, #ffffff);
}

.bio-public-url span {
  color: var(--preview-primary);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.bio-public-url a {
  color: var(--ink);
  font-weight: 850;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.bio-preview-panel {
  position: sticky;
  top: 20px;
  display: grid;
  justify-items: center;
}

.bio-preview-phone {
  width: min(100%, 390px);
  min-height: 720px;
  padding: 14px;
  border-radius: 34px;
  background:
    linear-gradient(#101613, #101613) padding-box,
    linear-gradient(150deg, color-mix(in srgb, var(--preview-accent) 78%, #ffffff), var(--preview-primary)) border-box;
  border: 2px solid transparent;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.18);
}

.bio-preview-card {
  min-height: 690px;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 12px;
  padding: 34px 24px;
  overflow: hidden;
  border-radius: 25px;
  color: var(--preview-dark);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--preview-accent) 36%, transparent), transparent 34%),
    linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--preview-primary) 5%, #ffffff));
}

.bio-preview-logo {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--preview-primary) 18%, #ffffff),
    0 14px 34px color-mix(in srgb, var(--preview-primary) 22%, transparent);
}

.bio-preview-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 8px;
}

.bio-preview-card > strong {
  max-width: 100%;
  font-size: 30px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.bio-preview-card > small {
  color: color-mix(in srgb, var(--preview-primary) 72%, var(--preview-dark));
  font-size: 12px;
  font-weight: 950;
}

.bio-preview-card h3 {
  max-width: 100%;
  margin: 10px 0 0;
  font-size: 26px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.bio-preview-card p {
  max-width: 280px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.bio-preview-links {
  width: 100%;
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.bio-preview-links span {
  width: 100%;
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 12px 16px;
  border: 1px solid color-mix(in srgb, var(--preview-primary) 14%, var(--line));
  border-radius: 999px;
  color: var(--preview-dark);
  background: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 900;
  overflow-wrap: anywhere;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.bio-preview-links span.featured {
  border-color: transparent;
  background: var(--preview-accent);
}

.option-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

.status-banner {
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--teal-dark);
  background: #e6f3f0;
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 750;
}

.status-banner small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.progress-track {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(18, 130, 116, 0.18);
  box-shadow: inset 0 0 0 1px rgba(18, 130, 116, 0.12);
}

.progress-track span {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transition: width 0.35s ease;
}

.task-progress {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  width: min(390px, calc(100vw - 32px));
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.task-progress.show {
  opacity: 1;
  transform: translateY(0);
}

.task-progress-card {
  padding: 15px;
  border: 1px solid rgba(18, 130, 116, 0.22);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(21, 26, 23, 0.18);
  backdrop-filter: blur(10px);
  display: grid;
  gap: 10px;
}

.task-progress-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.task-progress-header span {
  color: var(--teal);
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.task-progress-header strong {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  line-height: 1.2;
}

.task-progress-header b {
  color: var(--teal-dark);
  font-size: 22px;
  line-height: 1;
}

.task-progress-bar {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(18, 130, 116, 0.16);
  box-shadow: inset 0 0 0 1px rgba(18, 130, 116, 0.12);
}

.task-progress-bar span {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transition: width 0.35s ease;
}

.task-progress-card p,
.task-progress-card small {
  margin: 0;
}

.task-progress-card p {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.task-progress-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.logo-preview {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  overflow: hidden;
}

.logo-preview svg {
  width: 100%;
  height: 100%;
  display: block;
}

.logo-preview img,
.mini-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.brand-copy strong {
  display: block;
  font-size: 22px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.tagline {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.swatch-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.swatch {
  min-width: 86px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px;
  color: var(--muted);
  background: #ffffff;
  font-size: 12px;
}

.swatch span {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  flex: 0 0 auto;
}

.business-card {
  position: relative;
  min-height: 206px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 20px;
  color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--preview-primary, #0f766e), var(--preview-dark, #111827));
}

.business-card::after {
  content: "";
  position: absolute;
  inset: auto -142px -122px auto;
  width: 200px;
  height: 200px;
  background: var(--preview-accent, #f3c742);
  border-radius: 50%;
  opacity: 0.95;
}

.card-top,
.card-tagline,
.card-bottom {
  position: relative;
  z-index: 1;
}

.card-top,
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.card-tagline {
  max-width: 70%;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.1;
}

.card-name {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.card-bottom > div:last-child {
  display: grid;
  gap: 3px;
  justify-items: end;
  max-width: 52%;
  min-width: 0;
  text-align: right;
}

.card-name strong {
  font-size: 20px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.card-name span,
.card-bottom span {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.mini-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--preview-dark, #111827);
  background: var(--preview-accent, #f3c742);
  font-weight: 900;
}

.invoice-card {
  display: grid;
  gap: 14px;
}

.invoice-page {
  display: grid;
  gap: 18px;
}

.invoice-home-summary {
  min-height: 180px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(135deg, var(--preview-primary), var(--preview-dark)),
    var(--preview-dark);
}

.invoice-home-summary span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.invoice-home-summary strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  line-height: 1;
}

.invoice-home-summary p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
}

.invoice-page {
  width: 100%;
  max-width: 1180px;
  display: grid;
  gap: 18px;
  margin: 0 auto;
}

.invoice-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(120deg, var(--preview-primary), var(--preview-dark)),
    var(--preview-dark);
  box-shadow: var(--shadow);
}

.invoice-command h2 {
  margin-top: 4px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.invoice-command p,
.invoice-command .date-label {
  color: rgba(255, 255, 255, 0.76);
}

.invoice-command-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.invoice-command .status-pill {
  color: var(--preview-dark);
  background: var(--preview-accent);
}

.invoice-command .primary-button {
  color: var(--preview-dark);
  background: var(--preview-accent);
  border-color: rgba(255, 255, 255, 0.24);
}

.invoice-studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.invoice-editor-panel {
  position: static;
}

.invoice-editor-section {
  display: grid;
  gap: 12px;
}

.invoice-editor-section .inline-actions {
  justify-content: space-between;
}

.invoice-editor-section .table-wrap {
  overflow-x: auto;
}

.invoice-editor-section table {
  min-width: 760px;
  table-layout: fixed;
}

.invoice-editor-section th:nth-child(2),
.invoice-editor-section td:nth-child(2) {
  width: 110px;
}

.invoice-editor-section th:nth-child(3),
.invoice-editor-section td:nth-child(3) {
  width: 150px;
}

.invoice-editor-section th:nth-child(4),
.invoice-editor-section td:nth-child(4) {
  width: 170px;
}

.invoice-editor-section th:nth-child(5),
.invoice-editor-section td:nth-child(5) {
  width: 58px;
}

.invoice-side {
  display: grid;
  gap: 0;
}

.invoice-brand-panel {
  display: none;
  gap: 14px;
  padding: 16px;
}

.brand-mini-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.brand-mini-row strong {
  display: block;
  line-height: 1.15;
}

.brand-mini-row span,
.invoice-client-mini span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.invoice-client-mini {
  display: grid;
  gap: 3px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.invoice-client-mini strong {
  overflow-wrap: anywhere;
}

.invoice-paper-wrap {
  padding: clamp(18px, 3vw, 36px);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(243, 199, 66, 0.12)),
    #edf1ef;
  overflow-x: auto;
}

.invoice-paper {
  position: relative;
  width: min(100%, 900px);
  margin: 0 auto;
  gap: 26px;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.14);
  overflow: hidden;
}

.invoice-paper-accent {
  display: none;
}

.invoice-paper-top {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
}

.invoice-paper-brand {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-width: 0;
}

.invoice-logo {
  width: 86px;
  border-radius: 8px;
}

.invoice-paper-brand strong {
  display: block;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.invoice-paper-brand span,
.invoice-paper-title strong,
.invoice-paper-meta span,
.invoice-paper-footer span {
  display: block;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.4;
}

.invoice-paper-title {
  text-align: right;
}

.invoice-paper-title span {
  display: block;
  color: var(--preview-primary);
  font-size: clamp(34px, 3.8vw, 46px);
  font-weight: 900;
  line-height: 1;
}

.invoice-paper-title strong {
  margin-top: 7px;
}

.invoice-paper-meta {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(92px, 0.6fr) minmax(92px, 0.6fr);
  gap: 28px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.invoice-paper-meta strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.invoice-paper-meta p {
  margin-top: 14px;
  font-size: 18px;
}

.invoice-paper-meta > div:not(:first-child) strong {
  white-space: nowrap;
}

.invoice-paper .table-wrap {
  overflow: visible;
  border-color: var(--line);
  border-radius: 10px;
}

.invoice-paper table {
  min-width: 0;
}

.invoice-paper th {
  color: #ffffff;
  background: var(--preview-dark);
  font-size: 14px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.invoice-paper td {
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 18px;
}

.invoice-paper .totals {
  width: min(100%, 50%);
  padding: 22px 26px;
  border-radius: 10px;
  background: var(--panel-soft);
  margin-top: 22px;
}

.invoice-paper .total-row {
  font-size: 18px;
}

.invoice-paper .total-row.grand {
  margin-top: 10px;
  padding-top: 14px;
  border-top-color: var(--preview-accent);
  font-size: 26px;
}

.invoice-paper-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 30px;
  border-radius: 10px;
  color: #ffffff;
  background: var(--preview-primary);
}

.invoice-paper-total span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

.invoice-paper-total strong {
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1;
}

.invoice-paper-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding-top: 28px;
  border-top: 2px solid var(--preview-accent);
}

.invoice-paper-footer p {
  margin-top: 12px;
  font-size: 18px;
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.invoice-title {
  font-weight: 850;
  font-size: 22px;
  line-height: 1;
}

.invoice-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0;
  background: var(--panel-soft);
}

tr:last-child td {
  border-bottom: 0;
}

td.amount,
th.amount {
  text-align: right;
}

.table-input {
  width: 100%;
  min-width: 74px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 7px;
  background: transparent;
  direction: ltr;
  text-align: left;
  unicode-bidi: normal;
}

.table-input[type="number"] {
  appearance: textfield;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.table-input[type="number"]::-webkit-inner-spin-button,
.table-input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.invoice-editor-section .table-input:hover {
  border-color: var(--line);
  background: #ffffff;
}

.table-input:focus {
  border-color: var(--teal);
  background: #ffffff;
  outline: none;
}

.totals {
  display: grid;
  gap: 8px;
  max-width: 300px;
  margin-left: auto;
}

.total-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
}

.total-row.grand {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.checklist {
  display: grid;
  gap: 10px;
}

.check-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.check-box {
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #ffffff;
}

.check-item.done .check-box {
  background: var(--success);
  border-color: var(--success);
}

.check-box svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.check-item strong {
  display: block;
  font-size: 13px;
  line-height: 1.2;
}

.check-item span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.client-list {
  display: grid;
  gap: 10px;
}

.client-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.client-row strong {
  display: block;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.client-row span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.essentials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.essential-card {
  min-height: 132px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.essential-card h3 {
  margin-bottom: 7px;
}

.essential-card p {
  font-size: 13px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 44px));
  padding: 12px 14px;
  color: #ffffff;
  background: #151a17;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
  font-size: 13px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.empty-state {
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 26px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
}

.contracts-page {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.contract-command {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(20px, 4vw, 34px);
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(120deg, rgba(21, 26, 23, 0.94), rgba(15, 118, 110, 0.92)),
    var(--preview-dark);
  box-shadow: var(--shadow);
}

.contract-command h2 {
  margin-top: 5px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
}

.contract-command p,
.contract-command .date-label {
  color: rgba(255, 255, 255, 0.76);
}

.contract-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 18px;
  align-items: start;
}

.contract-side {
  position: static;
  align-self: stretch;
}

.contract-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contract-type-card {
  min-height: 150px;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  text-align: left;
}

.contract-type-card:hover,
.contract-type-card.selected {
  border-color: var(--preview-primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.contract-type-card span {
  width: fit-content;
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--preview-dark);
  background: var(--preview-accent);
  font-size: 11px;
  font-weight: 950;
}

.contract-type-card strong {
  font-size: 16px;
  line-height: 1.2;
}

.contract-type-card p {
  font-size: 13px;
  line-height: 1.45;
}

.contract-preview-panel {
  overflow: hidden;
}

.contract-preview-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(21, 26, 23, 0.96), rgba(15, 118, 110, 0.86)),
    var(--preview-dark);
}

.contract-preview-top {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.contract-preview-top span {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 850;
}

.contract-preview-top strong {
  display: block;
  margin-top: 3px;
  font-size: 21px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.contract-party-card {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.contract-party-card span,
.contract-term-summary span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.contract-party-card strong,
.contract-term-summary strong {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.contract-party-card b {
  color: var(--preview-accent);
  font-size: 12px;
  text-transform: uppercase;
}

.contract-term-summary {
  display: grid;
  grid-template-columns: minmax(90px, auto) minmax(0, 1fr);
  gap: 9px 12px;
  align-items: baseline;
}

.saved-contract-list {
  display: grid;
  gap: 10px;
}

.saved-contract-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.saved-contract-card span,
.saved-contract-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.saved-contract-card span {
  text-transform: uppercase;
}

.saved-contract-card strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.saved-contract-card small {
  margin-top: 5px;
  font-weight: 700;
}

.business-plan-page {
  display: grid;
  gap: 18px;
}

.business-plan-board {
  display: grid;
  grid-template-columns: 282px minmax(520px, 1fr) 330px;
  gap: 16px;
  align-items: start;
}

.business-plan-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(21, 26, 23, 0.08);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f3f8f6 100%);
  box-shadow: 0 14px 34px rgba(21, 26, 23, 0.06);
}

.business-plan-topbar > div:first-child {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.business-plan-topbar h2 {
  grid-column: 2;
  margin: 0;
  color: var(--ink);
  font-size: 25px;
  line-height: 1.12;
  letter-spacing: 0;
}

.business-plan-topbar p {
  grid-column: 2;
  margin: 5px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.45;
}

.plan-top-logo {
  width: 58px;
  height: 58px;
  grid-row: 1 / span 2;
  color: #ffffff;
  background: var(--teal);
  border: 1px solid rgba(15, 118, 110, 0.22);
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.16);
}

.plan-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.plan-top-actions span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.plan-section-map {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 8px;
  color: #ffffff;
  background: #111815;
  box-shadow: 0 18px 42px rgba(21, 26, 23, 0.12);
}

.section-map-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 12px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 850;
}

.section-map-header strong {
  color: #ffffff;
}

.plan-section-chip {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
  box-shadow: none;
}

.plan-section-chip.active {
  border-color: rgba(243, 199, 66, 0.48);
  background: rgba(15, 118, 110, 0.45);
}

.plan-section-chip i {
  width: 30px;
  height: 30px;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #111815;
  background: var(--yellow);
  font-style: normal;
  font-size: 13px;
  font-weight: 950;
}

.plan-section-chip span,
.plan-section-chip b {
  font-size: 13px;
  font-weight: 900;
}

.plan-section-chip small {
  grid-column: 2;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 750;
}

.plan-section-chip b {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--yellow);
}

.plan-question-zone {
  display: grid;
  gap: 16px;
}

.plan-question-card {
  min-height: 0;
  padding: 22px;
  border: 1px solid rgba(21, 26, 23, 0.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(21, 26, 23, 0.08);
}

.plan-question-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.plan-question-top em {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 8px 2px;
  border-radius: 999px;
  background: var(--yellow);
}

.plan-question-top strong {
  color: var(--teal);
}

.plan-mini-progress {
  height: 7px;
  margin: 14px 0 24px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
}

.plan-mini-progress span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--yellow));
  transition: width 0.28s ease;
}

.plan-question-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 94px;
  gap: 20px;
  align-items: start;
}

.plan-question-copy h2 {
  max-width: 760px;
  margin: 0;
  font-size: 38px;
  line-height: 1.06;
  letter-spacing: 0;
}

.plan-question-copy p {
  max-width: 780px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.plan-question-symbol {
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--teal);
  background: #edf7f4;
  border: 1px solid rgba(15, 118, 110, 0.14);
}

.plan-question-symbol svg {
  width: 38px;
  height: 38px;
  stroke-width: 2.2;
}

.plan-answer-field {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}

.plan-answer-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.plan-answer-field input,
.plan-answer-field select,
.plan-answer-field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 16px 18px;
  color: var(--ink);
  background: #fbfcfa;
  outline: none;
  font-size: 16px;
  font-weight: 750;
}

.plan-answer-field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.55;
}

.plan-answer-field small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.plan-input-wrap {
  position: relative;
}

.plan-input-wrap.has-addon input {
  padding-right: 92px;
}

.plan-input-wrap strong {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--teal-dark);
  background: #e6f3f0;
  font-size: 12px;
  font-weight: 950;
  pointer-events: none;
}

.plan-answer-field input:focus,
.plan-answer-field select:focus,
.plan-answer-field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.plan-ai-suggestion {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #f3faf7 0%, #ffffff 100%);
}

.plan-ai-suggestion.loading {
  border-style: dashed;
}

.plan-ai-suggestion strong,
.plan-ai-suggestion p,
.plan-ai-suggestion small {
  display: block;
}

.plan-ai-suggestion strong {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.plan-ai-suggestion p {
  margin: 7px 0 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.55;
  white-space: pre-line;
}

.plan-ai-suggestion small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.45;
}

.plan-question-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.plan-financial-preview,
.plan-progress-panel,
.plan-snapshot-panel,
.plan-pdf-panel {
  border: 1px solid rgba(21, 26, 23, 0.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(21, 26, 23, 0.06);
}

.plan-financial-preview {
  padding: 18px;
}

.plan-preview-header,
.plan-preview-body {
  display: flex;
  gap: 16px;
}

.plan-preview-header {
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.plan-preview-header strong,
.plan-progress-panel h3,
.plan-snapshot-panel h3,
.plan-pdf-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
}

.plan-preview-header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.plan-mini-chart {
  min-height: 160px;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: end;
  padding: 18px;
  border-radius: 8px;
  background: #f7faf8;
}

.plan-chart-year {
  height: 126px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 5px;
  position: relative;
}

.plan-chart-year > span {
  display: block;
  min-height: 8px;
  border-radius: 8px 8px 2px 2px;
}

.plan-chart-year .revenue {
  background: var(--teal);
}

.plan-chart-year .expense {
  background: #94a39d;
}

.plan-chart-year .profit {
  background: var(--yellow);
}

.plan-chart-year small {
  position: absolute;
  bottom: -24px;
  left: 0;
  right: 0;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
  font-weight: 900;
}

.plan-preview-metrics {
  width: 240px;
  display: grid;
  gap: 8px;
}

.plan-preview-metric {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.plan-preview-metric span,
.plan-preview-metric strong {
  display: block;
}

.plan-preview-metric span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.plan-preview-metric strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
}

.plan-command-rail {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 12px;
}

.plan-progress-panel,
.plan-snapshot-panel,
.plan-pdf-panel {
  padding: 16px;
}

.plan-progress-panel {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.plan-progress-ring {
  width: 134px;
  height: 134px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 0 57%, transparent 58%),
    conic-gradient(var(--teal) var(--plan-percent), rgba(15, 118, 110, 0.12) 0);
}

.plan-progress-ring strong {
  color: var(--ink);
  font-size: 32px;
  font-weight: 950;
}

.plan-progress-list {
  width: 100%;
  display: grid;
  gap: 8px;
}

.plan-progress-list span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.plan-progress-list b {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
}

.plan-snapshot-panel {
  display: grid;
  gap: 10px;
}

.plan-snapshot-row {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.plan-snapshot-row:first-of-type {
  border-top: 0;
}

.plan-snapshot-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.plan-snapshot-row strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.plan-pdf-panel {
  display: grid;
  gap: 10px;
  color: #ffffff;
  background: #111815;
  border-color: rgba(255, 255, 255, 0.08);
}

.plan-pdf-panel > div:first-child > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #111815;
  background: var(--yellow);
}

.plan-pdf-panel h3 {
  margin-top: 12px;
  color: #ffffff;
  font-size: 22px;
}

.plan-pdf-panel p,
.plan-pdf-panel small {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.5;
}

.plan-pdf-panel .status-banner {
  color: #dff6ef;
  background: rgba(15, 118, 110, 0.22);
}

.plan-pdf-panel .ghost-button {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 1040px) {
  .app-shell {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .brand-lockup div:not(.brand-mark),
  .nav-button span,
  .sidebar-note {
    display: none;
  }

  .sidebar {
    align-items: center;
    padding-inline: 12px;
  }

  .nav-button {
    justify-content: center;
    width: 48px;
    height: 44px;
    padding: 0;
  }

  .dashboard-grid,
  .two-grid,
  .three-grid,
  .profile-grid,
  .brand-workspace,
  .invoice-studio,
  .business-plan-board,
  .contract-workspace,
  .social-workspace,
  .generator-workspace {
    grid-template-columns: 1fr;
  }

  .invoice-editor-panel {
    position: static;
  }

  .profile-side {
    position: static;
  }

  .contract-side {
    position: static;
  }

  .social-creative-grid {
    grid-template-columns: 1fr;
  }

  .plan-section-map {
    position: static;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px;
    scroll-snap-type: x proximity;
  }

  .section-map-header {
    min-width: 150px;
    align-items: center;
    padding: 8px 10px;
  }

  .plan-section-chip {
    min-width: 220px;
    scroll-snap-align: start;
  }

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

@media (min-width: 721px) {
  .app-shell {
    display: block;
    min-height: 100vh;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 80;
    width: 264px;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    overflow-y: auto;
  }

  .content-shell {
    margin-left: 264px;
    min-height: 100vh;
  }
}

@media (min-width: 721px) and (max-width: 1040px) {
  .sidebar {
    width: 88px;
  }

  .content-shell {
    margin-left: 88px;
  }
}

@media (max-width: 960px) {
  .bio-editor-grid {
    grid-template-columns: 1fr;
  }

  .bio-preview-panel {
    position: static;
  }

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

  .bio-link-row {
    grid-template-columns: 1fr;
  }

  .bio-link-row .icon-button {
    width: 100%;
  }

  .invoice-paper {
    padding: 32px 28px;
  }

  .invoice-paper-brand strong {
    font-size: 30px;
  }

  .invoice-paper-title span {
    font-size: 38px;
  }

  .invoice-paper-meta {
    grid-template-columns: minmax(0, 1fr) minmax(120px, auto) minmax(120px, auto);
    gap: 18px;
    padding: 22px 24px;
  }

  .invoice-paper-meta strong {
    font-size: 20px;
  }

  .invoice-paper td {
    font-size: 16px;
  }
}

@media (max-width: 720px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    min-height: 0;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    padding: 12px;
  }

  .brand-lockup div:not(.brand-mark) {
    display: none;
  }

  .side-nav {
    display: flex;
    flex: 1 0 auto;
    justify-content: space-between;
    min-width: max-content;
  }

  .nav-button span {
    display: none;
  }

  .nav-button {
    width: 42px;
    height: 42px;
  }

  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    white-space: normal;
  }

  .task-progress {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .form-grid,
  .deck-source-grid,
  .essentials-grid {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-score {
    width: 100%;
    min-width: 0;
  }

  .brand-command {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .business-plan-topbar,
  .business-plan-topbar > div:first-child,
  .plan-top-actions,
  .plan-question-main,
  .plan-preview-body {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .business-plan-topbar h2 {
    grid-column: auto;
    font-size: 24px;
  }

  .business-plan-topbar p {
    grid-column: auto;
  }

  .plan-top-logo {
    grid-row: auto;
  }

  .plan-command-rail {
    position: static;
  }

  .plan-preview-metrics {
    width: 100%;
  }

  .segmented-control,
  .logo-option-grid,
  .card-option-grid,
  .identity-preview-grid,
  .letterhead-option-grid {
    grid-template-columns: 1fr;
  }

  .card-generator-brief,
  .identity-suite-brief {
    align-items: flex-start;
    flex-direction: column;
  }

  .plan-question-copy h2 {
    font-size: 26px;
  }

  .plan-question-actions {
    flex-direction: column;
  }

  .plan-ai-suggestion {
    flex-direction: column;
  }

  .brand-preview.large,
  .brand-preview {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .card-tagline {
    max-width: none;
    font-size: 17px;
  }

  .invoice-command {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .invoice-command-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .invoice-side {
    min-width: 0;
  }

  .brand-preview {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .business-card {
    min-height: 230px;
  }

  .invoice-header,
  .invoice-paper-top,
  .invoice-paper-footer,
  .card-top,
  .card-bottom {
    flex-direction: column;
  }

  .invoice-paper-meta {
    grid-template-columns: 1fr;
  }

  .invoice-paper {
    width: 100%;
    min-width: 0;
    padding: 22px 16px;
  }

  .invoice-paper-wrap {
    overflow-x: hidden;
  }

  .invoice-paper-brand {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
  }

  .invoice-logo {
    width: 64px;
  }

  .invoice-paper-brand strong {
    font-size: 24px;
    word-break: break-word;
  }

  .invoice-paper-brand span,
  .invoice-paper-title strong,
  .invoice-paper-meta span,
  .invoice-paper-footer span {
    font-size: 13px;
  }

  .invoice-paper table {
    width: 100%;
    font-size: 12px;
    table-layout: fixed;
  }

  .invoice-paper th,
  .invoice-paper td {
    padding: 9px 6px;
    font-size: 12px;
  }

  .invoice-paper th {
    font-size: 9px;
  }

  .invoice-paper th:nth-child(1),
  .invoice-paper td:nth-child(1) {
    width: 38%;
  }

  .invoice-paper th:nth-child(2),
  .invoice-paper td:nth-child(2) {
    width: 11%;
  }

  .invoice-paper th:nth-child(3),
  .invoice-paper td:nth-child(3) {
    width: 23%;
  }

  .invoice-paper th:nth-child(4),
  .invoice-paper td:nth-child(4) {
    width: 28%;
  }

  .invoice-paper td:nth-child(1) {
    overflow-wrap: anywhere;
  }

  .invoice-paper td:nth-child(3),
  .invoice-paper td:nth-child(4) {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

  .invoice-paper-title {
    text-align: left;
  }

  .invoice-paper-title span {
    font-size: 30px;
  }

  .invoice-paper-meta {
    gap: 18px;
    padding: 18px;
  }

  .invoice-paper-meta strong {
    font-size: 20px;
  }

  .invoice-paper-meta p,
  .invoice-paper-footer p {
    font-size: 14px;
  }

  .invoice-paper .totals {
    width: 100%;
    padding: 16px;
  }

  .invoice-paper-total,
  .invoice-paper-footer {
    grid-template-columns: 1fr;
  }

  .invoice-paper-total {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .invoice-paper-total strong {
    font-size: 30px;
  }

  .invoice-meta {
    text-align: left;
  }
}

@media (max-width: 720px) {
  :root {
    --shadow: 0 10px 28px rgba(17, 24, 39, 0.07);
  }

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .app-shell {
    display: block;
    min-height: 100svh;
  }

  .sidebar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 60;
    height: auto;
    min-height: 0;
    display: block;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    overflow-x: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 0;
    box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.18);
  }

  .brand-lockup,
  .sidebar-note {
    display: none;
  }

  .side-nav {
    display: flex;
    width: 100%;
    min-width: 0;
    gap: 6px;
    justify-content: space-between;
  }

  .nav-button {
    width: auto;
    min-width: 46px;
    height: 50px;
    flex: 1 1 0;
    justify-content: center;
    padding: 0;
    border-radius: 8px;
  }

  .nav-button.active {
    box-shadow: inset 0 3px 0 var(--yellow);
  }

  .nav-button svg {
    width: 20px;
    height: 20px;
  }

  .content-shell {
    display: block;
    min-width: 0;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    min-height: 0;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(245, 246, 247, 0.96);
  }

  .topbar h1 {
    font-size: 26px;
    line-height: 1.06;
  }

  .date-label {
    font-size: 12px;
  }

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

  .bio-preview-phone {
    width: min(100%, 370px);
    min-height: 660px;
  }

  .bio-preview-card {
    min-height: 630px;
    padding: 28px 18px;
  }

  .mini-section-heading {
    display: grid;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    width: 100%;
    gap: 8px;
    overflow: hidden;
    padding-bottom: 2px;
  }

  .topbar-actions .icon-button {
    grid-column: 1;
  }

  .topbar-actions .primary-button {
    grid-column: 2;
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .icon-button {
    width: 42px;
    min-width: 42px;
    height: 42px;
  }

  .main-area {
    padding: 14px 12px 22px;
  }

  .panel-header,
  .panel-body,
  .plan-financial-preview,
  .plan-progress-panel,
  .plan-snapshot-panel,
  .plan-pdf-panel {
    padding: 14px;
  }

  .panel-header {
    flex-direction: column;
    align-items: stretch;
  }

  .button-row,
  .inline-actions,
  .option-actions,
  .invoice-command-actions,
  .plan-top-actions {
    width: 100%;
    gap: 8px;
  }

  .button-row > button,
  .inline-actions > button,
  .option-actions > button,
  .invoice-command-actions > button,
  .plan-top-actions > button,
  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
    min-height: 44px;
  }

  .compact {
    min-height: 40px;
  }

  .status-pill {
    min-height: 28px;
  }

  .dashboard-grid,
  .two-grid,
  .three-grid,
  .form-grid,
  .deck-source-grid,
  .essentials-grid,
  .profile-grid,
  .brand-workspace,
  .invoice-studio,
  .contract-workspace,
  .social-workspace,
  .generator-workspace,
  .business-plan-board,
  .identity-preview-grid,
  .logo-option-grid,
  .card-option-grid,
  .letterhead-option-grid,
  .social-creative-grid,
  .contract-type-grid,
  .asset-list {
    grid-template-columns: 1fr !important;
  }

  .field input,
  .field select,
  .field textarea,
  .plan-answer-field input,
  .plan-answer-field select,
  .plan-answer-field textarea,
  .table-input {
    min-height: 44px;
    font-size: 16px;
  }

  .field textarea,
  .plan-answer-field textarea {
    min-height: 118px;
  }

  .profile-hero,
  .brand-command,
  .invoice-command,
  .contract-command,
  .social-command,
  .generator-command {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }

  .profile-hero h2,
  .brand-command h2,
  .invoice-command h2,
  .contract-command h2,
  .social-command h2,
  .generator-command h2 {
    font-size: 32px;
    line-height: 1.06;
  }

  .profile-score {
    width: 100%;
    min-width: 0;
    padding: 14px;
  }

  .profile-side,
  .plan-command-rail,
  .contract-side,
  .social-side,
  .generator-side,
  .plan-section-map {
    position: static;
  }

  .brand-preview,
  .brand-preview.large {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .card-generator-brief,
  .identity-suite-brief,
  .social-brief,
  .plan-ai-suggestion,
  .plan-preview-body {
    flex-direction: column;
    align-items: stretch;
  }

  .card-preview-frame,
  .letterhead-preview-frame,
  .identity-preview-card {
    min-width: 0;
  }

  .task-progress {
    left: 10px;
    right: 10px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    width: auto;
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    max-width: none;
  }

  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 560px;
  }

  .invoice-paper-wrap {
    padding: 10px;
    overflow-x: hidden;
  }

  .invoice-paper {
    padding: 18px 12px;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.1);
  }

  .invoice-paper-top,
  .invoice-paper-footer,
  .invoice-paper-total {
    gap: 12px;
  }

  .invoice-paper-brand {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .invoice-logo {
    width: 52px;
  }

  .invoice-paper-brand strong {
    font-size: 22px;
  }

  .invoice-paper-title span {
    font-size: 28px;
  }

  .invoice-paper-meta {
    gap: 12px;
    padding: 14px;
  }

  .invoice-paper .table-wrap {
    overflow-x: auto;
  }

  .invoice-paper table {
    min-width: 520px;
    table-layout: fixed;
  }

  .invoice-paper .totals {
    width: 100%;
    max-width: none;
    margin-left: 0;
  }

  .invoice-paper-total strong {
    font-size: 28px;
  }

  .business-plan-topbar {
    padding: 14px;
  }

  .business-plan-topbar > div:first-child {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
  }

  .business-plan-topbar h2 {
    grid-column: 2;
    align-self: center;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .business-plan-topbar p {
    grid-column: 1 / -1;
    max-width: none;
    margin-top: 2px;
  }

  .plan-top-logo {
    width: 48px;
    height: 48px;
    grid-row: auto;
  }

  .plan-top-actions {
    flex-direction: row;
    overflow-x: auto;
    align-items: stretch;
  }

  .plan-top-actions .primary-button,
  .plan-top-actions .secondary-button,
  .plan-top-actions .ghost-button {
    flex: 1 0 auto;
    width: auto;
  }

  .plan-section-map {
    display: flex;
    margin-inline: -12px;
    padding: 10px 12px;
    border-radius: 0;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .section-map-header {
    min-width: 130px;
  }

  .plan-section-chip {
    min-width: 188px;
    padding: 9px;
  }

  .plan-question-card {
    padding: 16px;
  }

  .plan-question-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .plan-question-copy h2 {
    font-size: 27px;
    line-height: 1.08;
  }

  .plan-question-copy p {
    font-size: 14px;
    line-height: 1.5;
  }

  .plan-question-symbol {
    display: none;
  }

  .plan-question-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .plan-mini-chart {
    min-height: 136px;
    gap: 10px;
    padding: 12px;
    overflow: hidden;
  }

  .plan-preview-metrics {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-progress-ring {
    width: 112px;
    height: 112px;
  }

  .plan-pdf-panel .primary-button,
  .plan-pdf-panel .secondary-button,
  .plan-pdf-panel .ghost-button {
    width: 100%;
  }

  .saved-contract-card {
    grid-template-columns: 1fr;
  }

  .saved-contract-card .secondary-button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .topbar h1 {
    font-size: 24px;
  }

  .nav-button {
    min-width: 42px;
  }

  .profile-hero h2,
  .brand-command h2,
  .invoice-command h2,
  .contract-command h2,
  .social-command h2,
  .generator-command h2 {
    font-size: 28px;
  }

  .plan-question-copy h2 {
    font-size: 24px;
  }

  .plan-preview-metrics {
    grid-template-columns: 1fr;
  }

  .invoice-paper {
    padding-inline: 10px;
  }
}

@media (max-width: 720px) and (orientation: landscape) {
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  .nav-button {
    height: 44px;
  }

  .task-progress,
  .toast {
    bottom: calc(70px + env(safe-area-inset-bottom));
  }
}

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