:root {
  --ink: #151b32;
  --muted: #7c849d;
  --line: #e9edf6;
  --surface: #ffffff;
  --page: #f7f9fd;
  --soft: #f2f5ff;
  --primary: #4f5cf7;
  --primary-2: #6a73ff;
  --green: #31c981;
  --green-soft: #e7fbf1;
  --gold: #ffb33f;
  --gold-soft: #fff4df;
  --red: #f15b67;
  --red-soft: #fff0f2;
  --blue: #4c8cff;
  --blue-soft: #eef5ff;
  --shadow: 0 18px 48px rgba(44, 57, 112, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

a {
  color: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.public-site {
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fafc 0%, #eef4fb 48%, #f7f9fd 100%);
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 32px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.public-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex: 1;
}

.public-menu button {
  position: relative;
  min-height: 42px;
  padding: 0 4px;
  color: #2e354c;
  background: transparent;
  border: 0;
  font-weight: 800;
}

.public-menu button.active,
.public-menu button:hover {
  color: var(--primary);
}

.public-menu button.active::after {
  position: absolute;
  right: 0;
  bottom: -19px;
  left: 0;
  height: 3px;
  content: "";
  background: var(--primary);
  border-radius: 999px;
}

.public-nav button,
.role-tabs button {
  min-height: 40px;
  padding: 0 14px;
  color: #596178;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.public-nav .primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(79, 92, 247, 0.24);
}

.public-nav .primary-btn:first-child {
  color: #4f5872;
  background: #fff;
  border-color: var(--line);
  box-shadow: none;
}

.shield-mark {
  border-radius: 18px 18px 20px 20px;
}

.public-nav button:not(.primary-btn):hover,
.role-tabs button.active,
.role-tabs button:hover {
  color: var(--primary);
  background: var(--soft);
}

.site-hero {
  display: grid;
  grid-template-columns: minmax(460px, 0.92fr) minmax(520px, 1.08fr);
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: 44px 72px 40px;
  overflow: hidden;
}

.site-hero h1 {
  max-width: 660px;
  margin-top: 14px;
  font-size: 54px;
  line-height: 1.06;
}

.site-hero h1 span {
  color: var(--primary);
}

.site-hero p {
  max-width: 620px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
}

.site-hero .hero-actions {
  margin-top: 26px;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 720px;
  margin-top: 34px;
}

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

.hero-features span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--primary);
  background: #eef1ff;
  border-radius: 12px;
  font-size: 22px;
  font-weight: 900;
  grid-row: span 2;
}

.hero-features strong {
  font-size: 13px;
}

.hero-features small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.hero-visual::before {
  position: absolute;
  inset: 96px 11% 48px 18%;
  content: "";
  background: linear-gradient(180deg, rgba(109, 124, 149, 0.08), rgba(109, 124, 149, 0.28));
  border-radius: 22px;
  filter: blur(12px);
  opacity: 0.5;
  transform: perspective(780px) rotateY(-7deg);
}

.hero-room {
  position: absolute;
  inset: 20px -76px 0 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(248, 250, 252, 0.55) 0%, rgba(248, 250, 252, 0.16) 25%, rgba(248, 250, 252, 0) 48%),
    url("assets/hero-rental-security.svg");
  background-position: center;
  background-size: cover;
  border-radius: 20px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    inset 0 -80px 100px rgba(126, 143, 166, 0.12),
    0 28px 70px rgba(44, 57, 112, 0.08);
}

.hero-room::before {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  content: "";
  background:
    linear-gradient(90deg, rgba(248, 250, 252, 0.2) 0%, rgba(248, 250, 252, 0.03) 34%, rgba(255, 255, 255, 0) 68%),
    radial-gradient(circle at 79% 22%, rgba(255, 255, 255, 0.18), transparent 24%);
  border-radius: inherit;
  box-shadow: none;
  opacity: 1;
}

.hero-room::after {
  position: absolute;
  right: 5%;
  bottom: 6%;
  width: 31%;
  height: 18%;
  content: "";
  background: radial-gradient(ellipse at center, rgba(68, 83, 110, 0.16), transparent 70%);
}

.floating-card {
  position: absolute;
  display: grid;
  gap: 10px;
  min-width: 170px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 231, 242, 0.95);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(28, 39, 76, 0.12);
  backdrop-filter: blur(12px);
}

.floating-card span {
  color: #4c546c;
  font-size: 13px;
  font-weight: 800;
}

.floating-card strong {
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.floating-card small {
  color: #22a06b;
  font-size: 13px;
  font-weight: 800;
}

.risk-widget {
  top: 42px;
  left: 26%;
  place-items: center;
}

.risk-widget strong {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 10px solid var(--primary);
  border-left-color: #cdd4ff;
  border-radius: 999px;
}

.rent-widget {
  top: 74px;
  right: 8%;
}

.problem-widget {
  right: 28%;
  bottom: 68px;
}

.portfolio-widget {
  right: 2%;
  bottom: 112px;
}

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

.trust-row span {
  min-height: 34px;
  padding: 8px 12px;
  color: #44506c;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(44, 57, 112, 0.05);
}

.hero-panel,
.credential-card,
.demo-login {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.hero-panel {
  align-self: center;
  border-top: 4px solid var(--green);
}

.demo-login div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.demo-login span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.mini-steps {
  display: grid;
  gap: 10px;
}

.mini-steps span {
  padding: 12px;
  color: #4b5470;
  background: #fbfcff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 800;
}

.mini-steps.verified span::before {
  content: "✓";
  display: inline-grid;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  place-items: center;
  color: #16a96a;
  background: var(--green-soft);
  border-radius: 999px;
  font-weight: 900;
}

.assurance-box {
  display: grid;
  gap: 6px;
  padding: 14px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.assurance-box p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.public-section {
  display: grid;
  gap: 18px;
  padding: 36px 32px;
}

.trust-section {
  padding-top: 12px;
}

.section-head {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.section-head h2 {
  font-size: 30px;
}

.section-head p {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.role-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.trust-card-grid article {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.trust-card-grid strong {
  font-size: 18px;
}

.trust-card-grid p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.compliance-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding-top: 0;
}

.compliance-strip div {
  display: grid;
  gap: 6px;
  padding: 18px;
  background: #151b32;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.compliance-strip div:first-child {
  border-radius: 14px 0 0 14px;
}

.compliance-strip div:last-child {
  border-right: 0;
  border-radius: 0 14px 14px 0;
}

.compliance-strip strong {
  color: #fff;
  font-size: 15px;
}

.compliance-strip span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.services-section {
  max-width: none;
  min-height: calc(100vh - 82px);
  margin: 0;
  padding: 34px 72px 32px;
  align-content: center;
  overflow: hidden;
}

.how-section {
  max-width: none;
  min-height: calc(100vh - 82px);
  margin: 0;
  padding: 34px 72px 32px;
  align-content: center;
  overflow: hidden;
}

.quote-section {
  max-width: none;
  min-height: calc(100vh - 82px);
  margin: 0;
  padding: 34px 72px 32px;
  align-content: center;
  overflow: hidden;
}

.services-intro,
.how-intro,
.quote-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: end;
}

.services-intro h2,
.how-intro h2,
.quote-intro h2 {
  max-width: 820px;
  margin-top: 8px;
  font-size: 34px;
  line-height: 1.14;
}

.services-intro p,
.how-intro p,
.quote-intro p {
  max-width: 820px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.services-assurance,
.how-summary {
  display: grid;
  gap: 8px;
  padding: 18px;
  color: #fff;
  background: #151b32;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(21, 27, 50, 0.14);
}

.services-assurance strong,
.how-summary strong {
  font-size: 18px;
}

.services-assurance span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.how-summary div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.how-summary span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.how-summary small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 800;
}

.service-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.service-card-grid article {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.service-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--primary);
  background: #eef1ff;
  border-radius: 8px;
  font-size: 22px;
  font-weight: 900;
}

.service-card-grid small {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.service-card-grid strong {
  font-size: 19px;
}

.service-card-grid p,
.service-card-grid li,
.service-process p,
.service-trust-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.service-card-grid ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.service-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.service-process div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-right: 1px solid var(--line);
}

.service-process div:last-child {
  border-right: 0;
}

.service-process span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.service-process strong {
  font-size: 14px;
}

.service-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.service-trust-strip div {
  display: grid;
  gap: 4px;
  padding: 14px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-trust-strip strong {
  font-size: 15px;
}

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

.how-step-grid article {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.how-step-grid span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.how-step-grid strong {
  font-size: 18px;
  line-height: 1.2;
}

.how-step-grid p,
.how-flow-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.how-visual {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 12px;
  margin-top: 14px;
}

.how-flow-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.how-flow-card.main {
  color: #fff;
  background: linear-gradient(135deg, #151b32, #303858);
  border-color: transparent;
}

.how-flow-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.how-flow-card.main span,
.how-flow-card.main small {
  color: rgba(255, 255, 255, 0.72);
}

.how-flow-card strong {
  font-size: 20px;
}

.quote-audience-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quote-audience-tabs button {
  min-height: 54px;
  color: #4f5872;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.quote-audience-tabs button.active,
.quote-audience-tabs button:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: transparent;
}

.quote-audience-panel {
  display: none;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 16px;
  margin-top: 16px;
}

.quote-audience-panel.active {
  display: grid;
}

.lead-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 16px;
  margin-top: 16px;
}

.lead-form,
.lead-next-steps {
  min-width: 0;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

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

.lead-form > label:not(.lead-consent) {
  display: grid;
  gap: 8px;
  color: #3f485f;
  font-size: 13px;
  font-weight: 900;
}

.lead-form input:not([type="checkbox"]) {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  color: var(--ink);
  background: #f8fbff;
  border: 1px solid #dfe5f1;
  border-radius: 8px;
  outline: none;
}

.lead-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 92, 247, 0.12);
}

.lead-consent {
  display: flex;
  grid-column: 1 / -1;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.lead-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex: 0 0 auto;
}

.lead-consent a,
.public-footer a,
.cookie-banner a {
  color: var(--primary);
  font-weight: 900;
}

.lead-form .primary-btn {
  min-height: 50px;
  justify-content: center;
}

.lead-status {
  margin: 0;
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.lead-next-steps {
  display: grid;
  align-content: start;
  gap: 14px;
}

.lead-next-steps > strong {
  font-size: 22px;
}

.lead-next-steps ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lead-next-steps li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lead-next-steps li > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border-radius: 8px;
  font-weight: 900;
}

.lead-next-steps li div {
  display: grid;
  gap: 3px;
}

.lead-next-steps small,
.lead-next-steps > p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.public-footer {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 24px;
  padding: 30px 72px;
  color: rgba(255, 255, 255, 0.76);
  background: #151b32;
}

.public-footer > div {
  display: grid;
  align-content: start;
  gap: 7px;
}

.public-footer strong {
  color: #fff;
}

.public-footer span,
.public-footer a,
.public-footer p {
  font-size: 13px;
  line-height: 1.55;
}

.public-footer details {
  grid-column: 1 / -1;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.public-footer summary {
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.public-footer details p {
  max-width: 980px;
  margin-bottom: 0;
}

.whatsapp-placeholder {
  color: rgba(255, 255, 255, 0.54);
}

.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: flex;
  width: min(720px, calc(100% - 40px));
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 28px 80px rgba(21, 27, 50, 0.24);
}

.cookie-banner p {
  margin: 0;
  color: #596178;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.cookie-banner > div {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.cookie-banner button {
  min-height: 42px;
  white-space: nowrap;
}

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

.site-assistant-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  display: flex;
  gap: 11px;
  align-items: center;
  min-height: 62px;
  padding: 9px 16px 9px 10px;
  color: #fff;
  background: linear-gradient(135deg, #151b32, var(--primary));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 20px 48px rgba(21, 27, 50, 0.28);
}

body:has(#cookieBanner:not([hidden])) .site-assistant-launcher {
  bottom: 118px;
}

.site-assistant-launcher > span:first-child {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--primary);
  background: #fff;
  border-radius: 50%;
  font-size: 19px;
}

.site-assistant-launcher > span:last-child {
  display: grid;
  gap: 2px;
  text-align: left;
}

.site-assistant-launcher strong,
.site-assistant-launcher small {
  display: block;
}

.site-assistant-launcher small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.site-assistant {
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 46;
  display: grid;
  grid-template-rows: auto minmax(180px, 1fr) auto auto auto;
  width: min(410px, calc(100% - 28px));
  max-height: min(680px, calc(100vh - 120px));
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(21, 27, 50, 0.3);
}

body:has(#cookieBanner:not([hidden])) .site-assistant {
  bottom: 190px;
}

.site-assistant > header {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 36px;
  gap: 11px;
  align-items: center;
  padding: 15px;
  color: #fff;
  background: linear-gradient(135deg, #151b32, #303858);
}

.assistant-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--primary);
  background: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}

.site-assistant header div:nth-child(2) {
  display: grid;
  gap: 4px;
}

.site-assistant header span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
}

.site-assistant header i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  background: #4ade80;
  border-radius: 50%;
}

.site-assistant header button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: 50%;
  font-size: 22px;
}

.assistant-messages {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  overflow-y: auto;
  background: #f7f9fd;
}

.assistant-message {
  max-width: 88%;
}

.assistant-message.user {
  align-self: flex-end;
}

.assistant-message small {
  display: block;
  margin: 0 7px 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.assistant-message p {
  margin: 0;
  padding: 11px 13px;
  color: #3f485f;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px 14px 14px 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.52;
  white-space: pre-wrap;
}

.assistant-message.user p {
  color: #fff;
  background: var(--primary);
  border-color: transparent;
  border-radius: 14px 4px 14px 14px;
}

.assistant-message.user small {
  text-align: right;
}

.assistant-suggestions {
  display: flex;
  gap: 7px;
  padding: 10px 14px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

.assistant-suggestions button {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: var(--primary);
  background: #eef1ff;
  border: 1px solid #dfe3ff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.assistant-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
  padding: 11px 14px;
  border-top: 1px solid var(--line);
}

.assistant-form textarea {
  width: 100%;
  min-height: 44px;
  max-height: 110px;
  padding: 11px 12px;
  resize: none;
  color: var(--ink);
  background: #f8fbff;
  border: 1px solid #dfe5f1;
  border-radius: 12px;
  outline: none;
}

.assistant-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 92, 247, 0.1);
}

.assistant-form button {
  width: 44px;
  height: 44px;
  color: #fff;
  background: var(--primary);
  border: 0;
  border-radius: 12px;
  font-size: 19px;
}

.assistant-disclaimer {
  padding: 0 14px 12px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
}

.quote-doc-card,
.risk-class-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quote-doc-card > strong,
.risk-class-card > strong {
  font-size: 22px;
}

.quote-doc-card p,
.risk-class-card p,
.landlord-offer-box small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

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

.quote-upload-box,
.quote-doc-grid div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 12px;
  color: #3f485f;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.quote-upload-box {
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.quote-upload-box:hover {
  border-color: #cdd4ff;
  box-shadow: 0 12px 30px rgba(79, 92, 247, 0.1);
  transform: translateY(-1px);
}

.quote-upload-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.quote-upload-box strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.quote-upload-box small {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.quote-upload-box.has-file {
  background: #f1fff8;
  border-color: rgba(49, 201, 129, 0.42);
}

.quote-upload-box.has-file small {
  color: #16a96a;
}

.quote-doc-grid span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--primary);
  background: #eef1ff;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
}

.quote-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}

.quote-submit-row .primary-btn {
  min-height: 46px;
  padding: 0 18px;
}

.quote-submit-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

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

.risk-class-list div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.grade {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  border-radius: 8px;
  font-weight: 900;
}

.grade.a {
  background: #16a96a;
}

.grade.b {
  background: var(--blue);
}

.grade.c {
  background: var(--gold);
}

.grade.d {
  background: var(--red);
}

.risk-class-list strong {
  font-size: 15px;
}

.risk-class-list small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.landlord-offer-box {
  display: grid;
  gap: 8px;
  padding: 20px;
  color: #fff;
  background: linear-gradient(135deg, #151b32, #303858);
  border-radius: 8px;
}

.landlord-offer-box span,
.landlord-offer-box small {
  color: rgba(255, 255, 255, 0.72);
}

.public-form {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.public-form.active {
  display: grid;
}

.login-section {
  min-height: calc(100vh - 82px);
  padding: 42px 72px;
  place-items: center;
  overflow: hidden;
}

.login-card {
  width: min(980px, 100%);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 28px 80px rgba(21, 27, 50, 0.16);
}

.login-card-head {
  display: grid;
  grid-template-columns: 1fr 42px;
  align-items: center;
  min-height: 72px;
  padding: 0 22px 0 64px;
  color: #fff;
  background: linear-gradient(135deg, #151b32, var(--primary));
}

.login-card-head strong {
  text-align: center;
  font-size: 28px;
  line-height: 1;
}

.login-close {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--primary);
  background: #fff;
  border: 0;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
}

.login-card-body {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 32px;
  padding: 36px;
}

.login-copy {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 6px 8px;
}

.login-copy h2 {
  font-size: 30px;
  line-height: 1.16;
}

.login-copy p {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.login-form {
  display: grid;
  gap: 18px;
  padding: 0;
  background: #fff;
  border: 0;
  box-shadow: none;
}

.login-form input {
  min-height: 76px;
  padding: 0 28px;
  background: #fff;
  border: 2px solid #d9dce5;
  border-radius: 18px;
  font-size: 20px;
  font-weight: 700;
}

.login-form input::placeholder {
  color: #9da1aa;
}

.login-form label > span {
  display: none;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.login-options label {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  color: #555b68;
  font-size: 16px;
  font-weight: 800;
}

.login-options input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  border-radius: 999px;
}

.login-options button {
  padding: 0;
  color: #555b68;
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-size: 16px;
  font-weight: 800;
}

.login-form > .primary-btn {
  min-height: 58px;
  font-size: 18px;
}

.credential-card {
  max-width: 620px;
}

.credential-card div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

code {
  display: inline-block;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 8px 10px;
  color: var(--ink);
  background: #f2f5ff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.form-error {
  min-height: 20px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

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

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: 100vh;
  min-width: 0;
  padding: 24px 20px;
  background: #fff;
  border-right: 1px solid var(--line);
}

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

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  background: transparent;
  border: 0;
}

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

.kirakoru-mark img,
.app-shell .brand-mark img {
  transform: scale(1.38);
}

.header-contact-link {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.header-contact-link:hover {
  text-decoration: underline;
}

.public-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.brand strong,
.brand span,
.support-card span,
.user-copy span {
  display: block;
}

.brand strong {
  font-size: 21px;
  line-height: 1.05;
}

.brand span,
.panel-head span,
.support-card span,
.user-copy span,
.topbar p {
  color: var(--muted);
  font-size: 13px;
}

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

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 0 14px;
  color: #596178;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
}

.nav-item.active,
.nav-item:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 28px rgba(79, 92, 247, 0.24);
}

.nav-icon {
  display: grid;
  width: 24px;
  place-items: center;
  color: inherit;
  font-size: 18px;
}

.nav-badge {
  display: grid;
  width: 24px;
  height: 24px;
  margin-left: auto;
  place-items: center;
  color: var(--primary);
  background: #eef1ff;
  border-radius: 999px;
  font-size: 12px;
}

.nav-item.active .nav-badge {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.support-card {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.ai-office-hero { display:flex; align-items:center; justify-content:space-between; gap:28px; padding:28px; background:linear-gradient(135deg,#121a3f,#27356f); color:#fff; }
.ai-office-hero h2 { max-width:720px; margin:8px 0; font-size:28px; }
.ai-office-hero p { max-width:720px; margin:0; color:#cbd3f5; }
.ai-live-status { display:grid; min-width:270px; padding:18px; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.16); border-radius:14px; }
.ai-live-status > span { width:10px; height:10px; margin-bottom:10px; background:#4ade80; border-radius:50%; box-shadow:0 0 0 7px rgba(74,222,128,.12); }
.ai-live-status small { color:#cbd3f5; margin-top:4px; }
.ai-department-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.ai-department-card { display:grid; gap:10px; padding:20px; background:#fff; border:1px solid var(--line); border-top:4px solid #7c3aed; border-radius:16px; box-shadow:var(--shadow); }
.ai-department-card.blue { border-top-color:#3b82f6; }.ai-department-card.gold { border-top-color:#f59e0b; }.ai-department-card.green { border-top-color:#10b981; }
.ai-department-icon { display:grid; width:44px; height:44px; place-items:center; color:var(--primary); background:var(--soft); border-radius:12px; font-size:20px; font-weight:900; }
.ai-department-card h3,.ai-department-card p { margin:0; }.ai-department-card p { min-height:42px; color:var(--muted); font-size:13px; }
.ai-department-card > div:last-child { display:flex; align-items:end; gap:8px; padding-top:10px; border-top:1px solid var(--line); }.ai-department-card > div strong { font-size:24px; }.ai-department-card > div small { color:var(--muted); }
.ai-agent-state { color:#15803d; font-size:12px; font-weight:800; }.ai-agent-state i { display:inline-block; width:7px; height:7px; background:#22c55e; border-radius:50%; }
.marketing-studio { padding:22px; }
.marketing-layout { display:grid; grid-template-columns:minmax(340px,.8fr) minmax(0,1.2fr); gap:20px; align-items:start; }
.marketing-form { display:grid; gap:14px; padding:18px; background:#f8f9fd; border:1px solid var(--line); border-radius:12px; }
.marketing-form label > span { display:block; margin-bottom:7px; color:var(--text); font-size:12px; font-weight:800; }
.marketing-form textarea { min-height:118px; resize:vertical; }
.marketing-actions { display:flex; align-items:center; gap:12px; }.marketing-actions small { color:var(--muted); line-height:1.4; }
.marketing-drafts { display:grid; gap:12px; max-height:620px; overflow:auto; }
.marketing-draft { display:grid; gap:12px; padding:16px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.marketing-draft header,.marketing-draft footer { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.marketing-draft header strong,.marketing-draft header span { display:block; }.marketing-draft header div span { margin-top:4px; color:var(--muted); font-size:12px; }
.marketing-draft pre { margin:0; padding:14px; overflow:auto; white-space:pre-wrap; color:#30364f; background:#f8f9fd; border-radius:10px; font:inherit; font-size:13px; line-height:1.6; }
.marketing-draft footer small { color:var(--muted); }.marketing-draft footer div { display:flex; align-items:center; gap:8px; }
.reports-toolbar { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:24px; }
.reports-toolbar h2,.reports-toolbar p { margin:5px 0 0; }.reports-toolbar p { color:var(--muted); }
.reports-toolbar > div:last-child { display:flex; gap:10px; }.reports-toolbar select { min-width:150px; }
.reports-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.report-card { padding:20px; }
.report-list { display:grid; gap:0; }.report-list > div { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 0; border-bottom:1px solid var(--line); }.report-list > div:last-child { border-bottom:0; }.report-list span { color:var(--muted); }.report-list strong { text-align:right; }
.funnel-list { display:grid; gap:14px; }.funnel-list > div { display:grid; gap:7px; }.funnel-list span { display:flex; justify-content:space-between; gap:12px; }.funnel-list em { color:var(--primary); font-style:normal; font-weight:900; }.funnel-list i { display:block; height:10px; overflow:hidden; background:#edf0f7; border-radius:999px; }.funnel-list b { display:block; height:100%; background:linear-gradient(90deg,var(--primary),#60a5fa); border-radius:inherit; }
.report-note { padding:12px 16px; color:var(--muted); background:#fff8dd; border:1px solid #f6dda0; border-radius:10px; }
.ai-console-layout { display:grid; grid-template-columns:390px minmax(0,1fr); gap:18px; min-height:620px; }
.ai-inbox-panel,.ai-chat-panel { padding:0; overflow:hidden; }.ai-inbox-panel .panel-head { padding:20px 20px 12px; }
.ai-filter-row { display:flex; gap:6px; padding:0 20px 14px; overflow:auto; }.ai-filter-row button { padding:7px 11px; color:var(--muted); background:#f5f7fc; border:0; border-radius:999px; font-size:12px; font-weight:800; }.ai-filter-row button.active { color:#fff; background:var(--primary); }
.ai-conversation-list { display:grid; max-height:520px; overflow:auto; border-top:1px solid var(--line); }
.ai-conversation { position:relative; display:grid; grid-template-columns:42px minmax(0,1fr) auto; gap:11px; padding:16px 18px; text-align:left; background:#fff; border:0; border-bottom:1px solid var(--line); }.ai-conversation.active { background:#f2f4ff; }.ai-conversation:hover { background:#f7f8ff; }
.ai-channel-icon { display:grid; width:40px; height:40px; place-items:center; color:var(--primary); background:#eaedff; border-radius:50%; font-weight:900; }.ai-conversation strong,.ai-conversation small,.ai-conversation em { display:block; }.ai-conversation small { margin:4px 0 7px; overflow:hidden; color:var(--muted); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }.ai-conversation em { width:max-content; padding:3px 7px; color:var(--primary); background:#eaedff; border-radius:999px; font-size:10px; font-style:normal; font-weight:900; }.ai-conversation time { color:var(--muted); font-size:11px; }.ai-conversation > i { position:absolute; right:18px; bottom:18px; width:7px; height:7px; background:var(--primary); border-radius:50%; }
.ai-chat-panel { display:grid; grid-template-rows:auto 1fr auto; }.ai-chat-head { display:flex; align-items:center; justify-content:space-between; min-height:70px; padding:14px 20px; border-bottom:1px solid var(--line); }.ai-chat-head strong,.ai-chat-head span { display:block; }.ai-chat-head span { margin-top:4px; color:var(--muted); font-size:12px; }
.ai-message-stream { display:flex; flex-direction:column; gap:14px; min-height:300px; max-height:410px; padding:22px; overflow:auto; background:#f8f9fd; }.ai-message { max-width:76%; }.ai-message.ai { align-self:flex-end; }.ai-message small { display:block; margin:0 8px 5px; color:var(--muted); font-size:11px; }.ai-message p { margin:0; padding:12px 15px; background:#fff; border:1px solid var(--line); border-radius:4px 16px 16px 16px; line-height:1.5; }.ai-message.ai p { color:#fff; background:linear-gradient(135deg,var(--primary),var(--primary-2)); border:0; border-radius:16px 4px 16px 16px; }
.ai-reply-form { display:grid; gap:10px; padding:18px 20px; border-top:1px solid var(--line); }.ai-reply-form label span { display:block; margin-bottom:6px; font-size:12px; font-weight:800; }.ai-reply-form textarea { min-height:76px; resize:vertical; }.ai-reply-form > div { display:flex; justify-content:flex-end; gap:8px; }.ai-reply-form > small { color:var(--muted); }.empty-state { padding:30px; color:var(--muted); text-align:center; }

.support-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--primary);
  background: var(--soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.workspace {
  min-width: 0;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 18px 28px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(420px, 100%);
  min-height: 44px;
  padding: 0 14px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(44, 57, 112, 0.05);
}

.search-box input {
  min-height: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

kbd {
  padding: 4px 7px;
  color: #8d94aa;
  background: #f5f7fc;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-btn {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #5f6680;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.icon-btn span {
  position: absolute;
  top: -4px;
  right: -2px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  font-size: 10px;
}

.user-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #2b355e, #7c88ff);
  border-radius: 999px;
  font-weight: 900;
}

.user-copy strong {
  font-size: 13px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px 16px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.15;
}

h2 {
  font-size: 16px;
}

.top-actions,
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ghost-btn,
.danger-btn,
.primary-btn,
.select-btn,
.select-chip,
.wide-btn {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 800;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(79, 92, 247, 0.25);
}

.danger-btn {
  color: var(--red);
}

.select-btn {
  color: #697089;
  background: #f7f9fd;
}

.select-chip {
  display: inline-flex;
  align-items: center;
  color: #697089;
  background: #f7f9fd;
}

.text-btn {
  color: var(--primary);
  background: transparent;
  border: 0;
  font-weight: 800;
}

.wide-btn {
  width: 100%;
  color: var(--primary);
  background: #f2f4fb;
  border: 0;
}

.view {
  display: none;
  padding: 0 28px 32px;
}

.view.active {
  display: grid;
  gap: 20px;
}

.dashboard-layout {
  display: grid;
  max-width: 1280px;
  align-items: start;
}

.dashboard-main {
  display: grid;
  min-width: 0;
  gap: 20px;
}

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

.agent-intake-summary article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  min-height: 96px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.agent-intake-summary article > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  font-weight: 900;
}

.agent-intake-summary .blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.agent-intake-summary .green {
  color: var(--green);
  background: var(--green-soft);
}

.agent-intake-summary .purple {
  color: var(--primary);
  background: var(--soft);
}

.agent-intake-summary .gold {
  color: #df8a00;
  background: var(--gold-soft);
}

.agent-intake-summary span,
.agent-intake-summary small,
.agent-intake-side .panel-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.agent-intake-summary strong {
  display: block;
  margin: 4px 0;
  font-size: 24px;
}

.agent-intake-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.agent-intake-form,
.agent-intake-side {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 10px;
}

.intake-section {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.intake-section h3 {
  font-size: 16px;
}

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

.intake-grid .span-2 {
  grid-column: span 2;
}

.intake-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.intake-actions span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

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

.intake-file-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.intake-file-list strong,
.intake-file-list span {
  display: block;
}

.intake-file-list article div span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.metric,
.panel,
.form-panel,
.trust-strip {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.metric {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  min-height: 118px;
  padding: 18px;
}

.metric-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  font-weight: 900;
}

.metric-icon.purple {
  color: var(--primary);
  background: var(--soft);
}

.metric-icon.green {
  color: var(--green);
  background: var(--green-soft);
}

.metric-icon.gold {
  color: var(--gold);
  background: var(--gold-soft);
}

.metric-icon.blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.metric span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metric strong {
  display: block;
  margin-top: 12px;
  font-size: 26px;
  line-height: 1;
}

.metric small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.metric .trend {
  color: var(--green);
  font-weight: 900;
}

.focus-grid,
.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.sales-flow article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 0;
}

.sales-flow span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-radius: 14px;
  font-weight: 900;
}

.sales-flow strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.sales-flow p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.panel,
.form-panel {
  padding: 20px;
}

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

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: #fbfcff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

input[type="file"] {
  padding: 10px 12px;
  min-height: 44px;
}

.risk-donut-area {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  min-height: 238px;
  padding-top: 14px;
}

.donut {
  position: relative;
  width: 196px;
  height: 196px;
  border-radius: 999px;
  background: conic-gradient(var(--green) 0deg, var(--green) var(--green-end), var(--gold) var(--green-end), var(--gold) var(--gold-end), var(--red) var(--gold-end), var(--red) 360deg);
}

.donut::after {
  position: absolute;
  inset: 44px;
  display: grid;
  place-items: center;
  content: attr(data-total) "\A Toplam";
  white-space: pre;
  text-align: center;
  color: var(--ink);
  background: #fff;
  border-radius: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.risk-legend {
  display: grid;
  gap: 18px;
}

.legend-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  color: #48516d;
  font-size: 14px;
  font-weight: 700;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.dot.green {
  background: var(--green);
}

.dot.gold {
  background: var(--gold);
}

.dot.red {
  background: var(--red);
}

.chart-card {
  min-height: 238px;
  padding-top: 14px;
}

.chart-card svg {
  display: block;
  width: 100%;
  height: 238px;
}

.table-wrap {
  max-width: 100%;
  overflow: auto;
  margin-top: 14px;
}

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

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

th {
  color: #8890a8;
  background: #f7f9fd;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

td {
  color: #424b66;
  font-size: 13px;
  font-weight: 700;
}

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

.mini-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #5966ff, #2dd7a3);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.muted-line {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 600;
}

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

.record-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #fbfcff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.record-card strong {
  font-size: 16px;
}

.record-card span {
  color: var(--muted);
  font-size: 13px;
}

.pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.pill.green {
  color: #16a96a;
  background: var(--green-soft);
}

.pill.gold {
  color: #df8a00;
  background: var(--gold-soft);
}

.pill.red {
  color: var(--red);
  background: var(--red-soft);
}

.pill.blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.rail-panel {
  padding: 0;
  overflow: hidden;
}

.rail-panel .panel-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.rail-list {
  display: grid;
}

.rail-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.rail-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--primary);
  background: var(--soft);
  border-radius: 12px;
  font-weight: 900;
}

.rail-item strong,
.alert-item strong {
  display: block;
  font-size: 13px;
}

.rail-item span,
.alert-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.rail-amount {
  text-align: right;
  font-size: 13px;
  font-weight: 900;
}

.rail-amount span {
  color: var(--red);
}

.rail-panel .wide-btn {
  width: calc(100% - 40px);
  margin: 16px 20px 20px;
}

.alert-item {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}

.alert-bar {
  width: 4px;
  height: 44px;
  border-radius: 999px;
}

.alert-bar.green {
  background: var(--blue);
}

.alert-bar.gold {
  background: var(--gold);
}

.alert-bar.red {
  background: var(--red);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 22px 28px;
}

.trust-strip div {
  display: grid;
  gap: 4px;
  text-align: center;
}

.trust-strip strong {
  color: var(--primary);
  font-size: 22px;
}

.trust-strip span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.empty {
  padding: 18px;
  color: var(--muted);
  background: #fbfcff;
  border: 1px dashed #d7ddeb;
  border-radius: 12px;
}

.guide-panel {
  display: grid;
  gap: 18px;
}

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

.guide-grid article,
.checklist-grid div {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  background: #fbfcff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.guide-grid strong,
.checklist-grid strong {
  font-size: 15px;
}

.guide-grid p,
.checklist-grid p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.product-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
}

.product-hero h2 {
  max-width: 760px;
  margin-top: 8px;
  font-size: 28px;
  line-height: 1.18;
}

.product-hero p {
  max-width: 680px;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.eyebrow {
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.product-grid,
.quote-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.product-card h2 {
  font-size: 20px;
}

.product-card p,
.product-card li,
.quote-layout p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.product-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.product-card .wide-btn {
  align-self: end;
}

.guarantee-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.quote-audience-tabs.compact {
  width: min(340px, 100%);
  box-shadow: none;
}

.app-quote-panel {
  display: none;
  gap: 16px;
}

.app-quote-panel.active {
  display: grid;
}

.guarantee-copy {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.guarantee-copy strong {
  font-size: 18px;
}

.guarantee-copy p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.record-delete {
  justify-self: start;
  min-height: 34px;
  padding: 0 12px;
  color: var(--red);
}

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

.detail-grid article {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.detail-grid span,
.detail-grid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.detail-grid strong {
  font-size: 18px;
}

.detail-grid p {
  color: #4f5872;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.process-line {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.process-line div {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: #fbfcff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.process-line strong {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 12px;
}

.process-line span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.quote-layout {
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.quote-result {
  display: grid;
  gap: 8px;
}

.quote-result span,
.quote-result small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.quote-result strong {
  font-size: 30px;
  line-height: 1.1;
}

@media (max-width: 1360px) {
  .dashboard-layout {
    max-width: none;
  }
}

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

  .site-hero,
  .login-section {
    grid-template-columns: 1fr;
  }

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

  .public-menu {
    order: 3;
    width: 100%;
    overflow: auto;
    justify-content: flex-start;
    padding-top: 6px;
  }

  .site-hero {
    padding-left: 28px;
    padding-right: 28px;
  }

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

  .hero-room {
    inset: 20px -28px 0 0;
  }

  .sidebar {
    position: sticky;
    z-index: 5;
    height: auto;
    flex-direction: row;
    align-items: center;
    overflow: auto;
    padding: 18px;
  }

  .brand {
    flex: 0 0 auto;
  }

  .nav {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    min-width: 0;
  }

  .support-card {
    display: none;
  }

  .metrics-grid,
  .agent-intake-summary,
  .focus-grid,
  .analytics-grid,
  .sales-flow,
  .cards-grid,
  .trust-card-grid,
  .compliance-strip,
  .product-grid,
  .quote-result-grid,
  .detail-grid,
  .process-line,
  .guide-grid,
  .checklist-grid,
  .services-intro,
  .how-intro,
  .quote-intro,
  .login-card-body,
  .service-card-grid,
  .service-process,
  .service-trust-strip,
  .how-step-grid,
  .how-visual,
  .quote-audience-panel,
  .lead-layout,
  .agent-intake-layout {
    grid-template-columns: 1fr 1fr;
  }

  .ai-department-grid { grid-template-columns:1fr 1fr; }
  .ai-console-layout { grid-template-columns:1fr; }

  .form-grid,
  .intake-grid,
  .public-form,
  .quote-form,
  .quote-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-header,
  .topbar,
  .view {
    padding-left: 16px;
    padding-right: 16px;
  }

  .app-header,
  .topbar,
  .public-header {
    align-items: stretch;
    flex-direction: column;
  }

  .public-nav,
  .role-tabs {
    align-items: stretch;
    flex-direction: column;
  }

  .ai-office-hero { align-items:stretch; flex-direction:column; }.ai-live-status { min-width:0; }.ai-department-grid { grid-template-columns:1fr; }.ai-message { max-width:90%; }
  .marketing-layout,.reports-grid { grid-template-columns:1fr; }.reports-toolbar { align-items:stretch; flex-direction:column; }.reports-toolbar > div:last-child { flex-wrap:wrap; }

  .site-hero,
  .public-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-hero {
    min-height: auto;
    padding-top: 36px;
  }

  .site-hero h1 {
    font-size: 34px;
  }

  .services-intro h2,
  .how-intro h2,
  .quote-intro h2,
  .login-copy h2 {
    font-size: 30px;
  }

  .login-section {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .login-card-head {
    padding-left: 22px;
  }

  .login-card-body {
    padding: 22px;
  }

  .hero-features {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 560px;
  }

  .hero-room {
    inset: 70px 0 0 0;
  }

  .floating-card {
    right: auto;
    left: 16px;
    min-width: calc(100% - 32px);
  }

  .risk-widget {
    top: 0;
    left: 16px;
  }

  .rent-widget {
    top: 178px;
  }

  .problem-widget {
    bottom: 144px;
  }

  .portfolio-widget {
    bottom: 0;
  }

  .header-user {
    justify-content: space-between;
  }

  .top-actions {
    width: 100%;
  }

  .top-actions button {
    flex: 1;
  }

  .metrics-grid,
  .agent-intake-summary,
  .focus-grid,
  .analytics-grid,
  .cards-grid,
  .trust-card-grid,
  .compliance-strip,
  .product-grid,
  .quote-result-grid,
  .detail-grid,
  .process-line,
  .guide-grid,
  .checklist-grid,
  .form-grid,
  .intake-grid,
  .public-form,
  .quote-form,
  .quote-layout,
  .risk-donut-area,
  .sales-flow,
  .trust-strip,
  .services-intro,
  .how-intro,
  .quote-intro,
  .login-card-body,
  .service-card-grid,
  .service-process,
  .service-trust-strip,
  .how-step-grid,
  .how-visual,
  .quote-audience-panel,
  .quote-doc-grid,
  .lead-layout,
  .lead-form,
  .public-footer {
    grid-template-columns: 1fr;
  }

  .public-footer {
    padding: 28px 16px;
  }

  .public-footer details,
  .lead-consent {
    grid-column: 1;
  }

  .cookie-banner {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-banner > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .site-assistant-launcher {
    right: 12px;
    bottom: 12px;
  }

  body:has(#cookieBanner:not([hidden])) .site-assistant-launcher {
    bottom: 205px;
  }

  .site-assistant {
    right: 8px;
    bottom: 82px;
    width: calc(100% - 16px);
    max-height: calc(100dvh - 96px);
  }

  body:has(#cookieBanner:not([hidden])) .site-assistant {
    bottom: 220px;
    max-height: calc(100dvh - 235px);
  }

  .site-assistant-launcher small {
    display: none;
  }

  .product-hero,
  .hero-actions,
  .trust-row,
  .agent-intake-layout,
  .quote-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .agent-intake-layout {
    display: flex;
  }

  .intake-grid .span-2 {
    grid-column: span 1;
  }

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

  .quote-submit-row span {
    text-align: left;
  }

  .compliance-strip div,
  .compliance-strip div:first-child,
  .compliance-strip div:last-child {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
  }

  .compliance-strip div:first-child {
    border-radius: 14px 14px 0 0;
  }

  .compliance-strip div:last-child {
    border-bottom: 0;
    border-radius: 0 0 14px 14px;
  }

  .metric {
    min-height: 128px;
  }

  .risk-donut-area {
    justify-items: center;
  }

  .trust-strip div {
    text-align: left;
  }

  h1 {
    font-size: 25px;
  }
}
.security-dialog {
  width: min(460px, calc(100vw - 32px));
  border: 0;
  border-radius: 22px;
  padding: 0;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .28);
}

.security-dialog::backdrop { background: rgba(15, 23, 42, .62); }
.security-dialog form { display: grid; gap: 16px; padding: 24px; }
.security-dialog label { display: grid; gap: 7px; color: #4f5b75; font-weight: 700; }
.security-dialog input { border: 1px solid #dce2ef; border-radius: 12px; padding: 12px 14px; font: inherit; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dialog-head div { display: grid; gap: 4px; }
.dialog-head strong { font-size: 1.25rem; color: #17213b; }
.dialog-head span { color: #74809a; }
.dialog-head button { border: 0; background: transparent; font-size: 1.6rem; cursor: pointer; }
.portal-credential-content { display: grid; gap: 18px; padding: 24px; }
.portal-credential-list { display: grid; gap: 12px; }
.portal-credential-list article { display: grid; gap: 8px; padding: 14px; border: 1px solid #e1e6f0; border-radius: 14px; }
.portal-credential-list article > span { color: #74809a; }
.portal-credential-list article div { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 10px; }
.portal-credential-list code { overflow-wrap: anywhere; padding: 7px 9px; border-radius: 8px; background: #f3f5ff; color: #273382; }
body[data-user-role="landlord"] :is(#agentIntakeForm, #ownerForm, #propertyForm, #tenantForm, #rentForm, #claimForm, .record-delete),
body[data-user-role="tenant"] :is(#agentIntakeForm, #ownerForm, #propertyForm, #tenantForm, #rentForm, #claimForm, .record-delete) { display: none !important; }
