:root {
  color-scheme: light;
  --ink: #1c232b;
  --muted: #626c78;
  --faint: #87919e;
  --line: #d8dee5;
  --line-strong: #a5adb8;
  --canvas: #e9edf1;
  --field: #f6f8fa;
  --accent: #111820;
  --accent-dark: #050608;
  --blue: #2a5db0;
  --danger: #9f1d20;
  --shadow: 0 26px 80px rgba(28, 35, 43, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(17, 24, 32, 0.06), transparent 34%),
    linear-gradient(180deg, #faf8f1 0%, var(--canvas) 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: var(--blue);
}

button,
input,
textarea {
  font: inherit;
}

.businesswiki {
  display: grid;
  gap: clamp(22px, 4vw, 44px);
  width: min(100%, 1500px);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 1120px);
  min-height: 42px;
  margin: 0 auto;
}

.site-nav {
  padding: clamp(18px, 3vw, 34px) clamp(18px, 3vw, 34px) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 780;
  text-decoration: none;
}

.subtle-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.nav-actions form {
  margin: 0;
}

.nav-logout {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.nav-logout:hover,
.subtle-link:hover {
  color: var(--ink);
}

.impersonation-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
  padding: 10px 18px;
  background: #fff1b8;
  border-block: 1px solid #d9b84f;
  color: #45370b;
  font-size: 14px;
}

.impersonation-banner form {
  margin: 0;
}

.impersonation-banner button {
  border: 1px solid #806a20;
  border-radius: 6px;
  padding: 6px 10px;
  background: #fff;
  color: #45370b;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.intro {
  display: grid;
  justify-items: center;
  gap: 16px;
  width: min(100%, 980px);
  margin: 0 auto;
  padding-top: clamp(22px, 5vw, 64px);
  text-align: center;
}

.intro h1 {
  max-width: 940px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 500;
  line-height: 0.98;
}

.preview-panel {
  display: grid;
  gap: 16px;
  justify-items: center;
  min-width: 0;
}

.laptop-preview {
  position: relative;
  width: min(100%, 1120px);
  overflow: hidden;
  padding: 18px 18px 0;
  background: linear-gradient(180deg, #252b32, #151a20);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px 18px 10px 10px;
  box-shadow: var(--shadow);
}

.laptop-preview::after {
  content: "";
  display: block;
  width: calc(100% + 120px);
  height: 20px;
  margin: 0 -60px;
  background: linear-gradient(180deg, #d6dbe2, #aeb6c1);
  border-radius: 0 0 50% 50%;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.75);
}

.camera-dot {
  width: 6px;
  height: 6px;
  margin: 0 auto 10px;
  background: #5d6874;
  border-radius: 50%;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  background: #f2f4f6;
  border-bottom: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d95f59;
}

.browser-bar span:nth-child(2) {
  background: #e4b64d;
}

.browser-bar span:nth-child(3) {
  background: #62ad66;
}

.browser-bar p {
  min-width: 0;
  margin: 0 0 0 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-pill {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 4px 8px;
  color: var(--ink);
  background: #eef0f2;
  border: 1px solid #d4d9df;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
}

.wiki-page {
  height: clamp(480px, 54vw, 680px);
  overflow: auto;
  padding: clamp(22px, 4vw, 48px);
  background: #fff;
  font-family: Georgia, "Times New Roman", serif;
}

.wiki-header {
  border-bottom: 1px solid var(--line-strong);
}

.wiki-header h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.02;
}

.wiki-header > p:last-child {
  max-width: 760px;
  margin: 11px 0 20px;
  color: #444;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.45;
}

.wiki-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 270px);
  gap: clamp(22px, 3vw, 36px);
  padding-top: 20px;
}

.infobox {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  padding: 10px;
  background: #f8f9fa;
  border: 1px solid var(--line-strong);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
}

.portrait {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  margin-bottom: 10px;
  background:
    linear-gradient(135deg, rgba(17, 24, 32, 0.11), rgba(135, 145, 158, 0.16)),
    #e7ece9;
  border: 1px solid #c3c9d0;
}

.portrait img,
.portrait span {
  grid-area: 1 / 1;
}

.portrait img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.portrait span {
  color: var(--accent-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
}

.portrait img:not([hidden]) + span {
  display: none;
}

.portrait img[hidden],
.portrait span[hidden] {
  display: none;
}

.infobox h3 {
  margin: 0 0 10px;
  padding: 7px;
  background: #eef0f2;
  border: 1px solid #d4d9df;
  text-align: center;
}

.infobox dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.infobox dl > div {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 8px;
}

.infobox dl > div[hidden] {
  display: none;
}

.infobox dt {
  font-weight: 800;
}

.infobox dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.article-body {
  grid-column: 1;
  min-width: 0;
}

.contents {
  width: min(100%, 320px);
  margin-bottom: 22px;
  padding: 14px 18px;
  background: #f8f9fa;
  border: 1px solid var(--line-strong);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
}

.contents strong {
  display: block;
  margin-bottom: 7px;
}

.contents ol,
.references-list {
  margin: 0;
  padding-left: 22px;
}

.contents li,
.references-list li {
  margin: 5px 0;
}

.contents .contents-subsection {
  margin-left: 16px;
  list-style-type: lower-alpha;
}

.article-body section {
  margin-top: 24px;
}

.article-body h3 {
  margin: 0 0 9px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 25px;
  font-weight: 400;
}

.article-body p {
  margin: 0;
  font-size: 17px;
  line-height: 1.72;
}

sup {
  color: var(--blue);
  font-size: 11px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
}

th,
td {
  padding: 9px;
  border: 1px solid var(--line-strong);
  text-align: left;
  vertical-align: top;
}

th {
  background: #eaecf0;
}

.references-list {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
}

.builder-panel {
  display: grid;
  gap: 16px;
  width: min(100%, 960px);
  margin: 0 auto clamp(24px, 4vw, 54px);
}

.builder-heading {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.builder-heading h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.18;
}

.builder-heading p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.builder-form {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 16px;
}

.form-block {
  display: grid;
  gap: 13px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(216, 222, 229, 0.92);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(28, 35, 43, 0.05);
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.form-block h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

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

label {
  display: grid;
  gap: 6px;
}

label span,
.source-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.source-count {
  flex: 0 0 auto;
  padding: 5px 9px;
  color: var(--ink);
  background: #eef0f2;
  border: 1px solid #d4d9df;
  border-radius: 999px;
}

input,
textarea {
  width: 100%;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--field);
  border: 1px solid #cdd3db;
  border-radius: 6px;
  outline: none;
}

input {
  min-height: 42px;
}

textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.45;
}

input::placeholder {
  color: var(--faint);
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(17, 24, 32, 0.13);
}

.button {
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid #c7cdd5;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 780;
}

.button-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  white-space: nowrap;
}

.button-google img {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.google-auth-form {
  margin: 0;
}

.google-auth-form .button {
  width: 100%;
}

.button-primary {
  background: #12664f;
  border-color: #12664f;
  color: #fff;
  box-shadow: 0 14px 30px rgba(18, 102, 79, 0.22);
}

.builder-form > .button-primary {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 420px);
  margin-top: 4px;
}

.signup-status {
  grid-column: 1 / -1;
  justify-self: center;
  margin: -2px 0 0;
  color: #12664f;
  font-weight: 800;
  text-align: center;
}

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

.button:disabled {
  color: var(--muted);
  background: #eef0f2;
  border-color: var(--line);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.zigzag {
  display: grid;
  gap: 10px;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 10px 0 4px;
}

.zigzag-heading {
  margin-bottom: 8px;
  text-align: center;
}

.zigzag-heading h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.zigzag-item {
  position: relative;
  width: min(100%, 620px);
  padding: 22px 24px 22px 76px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(216, 222, 229, 0.92);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(28, 35, 43, 0.05);
}

.zigzag-item:nth-child(even) {
  justify-self: end;
}

.zigzag-item::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 120px;
  height: 1px;
  background: var(--line);
}

.zigzag-item:nth-child(odd)::after {
  left: calc(100% + 10px);
}

.zigzag-item:nth-child(even)::after {
  right: calc(100% + 10px);
}

.zigzag-item:last-child::after {
  display: none;
}

.zigzag-item span {
  position: absolute;
  top: 22px;
  left: 24px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 820;
}

.zigzag-item h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.zigzag-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.52;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(28, 35, 43, 0.48);
  backdrop-filter: blur(6px);
}

.modal-backdrop[hidden] {
  display: none;
}

.signup-modal {
  position: relative;
  width: min(100%, 460px);
  padding: 28px;
  background: #fff;
  border: 1px solid #c9d0d9;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
}

.signup-modal h2 {
  margin: 0;
  padding-right: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.1;
}

.signup-modal p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.modal-close:hover {
  color: var(--ink);
  background: #f0f2f4;
}

.modal-google,
.modal-submit {
  width: 100%;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.modal-error {
  margin: 8px 0 12px;
  color: var(--danger);
  font-weight: 700;
}

.modal-submit {
  margin-top: 14px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 28px clamp(18px, 3vw, 34px) 34px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 16px;
}

.site-footer a,
.legal-page a {
  color: var(--ink);
  font-weight: 720;
}

.directory-page {
  display: grid;
  gap: clamp(24px, 4vw, 38px);
  width: min(100%, 1240px);
  min-height: calc(100vh - 190px);
  margin: 0 auto;
  padding: clamp(42px, 8vw, 82px) clamp(20px, 4vw, 42px) 52px;
}

.directory-heading {
  display: grid;
  gap: 10px;
  max-width: 720px;
}

.directory-heading h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 500;
  line-height: 0.98;
}

.directory-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.directory-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 270px));
  gap: 18px;
  align-items: stretch;
  justify-content: center;
}

.directory-card {
  display: block;
  height: 100%;
  color: var(--ink);
  text-decoration: none;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.directory-card:hover,
.directory-card:focus-visible {
  transform: scale(1.035);
  box-shadow: 0 20px 58px rgba(28, 35, 43, 0.16);
  outline: none;
}

.directory-card article {
  display: grid;
  gap: 10px;
  height: 100%;
  padding: 10px;
  background: #f8f9fa;
  border: 1px solid var(--line-strong);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
}

.directory-card-image {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(17, 24, 32, 0.11), rgba(135, 145, 158, 0.16)),
    #e7ece9;
  color: var(--accent-dark);
  border: 1px solid #c3c9d0;
}

.directory-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.directory-card-image span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  line-height: 1;
}

.directory-card h2 {
  margin: 0;
  padding: 7px;
  background: #eef0f2;
  border: 1px solid #d4d9df;
  font-size: 17px;
  line-height: 1.15;
  text-align: center;
}

.directory-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.directory-card dl:empty {
  display: none;
}

.directory-card dt {
  font-weight: 800;
}

.directory-card dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.directory-card dl > div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 8px;
}

.directory-empty {
  display: grid;
  justify-items: start;
  gap: 12px;
  max-width: 520px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.directory-empty h2 {
  margin: 0;
  font-size: 22px;
}

.directory-empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.landing-founders {
  display: grid;
  gap: 22px;
  margin-top: clamp(32px, 6vw, 72px);
}

.landing-pricing {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(420px, 1.3fr);
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
  margin-top: clamp(44px, 8vw, 96px);
  padding: clamp(28px, 4vw, 42px);
  overflow: hidden;
  color: #fff;
  background: #12664f;
  border: 1px solid #12664f;
  border-radius: 8px;
}

.landing-pricing-heading h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 500;
  line-height: 0.9;
}

.landing-pricing-heading h2 strong {
  font-weight: 700;
}

.landing-pricing-heading h2 span {
  color: #d9f5e8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.landing-pricing-heading p {
  max-width: 320px;
  margin: 14px 0 0;
  color: #d8ebe5;
  font-size: 13px;
  line-height: 1.45;
}

.landing-pricing-heading p strong {
  color: #fff;
}

.landing-pricing-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.landing-pricing-features li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 14px 14px 0 0;
}

.landing-pricing-features li + li {
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.landing-pricing-features .landing-pricing-check {
  color: #d9f5e8;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.landing-pricing-features li > span:last-child {
  color: #edf0f2;
  font-size: 12px;
  line-height: 1.4;
}

.landing-founders-heading {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.landing-founders-heading h2 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 500;
  line-height: 1.02;
}

.landing-bottom-cta {
  display: grid;
  justify-items: center;
  margin-top: clamp(24px, 5vw, 52px);
}

.landing-bottom-cta .landing-actions {
  width: min(100%, 560px);
}

.landing-experiment {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 8px clamp(20px, 4vw, 52px) 36px;
}

.landing-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  min-height: calc(100vh - 72px);
  align-items: center;
  gap: clamp(38px, 6vw, 88px);
}

.landing-editor {
  min-width: 0;
  padding: 26px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(216, 222, 229, 0.98);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(28, 35, 43, 0.1);
}

.landing-editor-heading {
  margin-bottom: 22px;
}

.landing-editor-heading h1 {
  max-width: 650px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 500;
  line-height: 1.02;
}

.thin-underline {
  color: var(--ink);
  text-decoration-line: underline;
  text-decoration-color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}

.landing-editor-heading p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.landing-form {
  display: grid;
  gap: 20px;
}

.landing-details,
.landing-sources {
  display: grid;
  gap: 12px;
}

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

.landing-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.landing-section-title h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

.landing-section-title span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.landing-editor label {
  min-width: 0;
}

.landing-editor label span {
  font-size: 12px;
}

.landing-photo-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 8px 10px 8px 12px;
  background: #f8f9fa;
  border: 1px solid #c8d0d8;
  border-radius: 6px;
}

.landing-photo-field > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.landing-photo-field strong {
  font-size: 12px;
}

.landing-photo-field > div span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-photo-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  color: #fff;
  background: var(--accent);
  border-radius: 5px;
  cursor: pointer;
  font-weight: 750;
}

.landing-photo-button:hover {
  background: var(--accent-dark);
}

.landing-photo-button span {
  color: #fff;
}

.landing-photo-button:focus-within {
  box-shadow: 0 0 0 3px rgba(17, 24, 32, 0.14);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.landing-editor input {
  min-height: 42px;
  padding: 9px 11px;
  background: #f8f9fa;
  border-color: #c8d0d8;
  box-shadow: inset 0 1px 1px rgba(28, 35, 43, 0.03);
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.landing-editor input:hover {
  background: #fff;
  border-color: #aab4bf;
}

.landing-editor input:focus {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(17, 24, 32, 0.11);
}

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

.landing-generate,
.landing-demo-link {
  min-height: 48px;
}

.landing-generate.button-primary {
  background: #2f7d56;
  border-color: #2f7d56;
}

.landing-generate.button-primary:hover {
  background: #256545;
  border-color: #256545;
}

.landing-demo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

.landing-demo-link:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.mobile-preview-stage {
  display: grid;
  min-width: 0;
  place-items: center;
}

.phone-preview {
  position: relative;
  display: grid;
  grid-template-rows: 30px 38px minmax(0, 1fr) 22px;
  width: min(100%, 350px);
  height: clamp(560px, calc(100vh - 124px), 680px);
  overflow: hidden;
  background: #0b0d0f;
  border: 9px solid #0b0d0f;
  border-radius: 34px;
  box-shadow: 0 28px 80px rgba(28, 35, 43, 0.24);
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  color: #fff;
  font-size: 10px;
  font-weight: 750;
}

.phone-address {
  overflow: hidden;
  padding: 10px 12px;
  color: var(--muted);
  background: #f0f2f4;
  border-radius: 7px 7px 0 0;
  font-size: 11px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-address a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.phone-address a:hover {
  color: var(--ink);
}

.mobile-wiki {
  min-height: 0;
  overflow-y: auto;
  padding: 20px 18px 28px;
  background: #fff;
  font-family: Georgia, "Times New Roman", serif;
}

.phone-preview .mobile-wiki {
  min-height: 0;
  padding: 20px 18px 28px;
}

.phone-preview .mobile-wiki .wiki-header h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1;
}

.phone-preview .mobile-wiki .wiki-header p {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.4;
}

.phone-preview .mobile-wiki .wiki-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding-top: 16px;
}

.phone-preview .mobile-wiki .infobox,
.phone-preview .mobile-wiki .article-body {
  grid-column: auto;
  grid-row: auto;
}

.phone-preview .mobile-wiki .infobox {
  order: -1;
  margin-bottom: 18px;
  font-size: 10px;
}

.phone-preview .mobile-wiki .infobox dl > div {
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 7px;
}

.phone-preview .mobile-wiki .contents {
  width: 100%;
  margin-bottom: 18px;
  padding: 10px 12px;
  font-size: 11px;
}

.phone-preview .mobile-wiki .profile-markdown h2,
.phone-preview .mobile-wiki .article-body h3 {
  margin: 16px 0 7px;
  padding-bottom: 3px;
  font-size: 19px;
}

.phone-preview .mobile-wiki .profile-markdown p,
.phone-preview .mobile-wiki .article-body p,
.phone-preview .mobile-wiki .references-list {
  font-size: 12px;
  line-height: 1.55;
}

.phone-preview .mobile-wiki .wiki-table-scroll {
  overflow-x: auto;
}

.phone-preview .mobile-wiki table {
  min-width: 720px;
  font-size: 10px;
  line-height: 1.35;
}

.phone-preview .mobile-wiki th,
.phone-preview .mobile-wiki td {
  padding: 6px;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.mobile-wiki-header {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
}

.mobile-wiki-header h2 {
  margin: 0;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  overflow-wrap: anywhere;
}

.mobile-wiki-header p {
  margin: 7px 0 0;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.4;
}

.mobile-infobox {
  margin: 16px 0 18px;
  padding: 9px;
  background: #f7f8f9;
  border: 1px solid var(--line-strong);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
}

.mobile-portrait {
  position: relative;
  display: grid;
  aspect-ratio: 1.6;
  place-items: center;
  overflow: hidden;
  background: #e7ece9;
}

.mobile-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.mobile-portrait span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
}

.mobile-portrait img[hidden],
.mobile-portrait span[hidden] {
  display: none;
}

.mobile-infobox h3 {
  margin: 8px 0;
  padding: 6px;
  background: #e9ecef;
  border: 1px solid #d3d8dd;
  font-size: 13px;
  text-align: center;
}

.mobile-infobox dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.mobile-infobox dl > div {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 7px;
}

.mobile-infobox dt {
  font-weight: 800;
}

.mobile-infobox dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.mobile-infobox a {
  color: var(--ink);
}

.mobile-article-copy ol a {
  color: #0645ad;
}

.mobile-article-copy h3 {
  margin: 16px 0 7px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 19px;
  font-weight: 400;
}

.mobile-article-copy p,
.mobile-article-copy ol {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.mobile-article-copy ol {
  padding-left: 18px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  overflow-wrap: anywhere;
}

.phone-home {
  align-self: center;
  justify-self: center;
  width: 94px;
  height: 4px;
  background: #eef0f2;
  border-radius: 999px;
}

.auth-page {
  display: grid;
  min-height: calc(100vh - 190px);
  place-items: center;
  padding: clamp(48px, 8vw, 100px) 20px;
}

.auth-panel {
  width: min(100%, 460px);
  padding: clamp(26px, 5vw, 42px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(28, 35, 43, 0.12);
}

.auth-panel h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 6vw, 52px);
  font-weight: 500;
  line-height: 1;
  text-align: center;
}

.auth-intro {
  margin: 14px 0 26px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}

.auth-google,
.auth-submit {
  width: 100%;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-submit {
  margin-top: 2px;
}

.auth-message {
  margin: 0 0 16px;
  padding: 11px 12px;
  color: #12664f;
  background: #edf7f2;
  border: 1px solid #b9dbce;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.auth-message-error {
  color: var(--danger);
  background: #fff2f2;
  border-color: #e7baba;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.auth-links a {
  color: var(--ink);
  font-weight: 720;
}

.dashboard-builder {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  width: min(100%, 1500px);
  margin: 18px auto 54px;
  padding: 0 24px;
}

.dashboard-sidebar {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(28, 35, 43, 0.08);
}

.dashboard-sidebar-header {
  position: sticky;
  z-index: 6;
  top: -22px;
  margin: -22px -22px 0;
  padding: 22px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.dashboard-sidebar-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-sidebar-header h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 500;
  line-height: 1;
}

.dashboard-sidebar-header p {
  margin: 8px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-plan {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 2px 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.dashboard-plan-premium {
  border-color: rgba(18, 102, 79, 0.28);
  color: #12664f;
  background: rgba(18, 102, 79, 0.08);
}

.dashboard-form {
  display: grid;
  gap: 0;
  margin: 0 -22px -22px;
}

.dashboard-generated-fields {
  display: grid;
  gap: 22px;
  padding-top: 4px;
}

.dashboard-generated-list {
  display: grid;
  gap: 12px;
}

.dashboard-generated-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #f8f9fa;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.dashboard-generated-item label {
  gap: 5px;
}

.dashboard-generated-item label > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.dashboard-empty-state {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.profile-markdown > :first-child {
  margin-top: 0;
}

.profile-markdown h2,
.profile-markdown h3,
.profile-markdown h4 {
  margin: 26px 0 9px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  font-weight: 400;
}

.profile-markdown h2 {
  font-size: 25px;
}

.profile-markdown h3 {
  font-size: 21px;
}

.profile-markdown p,
.profile-markdown li {
  font-size: 17px;
  line-height: 1.72;
}

.profile-markdown-editable {
  position: relative;
  cursor: text;
  border-radius: 3px;
  outline: 1px solid transparent;
  outline-offset: 8px;
  transition: background-color 140ms ease, outline-color 140ms ease;
}

.profile-markdown-editable:hover {
  background: #fafafa;
  outline-color: #d4d9df;
}

.profile-markdown-editable:focus {
  background: #fffef7;
  outline: 2px solid #202122;
}

[data-preview-work-field][contenteditable="true"],
[data-preview-work-metrics][contenteditable="true"],
[data-preview-milestone-field][contenteditable="true"],
[data-inline-profile-field][contenteditable="true"],
[data-inline-detail-field][contenteditable="true"],
[data-inline-profile-link][contenteditable="true"] {
  position: relative;
  cursor: text;
  outline: 1px solid transparent;
  outline-offset: 2px;
}

[data-preview-work-field][contenteditable="true"]:hover,
[data-preview-work-metrics][contenteditable="true"]:hover,
[data-preview-milestone-field][contenteditable="true"]:hover,
[data-inline-profile-field][contenteditable="true"]:hover,
[data-inline-detail-field][contenteditable="true"]:hover,
[data-inline-profile-link][contenteditable="true"]:hover {
  background: #fffef0;
  outline-color: #a2a9b1;
}

[data-preview-work-field][contenteditable="true"]:focus,
[data-preview-work-metrics][contenteditable="true"]:focus,
[data-preview-milestone-field][contenteditable="true"]:focus,
[data-inline-profile-field][contenteditable="true"]:focus,
[data-inline-detail-field][contenteditable="true"]:focus,
[data-inline-profile-link][contenteditable="true"]:focus {
  background: #fffbdc;
  outline: 2px solid #202122;
}

[data-inline-profile-field]:empty::before,
[data-inline-detail-field]:empty::before,
[data-inline-profile-link]:empty::before {
  color: #72777d;
  content: attr(data-placeholder);
  font-style: italic;
  font-weight: 400;
}

[data-inline-profile-field],
[data-inline-detail-field],
[data-inline-profile-link] {
  min-height: 1.2em;
}

[data-hover-label]::after {
  position: absolute;
  top: -18px;
  left: -2px;
  z-index: 8;
  display: none;
  padding: 3px 6px;
  color: #fff;
  background: #202122;
  border-radius: 3px;
  box-shadow: 0 4px 10px rgba(32, 33, 34, 0.14);
  content: attr(data-hover-label);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}

[data-hover-label]:hover::after,
[data-hover-label]:focus::after,
[data-hover-label]:focus-within::after {
  display: block;
}

.wiki-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line-strong);
}

.wiki-section-heading h3 {
  flex: 1;
  margin-bottom: 0;
  border-bottom: 0;
}

.wiki-table-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.wiki-add-row {
  padding: 4px 6px;
  color: var(--blue);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.wiki-add-row:hover {
  text-decoration: underline;
}

.wiki-remove-section {
  padding: 4px 6px;
  color: #72777d;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 11px;
}

.wiki-remove-section:hover {
  color: var(--danger);
  text-decoration: underline;
}

.wiki-column-menu {
  position: relative;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
}

.wiki-column-menu summary {
  padding: 4px 6px;
  cursor: pointer;
  font-weight: 700;
}

.wiki-column-menu > div {
  position: absolute;
  z-index: 4;
  top: calc(100% + 5px);
  right: 0;
  display: grid;
  width: 150px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: 0 6px 18px rgba(32, 33, 34, 0.16);
}

.wiki-column-menu button {
  padding: 7px 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.wiki-column-menu button::before {
  display: inline-block;
  width: 18px;
  content: "";
}

.wiki-column-menu button[aria-pressed="true"]::before {
  content: "\2713";
}

.wiki-column-menu button:hover {
  background: #eaecf0;
}

th[data-table-column],
th[data-milestone-table-column] {
  position: relative;
  padding-right: 25px;
}

.wiki-hide-column {
  position: absolute;
  top: 50%;
  right: 4px;
  width: 19px;
  height: 19px;
  padding: 0;
  color: #54595d;
  background: transparent;
  border: 0;
  cursor: pointer;
  line-height: 18px;
  opacity: 0;
  transform: translateY(-50%);
}

th[data-table-column]:hover .wiki-hide-column,
th[data-milestone-table-column]:hover .wiki-hide-column,
.wiki-hide-column:focus-visible {
  opacity: 1;
}

.wiki-table-actions {
  width: 34px;
  padding: 3px;
  text-align: center;
}

.wiki-table-actions button {
  width: 25px;
  height: 25px;
  padding: 0;
  color: #72777d;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  opacity: 0;
}

tr:hover > .wiki-table-actions button,
.wiki-table-actions button:focus-visible {
  opacity: 1;
}

.wiki-table-actions button:hover {
  color: var(--danger);
  background: #fee7e6;
}

@media (hover: none) {
  .wiki-hide-column,
  .wiki-table-actions button {
    opacity: 1;
  }
}

.article-citations {
  margin-top: 5px !important;
  color: var(--blue);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 11px !important;
}

.wiki-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.dashboard-generated-heading {
  padding: 15px;
  background: #f2f4f5;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.dashboard-generated-heading h2,
.dashboard-generated-heading p,
.dashboard-section-copy {
  margin: 0;
}

.dashboard-generated-heading p,
.dashboard-section-copy {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.dashboard-ai-direction textarea {
  min-height: 82px;
  resize: vertical;
  background: #f8f9fa;
  line-height: 1.45;
}

.dashboard-autosave-status {
  flex: 0 0 auto;
  color: #12664f;
  font-size: 11px;
  font-weight: 750;
}

.dashboard-autosave-status[data-state="pending"],
.dashboard-autosave-status[data-state="saving"] {
  color: #54595d;
}

.dashboard-autosave-status[data-state="error"] {
  color: var(--danger);
}

.dashboard-ai-direction .extraction-submit {
  width: 100%;
}

.extraction-message,
.extraction-progress {
  margin: 16px 0 0;
  padding: 10px 11px;
  color: #12664f;
  background: #edf7f2;
  border: 1px solid #b9dbce;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.extraction-message-error,
.extraction-progress-error {
  color: var(--danger);
  background: #fff2f2;
  border-color: #e7baba;
}

.extraction-progress {
  display: flex;
  align-items: center;
  gap: 9px;
}

.extraction-progress[hidden] {
  display: none;
}

.extraction-spinner {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 2px solid rgba(18, 102, 79, 0.25);
  border-top-color: #12664f;
  border-radius: 50%;
  animation: extraction-spin 800ms linear infinite;
}

@keyframes extraction-spin {
  to { transform: rotate(360deg); }
}

.dashboard-form section {
  display: grid;
  gap: 13px;
  padding: 22px;
  border-top: 1px solid var(--line);
}

.dashboard-form > section:last-of-type {
  border-bottom: 1px solid var(--line);
}

.dashboard-story-fields textarea,
.dashboard-work-editor textarea {
  min-height: 76px;
  resize: vertical;
  background: #f8f9fa;
  line-height: 1.45;
}

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

.dashboard-work-editor {
  padding: 11px;
  background: #f8f9fa;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.dashboard-work-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.dashboard-work-heading strong {
  font-size: 12px;
}

.dashboard-work-heading button {
  width: 25px;
  height: 25px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 18px;
}

.dashboard-work-heading button:hover {
  color: var(--danger);
  background: #fee7e6;
}

.dashboard-add-work {
  width: 100%;
  margin-top: 11px;
  border-style: dashed;
}

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

.dashboard-project {
  overflow: hidden;
  background: #f8f9fa;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.dashboard-project summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 9px 11px;
  cursor: pointer;
  list-style: none;
}

.dashboard-project summary::-webkit-details-marker {
  display: none;
}

.dashboard-project summary strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-project summary > span::before {
  content: "+";
  color: var(--muted);
  font-size: 18px;
}

.dashboard-project[open] summary > span::before {
  content: "−";
}

.dashboard-project-fields {
  display: grid;
  gap: 10px;
  padding: 10px;
  border-top: 1px solid var(--line);
}

.dashboard-project-fields label {
  display: grid;
  gap: 5px;
}

.dashboard-project-fields label > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.dashboard-project-fields textarea {
  min-height: 76px;
  resize: vertical;
}

.dashboard-add-project {
  width: 100%;
  min-height: 38px;
  margin-top: 10px;
  border-style: dashed;
}

.dashboard-remove-project {
  justify-self: start;
  padding: 2px 0;
  color: var(--danger);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.dashboard-form h2 {
  margin: 0;
  padding-left: 10px;
  border-left: 3px solid var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.dashboard-form h2 small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.dashboard-basics-sources {
  display: grid;
  gap: 10px;
}

.dashboard-source-eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 750;
}

.dashboard-fields {
  display: grid;
  gap: 11px;
}

.dashboard-fields label {
  gap: 5px;
}

.dashboard-fields label > span {
  font-size: 12px;
}

.dashboard-fields label > span small {
  margin-left: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.dashboard-fields input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  background: #f8f9fa;
}

.dashboard-fields input[type="date"] {
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
  color: var(--ink);
  line-height: 1.4;
}

.dashboard-fields input[type="date"]::-webkit-date-and-time-value {
  min-height: 22px;
  margin: 0;
  text-align: left;
}

.dashboard-fields input[type="date"]::-webkit-calendar-picker-indicator {
  flex: 0 0 auto;
}

.dashboard-empty-state {
  margin: 0;
  padding: 9px 10px;
  color: var(--muted);
  background: #f8f9fa;
  border: 1px dashed #cdd3db;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.35;
}

.dashboard-source-row {
  position: relative;
}

.dashboard-source-row label {
  display: grid;
}

.dashboard-source-row input {
  padding-right: 38px;
}

.dashboard-source-remove {
  position: absolute;
  right: 7px;
  bottom: 6px;
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.dashboard-source-remove:hover {
  color: var(--ink);
  background: #e8ebee;
}

.dashboard-add-source {
  min-height: 38px;
  padding: 8px 12px;
  border-style: dashed;
}

.dashboard-slug-input {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 40px;
  padding-left: 10px;
  overflow: hidden;
  background: #f8f9fa;
  border: 1px solid #cdd3db;
  border-radius: 6px;
}

.dashboard-slug-input:focus-within {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(17, 24, 32, 0.11);
}

.dashboard-slug-input > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
}

.dashboard-slug-input input {
  min-width: 0;
  padding-left: 2px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.dashboard-slug-input input:focus {
  box-shadow: none;
}

.dashboard-slug-availability {
  min-height: 15px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.dashboard-slug-availability[data-state="available"] {
  color: #12664f;
}

.dashboard-slug-availability[data-state="taken"],
.dashboard-slug-availability[data-state="error"] {
  color: var(--danger);
}

.dashboard-photo-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 9px 10px;
  background: #f8f9fa;
  border: 1px solid #cdd3db;
  border-radius: 6px;
}

.dashboard-photo-field > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.dashboard-photo-field strong,
.dashboard-photo-field > div span,
.dashboard-photo-button span {
  font-size: 11px;
}

.dashboard-photo-field > div span {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-photo-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  color: #fff;
  background: var(--accent);
  border-radius: 5px;
  cursor: pointer;
  font-weight: 750;
}

.dashboard-photo-button span {
  color: #fff;
}

.extraction-submit {
  width: 100%;
  min-height: 46px;
}

.linkedin-generate-submit {
  margin: 0;
}

.dashboard-sidebar-actions {
  display: grid;
  gap: 8px;
  padding: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dashboard-sidebar-actions .dashboard-publish-link,
.dashboard-sidebar-actions .dashboard-copy-html {
  width: 100%;
  min-height: 46px;
  padding: 11px 16px;
  border-radius: 6px;
  font-family: inherit;
  font-size: inherit;
  font-weight: 780;
  line-height: normal;
}

.dashboard-sidebar-actions .dashboard-publish-link {
  color: #fff;
  background: #16834f;
  border-color: #126b42;
  box-shadow: 0 10px 24px rgba(22, 131, 79, 0.25);
}

.dashboard-sidebar-actions .dashboard-publish-link:hover {
  color: #fff;
  background: #126b42;
  border-color: #0f5737;
  box-shadow: 0 12px 28px rgba(18, 107, 66, 0.3);
}

.dashboard-sidebar-actions .linkedin-generate-submit {
  color: #fff;
  background: #111820;
  border-color: #111820;
  box-shadow: 0 10px 24px rgba(17, 24, 32, 0.2);
}

.dashboard-sidebar-actions .linkedin-generate-submit:hover {
  color: #fff;
  background: #000;
  border-color: #000;
}

.dashboard-sidebar-actions .dashboard-copy-html:hover {
  color: #111820;
  background: #fff;
}

.dashboard-sidebar-actions button:hover {
  transform: translateY(-1px);
}

.extraction-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.extraction-disclaimer {
  margin: -12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.dashboard-section-heading,
.dashboard-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.dashboard-section-heading > span,
.dashboard-preview-actions > span {
  flex: 0 0 auto;
  padding: 5px 8px;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
}

.dashboard-preview-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-publish-link,
.dashboard-copy-html {
  appearance: none;
  flex: 0 0 auto;
  border: 1px solid #111820;
  border-radius: 8px;
  padding: 7px 11px;
  background: #fff;
  color: #111820;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.dashboard-publish-link:hover,
.dashboard-copy-html:hover {
  background: #111820;
  color: #fff;
  text-decoration: none;
}

.dashboard-copy-status {
  min-height: 18px;
  margin: 8px 0 0;
  color: #12664f;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.publish-benefits {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.publish-benefits p {
  display: flex;
  gap: 10px;
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.publish-benefits span {
  display: grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: rgba(42, 93, 176, 0.12);
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.publish-options {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.publish-options .button {
  justify-content: center;
  background: #111820;
  border-color: #111820;
  color: #fff;
  box-shadow: none;
  text-align: center;
  text-decoration: none;
}

.publish-options .button:hover {
  background: #050608;
  border-color: #050608;
}

.wiki-section-menu > div {
  width: 190px;
}

.dashboard-preview {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(28, 35, 43, 0.08);
}

.dashboard-preview-bar {
  min-height: 46px;
  padding: 0 18px;
  background: #f2f4f6;
  border-bottom: 1px solid var(--line);
}

.dashboard-preview-bar p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-wiki {
  min-height: 790px;
  padding: clamp(30px, 4vw, 56px);
  background: #fff;
  font-family: Georgia, "Times New Roman", serif;
}

.dashboard-wiki .wiki-header h2 {
  font-size: clamp(42px, 5vw, 68px);
}

.dashboard-preview-bar a {
  color: inherit;
  text-decoration: none;
}

.dashboard-preview-bar a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.public-profile-page {
  width: min(100% - 40px, 1180px);
  min-height: calc(100vh - 170px);
  margin: 24px auto 54px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(28, 35, 43, 0.08);
}

.public-unpublished-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 18px;
  color: #5d2700;
  background: #fff1d8;
  border-bottom: 1px solid #e8c488;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.45;
  text-align: center;
}

.public-upgrade-button {
  border: 1px solid #5d2700;
  border-radius: 8px;
  padding: 8px 12px;
  background: #5d2700;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
}

.public-upgrade-button:hover {
  background: #321500;
}

.public-wiki {
  min-height: 760px;
}

.public-wiki .wiki-header h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 400;
  line-height: 1.02;
}

.public-wiki .infobox h2 {
  margin: 0 0 10px;
  padding: 7px;
  background: #eef0f2;
  border: 1px solid #d4d9df;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  text-align: center;
}

@media (max-width: 700px) {
  .landing-pricing {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 24px;
    padding: 26px 22px;
  }

  .landing-pricing-features {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .landing-pricing-features li,
  .landing-pricing-features li + li {
    padding: 16px 0;
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  }

  .landing-pricing-features li:last-child {
    border-bottom: 0;
  }

  .public-profile-page {
    width: 100%;
    margin: 0;
    border-right: 0;
    border-left: 0;
    box-shadow: none;
  }
}

.dashboard-portrait span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.admin-page {
  width: min(100%, 1120px);
  min-height: calc(100vh - 190px);
  margin: 0 auto;
  padding: clamp(54px, 8vw, 100px) 20px 80px;
}

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

.admin-heading h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 500;
  line-height: 1;
}

.admin-heading p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.admin-heading .button {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.admin-heading-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-table-wrap {
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(28, 35, 43, 0.08);
}

.admin-users-table {
  min-width: 1040px;
}

.admin-users-table th,
.admin-users-table td {
  padding: 15px 18px;
  border-width: 0 0 1px;
}

.admin-users-table th {
  color: var(--muted);
  background: #f5f6f7;
  font-size: 12px;
  text-transform: uppercase;
}

.admin-users-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-users-table a {
  color: var(--ink);
  font-weight: 720;
}

.admin-users-table form {
  margin: 0;
}

.admin-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-view-button {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.admin-view-button:hover {
  background: #f5f6f7;
}

.admin-inline-form select {
  min-width: 112px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px 28px 8px 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 760;
}

.admin-danger-button {
  border: 1px solid rgba(159, 29, 32, 0.24);
  border-radius: 8px;
  padding: 8px 12px;
  background: rgba(159, 29, 32, 0.08);
  color: var(--danger);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.admin-danger-button:hover {
  border-color: rgba(159, 29, 32, 0.42);
  background: rgba(159, 29, 32, 0.14);
}

.legal-page {
  width: min(100%, 840px);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 72px) clamp(18px, 3vw, 34px);
}

.legal-brand {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--ink);
  font-weight: 780;
  text-decoration: none;
}

.legal-page article {
  padding: clamp(22px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(216, 222, 229, 0.92);
  border-radius: 8px;
}

.legal-page h1 {
  margin: 0 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 500;
  line-height: 1.02;
}

.legal-page h2 {
  margin: 28px 0 8px;
  font-size: 20px;
}

.legal-page p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .directory-list {
    grid-template-columns: repeat(3, minmax(0, 270px));
  }

  .dashboard-builder {
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 16px;
    padding: 0 16px;
  }

  .dashboard-sidebar {
    padding: 18px;
  }

  .dashboard-wiki {
    padding: 30px;
  }

  .landing-workspace {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;
  }

  .landing-editor-heading h1 {
    font-size: 36px;
  }

  .zigzag {
    width: min(100%, 720px);
  }

  .zigzag-item,
  .zigzag-item:nth-child(even) {
    justify-self: stretch;
    width: 100%;
  }

  .zigzag-item::after {
    display: none;
  }

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

  .wiki-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .infobox,
  .article-body {
    grid-column: auto;
  }

  .infobox {
    order: -1;
  }
}

@media (max-width: 860px) {
  .directory-list {
    grid-template-columns: repeat(2, minmax(0, 270px));
  }

  .dashboard-builder {
    grid-template-columns: 1fr;
    margin-top: 12px;
    padding: 0 12px;
  }

  .dashboard-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
  }

  .dashboard-sidebar-header {
    position: static;
    margin: -18px -18px 0;
    padding: 18px;
  }

  .dashboard-sidebar-header p {
    white-space: normal;
  }

  .dashboard-wiki {
    min-height: 0;
    padding: 24px 18px 36px;
  }

  .dashboard-preview {
    overflow: visible;
  }

  .dashboard-preview-bar {
    min-height: auto;
    align-items: flex-start;
    padding: 12px 14px;
  }

  .dashboard-copy-status {
    padding: 0 14px;
    text-align: left;
  }

  .dashboard-section-heading,
  .wiki-section-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .wiki-table-controls {
    width: 100%;
    flex-wrap: wrap;
  }

  .dashboard-preview-actions > span {
    display: none;
  }

  .landing-experiment {
    padding: 28px 16px 50px;
  }

  .landing-editor {
    padding: 20px;
  }

  .landing-workspace {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .landing-editor-heading h1 {
    font-size: 36px;
  }

  .landing-basics,
  .landing-source-grid {
    grid-template-columns: 1fr;
  }

  .landing-actions {
    grid-template-columns: 1fr;
  }

  .phone-preview {
    height: 640px;
  }

  .businesswiki {
    gap: 22px;
    padding: 16px;
  }

  .topbar {
    gap: 12px;
  }

  .intro {
    padding-top: 14px;
  }

  .intro h1 {
    font-size: 30px;
    line-height: 1.05;
  }

  .laptop-preview {
    padding: 10px 10px 0;
    border-radius: 12px 12px 8px 8px;
  }

  .laptop-preview::after {
    height: 14px;
  }

  .camera-dot {
    margin-bottom: 7px;
  }

  .browser-bar {
    min-height: 34px;
  }

  .live-pill {
    display: none;
  }

  .wiki-page {
    height: 540px;
    padding: 20px;
  }

  .form-block,
  .zigzag-item,
  .signup-modal {
    padding: 16px;
  }

  .zigzag-item {
    padding-left: 62px;
  }

  .zigzag-item span {
    top: 16px;
    left: 16px;
  }

  .section-heading-row {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }

  .signup-modal h2 {
    font-size: 28px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .directory-list {
    grid-template-columns: minmax(0, 270px);
  }
}
