:root {
  --ink: #07164d;
  --muted: #4f6384;
  --line: #d7e9f5;
  --paper: #f7fcff;
  --soft: #eaf8ff;
  --cyan: #54d9ff;
  --blue: #1952ae;
  --deep: #062796;
  --green: #52e22c;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(6, 39, 150, 0.14);
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.top-note {
  background: var(--deep);
  color: var(--soft);
  padding: 9px 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ink);
  border-bottom: 3px solid var(--green);
  box-shadow: 0 14px 34px rgba(7, 22, 77, 0.22);
}

.nav-inner {
  width: min(1400px, calc(100% - 32px));
  min-height: 104px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  width: 280px;
  min-width: 280px;
  height: 92px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.brand-logo {
  width: 280px;
  height: 280px;
  max-width: none;
  flex: 0 0 280px;
  object-fit: contain;
  transform: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(135deg, var(--deep), var(--cyan));
  box-shadow: 0 8px 18px rgba(6, 39, 150, 0.22);
}

.brand strong {
  display: block;
  font-size: 15px;
}

.brand small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.nav-links a {
  padding: 10px 8px;
  border-radius: 6px;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--green);
}

.nav-inner > .btn {
  margin-left: 0;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.language-switcher button {
  border: 0;
  border-radius: 999px;
  min-width: 38px;
  min-height: 34px;
  color: var(--white);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.language-switcher button.is-active,
.language-switcher button:hover {
  color: var(--ink);
  background: var(--green);
}

.btn {
  border: 0;
  border-radius: 7px;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  color: var(--white);
  background: var(--deep);
  box-shadow: 0 12px 26px rgba(6, 39, 150, 0.22);
}

.btn-primary:hover {
  background: var(--blue);
}

.btn-secondary {
  color: var(--deep);
  border: 1px solid var(--line);
  background: var(--white);
}

.btn-contact {
  color: var(--deep);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 10px 22px rgba(6, 39, 150, 0.08);
}

.btn-contact:hover {
  border-color: var(--deep);
  background: var(--soft);
}

.nav-inner > .btn-primary {
  color: var(--ink);
  background: var(--green);
  box-shadow: 0 14px 30px rgba(82, 226, 44, 0.22);
}

.nav-inner > .btn-primary:hover {
  background: #69f045;
}

.nav-inner > .btn-contact {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.nav-inner > .btn-contact:hover {
  color: var(--ink);
  border-color: var(--green);
  background: var(--green);
}

.hero {
  --hero-image: url("photos/general-reception-cleaning-mirrored.webp");
  background:
    linear-gradient(90deg, rgba(3, 20, 137, 0.88), rgba(6, 39, 150, 0.68) 52%, rgba(6, 39, 150, 0.26)),
    var(--hero-image) center / cover;
  color: var(--white);
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  padding: 74px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 42px;
  align-items: center;
}

.hero-inner > * {
  min-width: 0;
}

.home-hero .hero-inner {
  min-height: 720px;
}

.home-hero {
  --hero-image: url("photos/home-client-conversation-mirrored.webp");
}

.sectors-hero {
  --hero-image: url("photos/sectors-buildings.png");
}

.services-hero {
  --hero-image: url("photos/services-hero.png");
}

.about-hero {
  --hero-image: url("photos/about-team-lobby-mirrored.webp");
}

.priority-hero {
  --hero-image: url("photos/priority-floor-machine-mirrored.webp");
}

.services-hero h1 {
  max-width: 640px;
  font-size: clamp(42px, 4.8vw, 64px);
  line-height: 1.03;
  text-wrap: balance;
}

.shop-hero h1 {
  max-width: 650px;
  font-size: clamp(42px, 4.8vw, 64px);
  line-height: 1.03;
  text-wrap: balance;
}

.home-hero .hero-inner > div:first-child,
.services-hero .hero-inner > div:first-child,
.sectors-hero .hero-inner > div:first-child {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.heart-sticker {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: var(--deep);
  background: var(--white);
  box-shadow: 0 16px 34px rgba(7, 22, 77, 0.22);
  font-size: 23px;
  line-height: 1;
}

.heart-sticker::before {
  content: "\2665";
}

h1 {
  max-width: 790px;
  margin: 0;
  font-size: clamp(43px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 690px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.90);
  font-size: 18px;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.google-rating {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 7px 11px;
  align-items: center;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--white);
  background: rgba(7, 22, 77, 0.36);
  backdrop-filter: blur(8px);
}

.rating-stars {
  color: #fbbc04;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 1px;
}

.google-rating strong {
  color: var(--white);
  font-size: 14px;
}

.google-rating strong::first-letter {
  color: #4285f4;
}

.google-rating span {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
}

.hero .btn-secondary {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.priority-supply-icons {
  display: grid;
  grid-template-columns: repeat(5, minmax(94px, 1fr));
  gap: 12px;
  max-width: 640px;
  margin-top: 46px;
}

.priority-hero h1 {
  max-width: 680px;
  font-size: 62px;
  overflow-wrap: anywhere;
}

.priority-supply-icon {
  min-width: 0;
  min-height: 108px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  padding: 13px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
}

.priority-supply-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--white);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.priority-supply-icon span {
  display: block;
  width: 100%;
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.hero-panel,
.card,
.form-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero-panel {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.94);
}

.hero-photo-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-photo-panel img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.hero-panel h2,
.card h3,
.form-card h2 {
  margin: 0 0 10px;
}

.hero-panel p,
.card p,
.form-card p {
  margin: 0;
  color: var(--muted);
}

.quick-links {
  display: grid;
  gap: 0;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.quick-link {
  position: relative;
  display: block;
  min-height: auto;
  border-bottom: 1px solid var(--line);
  padding: 14px 28px 14px 0;
}

.quick-link strong {
  display: block;
  margin-bottom: 3px;
  color: var(--deep);
}

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

.quick-link::after {
  content: ">";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue);
  font-weight: 800;
}

.quick-link:hover strong {
  color: var(--blue);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0;
}

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.home-client-band {
  width: 100%;
  padding: 0;
  border-top: 1px solid var(--green);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
}

.home-client-band .client-marquee {
  width: 100vw;
  margin-top: 0;
  border-top: 0;
  border-bottom: 0;
  border-color: var(--line);
}

.home-client-band .client-track {
  padding-left: 0;
  padding-right: 0;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.section h2,
.page-title {
  max-width: 780px;
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}

.section-intro {
  max-width: 740px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
}

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

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

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

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 16px 18px;
  box-shadow: 0 12px 28px rgba(6, 39, 150, 0.08);
}

.faq-list summary {
  color: var(--deep);
  font-weight: 800;
  cursor: pointer;
}

.faq-list p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.icon-card img,
.service-card img,
.sector-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 16px;
}

.service-card,
.sector-card,
.value-card,
.blog-card,
.shop-ad {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 22px;
  box-shadow: 0 12px 28px rgba(6, 39, 150, 0.08);
}

.blog-card {
  overflow: hidden;
  padding: 0;
}

.blog-card-image {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.blog-card-placeholder {
  height: 170px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(5, 42, 99, 0.08), rgba(87, 225, 51, 0.16));
  color: var(--deep);
  font-size: 20px;
  font-weight: 800;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 22px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.blog-card h3,
.blog-card p,
.blog-card .text-link {
  margin-left: 22px;
  margin-right: 22px;
}

.blog-card h3 {
  margin-top: 18px;
}

.blog-card .text-link {
  display: inline-block;
  margin-bottom: 22px;
}

.service-card h3,
.sector-card h3,
.value-card h3,
.blog-card h3,
.shop-ad h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.service-card p,
.sector-card p,
.value-card p,
.blog-card p,
.shop-ad p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.blog-card h3 {
  margin: 0 22px 8px;
}

.blog-card p {
  margin: 0 22px 14px;
  display: -webkit-box;
  min-height: 62px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.blog-card .text-link {
  display: inline-block;
  margin: 0 22px 22px;
}

.article-section {
  max-width: 920px;
}

.blog-article {
  color: var(--deep);
}

.blog-article > .text-link {
  display: inline-block;
  margin-bottom: 22px;
}

.blog-article-image {
  width: 100%;
  max-height: 460px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 14px 34px rgba(6, 39, 150, 0.1);
}

.blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.blog-article h1 {
  max-width: 820px;
  margin: 16px 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
}

.blog-article-intro {
  max-width: 760px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
}

.blog-article-body {
  max-width: 760px;
}

.blog-article-body p {
  margin: 0 0 20px;
  color: #233a67;
  font-size: 17px;
  line-height: 1.85;
}

.blog-article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.service-card.compact {
  min-height: 210px;
}

.service-card.compact img {
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
}

.how-it-works {
  padding-top: 38px;
  padding-bottom: 66px;
}

.process-flow,
.work-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.process-flow {
  position: relative;
  align-items: stretch;
}

.process-flow::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 42px;
  height: 2px;
  background: linear-gradient(90deg, rgba(50, 228, 34, 0.2), rgba(5, 42, 99, 0.24), rgba(50, 228, 34, 0.2));
}

.process-window {
  position: relative;
  min-height: 190px;
  border: 1px solid rgba(9, 67, 150, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  padding: 24px;
  box-shadow: 0 18px 42px rgba(5, 42, 99, 0.08);
  backdrop-filter: blur(10px);
}

.process-window:nth-child(even) {
  transform: translateY(20px);
}

.process-window span {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  height: 36px;
  border-radius: 999px;
  color: var(--deep);
  background: var(--green);
  font-size: 14px;
  font-weight: 800;
}

.process-window h3 {
  margin: 30px 0 10px;
  color: var(--deep);
  font-size: 21px;
  line-height: 1.2;
}

.process-window p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.process-window::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 30px;
  width: 22px;
  height: 12px;
  border-top: 2px solid rgba(6, 39, 150, 0.26);
  border-right: 2px solid rgba(6, 39, 150, 0.26);
  transform: skewX(18deg);
}

.process-window:last-child::after {
  display: none;
}

.work-step {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 20px;
  box-shadow: var(--shadow);
}

.work-step span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--green);
  font-weight: 800;
}

.work-step h3 {
  margin: 18px 0 8px;
  color: var(--deep);
  font-size: 18px;
}

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

.home-request {
  display: grid;
  gap: 12px;
}

.home-request .btn {
  width: 100%;
}

.shop-ad {
  margin-top: 28px;
}

.product-window-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.product-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(6, 39, 150, 0.08);
}

.product-window img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.product-window-placeholder {
  height: 190px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(5, 42, 99, 0.08), rgba(87, 225, 51, 0.16));
  color: var(--deep);
  font-size: 34px;
  font-weight: 800;
}

.product-window-body {
  padding: 18px;
}

.product-window-meta,
.product-window-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-window-meta {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-window h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.product-window p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  min-height: 64px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.product-price {
  color: var(--deep);
  font-size: 22px;
  font-weight: 800;
}

.product-stock {
  border-radius: 999px;
  background: rgba(87, 225, 51, 0.18);
  color: var(--deep);
  padding: 5px 9px;
  font-size: 11px;
  white-space: nowrap;
}

.product-stock.is-low {
  background: rgba(255, 193, 7, 0.22);
}

.product-stock.is-out {
  background: rgba(213, 53, 53, 0.12);
  color: #9c1f1f;
}

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

.team-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 22px;
  box-shadow: 0 12px 28px rgba(6, 39, 150, 0.08);
}

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--deep), var(--green));
  font-weight: 800;
}

.team-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 16px;
  background: var(--soft);
}

.team-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

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

.service-area {
  text-align: center;
}

.service-area h2,
.service-area .section-intro {
  margin-left: auto;
  margin-right: auto;
}

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 22px;
}

.area-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--deep);
  padding: 9px 15px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(6, 39, 150, 0.08);
}

.client-marquee {
  overflow: hidden;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.client-track {
  display: flex;
  width: max-content;
  min-width: max-content;
  gap: 0;
  padding: 18px 0;
  animation: scroll-clients 28s linear infinite;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.client-track.is-static {
  width: 100%;
  min-width: 0;
  justify-content: center;
  animation: none;
}

.client-logo-set {
  display: flex;
  flex: 0 0 auto;
  gap: 14px;
  padding: 0 7px;
}

.client-logo-link {
  display: block;
  flex: 0 0 auto;
  color: inherit;
}

.client-logo-link:hover .client-logo {
  border-color: var(--deep);
  transform: translateY(-2px);
}

.client-logo {
  width: clamp(158px, 18vw, 230px);
  min-width: 0;
  flex: 0 0 auto;
  height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 18px 22px;
  color: var(--deep);
  font-weight: 800;
  display: grid;
  place-items: center;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.client-logo.dark {
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--deep);
}

.client-logo img {
  max-width: 100%;
  max-height: 58px;
  object-fit: contain;
}

@keyframes scroll-clients {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.text-link {
  color: var(--green);
  font-weight: 800;
  font-size: 14px;
}

button.text-link {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.portal-reset-link {
  margin-top: -4px;
  color: var(--blue);
  text-align: left;
}

.portal-mobile-signup-jump,
.anchor-target {
  display: none;
}

.portal-recovery-form p {
  margin: 0;
  color: #516188;
  line-height: 1.6;
}

.story-copy {
  display: grid;
  gap: 16px;
  color: #213564;
  font-size: 17px;
}

.story-copy p {
  margin: 0;
}

.quote-block {
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: var(--white);
  padding: 26px;
  box-shadow: 0 12px 28px rgba(6, 39, 150, 0.08);
}

.price {
  margin: 12px 0 14px;
  color: var(--deep);
  font-size: 32px;
  font-weight: 800;
}

.included {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.included li {
  margin-bottom: 8px;
}

.field {
  margin-bottom: 12px;
}

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

.questionnaire {
  display: grid;
  gap: 18px;
}

.request-confirmation {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 34px;
  box-shadow: var(--shadow);
}

.request-confirmation h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 44px);
}

.request-confirmation p {
  max-width: 720px;
  color: var(--muted);
}

.question-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 18px;
}

.question-block h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

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

.choice-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  border: 1px solid #c6dff1;
  border-radius: 6px;
  background: var(--white);
  padding: 10px 12px;
  cursor: pointer;
}

.choice-row input {
  width: auto;
  min-height: auto;
}

.final-note {
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: var(--soft);
  padding: 16px;
  color: var(--muted);
  font-size: 14px;
}

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

.conditional-fields.is-hidden {
  display: none;
}

label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c6dff1;
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 14px;
}

textarea {
  min-height: 116px;
  resize: vertical;
}

.cta {
  border-radius: 8px;
  background: linear-gradient(120deg, rgba(6, 39, 150, 0.96), rgba(25, 82, 174, 0.86));
  color: var(--white);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.cta h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
}

.cta p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.footer {
  background: var(--ink);
  color: var(--soft);
  border-top: 4px solid var(--green);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.25fr repeat(5, 1fr);
  gap: 24px;
}

.footer h3,
.footer h4 {
  margin: 0 0 12px;
  color: var(--white);
}

.footer p,
.footer a {
  display: block;
  margin: 0 0 8px;
  color: rgba(234, 248, 255, 0.84);
  font-size: 14px;
}

.footer-cookie-button {
  display: block;
  padding: 0;
  border: 0;
  margin: 0 0 8px;
  color: rgba(234, 248, 255, 0.84);
  background: transparent;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.footer-cookie-button:hover,
.footer-cookie-button:focus-visible {
  color: var(--white);
  text-decoration: underline;
}

.legal-hero .hero-inner {
  min-height: 360px;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 760px);
  gap: 54px;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.legal-nav strong {
  margin-bottom: 8px;
  color: var(--ink);
}

.legal-nav a {
  padding: 9px 10px;
  color: var(--muted);
  font-weight: 700;
}

.legal-nav a:hover {
  color: var(--deep);
  background: var(--soft);
}

.legal-content h2 {
  margin: 38px 0 12px;
  color: var(--ink);
  font-size: 28px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  line-height: 1.75;
}

.legal-content ul {
  padding-left: 22px;
}

.legal-notice {
  padding: 18px 20px;
  border-left: 4px solid var(--green);
  background: var(--soft);
}

.cookie-banner {
  position: fixed;
  z-index: 1200;
  right: 22px;
  bottom: 22px;
  width: min(470px, calc(100% - 32px));
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 26px 70px rgba(3, 20, 70, 0.24);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.cookie-banner a {
  color: var(--deep);
  font-weight: 800;
}

.cookie-options {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.cookie-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.cookie-option span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.cookie-option input {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-shell {
  min-height: 100vh;
  background: var(--paper);
}

.portal-page {
  min-height: 100vh;
  background:
    linear-gradient(115deg, rgba(7, 22, 77, 0.94), rgba(6, 39, 150, 0.82)),
    url("photos/sectors-buildings.png") center / cover;
  color: var(--white);
}

.portal-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 420px;
  gap: 34px;
  align-items: center;
  padding: 48px 0;
}

.portal-brand img {
  width: min(360px, 100%);
  margin-bottom: 30px;
}

.portal-brand h1 {
  max-width: 680px;
  margin: 0;
  color: var(--white);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.96;
}

.portal-brand p {
  max-width: 640px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

.portal-demo {
  display: grid;
  gap: 8px;
  max-width: 560px;
  margin-top: 26px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.portal-demo strong {
  color: var(--green);
}

.portal-demo span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

.portal-card {
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.portal-card h2 {
  margin: 0 0 16px;
  font-size: 30px;
}

.portal-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.role-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.role-option {
  border: 0;
  border-radius: 6px;
  min-height: 42px;
  color: var(--deep);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.role-option.is-active {
  color: var(--white);
  background: var(--deep);
}

.form-message,
.dashboard-message {
  min-height: 20px;
  margin: 0;
  color: var(--deep);
  font-size: 14px;
  font-weight: 800;
}

.form-message.is-error {
  color: #b42318;
}

.honeypot-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.dashboard-layout {
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 24px;
}

.dashboard-sidebar {
  position: sticky;
  top: 94px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 14px;
  box-shadow: 0 12px 28px rgba(6, 39, 150, 0.08);
}

.dashboard-sidebar h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.dashboard-sidebar a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 6px;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.dashboard-sidebar a:hover,
.dashboard-sidebar a.is-active {
  background: var(--soft);
  color: var(--deep);
}

.dashboard-main {
  display: grid;
  gap: 22px;
}

.dashboard-main.is-paged > .dashboard-page-hidden {
  display: none !important;
}

.dashboard-main.is-paged > .dashboard-section,
.dashboard-main.is-paged > .dashboard-header,
.dashboard-main.is-paged > .metric-grid,
.dashboard-main.is-paged > .dashboard-message {
  animation: dashboardPageIn 160ms ease-out;
}

@keyframes dashboardPageIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-message {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 12px 14px;
}

.dashboard-message.is-visible {
  display: block;
}

.dashboard-message.is-error {
  border-color: #ffd1c7;
  color: #b42318;
  background: #fff4f1;
}

.dashboard-header {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(234, 248, 255, 0.95), rgba(255, 255, 255, 0.98));
  padding: 26px;
  box-shadow: 0 12px 28px rgba(6, 39, 150, 0.08);
}

.dashboard-header h1 {
  margin: 0;
  max-width: none;
  color: var(--ink);
  font-size: clamp(32px, 4vw, 52px);
}

.dashboard-header p {
  max-width: 850px;
  margin: 10px 0 0;
  color: var(--muted);
}

.priority-plus-corner {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(260px, calc(100% - 36px));
  padding: 9px 12px;
  border: 1px solid rgba(45, 221, 30, 0.44);
  border-radius: 999px;
  background: #eaffea;
  color: #145c13;
  box-shadow: 0 14px 28px rgba(45, 221, 30, 0.16);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.priority-plus-corner[hidden] {
  display: none;
}

.priority-plus-corner span,
.priority-plus-badge b {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--green);
  color: var(--ink);
  font-weight: 1000;
  font-size: 0;
  position: relative;
}

.priority-plus-corner span::before,
.priority-plus-badge b::before {
  content: "";
  width: 9px;
  height: 14px;
  border: solid var(--ink);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.priority-plus-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid rgba(45, 221, 30, 0.42);
  border-radius: 999px;
  background: #eaffea;
  color: #145c13;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.priority-plus-badge.table-badge {
  white-space: normal;
}

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

.metric-card,
.dashboard-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 18px;
  box-shadow: 0 12px 28px rgba(6, 39, 150, 0.08);
}

.metric-card strong {
  display: block;
  color: var(--deep);
  font-size: 30px;
  line-height: 1;
}

.metric-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.dashboard-section {
  display: grid;
  gap: 14px;
}

.dashboard-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-section h2 {
  margin: 0;
  font-size: 28px;
}

.dashboard-section-head p {
  max-width: 720px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.dashboard-section-head .btn {
  flex: 0 0 auto;
}

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

.dashboard-command-center {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fcff, #f3fff3);
}

.dashboard-search-field {
  width: min(360px, 100%);
  margin: 0;
}

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

.dashboard-alert-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.dashboard-alert-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.dashboard-alert-list {
  display: grid;
  gap: 9px;
}

.dashboard-alert-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
}

.dashboard-alert-item strong {
  overflow-wrap: anywhere;
}

.dashboard-alert-item span {
  flex: 0 0 auto;
  color: var(--deep);
  font-size: 12px;
  font-weight: 900;
}

.form-status-box {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(45, 221, 30, 0.38);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: #f4fff4;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  white-space: pre-line;
}

.form-status-box[hidden] {
  display: none;
}

.form-status-box.is-error {
  border-color: #ffd1c7;
  border-left-color: #b42318;
  background: #fff4f1;
  color: #b42318;
}

.client-profile-stack,
.client-profile-panel {
  display: grid;
  gap: 14px;
}

.client-profile-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.client-profile-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.client-profile-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
}

.client-profile-head p:not(.section-kicker) {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

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

.client-profile-metrics div,
.client-profile-grid div,
.client-profile-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 11px;
}

.client-profile-metrics strong {
  display: block;
  color: var(--deep);
  font-size: 24px;
  line-height: 1;
}

.client-profile-metrics span,
.client-profile-grid span,
.client-profile-block p,
.client-profile-block li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.client-profile-grid strong {
  display: block;
  margin-bottom: 4px;
  color: var(--deep);
  font-size: 11px;
  text-transform: uppercase;
}

.client-profile-block {
  display: grid;
  gap: 6px;
}

.client-profile-block h4,
.client-profile-block p {
  margin: 0;
}

.client-profile-block h4 {
  color: var(--ink);
  font-size: 15px;
}

.client-profile-block ul {
  margin: 0;
  padding-left: 18px;
}

.client-profile-actions {
  margin-top: 0;
}

.service-plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 16px;
  align-items: start;
}

.service-plan-card,
.contract-card {
  min-height: 100%;
}

.contract-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.contract-card-head > div {
  min-width: 0;
}

.contract-card-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
}

.contract-card-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.contract-card-head .status {
  flex: 0 0 auto;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}

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

.contract-detail-grid div,
.contract-file-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 12px;
}

.contract-detail-grid strong,
.contract-detail-grid span,
.contract-file-box strong,
.contract-file-box span {
  display: block;
}

.contract-detail-grid strong {
  color: var(--deep);
  font-size: 11px;
  text-transform: uppercase;
}

.contract-detail-grid span {
  margin-top: 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.contract-file-box {
  display: grid;
  gap: 4px;
  margin: 16px 0;
}

.contract-action-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 14px 0;
}

.contract-action-grid .btn {
  width: 100%;
  min-height: 48px;
  height: auto;
  padding: 11px 14px;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.btn.is-disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  color: var(--muted);
  border-color: var(--line);
  background: var(--soft);
  opacity: 0.72;
}

.contract-file-box strong {
  color: var(--deep);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contract-file-box span,
.micro-copy {
  overflow-wrap: anywhere;
  line-height: 1.55;
}

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

.service-type-options label {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.service-type-options input {
  width: auto;
  min-height: auto;
}

.service-task-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--ink);
}

.service-task-list li + li {
  margin-top: 6px;
}

.contract-file-box span,
.micro-copy {
  color: var(--muted);
  font-size: 13px;
}

.compact-form {
  display: grid;
  gap: 12px;
}

.task-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.task-column {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  padding: 14px;
  box-shadow: 0 12px 28px rgba(6, 39, 150, 0.08);
}

.task-column-head,
.request-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.task-column-head {
  margin-bottom: 12px;
}

.task-column-head h3,
.request-card-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
}

.task-column-head span {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  min-height: 30px;
  border-radius: 999px;
  color: var(--deep);
  background: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.task-card,
.request-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 14px;
  box-shadow: 0 10px 24px rgba(6, 39, 150, 0.07);
}

.task-card + .task-card,
.request-card + .request-card {
  margin-top: 12px;
}

.task-priority {
  display: inline-flex;
  border-radius: 999px;
  margin-bottom: 10px;
  padding: 5px 9px;
  color: var(--deep);
  background: var(--soft);
  font-size: 12px;
  font-weight: 800;
}

.task-priority.urgent {
  color: #8a1f11;
  background: #fff0e9;
}

.task-priority.active {
  color: var(--deep);
  background: #eaf8ff;
}

.task-priority.waiting {
  color: #725300;
  background: #fff7d7;
}

.task-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

.task-card p,
.request-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.task-meta,
.request-data {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.task-meta span,
.request-data span {
  border-radius: 999px;
  background: var(--soft);
  color: var(--deep);
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
}

.task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.task-actions button {
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 34px;
  padding: 0 10px;
  color: var(--deep);
  background: var(--white);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.task-actions button:hover {
  border-color: var(--deep);
  background: var(--soft);
}

.admin-workflow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 390px);
  gap: 16px;
  align-items: start;
}

.request-card-list {
  display: grid;
  gap: 12px;
}

.request-card-list .request-card + .request-card {
  margin-top: 0;
}

.request-card-list.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-shop-order-list {
  display: grid;
  gap: 10px;
}

.admin-shop-order-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(190px, 1.3fr) minmax(150px, 0.8fr) minmax(96px, 0.45fr);
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: var(--white);
  padding: 14px;
  box-shadow: 0 10px 24px rgba(6, 39, 150, 0.07);
  cursor: pointer;
}

.admin-shop-order-row:hover,
.admin-shop-order-row:focus-visible {
  border-color: rgba(6, 39, 150, 0.35);
  border-left-color: var(--deep);
  box-shadow: 0 18px 34px rgba(6, 39, 150, 0.12);
  outline: none;
}

.admin-shop-order-row.is-selected {
  border-color: var(--deep);
  border-left-color: var(--green);
  background: linear-gradient(135deg, #fff, #f4fbff);
}

.admin-shop-order-client,
.admin-shop-order-details,
.admin-shop-order-status {
  min-width: 0;
}

.admin-shop-order-client,
.admin-shop-order-details {
  display: grid;
  gap: 5px;
}

.admin-shop-order-client strong,
.admin-shop-order-details strong {
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.admin-shop-order-client span,
.admin-shop-order-details span {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.admin-shop-order-details span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.admin-shop-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.admin-shop-order-meta span {
  border-radius: 999px;
  background: var(--soft);
  color: var(--deep);
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.admin-shop-order-status {
  display: flex;
  justify-content: flex-end;
}

.admin-shop-order-status .status {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.admin-side-panel {
  position: sticky;
  top: 124px;
}

.admin-order-drawer {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  justify-content: flex-end;
  background: rgba(2, 13, 39, 0.45);
}

.admin-order-drawer[hidden] {
  display: none;
}

.admin-order-drawer-panel {
  position: relative;
  width: min(560px, 100%);
  height: 100%;
  overflow-y: auto;
  padding: 28px;
  background: var(--white);
  box-shadow: -26px 0 70px rgba(2, 13, 39, 0.26);
}

.drawer-close {
  position: sticky;
  top: 0;
  z-index: 2;
  float: right;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--deep);
  background: var(--soft);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.drawer-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.drawer-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
}

.drawer-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.drawer-detail-grid div,
.drawer-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 12px;
}

.drawer-detail-grid strong,
.drawer-detail-grid span {
  display: block;
}

.drawer-detail-grid strong,
.drawer-block h3 {
  color: var(--deep);
}

.drawer-detail-grid strong {
  font-size: 11px;
  text-transform: uppercase;
}

.drawer-detail-grid span {
  margin-top: 4px;
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.drawer-block {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.drawer-block h3,
.drawer-block p {
  margin: 0;
}

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

.drawer-order-items,
.drawer-timeline {
  display: grid;
  gap: 8px;
}

.drawer-order-items div,
.drawer-timeline div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  background: var(--white);
}

.drawer-order-items div {
  grid-template-columns: minmax(0, 1fr) auto;
}

.drawer-order-items strong,
.drawer-order-items span {
  min-width: 0;
}

.drawer-order-items strong {
  color: var(--ink);
}

.drawer-order-items span,
.drawer-timeline span,
.drawer-timeline small {
  color: var(--muted);
  font-size: 13px;
}

.drawer-order-items b {
  grid-row: span 2;
  align-self: center;
  color: var(--deep);
}

.drawer-timeline div {
  border-left: 4px solid var(--green);
}

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

.admin-ticket-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
}

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

.ticket-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 16px;
  box-shadow: 0 12px 28px rgba(6, 39, 150, 0.08);
}

.ticket-open {
  border-left: 4px solid var(--green);
}

.ticket-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ticket-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
}

.ticket-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

.ticket-detail-grid div {
  border-radius: 8px;
  background: var(--soft);
  padding: 10px;
}

.ticket-detail-grid strong,
.ticket-detail-grid span {
  display: block;
}

.ticket-detail-grid strong {
  color: var(--deep);
  font-size: 11px;
  text-transform: uppercase;
}

.ticket-detail-grid span {
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.chat-admin-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.chat-client-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 12px;
  box-shadow: 0 12px 28px rgba(6, 39, 150, 0.08);
}

.chat-client-list button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
  text-align: left;
  color: var(--muted);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.chat-client-list button + button {
  margin-top: 6px;
}

.chat-client-list button.is-active,
.chat-client-list button:hover {
  color: var(--deep);
  background: var(--soft);
}

.chat-client-list strong,
.chat-client-list span {
  display: block;
}

.chat-client-list span {
  font-size: 13px;
}

.chat-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(6, 39, 150, 0.08);
  overflow: hidden;
}

.chat-thread {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 420px;
  max-height: 560px;
  overflow-y: auto;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(234, 248, 255, 0.82), rgba(255, 255, 255, 0.96));
}

.chat-message {
  max-width: min(74%, 620px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 12px 14px;
  box-shadow: 0 10px 20px rgba(6, 39, 150, 0.07);
}

.chat-message.is-own {
  justify-self: end;
  color: var(--white);
  border-color: var(--deep);
  background: var(--deep);
}

.chat-message.is-own .chat-meta,
.chat-message.is-own p {
  color: rgba(255, 255, 255, 0.86);
}

.chat-message p {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 14px;
}

.chat-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  border-top: 1px solid var(--line);
  padding: 14px;
}

.chat-composer textarea {
  min-height: 54px;
  max-height: 130px;
  resize: vertical;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(6, 39, 150, 0.08);
}

.table-thumb {
  display: block;
  width: 72px;
  height: 48px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--soft);
}

.table-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

th {
  color: var(--deep);
  background: var(--soft);
  font-weight: 800;
}

td {
  color: var(--muted);
  vertical-align: middle;
}

.status {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--deep);
  background: var(--soft);
  font-size: 12px;
  font-weight: 800;
}

.table-action {
  border: 1px solid var(--deep);
  border-radius: 6px;
  min-height: 34px;
  padding: 0 10px;
  color: var(--white);
  background: var(--deep);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.table-action:disabled {
  cursor: wait;
  opacity: 0.7;
}

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

.form-helper {
  margin: -4px 0 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.dashboard-form .btn {
  width: 100%;
}

.table-number-input {
  width: 88px;
  min-height: 34px;
  padding: 6px 8px;
}

.table-action-stack {
  display: grid;
  gap: 6px;
  min-width: 86px;
}

.table-action-danger {
  border-color: #b42318;
  background: #b42318;
}

.table-check {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.table-check input {
  width: 15px;
  height: 15px;
  min-height: 15px;
  padding: 0;
  accent-color: var(--deep);
}

.stock-checkbox-line {
  align-self: end;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  padding: 10px 12px;
}

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.checkbox-line input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  flex: 0 0 16px;
  margin-top: 2px;
  padding: 0;
  accent-color: var(--deep);
}

.field-label {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.supply-multiselect {
  position: relative;
}

.supply-select-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: 12px 14px;
  text-align: left;
}

.supply-select-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  border: 1px solid #cfe0f3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(3, 25, 66, 0.16);
  padding: 8px;
  max-width: min(100%, 420px);
}

.supply-select-menu[hidden] {
  display: none !important;
}

.supply-select-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.supply-select-menu label,
.supply-select-all {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  min-width: 0;
  padding: 8px 10px;
}

.supply-select-menu label span,
.supply-select-all span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.supply-select-all {
  margin-bottom: 8px;
  background: #eef6ff;
}

.supply-select-menu label:hover,
.supply-select-all:hover {
  background: #f3f8ff;
}

.supply-select-menu input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  flex: 0 0 16px;
  padding: 0;
  accent-color: var(--deep);
}

.supply-select-done {
  border: 0;
  border-radius: 6px;
  background: var(--deep);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  padding: 10px 12px;
}

.supply-select-actions {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 8px;
}

.supply-confirmation-box {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(45, 221, 30, 0.38);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: #f4fff4;
  color: var(--ink);
  padding: 14px;
}

.supply-confirmation-box[hidden] {
  display: none !important;
}

.supply-confirmation-box strong {
  color: var(--deep);
  font-size: 15px;
}

.supply-confirmation-box span,
.supply-confirmation-box small {
  color: #334a70;
  font-weight: 700;
  line-height: 1.4;
}

.shop-order-list {
  display: grid;
  gap: 12px;
}

.shop-order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(145px, 0.28fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(6, 39, 150, 0.07);
}

.shop-order-row.is-open {
  background: linear-gradient(135deg, #fff, #f6fbff);
}

.shop-order-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.shop-order-ref {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.shop-order-ref strong {
  color: var(--deep);
  font-size: 17px;
}

.shop-order-ref span,
.shop-order-side small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.shop-order-products {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-order-products li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 7px;
  background: #f4f8ff;
}

.shop-order-products span,
.shop-order-products small {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.shop-order-products small {
  color: #516886;
  text-align: right;
}

.shop-order-side {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 8px;
  text-align: right;
}

.shop-order-side strong {
  color: var(--deep);
  font-size: 20px;
}

.shop-order-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
  grid-column: 1 / -1;
}

.shop-order-progress span {
  position: relative;
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f5f8ff;
  color: #50627f;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.shop-order-progress[data-progress="1"] span:nth-child(-n + 1),
.shop-order-progress[data-progress="2"] span:nth-child(-n + 2),
.shop-order-progress[data-progress="3"] span:nth-child(-n + 3) {
  border-color: rgba(45, 221, 30, 0.42);
  background: #eaffea;
  color: #176b16;
}

.shop-order-update {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border-left: 4px solid var(--deep);
  border-radius: 6px;
  background: #eef6ff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.client-shop-panel {
  gap: 18px;
}

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

.client-shop-summary {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(6, 39, 150, 0.18);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: linear-gradient(135deg, #f4fff8, #eef6ff);
  color: var(--ink);
}

.client-shop-summary div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.client-shop-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.client-shop-summary strong {
  color: var(--deep);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1;
}

.client-shop-summary p {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
}

.client-shop-summary small {
  color: #48607f;
  font-weight: 700;
  line-height: 1.45;
}

.client-shop-card {
  display: grid;
  grid-template-rows: 150px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.client-shop-card.is-disabled {
  opacity: 0.72;
}

.client-shop-card img,
.client-shop-placeholder {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: #eef6ff;
}

.client-shop-placeholder {
  display: grid;
  place-items: center;
  color: var(--deep);
  font-size: 28px;
  font-weight: 900;
}

.client-shop-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.client-shop-head {
  display: grid;
  gap: 8px;
}

.client-shop-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
}

.client-shop-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.client-shop-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.client-shop-meta strong {
  color: var(--deep);
}

.stock-pill {
  width: fit-content;
  border-radius: 999px;
  background: #eaffea;
  color: #176b16;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 900;
}

.stock-pill.is-low {
  background: #fff6da;
  color: #8a5a00;
}

.stock-pill.is-out {
  background: #fff1f1;
  color: #b42318;
}

.client-shop-qty {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.client-shop-qty input {
  width: 100%;
}

.notification-list,
.notification-preferences {
  display: grid;
  gap: 12px;
}

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

.notification-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.notification-panel-head h3 {
  margin: 0 0 5px;
}

.notification-panel-head p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.preference-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--white), #fbfeff);
  padding: 15px 16px;
  cursor: pointer;
}

.preference-row:hover {
  border-color: rgba(6, 39, 150, 0.28);
  box-shadow: 0 12px 24px rgba(6, 39, 150, 0.08);
}

.preference-row strong,
.preference-row small {
  display: block;
}

.preference-row strong {
  color: var(--ink);
  font-size: 15px;
}

.preference-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.preference-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.preference-row i {
  position: relative;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: #d9e5ef;
  transition: 0.18s ease;
}

.preference-row i::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 3px 8px rgba(7, 22, 77, 0.20);
  transition: 0.18s ease;
}

.preference-row input:checked + i {
  background: var(--deep);
}

.preference-row input:checked + i::after {
  transform: translateX(22px);
  background: var(--green);
}

.notification-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

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

.notification-list div {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.notification-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

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

.notification-list strong {
  color: var(--deep);
}

.notification-list span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
}

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

.logo-preview,
.invoice-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 18px;
  box-shadow: 0 12px 28px rgba(6, 39, 150, 0.08);
}

.logo-preview {
  min-height: 92px;
  display: grid;
  place-items: center;
  color: var(--deep);
  font-weight: 800;
  text-align: center;
}

.logo-preview-card {
  align-content: center;
  gap: 8px;
}

.logo-preview img {
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
}

.invoice-card h3 {
  margin: 0 0 8px;
}

.invoice-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.client-cleaning-request-form,
.client-cleaning-history {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.client-cleaning-request-form h4,
.client-cleaning-history h4 {
  margin: 0;
  color: var(--deep);
}

.ai-support {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: grid;
  justify-items: end;
  gap: 12px;
}

.ai-chat-toggle {
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 18px;
  color: var(--ink);
  background: var(--green);
  box-shadow: 0 18px 40px rgba(7, 22, 77, 0.26);
  cursor: pointer;
}

.ai-chat-toggle span,
.ai-chat-toggle strong {
  display: block;
}

.ai-chat-toggle span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ai-chat-toggle strong {
  font-size: 15px;
}

.ai-chat-panel {
  width: min(390px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(215, 233, 245, 0.92);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(7, 22, 77, 0.30);
}

.ai-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  color: var(--white);
  background: var(--ink);
  border-bottom: 3px solid var(--green);
}

.ai-chat-head strong,
.ai-chat-head span {
  display: block;
}

.ai-chat-head span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.ai-chat-close {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.10);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.ai-chat-messages {
  display: grid;
  gap: 10px;
  max-height: 330px;
  overflow-y: auto;
  padding: 14px;
  background: linear-gradient(180deg, var(--soft), var(--white));
}

.ai-message {
  max-width: 88%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 10px 12px;
  box-shadow: 0 8px 18px rgba(6, 39, 150, 0.07);
}

.ai-message.user {
  justify-self: end;
  color: var(--white);
  border-color: var(--deep);
  background: var(--deep);
}

.ai-message span {
  display: block;
  margin-bottom: 4px;
  color: var(--deep);
  font-size: 12px;
  font-weight: 800;
}

.ai-message.user span,
.ai-message.user p {
  color: rgba(255, 255, 255, 0.88);
}

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

.ai-message a {
  color: var(--deep);
  font-weight: 800;
  text-decoration: underline;
}

.ai-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px 0;
}

.ai-quick-actions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 34px;
  padding: 0 10px;
  color: var(--deep);
  background: var(--white);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.ai-quick-actions button:hover {
  border-color: var(--deep);
  background: var(--soft);
}

.ai-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px;
}

.ai-chat-form input {
  min-height: 44px;
}

@media (max-width: 1180px) {
  .nav-inner > .btn-contact {
    display: none;
  }
}

@media (max-width: 980px) {
  .nav-inner {
    flex-wrap: wrap;
    min-height: 92px;
    padding: 8px 0 10px;
  }

  .brand {
    width: 250px;
    min-width: 250px;
    height: 82px;
  }

  .brand-logo {
    width: 250px;
    height: 250px;
    flex-basis: 250px;
    transform: none;
  }

  .nav-links {
    order: 5;
    display: flex;
    width: 100%;
    margin-left: 0;
    padding: 2px 0 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    padding: 9px 10px;
  }

  .hero-inner,
  .grid-2,
  .legal-layout,
  .portal-shell,
  .product-window-grid,
  .cta,
  .footer-inner,
  .dashboard-layout,
  .dashboard-grid,
  .service-plan-grid,
  .admin-workflow-grid,
  .dashboard-alert-grid,
  .ticket-layout,
  .admin-ticket-layout,
  .chat-admin-layout,
  .request-card-list.compact {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .grid-4,
  .team-grid,
  .process-flow,
  .work-steps,
  .metric-grid,
  .client-profile-metrics,
  .logo-preview-grid,
  .invoice-grid,
  .task-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-flow::before {
    display: none;
  }

  .process-window:nth-child(even) {
    transform: none;
  }

  .dashboard-sidebar,
  .admin-side-panel,
  .legal-nav {
    position: static;
  }

  .portal-shell {
    min-height: auto;
    padding: 36px 0;
  }

  .priority-supply-icons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 520px;
    margin-top: 34px;
  }
}

@media (max-width: 640px) {
  .top-note {
    text-align: left;
  }

  .nav-inner {
    width: min(100% - 20px, 1400px);
    min-height: 78px;
    gap: 8px;
  }

  .brand {
    width: 190px;
    min-width: 190px;
    height: 68px;
  }

  .brand-logo {
    width: 190px;
    height: 190px;
    flex-basis: 190px;
    transform: none;
  }

  .brand small,
  .nav-inner > .btn {
    display: none;
  }

  .hero-inner {
    min-height: auto;
    padding: 54px 0;
  }

  .services-hero h1,
  .shop-hero h1 {
    font-size: 36px;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .services-hero .hero-actions .btn,
  .shop-hero .hero-actions .btn {
    white-space: normal;
    text-align: center;
  }

  .portal-page {
    background-position: center;
  }

  .portal-shell {
    width: min(100% - 24px, 1120px);
    gap: 18px;
    padding: 22px 0;
    align-items: start;
  }

  .portal-brand img {
    width: min(220px, 100%);
    margin-bottom: 16px;
  }

  .portal-brand h1 {
    font-size: 34px;
    line-height: 1.02;
  }

  .portal-brand p {
    margin-top: 12px;
    font-size: 15px;
  }

  .portal-demo {
    margin-top: 14px;
    padding: 12px;
  }

  .portal-card {
    padding: 18px;
  }

  .portal-card h2 {
    font-size: 25px;
  }

  .portal-mobile-signup-jump {
    display: inline-flex;
  }

  .anchor-target {
    display: block;
    position: relative;
    top: -88px;
    height: 0;
    visibility: hidden;
  }

  h1 {
    font-size: 42px;
  }

  .priority-hero h1 {
    font-size: 42px;
  }

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

  .priority-supply-icon {
    min-height: 92px;
  }

  .admin-shop-order-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .admin-shop-order-status {
    justify-content: flex-start;
  }

  .grid-3,
  .grid-4,
  .team-grid,
  .process-flow,
  .work-steps,
  .metric-grid,
  .logo-preview-grid,
  .invoice-grid,
  .task-board,
  .contract-detail-grid,
  .service-type-options,
  .ticket-detail-grid,
  .form-grid,
  .conditional-fields,
  .drawer-detail-grid,
  .client-profile-grid,
  .choice-row {
    grid-template-columns: 1fr;
  }

  .how-it-works {
    padding-top: 44px;
    padding-bottom: 48px;
  }

  .process-flow {
    gap: 12px;
  }

  .process-window {
    min-height: auto;
    padding: 18px;
  }

  .process-window h3 {
    margin-top: 22px;
  }

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

  .dashboard-section-head {
    display: grid;
    align-items: start;
  }

  .priority-plus-corner {
    position: static;
    width: fit-content;
    margin-bottom: 14px;
  }

  .dashboard-section-head .btn,
  .task-actions button {
    width: 100%;
  }

  .notification-panel-head,
  .notification-actions {
    display: grid;
  }

  .chat-composer {
    grid-template-columns: 1fr;
  }

  .chat-message {
    max-width: 100%;
  }

  .admin-order-drawer-panel {
    width: 100%;
    padding: 18px;
  }

  .drawer-order-items div {
    grid-template-columns: 1fr;
  }

  .ai-support {
    right: 16px;
    bottom: 16px;
    left: 16px;
    justify-items: stretch;
  }

  .ai-chat-toggle {
    justify-content: center;
  }

  .ai-chat-panel {
    width: 100%;
  }

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

  .cookie-banner {
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: auto;
  }

  .cookie-actions .btn {
    width: 100%;
  }

  .section {
    padding: 54px 0;
  }
}

/* Admin workspace */
.dashboard-main {
  min-width: 0;
}

.dashboard-section {
  scroll-margin-top: 110px;
}

.dashboard-empty {
  min-height: 72px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
  font-size: 14px;
}

td.dashboard-empty {
  display: table-cell;
  min-height: 0;
  border-width: 0 0 1px;
  border-radius: 0;
}

.task-card-link {
  display: block;
  color: inherit;
}

.task-card-link:hover {
  border-color: var(--deep);
}

.request-card.is-selected,
.ticket-card.is-selected,
.table-wrap tr.is-selected,
.task-card-link:focus-visible {
  border-color: var(--deep);
  box-shadow: 0 0 0 3px rgba(6, 39, 150, 0.12), 0 10px 24px rgba(6, 39, 150, 0.07);
}

.table-wrap tr.is-selected td {
  background: #f3fff3;
}

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

.logo-preview small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.logo-preview .table-action {
  width: 100%;
  max-width: 140px;
}

.dashboard-form button[disabled] {
  cursor: wait;
  opacity: 0.62;
}

@media (max-width: 980px) {
  body.dashboard-shell .dashboard-layout {
    width: min(100% - 24px, 920px);
    padding-top: 14px;
  }

  body.dashboard-shell .dashboard-sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 10px;
    scrollbar-width: thin;
  }

  body.dashboard-shell .dashboard-sidebar h2 {
    display: none;
  }

  body.dashboard-shell .dashboard-sidebar a {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    background: var(--white);
    white-space: nowrap;
  }

  body.dashboard-shell .dashboard-sidebar a.is-active {
    border-color: var(--deep);
    color: var(--white);
    background: var(--deep);
  }

  body.dashboard-shell .dashboard-grid,
  body.dashboard-shell .admin-workflow-grid,
  body.dashboard-shell .admin-ticket-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  body.dashboard-shell .admin-side-panel {
    position: static;
  }

  body.dashboard-shell .dashboard-header h1 {
    font-size: 36px;
  }
}

@media (max-width: 640px) {
  body.dashboard-shell .top-note {
    padding-inline: 12px;
    font-size: 11px;
  }

  body.dashboard-shell .nav-inner {
    min-height: 72px;
    gap: 8px;
  }

  body.dashboard-shell .brand {
    width: 156px;
    min-width: 156px;
    height: 58px;
  }

  body.dashboard-shell .brand-logo {
    width: 156px;
    height: 156px;
    flex-basis: 156px;
  }

  body.dashboard-shell .nav-inner > .btn {
    display: inline-flex;
    min-height: 40px;
    padding: 0 11px;
    font-size: 12px;
  }

  body.dashboard-shell .nav-inner > a.btn-secondary {
    display: none;
  }

  body.dashboard-shell .dashboard-layout {
    width: calc(100% - 16px);
    gap: 14px;
  }

  body.dashboard-shell .dashboard-header,
  body.dashboard-shell .dashboard-card,
  body.dashboard-shell .metric-card,
  body.dashboard-shell .ticket-card {
    padding: 14px;
  }

  body.dashboard-shell .dashboard-header h1 {
    font-size: 30px;
  }

  body.dashboard-shell .dashboard-section h2 {
    font-size: 23px;
  }

  body.dashboard-shell .dashboard-section {
    gap: 12px;
  }

  body.dashboard-shell .dashboard-section-head {
    gap: 10px;
  }

  body.dashboard-shell .metric-grid {
    gap: 10px;
  }

  body.dashboard-shell .metric-card strong {
    font-size: 26px;
  }

  body.dashboard-shell .supply-select-options {
    grid-template-columns: 1fr;
  }

  body.dashboard-shell .client-shop-grid {
    grid-template-columns: 1fr;
  }

  body.dashboard-shell .shop-order-row {
    grid-template-columns: 1fr;
  }

  body.dashboard-shell .shop-order-side {
    justify-items: start;
    text-align: left;
  }

  body.dashboard-shell .shop-order-products li {
    display: grid;
  }

  body.dashboard-shell .shop-order-products small {
    text-align: left;
  }

  body.dashboard-shell .chat-admin-layout {
    gap: 10px;
  }

  body.dashboard-shell .chat-client-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
  }

  body.dashboard-shell .chat-client-list button {
    min-width: 190px;
  }

  body.dashboard-shell .chat-client-list button + button {
    margin-top: 0;
  }

  body.dashboard-shell .chat-thread {
    min-height: 320px;
    max-height: 440px;
    padding: 12px;
  }

  body.dashboard-shell .table-wrap {
    overflow-x: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  body.dashboard-shell table,
  body.dashboard-shell thead,
  body.dashboard-shell tbody,
  body.dashboard-shell tr,
  body.dashboard-shell th,
  body.dashboard-shell td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  body.dashboard-shell thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  body.dashboard-shell tr {
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 10px;
    background: var(--white);
    box-shadow: 0 10px 22px rgba(6, 39, 150, 0.07);
    overflow: hidden;
  }

  body.dashboard-shell td {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding: 10px 12px;
    color: var(--ink);
    overflow-wrap: anywhere;
  }

  body.dashboard-shell td:last-child {
    border-bottom: 0;
  }

  body.dashboard-shell td::before {
    content: attr(data-label);
    color: var(--deep);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
  }

  body.dashboard-shell td.dashboard-empty {
    display: block;
    border: 1px dashed var(--line);
  }

  body.dashboard-shell td.dashboard-empty::before {
    content: "";
  }
}
