:root {
  color-scheme: light;
  --paper: #f4f1e9;
  --paper-deep: #e9e4d9;
  --white: #fffefa;
  --ink: #183638;
  --ink-soft: #315052;
  --muted: #71807d;
  --line: rgba(24, 54, 56, 0.13);
  --terracotta: #d86f43;
  --terracotta-dark: #af4e2a;
  --terracotta-soft: #f6dfd3;
  --sage: #9aafa4;
  --sage-soft: #dfe8e2;
  --blue-soft: #dae9ea;
  --shadow: 0 2rem 6rem rgba(31, 57, 55, 0.11);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
}

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

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  color: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
  cursor: pointer;
}

img {
  max-width: 100%;
}

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

.section-shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1280px, calc(100% - 48px));
  min-height: 88px;
  margin-inline: auto;
  border-bottom: 1px solid var(--line);
}

.logo {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  width: max-content;
}

.logo-mark {
  display: grid;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-style: italic;
  place-items: center;
}

.logo-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.logo-copy strong {
  font-size: 14px;
  letter-spacing: 0.02em;
}

.logo-copy small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  gap: 34px;
  align-items: center;
  color: var(--ink-soft);
  font-size: 13px;
}

.desktop-nav a,
.staff-link,
.footer-links a {
  transition: color 160ms ease;
}

.desktop-nav a:hover,
.staff-link:hover,
.footer-links a:hover {
  color: var(--terracotta);
}

.header-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: flex-end;
}

.staff-link {
  border-bottom: 1px solid currentColor;
  font-size: 12px;
  line-height: 2;
}

.menu-button,
.mobile-menu {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  min-height: 720px;
  padding-block: 72px 92px;
}

.eyebrow,
.section-index,
.auth-kicker,
.step-label {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--terracotta);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 5px rgba(216, 111, 67, 0.12);
}

.hero h1,
.section-heading h2,
.process-intro h2,
.request-copy h2,
.auth-story h1,
.auth-heading h2,
.policy-dialog h2,
.recovery-dialog h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.052em;
}

.hero h1 {
  max-width: 670px;
  margin-top: 24px;
  font-size: clamp(60px, 6.1vw, 92px);
  line-height: 0.91;
}

.hero h1 em {
  color: var(--terracotta);
  font-weight: 400;
}

.hero-lead {
  max-width: 570px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  gap: 26px;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition:
    background 170ms ease,
    color 170ms ease,
    transform 170ms ease,
    box-shadow 170ms ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--terracotta);
  box-shadow: 0 15px 30px rgba(175, 78, 42, 0.18);
}

.button-primary:hover {
  background: var(--terracotta-dark);
  box-shadow: 0 18px 38px rgba(175, 78, 42, 0.25);
}

.text-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  line-height: 2.1;
}

.trust-line {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 620px;
  margin-top: 66px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.trust-line div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.trust-line strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
}

.trust-line span {
  max-width: 120px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.hero-visual {
  position: relative;
  min-height: 575px;
}

.hero-visual::before {
  position: absolute;
  inset: 30px 0 15px 36px;
  border-radius: 48% 48% 4px 4px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.65), transparent 45%),
    #dce7e1;
  content: "";
}

.orbit {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(24, 54, 56, 0.11);
  border-radius: 50%;
}

.orbit-one {
  width: 460px;
  height: 460px;
  top: 70px;
  left: -25px;
}

.orbit-two {
  width: 360px;
  height: 360px;
  top: 120px;
  left: 25px;
}

.property-scene {
  position: absolute;
  z-index: 1;
  inset: 95px 38px 36px 75px;
  overflow: hidden;
  border-radius: 46% 46% 2px 2px;
  background: linear-gradient(#c7dcda 0 48%, #bccabd 48% 100%);
}

.sun {
  position: absolute;
  width: 52px;
  height: 52px;
  top: 74px;
  right: 68px;
  border-radius: 50%;
  background: #f5e4c7;
  box-shadow: 0 0 0 12px rgba(245, 228, 199, 0.28);
}

.building {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 18px;
  padding: 24px;
  background: #e8e5dc;
  box-shadow: -10px 8px 35px rgba(33, 67, 65, 0.12);
}

.building i {
  width: 24px;
  height: 38px;
  background: #567274;
  box-shadow: inset 8px 0 rgba(255, 255, 255, 0.12);
}

.building-back {
  width: 135px;
  height: 235px;
  right: 8px;
  bottom: 0;
  transform: skewY(-4deg);
}

.building-front {
  width: 180px;
  height: 285px;
  left: 35px;
  bottom: -1px;
  padding: 32px 31px;
  background: #f1eee6;
}

.tree {
  position: absolute;
  width: 10px;
  height: 70px;
  bottom: 0;
  border-radius: 5px 5px 0 0;
  background: #796a58;
}

.tree::before,
.tree::after {
  position: absolute;
  border-radius: 50%;
  background: #6d8978;
  content: "";
}

.tree::before {
  width: 68px;
  height: 95px;
  top: -66px;
  left: -29px;
}

.tree::after {
  width: 42px;
  height: 65px;
  top: -42px;
  left: -34px;
  background: #8ca18f;
}

.tree-one {
  right: 52px;
}

.tree-two {
  left: 14px;
  scale: 0.72;
}

.property-card {
  position: absolute;
  z-index: 3;
  width: min(350px, 78%);
  right: -12px;
  bottom: 0;
  padding: 22px;
  background: rgba(255, 254, 250, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.property-card-top,
.property-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.property-card-top span,
.property-card-bottom span {
  color: #58806c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.property-card-top button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--terracotta);
  background: var(--terracotta-soft);
  font-size: 18px;
}

.property-card h2 {
  margin: 13px 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
}

.property-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 11px;
}

.property-card-bottom {
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.property-card-bottom strong {
  font-size: 14px;
}

.floating-note {
  position: absolute;
  z-index: 4;
  display: flex;
  gap: 10px;
  align-items: center;
  top: 62px;
  left: 0;
  padding: 12px 16px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 254, 250, 0.82);
  box-shadow: 0 12px 35px rgba(31, 57, 55, 0.1);
  backdrop-filter: blur(10px);
}

.note-avatar,
.employee-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--white);
  background: var(--terracotta);
  font-size: 10px;
  font-weight: 700;
  place-items: center;
}

.floating-note p,
.employee-card p {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
}

.floating-note strong {
  font-size: 10px;
}

.floating-note small {
  color: var(--muted);
  font-size: 9px;
}

.services {
  padding-block: 112px 126px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 80px;
  align-items: end;
}

.section-heading h2,
.process-intro h2,
.request-copy h2 {
  margin-top: 18px;
  font-size: clamp(48px, 5.2vw, 72px);
  line-height: 0.98;
}

.section-heading > p,
.process-intro > p,
.request-copy > p {
  max-width: 420px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 62px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  position: relative;
  min-height: 420px;
  padding: 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.2);
  transition:
    background 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.service-card:hover {
  z-index: 1;
  background: var(--white);
  box-shadow: 0 22px 60px rgba(31, 57, 55, 0.08);
  transform: translateY(-6px);
}

.service-featured {
  color: var(--white);
  background: var(--ink);
}

.service-featured:hover {
  background: #214547;
}

.service-number {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.service-featured .service-number,
.service-featured p {
  color: rgba(255, 255, 255, 0.55);
}

.service-symbol {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 55px 0 35px;
}

.symbol-key::before {
  position: absolute;
  width: 35px;
  height: 35px;
  border: 7px solid var(--terracotta);
  border-radius: 50%;
  content: "";
}

.symbol-key::after {
  position: absolute;
  width: 46px;
  height: 7px;
  top: 43px;
  left: 30px;
  background: var(--terracotta);
  box-shadow: 25px 8px 0 -1px var(--terracotta);
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

.symbol-home {
  border: 4px solid var(--terracotta);
  border-top: 0;
  transform: translateY(18px);
}

.symbol-home::before {
  position: absolute;
  width: 49px;
  height: 49px;
  top: -25px;
  left: 7px;
  border-top: 4px solid var(--terracotta);
  border-left: 4px solid var(--terracotta);
  content: "";
  transform: rotate(45deg);
}

.symbol-home::after {
  position: absolute;
  width: 17px;
  height: 31px;
  bottom: 0;
  left: 24px;
  background: var(--terracotta);
  content: "";
}

.symbol-check {
  border: 4px solid var(--terracotta);
  border-radius: 50%;
}

.symbol-check::after {
  position: absolute;
  width: 33px;
  height: 17px;
  top: 20px;
  left: 16px;
  border-bottom: 5px solid var(--terracotta);
  border-left: 5px solid var(--terracotta);
  content: "";
  transform: rotate(-45deg);
}

.service-card h3 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 400;
}

.service-card p {
  min-height: 64px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.service-card > a {
  position: absolute;
  right: 34px;
  bottom: 34px;
  left: 34px;
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid currentColor;
  font-size: 11px;
}

.about {
  display: grid;
  grid-template-columns: minmax(360px, 0.88fr) minmax(440px, 1.12fr);
  gap: clamp(64px, 8vw, 124px);
  align-items: center;
  padding-block: 116px 132px;
  border-top: 1px solid var(--line);
}

.about-visual {
  position: relative;
  min-height: 610px;
}

.about-visual::before {
  position: absolute;
  width: 78%;
  height: 78%;
  right: -28px;
  bottom: -28px;
  border: 1px solid rgba(24, 54, 56, 0.13);
  content: "";
}

.portrait-placeholder {
  position: relative;
  height: 610px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.16), transparent 31%),
    linear-gradient(145deg, #49696a 0%, var(--ink) 72%);
}

.portrait-placeholder::before {
  position: absolute;
  width: 340px;
  height: 340px;
  top: 48px;
  left: 50%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
}

.portrait-placeholder::after {
  position: absolute;
  width: 250px;
  height: 250px;
  top: 93px;
  left: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
}

.portrait-grid {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.25) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.portrait-silhouette {
  position: absolute;
  width: 300px;
  height: 420px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.silhouette-head {
  position: absolute;
  width: 142px;
  height: 170px;
  top: 16px;
  left: 79px;
  border-radius: 48% 48% 44% 44%;
  background: #82999a;
  box-shadow:
    inset -18px -12px rgba(24, 54, 56, 0.12),
    0 20px 45px rgba(11, 34, 35, 0.14);
}

.silhouette-head::before {
  position: absolute;
  width: 154px;
  height: 75px;
  top: -3px;
  left: -6px;
  border-radius: 60% 60% 35% 35%;
  background: #6f8889;
  content: "";
  transform: rotate(-4deg);
}

.silhouette-body {
  position: absolute;
  width: 300px;
  height: 260px;
  bottom: -36px;
  left: 0;
  border-radius: 48% 48% 4px 4px;
  background:
    linear-gradient(110deg, transparent 48%, rgba(255, 255, 255, 0.1) 49% 51%, transparent 52%),
    #718b8c;
  box-shadow: inset -36px 0 rgba(24, 54, 56, 0.12);
}

.portrait-label {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 5px;
  right: 22px;
  bottom: 22px;
  left: 22px;
  padding: 17px 19px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 38, 39, 0.74);
  backdrop-filter: blur(10px);
}

.portrait-label strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 400;
}

.portrait-label small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-visual-note {
  position: absolute;
  z-index: 3;
  display: flex;
  gap: 12px;
  align-items: center;
  right: -34px;
  top: 54px;
  padding: 14px 18px 14px 13px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(31, 57, 55, 0.14);
}

.about-visual-note > span {
  display: grid;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--white);
  background: var(--terracotta);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  place-items: center;
}

.about-visual-note p {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.about-visual-note strong {
  font-size: 10px;
}

.about-visual-note small {
  color: var(--muted);
  font-size: 8px;
}

.about-copy h2 {
  margin: 18px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 5vw, 70px);
  font-weight: 400;
  letter-spacing: -0.052em;
  line-height: 0.98;
}

.about-lead {
  max-width: 540px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.55;
}

.about-text {
  max-width: 530px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.about-principles {
  margin: 35px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.about-principles li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 15px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.about-principles li > span {
  padding-top: 2px;
  color: var(--terracotta);
  font-size: 9px;
  font-weight: 700;
}

.about-principles p {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
}

.about-principles strong {
  font-size: 11px;
}

.about-principles small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.agent-signature {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 13px;
  align-items: center;
  margin-top: 26px;
}

.signature-line {
  width: 42px;
  height: 1px;
  background: var(--terracotta);
}

.agent-signature p {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.agent-signature strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 400;
}

.agent-signature small,
.signature-placeholder {
  color: var(--muted);
  font-size: 8px;
}

.signature-placeholder {
  padding: 7px 9px;
  border: 1px dashed rgba(24, 54, 56, 0.22);
  letter-spacing: 0.04em;
}

.process {
  color: var(--white);
  background: var(--ink);
}

.process-inner {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 110px;
  padding-block: 118px;
}

.section-index.light {
  color: #d6a085;
}

.process-intro > p {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.6);
}

.button-light {
  margin-top: 40px;
  color: var(--ink);
  background: var(--white);
}

.button-light:hover {
  color: var(--white);
  background: var(--terracotta);
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.process-list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.process-list > li > span {
  color: #d6a085;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.process-list h3 {
  margin: 0 0 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 400;
}

.process-list p {
  max-width: 430px;
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  line-height: 1.65;
}

.request-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 100px;
  padding-block: 120px;
}

.request-copy {
  align-self: start;
  position: sticky;
  top: 40px;
}

.request-copy > p {
  margin-top: 28px;
}

.privacy-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 46px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.28);
}

.privacy-lock {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 26px;
  margin-top: 8px;
  border-radius: 3px;
  background: var(--sage);
}

.privacy-lock::before {
  position: absolute;
  width: 16px;
  height: 18px;
  top: -12px;
  left: 7px;
  border: 3px solid var(--sage);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  content: "";
}

.privacy-card strong {
  font-size: 12px;
}

.privacy-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.request-form {
  position: relative;
  padding: 46px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-status {
  display: none;
  margin-bottom: 24px;
  padding: 16px 18px;
  color: #426654;
  background: var(--sage-soft);
  font-size: 12px;
  line-height: 1.5;
}

.form-status.visible {
  display: block;
}

.form-status.error {
  color: #8a3f25;
  background: var(--terracotta-soft);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 24px;
}

.field > span {
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.field > span small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 500;
}

.field input,
.field select,
.field textarea,
.search-field input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(24, 54, 56, 0.22);
  border-radius: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  transition: border-color 160ms ease;
}

.field input,
.field select {
  height: 46px;
}

.field textarea {
  min-height: 90px;
  padding: 12px 0;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder,
.search-field input::placeholder {
  color: #a2aaa7;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--terracotta);
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: #b34d2b;
}

.field-error {
  min-height: 13px;
  color: #a94426;
  font-size: 9px;
}

.consent-field {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 4px;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  line-height: 1.5;
}

.consent-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.custom-checkbox {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(24, 54, 56, 0.28);
  background: var(--paper);
}

.consent-field input:checked + .custom-checkbox {
  border-color: var(--ink);
  background: var(--ink);
}

.consent-field input:checked + .custom-checkbox::after {
  position: absolute;
  width: 8px;
  height: 4px;
  top: 4px;
  left: 4px;
  border-bottom: 2px solid var(--white);
  border-left: 2px solid var(--white);
  content: "";
  transform: rotate(-45deg);
}

.consent-field input:focus-visible + .custom-checkbox {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}

.consent-field a {
  border-bottom: 1px solid currentColor;
}

.submit-button {
  width: 100%;
  margin-top: 30px;
}

.submit-button.loading {
  pointer-events: none;
  opacity: 0.72;
}

.demo-hint {
  margin: 12px 0 0;
  color: #99a19f;
  font-size: 9px;
  text-align: center;
}

.site-footer {
  color: rgba(255, 255, 255, 0.72);
  background: #102b2d;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 150px;
}

.logo-light {
  color: var(--white);
}

.logo-light .logo-mark {
  color: var(--ink);
  background: var(--white);
}

.logo-light .logo-copy small {
  color: rgba(255, 255, 255, 0.5);
}

.footer-inner > p {
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
}

.footer-links {
  display: flex;
  gap: 22px;
  justify-content: flex-end;
  font-size: 10px;
}

dialog {
  max-width: min(520px, calc(100% - 32px));
  padding: 42px;
  border: 0;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(10, 30, 31, 0.62);
  backdrop-filter: blur(5px);
}

.dialog-close {
  position: absolute;
  width: 34px;
  height: 34px;
  top: 14px;
  right: 14px;
  border-radius: 50%;
  color: var(--muted);
  background: var(--paper);
  font-size: 20px;
}

.policy-dialog h2,
.recovery-dialog h2,
.mfa-setup-dialog h2,
.password-dialog h2,
.profile-dialog h2 {
  margin: 14px 0 20px;
  font-size: 36px;
}

.policy-dialog p,
.recovery-dialog p,
.mfa-setup-dialog > p,
.password-dialog p,
.profile-dialog > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.dialog-note {
  padding: 12px;
  background: var(--paper);
}

/* Staff authentication */
.staff-page {
  min-height: 100vh;
  background: var(--white);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.94fr) minmax(520px, 1.06fr);
  min-height: 100vh;
}

.auth-story {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: clamp(38px, 5vw, 72px);
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.08), transparent 26%),
    var(--ink);
}

.auth-story-copy {
  position: relative;
  z-index: 2;
  max-width: 630px;
  margin: auto 0 54px;
}

.auth-kicker {
  color: #dba88e;
}

.auth-story h1 {
  margin-top: 24px;
  font-size: clamp(54px, 5vw, 78px);
  line-height: 0.96;
}

.auth-story-copy > p {
  max-width: 510px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  line-height: 1.75;
}

.security-points {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.security-points > div {
  display: flex;
  gap: 12px;
}

.security-points > div > span {
  color: #dba88e;
  font-size: 9px;
}

.security-points p {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
}

.security-points strong {
  font-size: 10px;
}

.security-points small {
  max-width: 110px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 9px;
  line-height: 1.4;
}

.auth-art {
  position: absolute;
  width: 440px;
  height: 440px;
  top: 50%;
  right: -240px;
  opacity: 0.38;
  transform: translateY(-50%);
}

.art-ring,
.art-core {
  position: absolute;
  border-radius: 50%;
}

.art-ring {
  border: 1px solid rgba(255, 255, 255, 0.36);
}

.ring-a {
  inset: 0;
}

.ring-b {
  inset: 72px;
}

.art-core {
  display: grid;
  inset: 145px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-style: italic;
  place-items: center;
}

.auth-panel {
  position: relative;
  display: grid;
  padding: 60px clamp(48px, 8vw, 130px);
  background:
    linear-gradient(rgba(24, 54, 56, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 54, 56, 0.035) 1px, transparent 1px),
    var(--white);
  background-size: 44px 44px;
  place-items: center;
}

.auth-layout-compact {
  display: block;
  min-height: 100vh;
}

.auth-layout-compact .auth-story {
  display: none;
}

.auth-layout-compact .auth-panel {
  min-height: 100vh;
  padding: 70px 24px;
}

.auth-layout-compact .auth-card {
  width: min(440px, 100%);
}

.auth-layout-compact .prototype-badge,
.auth-layout-compact .back-to-site,
.auth-layout-compact .back-button {
  display: none;
}

.auth-layout-compact .auth-heading {
  margin-bottom: 34px;
}

.auth-layout-compact .auth-heading h2 {
  margin-top: 0;
  font-size: clamp(43px, 6vw, 58px);
}

.totp-enrollment-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.totp-qr-card {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.totp-qr-card img {
  display: block;
  width: min(230px, 100%);
  padding: 9px;
  background: var(--white);
}

.totp-qr-card small,
.mfa-qr small {
  color: var(--muted);
  font-size: 8px;
  text-align: center;
}

.totp-manual-setup {
  border: 1px solid var(--line);
  background: var(--white);
}

.totp-manual-setup summary {
  padding: 13px 15px;
  color: var(--muted);
  cursor: pointer;
  font-size: 9px;
  text-align: center;
}

.totp-manual-setup .totp-secret-card {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.totp-secret-card {
  display: grid;
  gap: 9px;
  margin: 0 0 24px;
  padding: 17px;
  border: 1px solid var(--line);
  background: var(--paper);
  text-align: center;
}

.totp-secret-card span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.totp-secret-card strong {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.totp-secret-card button,
.mfa-secret button {
  justify-self: center;
  padding: 7px 9px;
  color: var(--terracotta-dark);
  background: var(--terracotta-soft);
  font-size: 8px;
  font-weight: 800;
}

.prototype-badge {
  position: absolute;
  top: 28px;
  right: 32px;
  padding: 8px 12px;
  border: 1px solid rgba(216, 111, 67, 0.3);
  border-radius: 999px;
  color: var(--terracotta-dark);
  background: rgba(246, 223, 211, 0.7);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-card {
  width: min(440px, 100%);
}

.back-to-site,
.back-button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 58px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
}

.auth-heading {
  margin-bottom: 36px;
}

.auth-heading h2 {
  margin: 14px 0 12px;
  font-size: 48px;
}

.auth-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.field-auth {
  margin-bottom: 21px;
}

.field-auth input {
  height: 50px;
  padding-right: 74px;
}

.password-toggle {
  position: absolute;
  top: 38px;
  right: 0;
  padding: 6px 0;
  color: var(--terracotta);
  background: transparent;
  font-size: 9px;
  font-weight: 700;
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0 28px;
  color: var(--muted);
  font-size: 9px;
}

.auth-options label {
  display: flex;
  gap: 7px;
  align-items: center;
}

.auth-options input {
  accent-color: var(--ink);
}

.auth-options a {
  border-bottom: 1px solid currentColor;
}

.auth-button {
  width: 100%;
}

.auth-support {
  margin: 26px 0 0;
  color: #949d9a;
  font-size: 9px;
  text-align: center;
}

.auth-message {
  min-height: 20px;
  margin-top: 12px;
  color: #a94426;
  font-size: 10px;
  text-align: center;
}

.otp-heading {
  text-align: center;
}

.authenticator-icon {
  position: relative;
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--sage-soft);
  place-items: center;
}

.authenticator-icon::before {
  width: 25px;
  height: 20px;
  border-radius: 3px;
  background: var(--ink);
  content: "";
}

.authenticator-icon::after {
  position: absolute;
  width: 13px;
  height: 14px;
  top: 13px;
  border: 3px solid var(--ink);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  content: "";
}

.authenticator-icon span {
  position: absolute;
  z-index: 1;
  width: 5px;
  height: 5px;
  top: 35px;
  border-radius: 50%;
  background: var(--white);
}

.otp-heading strong {
  color: var(--ink);
}

.otp-input {
  padding-right: 0 !important;
  font-size: 28px !important;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-align: center;
}

.demo-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -5px 0 25px;
  padding: 12px 14px;
  background: var(--paper);
  font-size: 9px;
}

.demo-code button {
  color: var(--terracotta-dark);
  background: transparent;
  font-weight: 800;
  letter-spacing: 0.15em;
}

/* Dashboard */
.dashboard {
  display: grid;
  grid-template-columns: 248px 1fr;
  width: 100%;
  min-height: 100vh;
  min-width: 0;
  background: #eef0ec;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 32px 24px 24px;
  color: var(--white);
  background: var(--ink);
}

.dashboard-logo {
  margin: 0 8px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 62px;
}

.sidebar-nav button {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  padding: 0 13px;
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.58);
  background: transparent;
  font-size: 11px;
  text-align: left;
  transition: 150ms ease;
}

.sidebar-nav button:hover,
.sidebar-nav button.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.09);
}

.sidebar-nav button.active {
  box-shadow: inset 2px 0 var(--terracotta);
}

.sidebar-nav b {
  display: grid;
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--terracotta-soft);
  font-size: 9px;
  place-items: center;
}

.nav-icon {
  color: #dba88e;
  font-size: 18px;
  text-align: center;
}

.sidebar-bottom {
  margin-top: auto;
}

.secure-state {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0 9px 18px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 8px;
}

.secure-state span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8ebb9f;
  box-shadow: 0 0 0 4px rgba(142, 187, 159, 0.08);
}

.employee-card {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 16px 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.employee-avatar {
  width: 32px;
  height: 32px;
  background: #d6a085;
}

.employee-card p {
  min-width: 0;
}

.employee-card strong {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-card small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 8px;
}

.employee-card button {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
  font-size: 19px;
}

.dashboard-main {
  min-width: 0;
  padding: 36px clamp(28px, 4vw, 62px) 56px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-header p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 9px;
}

.dashboard-header h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

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

.moscow-clock {
  display: flex;
  gap: 9px;
  align-items: baseline;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.72);
  font-variant-numeric: tabular-nums;
}

.moscow-clock span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.moscow-clock strong {
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
}

.account-shortcut {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
  font-size: 9px;
}

.prototype-badge.inline {
  position: static;
}

.notification-button {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: var(--white);
  font-size: 8px;
}

.notification-button span {
  position: absolute;
  display: grid;
  width: 16px;
  height: 16px;
  top: -3px;
  right: -3px;
  border-radius: 50%;
  color: var(--white);
  background: var(--terracotta);
  font-size: 8px;
  place-items: center;
}

.mobile-logout,
.mobile-settings,
.mobile-brand {
  display: none;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.summary-grid article {
  padding: 19px 20px;
  border: 1px solid rgba(24, 54, 56, 0.08);
  background: var(--white);
}

.summary-label {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 9px;
}

.summary-icon {
  display: grid;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  place-items: center;
}

.summary-icon.warm {
  color: #9d4627;
  background: var(--terracotta-soft);
}

.summary-icon.sage {
  color: #4d745f;
  background: var(--sage-soft);
}

.summary-icon.blue {
  color: #3e6c70;
  background: var(--blue-soft);
}

.summary-icon.dark {
  color: var(--white);
  background: var(--ink);
}

.summary-grid article > strong {
  display: block;
  margin-top: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 400;
}

.summary-grid article > p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 8px;
}

.summary-grid article > p b {
  color: #4d745f;
}

.attention-card {
  color: var(--white);
  background: var(--terracotta) !important;
}

.attention-card .summary-label,
.attention-card > p {
  color: rgba(255, 255, 255, 0.7) !important;
}

.applications-panel {
  margin-top: 22px;
  background: var(--white);
}

.settings-view {
  margin-top: 34px;
}

.settings-intro h2 {
  margin: 13px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.settings-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(420px, 1.28fr);
  gap: 18px;
  margin-top: 27px;
}

.settings-card {
  padding: 27px;
  border: 1px solid rgba(24, 54, 56, 0.08);
  background: var(--white);
}

.settings-card-label {
  display: block;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.settings-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.settings-card-heading .settings-card-label {
  margin-bottom: 0;
}

.settings-profile {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.settings-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--white);
  background: var(--terracotta);
  font-size: 11px;
  font-weight: 700;
  place-items: center;
}

.settings-profile div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.settings-profile strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 400;
}

.settings-profile small {
  color: var(--muted);
  font-size: 8px;
}

.settings-card dl {
  display: grid;
  gap: 14px;
  margin: 23px 0 0;
}

.settings-card dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.settings-card dt,
.settings-card dd {
  font-size: 8px;
}

.settings-card dt {
  color: var(--muted);
}

.settings-card dd {
  margin: 0;
}

.security-setting-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 82px;
  border-top: 1px solid var(--line);
}

.security-setting-row:nth-of-type(2) {
  border-bottom: 1px solid var(--line);
}

.setting-icon {
  display: grid;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper-deep);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  place-items: center;
}

.setting-icon.shield-icon {
  color: #456950;
  background: var(--sage-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.security-setting-row > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.security-setting-row strong {
  font-size: 10px;
}

.security-setting-row p {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.4;
}

.settings-action {
  padding: 8px 10px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  font-size: 8px;
}

.toggle {
  position: relative;
  display: block;
  width: 42px;
  height: 24px;
  cursor: pointer;
}

.toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.toggle span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #dfe1dd;
  transition: background 160ms ease;
}

.toggle span::after {
  position: absolute;
  width: 18px;
  height: 18px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 5px rgba(24, 54, 56, 0.18);
  content: "";
  transition: transform 160ms ease;
}

.toggle input:checked + span {
  background: var(--terracotta);
}

.toggle input:checked + span::after {
  transform: translateX(18px);
}

.toggle input:focus-visible + span {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}

.mfa-enabled-note {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  padding: 14px;
  color: #456950;
  background: var(--sage-soft);
}

.mfa-setup-content .mfa-secret {
  grid-column: 1 / -1;
}

.mfa-enabled-note > span {
  display: grid;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--white);
  background: #759481;
  font-size: 10px;
  place-items: center;
}

.mfa-enabled-note p {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.mfa-enabled-note strong {
  font-size: 9px;
}

.mfa-enabled-note small {
  color: #607a6d;
  font-size: 8px;
  line-height: 1.4;
}

.mfa-setup-dialog {
  width: min(610px, calc(100% - 32px));
}

.mfa-setup-content {
  display: grid;
  grid-template-columns: 146px 1fr;
  gap: 24px;
  align-items: center;
  margin: 26px 0 28px;
  padding: 22px;
  background: var(--paper);
}

.mfa-qr {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.mfa-qr img {
  display: block;
  width: 146px;
  padding: 8px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(24, 54, 56, 0.08);
}

.recovery-dialog,
.profile-dialog {
  width: min(560px, calc(100% - 32px));
}

.recovery-dialog form {
  margin-top: 26px;
}

.recovery-back {
  display: block;
  margin: 13px auto 0;
  padding: 6px 0;
  border-bottom: 1px solid currentColor;
  color: var(--muted);
  background: transparent;
  font-size: 9px;
}

.demo-qr {
  position: relative;
  display: grid;
  width: 132px;
  height: 132px;
  border: 10px solid var(--white);
  color: var(--white);
  background:
    conic-gradient(from 90deg at 25% 25%, var(--ink) 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0) 0 0 / 28px 28px,
    conic-gradient(from 270deg at 75% 75%, transparent 25%, var(--ink) 0 50%, transparent 0 75%, var(--ink) 0) 0 0 / 19px 19px,
    var(--white);
  box-shadow: 0 8px 24px rgba(24, 54, 56, 0.08);
  place-items: center;
}

.demo-qr span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: var(--terracotta);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  place-items: center;
}

.mfa-secret {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mfa-secret > span {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mfa-secret strong {
  padding: 10px 12px;
  border: 1px dashed rgba(24, 54, 56, 0.25);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.mfa-secret small {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 26px 19px;
  border-bottom: 1px solid var(--line);
}

.panel-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
}

.panel-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 8px;
}

.refresh-button {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--white);
  font-size: 8px;
}

.refresh-button.spinning span {
  animation: spin 500ms linear;
}

.application-tools {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 26px;
}

.search-field {
  display: flex;
  gap: 8px;
  align-items: center;
  width: min(360px, 100%);
  padding: 0 12px;
  background: #f3f4f1;
}

.search-field > span {
  color: var(--muted);
  font-size: 18px;
}

.search-field input {
  height: 38px;
  border: 0;
  font-size: 9px;
}

.filter-tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: #f3f4f1;
}

.filter-tabs button {
  min-height: 31px;
  padding: 0 13px;
  color: var(--muted);
  background: transparent;
  font-size: 8px;
}

.filter-tabs button.active {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 2px 8px rgba(31, 57, 55, 0.08);
}

.application-table-wrap {
  overflow-x: auto;
}

.application-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.application-table th {
  padding: 11px 14px;
  color: var(--muted);
  background: #f7f7f4;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.application-table th:first-child,
.application-table td:first-child {
  padding-left: 26px;
}

.application-table td {
  height: 68px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(24, 54, 56, 0.07);
  color: var(--muted);
  font-size: 9px;
}

.application-table tbody tr {
  cursor: pointer;
  transition: background 140ms ease;
}

.application-table tbody tr:hover {
  background: #faf9f5;
}

.client-cell {
  display: flex;
  gap: 10px;
  align-items: center;
}

.client-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--sage-soft);
  font-size: 8px;
  font-weight: 700;
  place-items: center;
}

.client-avatar.warm {
  background: var(--terracotta-soft);
}

.client-cell p {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.client-cell strong {
  color: var(--ink);
  font-size: 9px;
}

.client-cell small {
  color: var(--muted);
  font-size: 8px;
}

.source-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 7px;
  font-weight: 700;
}

.source-pill {
  color: #466056;
  background: var(--sage-soft);
}

.source-pill.telegram {
  color: #3c676d;
  background: var(--blue-soft);
}

.source-pill.max {
  color: #745640;
  background: #efe3d5;
}

.status-new {
  color: #a64b2a;
  background: var(--terracotta-soft);
}

.status-progress {
  color: #456950;
  background: var(--sage-soft);
}

.status-done {
  color: var(--muted);
  background: #eaebe8;
}

.row-open {
  color: var(--ink);
  background: transparent;
  font-size: 15px;
}

.empty-state {
  padding: 58px 20px;
  text-align: center;
}

.empty-state > span {
  color: var(--sage);
  font-size: 38px;
}

.empty-state h3 {
  margin: 12px 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

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

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 26px;
}

.table-footer p {
  color: var(--muted);
  font-size: 8px;
}

.table-footer div {
  display: flex;
  gap: 3px;
}

.table-footer button {
  width: 27px;
  height: 27px;
  color: var(--muted);
  background: #f3f4f1;
  font-size: 8px;
}

.table-footer button:nth-child(2) {
  color: var(--white);
  background: var(--ink);
}

.drawer-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  background: rgba(14, 34, 35, 0.36);
  backdrop-filter: blur(2px);
}

.application-drawer {
  position: fixed;
  z-index: 90;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  height: 100vh;
  top: 0;
  right: 0;
  color: var(--ink);
  background: var(--white);
  box-shadow: -28px 0 80px rgba(19, 46, 47, 0.18);
  transform: translateX(105%);
  transition: transform 220ms ease;
}

.application-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
}

.drawer-header > div {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 9px;
}

.drawer-header span {
  color: var(--muted);
}

.drawer-header button {
  color: var(--muted);
  background: transparent;
  font-size: 25px;
}

.drawer-content {
  flex: 1;
  padding: 30px 28px;
  overflow-y: auto;
}

.drawer-person {
  display: flex;
  gap: 15px;
  align-items: center;
}

.drawer-person > span {
  display: grid;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sage-soft);
  font-size: 12px;
  font-weight: 700;
  place-items: center;
}

.drawer-person h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
}

.drawer-person p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.drawer-status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0;
}

.drawer-status-line small {
  color: var(--muted);
  font-size: 8px;
}

.drawer-section {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.drawer-section h3 {
  margin: 0 0 18px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.drawer-section dl {
  display: grid;
  gap: 15px;
  margin: 0;
}

.drawer-section dl > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
}

.drawer-section dt {
  color: var(--muted);
  font-size: 9px;
}

.drawer-section dd {
  margin: 0;
  font-size: 10px;
}

.decrypt-note {
  display: flex;
  gap: 7px;
  margin: 20px 0 0;
  padding: 11px;
  color: #4d745f;
  background: var(--sage-soft);
  font-size: 8px;
  line-height: 1.45;
}

.client-comment {
  margin: 18px 0 0;
  padding: 15px;
  color: var(--ink-soft);
  background: var(--paper);
  font-size: 10px;
  line-height: 1.6;
}

.drawer-field {
  margin-top: 6px;
}

.drawer-actions {
  display: grid;
  gap: 8px;
  padding: 20px 28px;
  border-top: 1px solid var(--line);
}

.drawer-secondary {
  min-height: 38px;
  color: var(--muted);
  background: transparent;
  font-size: 9px;
}

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

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr 0.88fr;
    gap: 32px;
  }

  .hero h1 {
    font-size: clamp(58px, 7vw, 78px);
  }

  .property-card {
    right: 0;
  }

  .process-inner,
  .request-section,
  .about {
    gap: 60px;
  }

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

  .security-points {
    grid-template-columns: 1fr;
  }

  .security-points > div {
    display: none;
  }

  .security-points > div:first-child {
    display: flex;
  }

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

@media (max-width: 940px) {
  .about {
    grid-template-columns: 1fr;
    gap: 62px;
    padding-block: 90px;
  }

  .about-visual {
    width: min(520px, calc(100% - 24px));
    min-height: 610px;
    margin-inline: auto;
  }

  .about-copy {
    max-width: 620px;
  }

  .about-visual-note {
    right: 12px;
  }
}

@media (max-width: 820px) {
  html,
  body.staff-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .section-shell,
  .site-header {
    width: min(100% - 32px, 680px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 76px;
  }

  .desktop-nav,
  .staff-link {
    display: none;
  }

  .menu-button {
    display: grid;
    gap: 6px;
    width: 42px;
    height: 42px;
    padding: 12px 9px;
    background: transparent;
    place-content: center;
  }

  .menu-button > span:not(.sr-only) {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--ink);
    transition: transform 150ms ease;
  }

  .menu-button[aria-expanded="true"] > span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] > span:nth-child(2) {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .mobile-menu {
    position: absolute;
    display: none;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    top: 76px;
    left: 0;
    padding: 24px;
    border-top: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 18px 34px rgba(31, 57, 55, 0.08);
    font-size: 13px;
  }

  .mobile-menu.open {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 58px;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
  }

  .hero h1 {
    max-width: 620px;
    font-size: clamp(53px, 12vw, 78px);
  }

  .hero-visual {
    width: min(580px, 100%);
    min-height: 520px;
    margin-inline: auto;
  }

  .services {
    padding-block: 90px;
  }

  .section-heading,
  .process-inner,
  .request-section,
  .about {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 28px;
  }

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

  .service-card {
    min-height: 350px;
  }

  .process-inner {
    gap: 58px;
    padding-block: 90px;
  }

  .request-section {
    gap: 56px;
    padding-block: 90px;
  }

  .request-copy {
    position: static;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-block: 38px;
    text-align: left;
  }

  .footer-links {
    justify-content: flex-start;
  }

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

  .auth-story {
    min-height: auto;
    padding: 34px 28px 46px;
  }

  .auth-story-copy {
    margin: 82px 0 0;
  }

  .auth-story h1 {
    max-width: 620px;
  }

  .auth-story-copy > p,
  .security-points,
  .auth-art {
    display: none;
  }

  .auth-panel {
    min-height: 680px;
    padding: 74px 28px;
  }

  .dashboard {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    overflow-x: clip;
  }

  .sidebar {
    display: none;
  }

  .dashboard-main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 24px 18px 40px;
  }

  .dashboard-main > *,
  .admin-view,
  .applications-panel,
  .application-table-wrap,
  .staff-table-card,
  .staff-table-wrap {
    max-width: 100%;
    min-width: 0;
  }

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

  .dashboard-header > div:first-child {
    min-width: 0;
  }

  .dashboard-actions {
    display: flex;
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
  }

  .dashboard-actions .moscow-clock {
    margin-right: auto;
  }

  .account-shortcut {
    display: none;
  }

  .mobile-brand {
    display: grid;
    width: 34px;
    height: 34px;
    margin-bottom: 18px;
    border-radius: 50%;
    color: var(--white);
    background: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11px;
    place-items: center;
  }

  .mobile-logout {
    display: block;
    padding: 9px 12px;
    color: var(--muted);
    background: var(--white);
    font-size: 9px;
  }

  .mobile-settings {
    display: block;
    padding: 9px 12px;
    color: var(--ink);
    background: var(--sage-soft);
    font-size: 9px;
  }

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

  .application-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-tabs {
    overflow-x: auto;
  }

  .filter-tabs button {
    flex: 1 0 auto;
  }

  .application-table {
    min-width: 760px;
  }
}

@media (max-width: 560px) {
  .logo-copy small {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-block: 45px 70px;
  }

  .hero h1 {
    font-size: clamp(47px, 14vw, 66px);
  }

  .hero-lead {
    font-size: 15px;
  }

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

  .trust-line {
    grid-template-columns: 1fr;
    gap: 17px;
    margin-top: 42px;
  }

  .trust-line div {
    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: center;
  }

  .trust-line span {
    max-width: none;
  }

  .hero-visual {
    min-height: 420px;
    overflow: hidden;
  }

  .hero-visual::before {
    inset: 15px 0 15px 20px;
  }

  .property-scene {
    inset: 62px 20px 36px 45px;
  }

  .building-front {
    left: 10px;
  }

  .property-card {
    width: 85%;
    padding: 17px;
  }

  .floating-note {
    top: 32px;
  }

  .section-heading h2,
  .process-intro h2,
  .request-copy h2,
  .about-copy h2 {
    font-size: 47px;
  }

  .about {
    gap: 48px;
    padding-block: 72px 82px;
  }

  .about-visual {
    width: 100%;
    min-height: 500px;
  }

  .portrait-placeholder {
    height: 500px;
  }

  .portrait-silhouette {
    scale: 0.86;
    transform-origin: center bottom;
  }

  .about-visual-note {
    right: 12px;
    top: 24px;
  }

  .about-lead {
    font-size: 19px;
  }

  .agent-signature {
    grid-template-columns: 32px 1fr;
  }

  .signature-line {
    width: 32px;
  }

  .signature-placeholder {
    grid-column: 2;
    width: max-content;
  }

  .service-card {
    padding: 28px;
  }

  .process-list li {
    grid-template-columns: 40px 1fr;
  }

  .request-form {
    margin-inline: 0;
    padding: 30px 22px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  dialog {
    padding: 34px 24px;
  }

  .auth-story h1 {
    font-size: 48px;
  }

  .auth-story-copy {
    margin-top: 58px;
  }

  .auth-panel {
    min-height: 640px;
    padding-inline: 22px;
  }

  .prototype-badge {
    top: 20px;
    right: 20px;
  }

  .back-to-site,
  .back-button {
    margin-bottom: 42px;
  }

  .auth-heading h2 {
    font-size: 41px;
  }

  .dashboard-main {
    padding: 20px 14px 34px;
  }

  .dashboard-header h1 {
    font-size: 31px;
  }

  .dashboard-actions {
    gap: 8px;
  }

  .moscow-clock {
    min-height: 36px;
    padding-inline: 10px;
  }

  .moscow-clock strong {
    font-size: 10px;
  }

  .mobile-view-control {
    flex: 1 1 auto;
    min-width: 0;
  }

  .mobile-view-control select {
    width: 100%;
    max-width: none;
  }

  .summary-grid {
    width: 100%;
  }

  .settings-card {
    padding: 21px 17px;
  }

  .security-setting-row {
    grid-template-columns: 35px 1fr auto;
    gap: 10px;
  }

  .mfa-setup-content {
    grid-template-columns: 1fr;
  }

  .demo-qr {
    margin-inline: auto;
  }

  .summary-grid {
    gap: 8px;
  }

  .summary-grid article {
    padding: 15px;
  }

  .summary-grid article > strong {
    font-size: 28px;
  }

  .panel-heading,
  .application-tools,
  .table-footer {
    padding-right: 17px;
    padding-left: 17px;
  }

  .table-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .panel-heading {
    gap: 15px;
    align-items: flex-start;
    flex-direction: column;
  }

  .application-table-wrap {
    overflow: visible;
  }

  .application-table {
    display: block;
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .application-table thead {
    display: none;
  }

  .application-table tbody {
    display: grid;
  }

  .application-table tbody tr {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    padding: 17px;
    border-bottom: 1px solid rgba(24, 54, 56, 0.09);
  }

  .application-table td {
    display: block;
    height: auto;
    padding: 0 !important;
    border: 0;
    white-space: normal;
  }

  .application-table td:nth-child(1) {
    grid-column: 1 / -1;
    padding-right: 32px !important;
  }

  .application-table td:nth-child(2),
  .application-table td:nth-child(3) {
    grid-column: 1;
  }

  .application-table td:nth-child(4),
  .application-table td:nth-child(5) {
    grid-column: 2;
    justify-self: end;
    text-align: right;
  }

  .application-table td:nth-child(6) {
    position: absolute;
    top: 18px;
    right: 17px;
  }

  .client-cell strong {
    font-size: 11px;
  }

  .client-cell small {
    font-size: 9px;
  }

  .settings-card-heading {
    align-items: center;
  }

  .mfa-setup-content {
    padding: 16px;
  }

  .mfa-qr img {
    width: min(220px, 100%);
  }
}

/* Administrator workspace */
.mobile-view-control {
  display: none;
}

.mobile-view-control select {
  height: 38px;
  padding: 0 30px 0 11px;
  border: 1px solid var(--line);
  outline: 0;
  color: var(--ink);
  background: var(--white);
  font-size: 9px;
}

.admin-view {
  margin-top: 34px;
}

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

.admin-view-heading h2 {
  margin: 13px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.admin-view-heading p {
  max-width: 670px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.staff-add-button {
  flex: 0 0 auto;
  min-height: 41px;
  padding-inline: 17px;
  font-size: 8px;
}

.staff-security-note {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 26px;
  padding: 15px 18px;
  color: #456950;
  background: var(--sage-soft);
}

.staff-security-note > span {
  display: grid;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--white);
  background: #759481;
  font-size: 10px;
  place-items: center;
}

.staff-security-note p {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.staff-security-note strong {
  font-size: 10px;
}

.staff-security-note small {
  color: #5f7b68;
  font-size: 8px;
}

.staff-table-card {
  margin-top: 16px;
  border: 1px solid rgba(24, 54, 56, 0.08);
  background: var(--white);
}

.staff-table-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.staff-table-heading h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
}

.staff-table-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 8px;
}

.staff-table-wrap {
  overflow-x: auto;
}

.staff-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  font-size: 8px;
}

.staff-table th {
  padding: 11px 18px;
  color: var(--muted);
  background: rgba(244, 241, 233, 0.7);
  font-size: 7px;
  letter-spacing: 0.09em;
  text-align: left;
  text-transform: uppercase;
}

.staff-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

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

.staff-identity {
  display: flex;
  gap: 10px;
  align-items: center;
}

.staff-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--white);
  background: var(--terracotta);
  font-size: 8px;
  font-weight: 800;
  place-items: center;
}

.staff-identity p {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.staff-identity strong {
  font-size: 9px;
}

.staff-identity small {
  color: var(--muted);
  font-size: 8px;
}

.staff-protection,
.staff-state {
  display: inline-block;
  padding: 5px 7px;
  color: var(--muted);
  background: var(--paper);
  white-space: nowrap;
}

.staff-protection.enabled,
.staff-state.active {
  color: #456950;
  background: var(--sage-soft);
}

.staff-state.blocked {
  color: #9d4627;
  background: var(--terracotta-soft);
}

.staff-row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.staff-row-actions button {
  padding: 7px 9px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  font-size: 7px;
  white-space: nowrap;
}

.staff-row-actions button.danger {
  color: #9d4627;
  border-color: rgba(216, 111, 67, 0.26);
}

.staff-dialog {
  width: min(560px, calc(100% - 32px));
  max-width: 560px;
}

.staff-dialog h2 {
  margin: 14px 0 12px;
  font-size: 36px;
}

.staff-dialog > p {
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.temporary-credential {
  display: grid;
  gap: 10px;
  padding: 19px;
  border: 1px solid rgba(216, 111, 67, 0.2);
  background: var(--terracotta-soft);
  text-align: center;
}

.temporary-credential > span {
  color: var(--terracotta-dark);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.temporary-credential strong {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.temporary-credential button {
  justify-self: center;
  padding: 7px 10px;
  color: var(--white);
  background: var(--terracotta);
  font-size: 8px;
  font-weight: 800;
}

.server-status-banner,
.editor-status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
  padding: 15px 18px;
  border: 1px solid rgba(88, 132, 103, 0.2);
  background: rgba(223, 232, 226, 0.72);
}

.server-status-banner > div,
.editor-status-line > div {
  display: flex;
  gap: 11px;
  align-items: center;
}

.server-status-banner p,
.editor-status-line p {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
}

.server-status-banner strong,
.editor-status-line strong {
  font-size: 10px;
}

.server-status-banner small,
.editor-status-line small {
  color: var(--muted);
  font-size: 8px;
}

.server-status-dot,
.draft-state-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6e9c7b;
  box-shadow: 0 0 0 5px rgba(110, 156, 123, 0.11);
}

.read-only-badge,
.mfa-required-badge {
  padding: 7px 9px;
  border: 1px solid rgba(74, 111, 84, 0.2);
  color: #456950;
  background: rgba(255, 255, 255, 0.62);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.metric-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(24, 54, 56, 0.08);
  background: var(--white);
}

.metric-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-card > div:first-child span {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-card > div:first-child small,
.metric-card > p {
  color: var(--muted);
  font-size: 8px;
}

.metric-card > strong {
  display: block;
  margin-top: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 400;
}

.metric-card > p {
  margin: 8px 0 0;
}

.metric-track {
  height: 4px;
  margin-top: 14px;
  overflow: hidden;
  background: var(--paper-deep);
}

.metric-track span {
  display: block;
  height: 100%;
  background: #78998a;
  transition: width 280ms ease;
}

.metric-track.warm span {
  background: var(--terracotta);
}

.metric-spark {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 20px;
  margin-top: 7px;
}

.metric-spark i {
  flex: 1;
  min-width: 3px;
  background: var(--terracotta-soft);
}

.metric-spark i:nth-child(1) { height: 32%; }
.metric-spark i:nth-child(2) { height: 58%; }
.metric-spark i:nth-child(3) { height: 45%; }
.metric-spark i:nth-child(4) { height: 78%; }
.metric-spark i:nth-child(5) { height: 62%; }
.metric-spark i:nth-child(6) { height: 88%; }
.metric-spark i:nth-child(7) { height: 100%; background: var(--terracotta); }

.operations-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.38fr) minmax(270px, 0.62fr);
  gap: 16px;
  margin-top: 16px;
}

.operations-card {
  border: 1px solid rgba(24, 54, 56, 0.08);
  background: var(--white);
}

.operations-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 21px 22px 17px;
  border-bottom: 1px solid var(--line);
}

.operations-card h3,
.block-manager h3,
.live-preview-panel h3,
.audit-table-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
}

.operations-card-heading p,
.block-manager-heading p,
.audit-table-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 8px;
}

.operations-card-heading > span {
  padding: 6px 8px;
  color: var(--muted);
  background: var(--paper);
  font-size: 8px;
}

.services-health ul {
  margin: 0;
  padding: 0 22px;
  list-style: none;
}

.services-health li {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 60px;
  border-bottom: 1px solid var(--line);
}

.services-health li:last-child {
  border-bottom: 0;
}

.services-health li p {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.services-health li strong,
.services-health li b {
  font-size: 9px;
}

.services-health li small {
  color: var(--muted);
  font-size: 8px;
}

.services-health li b {
  color: #52725d;
  font-weight: 700;
}

.service-state {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.service-state.ok {
  background: #79a486;
}

.service-state.pending {
  background: #c6a255;
}

.service-state.pending ~ b {
  color: #927735;
}

.operations-stack {
  display: grid;
  gap: 12px;
}

.compact-operation {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px;
}

.compact-operation > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.compact-operation small,
.compact-operation p {
  color: var(--muted);
  font-size: 8px;
}

.compact-operation strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 400;
}

.compact-operation p {
  margin: 0;
  line-height: 1.5;
}

.operation-icon {
  display: grid;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--terracotta-dark);
  background: var(--terracotta-soft);
  place-items: center;
}

.operation-icon.secure {
  color: #52725d;
  background: var(--sage-soft);
}

.editor-heading {
  align-items: flex-start;
}

.editor-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.toolbar-button {
  min-height: 39px;
  padding: 0 13px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
  font-size: 8px;
  font-weight: 700;
}

.editor-publish {
  min-height: 39px;
  padding-inline: 16px;
  font-size: 8px;
}

.editor-status-line {
  border-color: rgba(216, 111, 67, 0.16);
  background: rgba(246, 223, 211, 0.62);
}

.editor-status-line > span {
  color: var(--muted);
  font-size: 8px;
}

.draft-state-dot {
  background: var(--terracotta);
  box-shadow: 0 0 0 5px rgba(216, 111, 67, 0.1);
}

.site-editor-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.96fr) minmax(420px, 1.04fr);
  gap: 16px;
  align-items: start;
  margin-top: 16px;
}

.block-manager,
.live-preview-panel {
  border: 1px solid rgba(24, 54, 56, 0.08);
  background: var(--white);
}

.block-manager-heading,
.preview-panel-heading,
.audit-table-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.block-manager-heading button {
  padding: 8px 10px;
  color: var(--terracotta-dark);
  background: var(--terracotta-soft);
  font-size: 8px;
  font-weight: 800;
}

.block-manager-heading button span {
  margin-right: 5px;
  font-size: 13px;
}

.editor-block-list {
  padding: 7px 18px 14px;
}

.editor-block-card {
  display: grid;
  grid-template-columns: 40px minmax(130px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

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

.editor-block-card.is-hidden {
  opacity: 0.58;
}

.block-order {
  display: flex;
  gap: 5px;
  align-items: center;
}

.block-drag {
  color: #b2b9b6;
  font-size: 12px;
  letter-spacing: -4px;
}

.block-order b {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 400;
}

.block-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.block-copy strong {
  font-size: 9px;
}

.block-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.block-visibility {
  justify-self: end;
  padding: 5px 7px;
  color: var(--muted);
  background: var(--paper);
  font-size: 7px;
}

.block-visibility.visible {
  color: #52725d;
  background: var(--sage-soft);
}

.block-controls {
  grid-column: 2 / -1;
  display: flex;
  gap: 5px;
  justify-content: flex-end;
  margin-top: -5px;
}

.block-controls button {
  min-width: 27px;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  font-size: 8px;
}

.block-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.block-controls .block-edit {
  color: var(--terracotta-dark);
  border-color: rgba(216, 111, 67, 0.24);
}

.preview-panel-heading {
  padding: 14px 17px;
}

.preview-panel-heading > div:first-child {
  display: flex;
  gap: 9px;
  align-items: center;
}

.preview-panel-heading p {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
}

.preview-panel-heading strong {
  font-size: 9px;
}

.preview-panel-heading small {
  color: var(--muted);
  font-size: 7px;
}

.preview-browser-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 13px 0 var(--sage), 26px 0 #d6c47f;
}

.preview-devices {
  display: flex;
  gap: 4px;
}

.preview-devices button {
  width: 28px;
  height: 26px;
  color: var(--muted);
  background: var(--paper);
  font-size: 13px;
}

.preview-devices button.active {
  color: var(--white);
  background: var(--ink);
}

.site-preview-canvas {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  padding: 12px;
  background: #e8ebe6;
  transition: width 220ms ease, box-shadow 220ms ease;
}

.site-preview-canvas.mobile-preview {
  width: 310px;
  box-shadow: 0 14px 35px rgba(24, 54, 56, 0.13);
}

.preview-site-header {
  display: flex;
  gap: 7px;
  align-items: center;
  min-height: 35px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(24, 54, 56, 0.09);
  background: var(--white);
}

.preview-site-header span {
  display: grid;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 7px;
  place-items: center;
}

.preview-site-header strong {
  font-size: 7px;
}

.preview-site-header small {
  margin-left: auto;
  color: var(--muted);
  font-size: 6px;
}

.site-preview-stage {
  overflow: hidden;
  background: var(--paper);
}

.preview-content-block {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(90px, 0.85fr);
  gap: 16px;
  align-items: center;
  min-height: 150px;
  padding: 25px 27px;
  border-bottom: 1px solid rgba(24, 54, 56, 0.08);
}

.preview-content-block:last-child {
  border-bottom: 0;
}

.preview-content-block.preview-variant-image-left .preview-content-image {
  grid-column: 1;
  grid-row: 1;
}

.preview-content-block.preview-variant-image-left .preview-content-copy {
  grid-column: 2;
}

.preview-content-block.preview-variant-centered,
.preview-content-block.preview-variant-cards {
  grid-template-columns: 1fr;
  text-align: center;
}

.preview-content-copy {
  min-width: 0;
}

.preview-eyebrow {
  color: var(--terracotta-dark);
  font-size: 5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.preview-content-copy h3 {
  margin: 6px 0 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(14px, 2vw, 23px);
  font-weight: 400;
  line-height: 1.02;
}

.preview-content-copy > p {
  max-width: 310px;
  margin: 0;
  color: var(--muted);
  font-size: 6px;
  line-height: 1.55;
}

.preview-variant-centered .preview-content-copy > p,
.preview-variant-cards .preview-content-copy > p {
  margin-inline: auto;
}

.preview-content-image {
  display: grid;
  min-height: 104px;
  border: 1px solid rgba(24, 54, 56, 0.1);
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(154, 175, 164, 0.25), rgba(246, 223, 211, 0.5)),
    var(--white);
  place-content: center;
  text-align: center;
}

.preview-content-image span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-style: italic;
}

.preview-content-image small {
  margin-top: 4px;
  font-size: 6px;
}

.preview-content-image.has-image {
  background-position: center;
  background-size: cover;
}

.preview-services {
  background: var(--white);
}

.mini-service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 12px;
}

.mini-service-cards span {
  padding: 11px 4px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--paper);
  font-size: 6px;
}

.mini-process-steps {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 13px;
}

.mini-process-steps i {
  display: grid;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 7px;
  font-style: normal;
  place-items: center;
}

.preview-request {
  color: var(--white);
  background: var(--ink);
}

.preview-request .preview-eyebrow {
  color: #dba88e;
}

.preview-request .preview-content-copy > p {
  color: rgba(255, 255, 255, 0.55);
}

.mini-request-form {
  display: grid;
  gap: 6px;
  width: min(230px, 100%);
  margin: 13px auto 0;
}

.mini-request-form i {
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}

.mini-request-form button {
  height: 23px;
  margin-top: 4px;
  color: var(--white);
  background: var(--terracotta);
  font-size: 6px;
}

.preview-highlight {
  animation: preview-pulse 850ms ease;
}

@keyframes preview-pulse {
  50% { box-shadow: 0 0 0 5px rgba(216, 111, 67, 0.24); }
}

.audit-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.audit-summary article {
  display: grid;
  gap: 7px;
  padding: 18px;
  border: 1px solid rgba(24, 54, 56, 0.08);
  background: var(--white);
}

.audit-summary span,
.audit-summary small {
  color: var(--muted);
  font-size: 8px;
}

.audit-summary strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 400;
}

.audit-table-card {
  margin-top: 16px;
  border: 1px solid rgba(24, 54, 56, 0.08);
  background: var(--white);
}

.audit-table-wrap {
  overflow-x: auto;
}

.audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 8px;
}

.audit-table th {
  padding: 11px 18px;
  color: var(--muted);
  background: rgba(244, 241, 233, 0.7);
  font-size: 7px;
  letter-spacing: 0.09em;
  text-align: left;
  text-transform: uppercase;
}

.audit-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

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

.audit-table td:first-child {
  min-width: 225px;
}

.audit-table td strong,
.audit-table td small {
  display: block;
}

.audit-table td strong {
  margin-bottom: 4px;
  font-size: 9px;
}

.audit-table td small {
  color: var(--muted);
  font-size: 7px;
}

.audit-result {
  display: inline-block;
  padding: 5px 7px;
  color: #456950;
  background: var(--sage-soft);
}

.audit-result.warning {
  color: #9d4627;
  background: var(--terracotta-soft);
}

.mfa-required-badge {
  white-space: nowrap;
}

.block-editor-dialog {
  width: min(590px, calc(100% - 32px));
  max-width: 590px;
}

.publish-dialog {
  width: min(490px, calc(100% - 32px));
}

.block-editor-dialog h2,
.publish-dialog h2 {
  margin: 14px 0 12px;
  font-size: 36px;
}

.block-editor-dialog > p,
.publish-dialog > p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.editor-file-field input[type="file"] {
  height: auto;
  padding: 12px 0;
  font-size: 9px;
}

.file-selection {
  min-height: 13px;
  color: var(--muted);
  font-size: 8px;
}

.publish-safety-note {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 22px 0;
  padding: 14px;
  color: #456950;
  background: var(--sage-soft);
  font-size: 9px;
  line-height: 1.45;
}

.publish-safety-note span {
  display: grid;
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  color: var(--white);
  background: #759481;
  place-items: center;
}

.publish-actions {
  display: flex;
  gap: 9px;
}

.publish-actions > * {
  flex: 1;
}

@media (max-width: 1160px) {
  .site-editor-grid,
  .operations-grid {
    grid-template-columns: 1fr;
  }

  .site-preview-canvas {
    max-width: 680px;
  }
}

@media (max-width: 940px) {
  .metrics-grid,
  .audit-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .mobile-view-control {
    display: block;
  }

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

  .editor-toolbar {
    justify-content: flex-start;
  }

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

  .audit-table {
    min-width: 740px;
  }
}

@media (max-width: 560px) {
  .mobile-view-control select {
    width: 100%;
    max-width: none;
  }

  .metrics-grid,
  .audit-summary {
    grid-template-columns: 1fr;
  }

  .server-status-banner,
  .editor-status-line {
    gap: 14px;
    align-items: flex-start;
    flex-direction: column;
  }

  .editor-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .editor-publish {
    grid-column: 1 / -1;
  }

  .site-preview-canvas {
    padding: 6px;
  }

  .site-preview-canvas.mobile-preview {
    width: 100%;
  }

  .preview-content-block {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 20px;
  }

  .preview-content-block.preview-variant-image-left .preview-content-image,
  .preview-content-block.preview-variant-image-left .preview-content-copy {
    grid-column: 1;
  }

  .preview-content-block.preview-variant-image-left .preview-content-copy {
    grid-row: 1;
  }

  .block-manager-heading,
  .preview-panel-heading,
  .audit-table-heading {
    padding-inline: 15px;
  }

  .editor-block-list {
    padding-inline: 14px;
  }

  .editor-block-card {
    grid-template-columns: 34px 1fr;
  }

  .block-visibility {
    grid-column: 2;
    justify-self: start;
  }

  .block-controls {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .block-editor-dialog h2,
  .publish-dialog h2 {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
