:root {
  color-scheme: light;
  --ink: #192321;
  --muted: #60706b;
  --line: #dbe4df;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --surface-strong: #eff6f3;
  --teal: #136f63;
  --teal-dark: #0d4e47;
  --amber: #d99a2b;
  --coral: #c85c45;
  --moss: #6e8b55;
  --shadow: 0 18px 55px rgba(25, 35, 33, 0.12);
  --radius: 8px;
  --content: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body::selection {
  background: rgba(19, 111, 99, 0.18);
}

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

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

button {
  cursor: pointer;
}

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

.icon-sprite {
  display: none;
}

.icon {
  width: 1.05em;
  height: 1.05em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  flex: 0 0 auto;
}

.site-header {
  align-items: center;
  background: rgba(251, 250, 246, 0.86);
  border-bottom: 1px solid rgba(219, 228, 223, 0.8);
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr auto auto;
  left: 0;
  padding: 12px max(20px, calc((100vw - 1180px) / 2));
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.brand {
  align-items: center;
  display: inline-flex;
  min-width: 0;
}

.brand-logo {
  height: 66px;
  mix-blend-mode: multiply;
  object-fit: contain;
  object-position: left center;
  width: 200px;
}

.brand-mark,
.avatar {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  margin-top: -3px;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 6px;
}

.site-nav a,
.nav-action,
.tab-button {
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 700;
  min-height: 40px;
  padding: 9px 12px;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.nav-action:hover,
.nav-action:focus-visible {
  background: rgba(19, 111, 99, 0.09);
  color: var(--teal-dark);
  outline: 0;
}

.nav-action {
  align-items: center;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  gap: 8px;
}

.nav-action:hover,
.nav-action:focus-visible {
  background: var(--teal-dark);
  color: #fff;
}

.hero {
  min-height: 92svh;
  overflow: hidden;
  position: relative;
}

.hero-image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 20, 18, 0.82) 0%, rgba(10, 20, 18, 0.58) 40%, rgba(10, 20, 18, 0.14) 76%),
    linear-gradient(0deg, rgba(251, 250, 246, 0.7) 0%, rgba(251, 250, 246, 0) 24%);
  inset: 0;
  position: absolute;
}

.hero-content {
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 92svh;
  padding: 104px max(20px, calc((100vw - 1180px) / 2)) 88px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.77rem;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #9ee0d3;
}

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

h1 {
  font-size: clamp(3.2rem, 9vw, 6.8rem);
  letter-spacing: 0;
  line-height: 0.9;
  margin-bottom: 22px;
  max-width: 9ch;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.35rem);
  letter-spacing: 0;
  line-height: 1;
}

h3 {
  font-size: 1.07rem;
  line-height: 1.2;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.04rem, 2vw, 1.28rem);
  max-width: 600px;
}

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

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  display: inline-flex;
  font-weight: 800;
  gap: 9px;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: 0;
}

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

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

.button.subtle {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.button.subtle:hover,
.button.subtle:focus-visible {
  background: var(--surface-strong);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.36);
  color: #fff;
}

.button.compact {
  min-height: 42px;
  padding: 9px 13px;
}

.signal-band {
  align-items: stretch;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  margin: -42px auto 0;
  position: relative;
  width: var(--content);
  z-index: 2;
  box-shadow: var(--shadow);
}

.signal-item {
  background: var(--surface);
  min-height: 96px;
  padding: 22px;
}

.signal-item strong,
.signal-item span {
  display: block;
}

.signal-item strong {
  font-size: 1.05rem;
}

.signal-item span {
  color: var(--muted);
  margin-top: 3px;
}

.section {
  margin: 0 auto;
  padding: 92px 0;
  width: var(--content);
}

.section-heading {
  max-width: 780px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.product-overview {
  padding-bottom: 34px;
}

.product-heading {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  max-width: none;
}

.product-heading > p {
  color: var(--muted);
  margin: 0;
}

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

.product-card {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 174px;
  overflow: hidden;
  padding: 24px;
  position: relative;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.product-card::before {
  background: var(--product-accent, var(--teal));
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: 5px;
}

.product-card:hover,
.product-card:focus-visible {
  border-color: color-mix(in srgb, var(--product-accent, var(--teal)) 38%, var(--line));
  box-shadow: 0 18px 44px rgba(25, 35, 33, 0.1);
  outline: 0;
  transform: translateY(-3px);
}

.product-card > .icon {
  color: var(--product-accent, var(--teal));
  font-size: 1.25rem;
}

.product-logo-wrap {
  align-items: center;
  background: color-mix(in srgb, var(--product-accent, var(--teal)) 11%, white);
  border: 1px solid color-mix(in srgb, var(--product-accent, var(--teal)) 24%, white);
  border-radius: 14px;
  display: inline-flex;
  height: 66px;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
  width: 66px;
}

.product-logo {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.product-card-copy,
.product-card-copy strong,
.product-card-copy small,
.product-card-copy span {
  display: block;
}

.product-card-copy small {
  color: var(--product-accent, var(--teal));
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.product-card-copy strong {
  font-size: 1.45rem;
  margin: 3px 0 6px;
}

.product-card-copy span {
  color: var(--muted);
}

.product-realaccount { --product-accent: #1769e0; }
.product-realnick { --product-accent: #111827; }
.product-checkmydevice { --product-accent: #0f8a78; }
.product-realping { --product-accent: #8158d6; }

body.product-page {
  background: var(--paper);
}

#products,
#services,
#process,
#contact,
.product-page section[id] {
  scroll-margin-top: 96px;
}

.product-hero {
  background:
    radial-gradient(circle at 82% 15%, color-mix(in srgb, var(--product-accent) 20%, transparent) 0, transparent 34%),
    linear-gradient(135deg, #0d1715 0%, #172522 100%);
  color: #fff;
  min-height: 680px;
  overflow: hidden;
  padding: 150px max(20px, calc((100vw - 1180px) / 2)) 90px;
  position: relative;
}

.product-hero-layout {
  align-items: center;
  display: grid;
  gap: 70px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  margin: 0 auto;
  max-width: 1180px;
}

.product-hero h1 {
  font-size: clamp(3.2rem, 5.5vw, 5.5rem);
  letter-spacing: -0.045em;
  max-width: 100%;
}

.product-hero .eyebrow {
  color: color-mix(in srgb, var(--product-accent) 52%, white);
}

.product-hero-copy {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  max-width: 650px;
}

.product-visual {
  aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 32px;
  display: grid;
  padding: 28px;
  place-items: center;
  position: relative;
}

.product-visual::before,
.product-visual::after {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  content: "";
  inset: 12%;
  position: absolute;
}

.product-visual::after { inset: 26%; }

.product-visual-mark {
  align-items: center;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  display: flex;
  height: 52%;
  justify-content: center;
  overflow: hidden;
  padding: 18px;
  position: relative;
  width: 52%;
  z-index: 1;
}

.product-visual-logo {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.product-facts {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  margin: -38px auto 0;
  position: relative;
  width: var(--content);
  z-index: 2;
}

.product-fact {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 22px;
}

.product-fact strong,
.product-fact span { display: block; }
.product-fact span { color: var(--muted); margin-top: 4px; }

.feature-layout {
  display: grid;
  gap: 52px;
  grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1fr);
}

.feature-intro {
  position: sticky;
  top: 110px;
  align-self: start;
}

.feature-intro p { color: var(--muted); }

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

.feature-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 15px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 20px;
}

.feature-number {
  align-items: center;
  background: color-mix(in srgb, var(--product-accent) 10%, white);
  border-radius: 50%;
  color: var(--product-accent);
  display: flex;
  font-size: 0.82rem;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.feature-item h3 { margin-bottom: 6px; }
.feature-item p { color: var(--muted); margin-bottom: 0; }

.use-cases {
  background: var(--surface-strong);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.use-case-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 32px;
}

.use-case-grid article {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.use-case-grid p { color: var(--muted); margin: 0; }

.product-cta {
  align-items: center;
  background: var(--ink);
  border-radius: 18px;
  color: #fff;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 34px;
}

.product-cta h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 10px; }
.product-cta p { color: rgba(255, 255, 255, 0.7); margin: 0; }
.product-cta .button.primary { background: var(--product-accent); }

.product-page .site-footer { margin-top: 0; }

@media (max-width: 820px) {
  .product-heading,
  .product-hero-layout,
  .feature-layout,
  .product-cta { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .product-visual { max-width: 440px; width: 100%; }
  .feature-intro { position: static; }
  .product-facts,
  .use-case-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .product-card { grid-template-columns: auto minmax(0, 1fr); }
  .product-card > .icon { display: none; }
  .product-hero { min-height: auto; padding-top: 248px; }
  .product-visual { display: none; }
  #products,
  #services,
  #process,
  #contact { scroll-margin-top: 150px; }
  .product-page section[id] { scroll-margin-top: 232px; }
  .brand-logo { height: 54px; width: 164px; }
}

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

.service-card,
.work-panel,
.metric,
.ticket-form,
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service-card {
  min-height: 100%;
  padding: 22px;
}

.service-icon {
  align-items: center;
  background: var(--surface-strong);
  border: 1px solid rgba(19, 111, 99, 0.16);
  border-radius: var(--radius);
  color: var(--teal-dark);
  display: inline-flex;
  height: 40px;
  justify-content: center;
  margin-bottom: 18px;
  width: 40px;
}

.service-card p {
  color: var(--muted);
}

.service-card ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.service-card li {
  align-items: flex-start;
  color: #34423f;
  display: flex;
  gap: 8px;
}

.service-card li .icon {
  color: var(--moss);
  margin-top: 3px;
}

.process {
  border-top: 1px solid var(--line);
  padding-top: 78px;
}

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

.timeline article {
  border-left: 3px solid var(--amber);
  padding: 0 20px 0 18px;
}

.timeline span {
  color: var(--amber);
  display: block;
  font-weight: 900;
  margin-bottom: 12px;
}

.timeline p {
  color: var(--muted);
  margin-bottom: 0;
}

body.portal-page {
  background:
    linear-gradient(180deg, rgba(239, 246, 243, 0.9) 0%, rgba(251, 250, 246, 1) 54%),
    var(--paper);
}

.login-section {
  align-items: center;
  display: flex;
  min-height: 100svh;
  padding: 124px max(20px, calc((100vw - 1180px) / 2)) 72px;
}

.login-layout {
  align-items: center;
  display: grid;
  gap: 38px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  width: 100%;
}

.login-copy {
  max-width: 650px;
}

.login-copy h1 {
  color: var(--ink);
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  max-width: 10ch;
}

.login-copy p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 560px;
}

.login-note {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  margin-top: 22px;
  max-width: 360px;
  padding: 14px;
}

.login-note strong,
.login-note span {
  display: block;
}

.login-note span {
  color: var(--muted);
}

.login-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  padding: 22px;
}

.login-form h2 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.login-form .button {
  width: 100%;
}

.login-error {
  background: rgba(200, 92, 69, 0.11);
  border: 1px solid rgba(200, 92, 69, 0.22);
  border-radius: var(--radius);
  color: #95432f;
  font-weight: 800;
  margin: 0;
  padding: 10px 12px;
}

.notice {
  background: var(--surface-strong);
  border: 1px solid rgba(19, 111, 99, 0.2);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  padding: 12px;
}

.notice strong {
  display: block;
}

.portal-section {
  background:
    linear-gradient(180deg, #eef6f2 0%, #fbfaf6 100%);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding: 82px 0;
}

.portal-shell {
  min-height: 100svh;
  padding-top: 118px;
}

.portal-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: 280px minmax(0, 1fr);
  margin: 0 auto;
  width: var(--content);
}

.portal-sidebar,
.portal-main {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.portal-sidebar {
  align-self: start;
  padding: 16px;
  position: sticky;
  top: 84px;
}

.portal-profile {
  align-items: center;
  display: flex;
  gap: 11px;
  margin-bottom: 16px;
  min-width: 0;
}

.portal-profile strong,
.portal-profile small {
  display: block;
}

.portal-profile strong {
  overflow-wrap: anywhere;
}

.portal-profile small {
  color: var(--muted);
}

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

.tab-button {
  align-items: center;
  background: transparent;
  border: 0;
  display: flex;
  gap: 10px;
  text-align: left;
  width: 100%;
}

.tab-button.is-active {
  background: var(--ink);
  color: #fff;
}

.portal-main {
  min-width: 0;
  padding: 22px;
}

.portal-topline {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.portal-topline h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  margin-bottom: 0;
}

.dashboard-title {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  margin-bottom: 0;
  max-width: 760px;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.metric-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 16px;
}

.metric {
  padding: 18px;
}

.metric span,
.metric strong {
  display: block;
}

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

.metric strong {
  font-size: 2rem;
  line-height: 1;
  margin-top: 8px;
}

.split-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
}

.work-panel {
  min-width: 0;
  padding: 18px;
}

.panel-title,
.invoice-toolbar {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-title h3,
.panel-title h2,
.invoice-toolbar h3 {
  margin: 0;
}

.panel-title h2,
.invoice-toolbar h2 {
  font-size: 1.07rem;
  line-height: 1.2;
}

.panel-title a,
.invoice-toolbar span {
  color: var(--teal);
  font-weight: 800;
}

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

.ticket-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
}

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

.ticket-head strong {
  overflow-wrap: anywhere;
}

.ticket-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.9rem;
  gap: 7px;
  margin-top: 5px;
}

.ticket-message {
  color: #40504b;
  margin: 10px 0 0;
}

.status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 850;
  min-height: 26px;
  padding: 4px 10px;
  white-space: nowrap;
}

.status.open {
  background: rgba(200, 92, 69, 0.13);
  color: #95432f;
}

.status.progress {
  background: rgba(217, 154, 43, 0.16);
  color: #8a5b13;
}

.status.done {
  background: rgba(19, 111, 99, 0.12);
  color: var(--teal-dark);
}

.step-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 20px;
}

.step-list li::marker {
  color: var(--amber);
  font-weight: 900;
}

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

.step-list span {
  color: var(--muted);
}

.plain-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.plain-list li {
  background: var(--surface-strong);
  border: 1px solid rgba(19, 111, 99, 0.14);
  border-radius: var(--radius);
  padding: 11px 12px;
}

.ticket-workspace {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
}

.ticket-form {
  align-self: start;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.ticket-form h3,
.ticket-form h2 {
  font-size: 1.07rem;
  line-height: 1.2;
  margin: 0;
}

label {
  color: #34423f;
  display: grid;
  font-weight: 800;
  gap: 7px;
}

input,
select,
textarea {
  background: #fff;
  border: 1px solid #cfdad5;
  border-radius: var(--radius);
  color: var(--ink);
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(19, 111, 99, 0.15);
  outline: 0;
}

.form-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

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

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

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

th {
  background: var(--surface-strong);
  color: #41534e;
  font-size: 0.85rem;
}

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

.icon-button {
  align-items: center;
  background: var(--ink);
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 42px;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: var(--teal-dark);
  outline: 0;
}

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

.admin-item {
  display: grid;
  gap: 10px;
}

.admin-controls {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(160px, 1fr) minmax(140px, 0.8fr) auto;
}

.admin-controls label {
  font-size: 0.86rem;
}

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

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

.customer-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  padding: 14px;
}

.customer-card strong,
.customer-card span {
  display: block;
}

.customer-card span {
  color: var(--muted);
}

.customer-actions {
  display: grid;
  gap: 8px;
}

.copy-field {
  font-size: 0.82rem;
}

.account-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.detail-list {
  display: grid;
  gap: 13px;
  margin: 0;
}

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

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

.detail-list dt {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.detail-list dd {
  margin: 2px 0 0;
}

.contact {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
}

.contact-copy p {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 620px;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.contact-form .button {
  width: 100%;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding: 28px 20px;
}

.site-footer span {
  color: var(--ink);
  font-weight: 900;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--teal-dark);
  outline: 0;
}

@media (max-width: 1080px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portal-layout,
  .admin-layout,
  .login-layout,
  .ticket-workspace,
  .split-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    position: static;
  }

  .tab-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tab-button {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  :root {
    --content: min(100% - 28px, 1180px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    background: rgba(251, 250, 246, 0.94);
    border-top: 1px solid var(--line);
    grid-column: 1 / -1;
    justify-content: space-between;
    margin: 0 -14px -12px;
    padding: 8px 14px;
  }

  .site-nav a {
    flex: 1;
    padding-inline: 8px;
    text-align: center;
  }

  .hero,
  .hero-content {
    min-height: 82svh;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(10, 20, 18, 0.88) 0%, rgba(10, 20, 18, 0.52) 70%, rgba(10, 20, 18, 0.28) 100%),
      linear-gradient(0deg, rgba(251, 250, 246, 0.72) 0%, rgba(251, 250, 246, 0) 28%);
  }

  .hero-content {
    padding-top: 144px;
  }

  h1 {
    max-width: 8.5ch;
  }

  .button {
    width: 100%;
  }

  .signal-band,
  .timeline,
  .metric-grid,
  .account-grid,
  .customer-grid,
  .admin-controls {
    grid-template-columns: 1fr;
  }

  .signal-band {
    margin-top: 0;
    width: 100%;
    box-shadow: none;
  }

  .section {
    padding: 68px 0;
  }

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

  .portal-section {
    padding: 58px 0;
  }

  .portal-shell,
  .login-section {
    padding-top: 150px;
  }

  .portal-main,
  .portal-sidebar {
    padding: 14px;
  }

  .portal-topline {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-actions {
    justify-content: stretch;
  }

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

  .tab-button {
    min-height: 46px;
  }

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

  .ticket-head {
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .brand strong {
    font-size: 0.93rem;
  }

  .nav-action {
    padding-inline: 10px;
  }

  .site-nav {
    overflow-x: auto;
  }

  .tab-list {
    grid-template-columns: 1fr;
  }

  .metric strong {
    font-size: 1.65rem;
  }
}
