:root {
  color-scheme: dark;
  --bg: #030605;
  --text: #f6f8f7;
  --muted: #a5afaa;
  --line: rgba(255, 255, 255, 0.13);
  --surface: rgba(255, 255, 255, 0.07);
  --surface-strong: rgba(255, 255, 255, 0.11);
  --accent: #19d6cf;
  --accent-soft: rgba(25, 214, 207, 0.14);
  --accent-blue: #7b7cf2;
  --accent-warm: #ff2ea3;
  --link-bg: #101315;
  --link-text: #ffffff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 12%, rgba(16, 255, 93, 0.14), transparent 26%),
    linear-gradient(135deg, rgba(25, 214, 207, 0.09), rgba(9, 11, 12, 0) 34%),
    linear-gradient(215deg, rgba(255, 46, 163, 0.08), rgba(9, 11, 12, 0) 34%),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body.home-page {
  grid-template-rows: auto auto;
  align-content: center;
  row-gap: 10px;
  padding: clamp(14px, 3vh, 38px) 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 72%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 72%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 50% 34%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.62) 68%),
    linear-gradient(to bottom, rgba(3, 6, 5, 0.18), rgba(3, 6, 5, 0.62));
}

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

.profile {
  position: relative;
  z-index: 1;
  align-self: start;
  width: min(720px, calc(100% - 40px));
  height: fit-content;
  margin: 0 auto;
  padding: 24px 0 24px;
  isolation: isolate;
}

.profile::before {
  position: absolute;
  inset: 10px -28px 10px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(5, 8, 7, 0.34);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  backdrop-filter: blur(22px) saturate(165%);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(25, 214, 207, 0.08);
  content: "";
}

.intro {
  text-align: center;
  position: relative;
}

h1 {
  margin: 0;
  font-size: 56px;
  line-height: 1;
  font-weight: 700;
}

.intro h1 {
  position: relative;
  display: inline-flex;
  padding: 11px 24px 13px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.022)),
    rgba(5, 9, 8, 0.22);
  -webkit-backdrop-filter: blur(20px) saturate(155%);
  backdrop-filter: blur(20px) saturate(155%);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(25, 214, 207, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(25, 214, 207, 0.055);
  color: #ffffff;
  text-shadow:
    0 0 18px rgba(25, 214, 207, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.08);
}

.intro h1::before,
.intro h1::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.intro h1::before {
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 0%, rgba(25, 214, 207, 0.08), transparent 32%),
    radial-gradient(circle at 84% 100%, rgba(255, 46, 163, 0.055), transparent 34%),
    linear-gradient(90deg, rgba(25, 214, 207, 0.055), transparent 24% 76%, rgba(255, 46, 163, 0.045));
  opacity: 0.58;
}

.intro h1::after {
  top: 1px;
  bottom: 1px;
  left: -58%;
  width: 56%;
  z-index: 1;
  border-radius: 999px;
  background: linear-gradient(
    115deg,
    transparent 0 25%,
    rgba(255, 255, 255, 0.02) 34%,
    rgba(255, 255, 255, 0.2) 48%,
    rgba(25, 214, 207, 0.08) 56%,
    transparent 72% 100%
  );
  opacity: 0;
  transform: translateX(0) skewX(-12deg);
  animation: titleGlassScan 11.5s ease-in-out infinite;
}

.title {
  max-width: 540px;
  margin: 14px auto 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
}

.role-line {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.typed-role {
  display: inline-block;
  color: #ffffff;
  text-align: center;
}

.typing-caret {
  width: 2px;
  height: 1.15em;
  display: inline-block;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(25, 214, 207, 0.8);
  vertical-align: -0.16em;
  animation: caretBlink 860ms steps(1) infinite;
}

.links,
.service-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.links {
  gap: 6px;
  margin: 24px 0 30px;
}

.links a,
.service-tags span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  backdrop-filter: blur(16px) saturate(145%);
  font-size: 14px;
  line-height: 1;
  transition:
    border-color 150ms ease,
    transform 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease,
  color 150ms ease;
}

.links a {
  min-height: 52px;
  gap: 10px;
  border-color: rgba(255, 255, 255, 0.12);
  padding: 5px 19px 5px 8px;
  background: rgba(5, 9, 8, 0.58);
  color: var(--link-text);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.links a[data-platform="email"] {
  border-color: rgba(25, 214, 207, 0.26);
  background: rgba(5, 9, 8, 0.58);
  color: var(--link-text);
}

.links a[data-platform="instagram"] {
  border-color: rgba(255, 46, 163, 0.36);
}

.links a[data-platform="tiktok"] {
  border-color: rgba(25, 214, 207, 0.26);
}

.links a[data-platform="youtube"] {
  border-color: rgba(25, 214, 207, 0.3);
}

.links a[data-platform="whatsapp"] {
  border-color: rgba(25, 214, 207, 0.32);
}

.links a:hover {
  border-color: rgba(25, 214, 207, 0.5);
  background: var(--surface-strong);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

.links a:focus-visible,
.store-button:focus-visible,
.work-modal-trigger:focus-visible,
.work-modal-close:focus-visible {
  outline: 3px solid rgba(47, 125, 93, 0.24);
  outline-offset: 3px;
}

.links a span:last-child {
  color: inherit;
}

.icon-circle {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #050607;
  color: #ffffff;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.links a[data-platform="email"] .icon-circle {
  background: #050607;
}

.links a[data-platform="instagram"] .icon-circle {
  background: #050607;
}

.links a[data-platform="tiktok"] .icon-circle {
  background: #050607;
  box-shadow:
    6px 0 0 -4px rgba(37, 244, 238, 0.8),
    -6px 0 0 -4px rgba(254, 44, 85, 0.8);
}

.links a[data-platform="youtube"] .icon-circle {
  background: #050607;
}

.links a[data-platform="whatsapp"] .icon-circle {
  background: #050607;
}

.icon-circle svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.icon-circle img {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
}

.service-tags {
  gap: 6px;
  margin: 0 auto 14px;
}

.service-tags span {
  --tag-a: #19d6cf;
  --tag-b: #ff2ea3;
  position: relative;
  overflow: hidden;
  justify-content: flex-start;
  min-height: 36px;
  border-color: rgba(255, 255, 255, 0.12);
  padding: 5px 12px 5px 7px;
  background: rgba(5, 9, 8, 0.58);
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.service-tags span::after {
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 0 38%, rgba(255, 255, 255, 0.11) 48%, transparent 58% 100%);
  content: "";
  opacity: 0;
  transform: translateX(-120%);
  animation: tagScan 6.4s ease-in-out infinite;
}

.service-tags span::before {
  content: "";
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 999px;
  background:
    radial-gradient(circle, #050607 0 46%, transparent 47%),
    conic-gradient(
      from 210deg,
      var(--tag-a) 0 32%,
      transparent 32% 45%,
      var(--tag-b) 45% 78%,
      transparent 78% 100%
    );
  box-shadow:
    0 0 16px color-mix(in srgb, var(--tag-a) 28%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.service-tags span > * {
  position: relative;
  z-index: 1;
}

.service-tags span:nth-child(3n + 1) {
  --tag-a: #19d6cf;
  --tag-b: #2a9df4;
  border-color: rgba(25, 214, 207, 0.28);
}

.service-tags span:nth-child(3n + 2) {
  --tag-a: #2a9df4;
  --tag-b: #ff2ea3;
  border-color: rgba(123, 124, 242, 0.26);
}

.service-tags span:nth-child(3n) {
  --tag-a: #ff2ea3;
  --tag-b: #19d6cf;
  border-color: rgba(255, 46, 163, 0.24);
}

.service-tags span:nth-child(2)::after {
  animation-delay: 700ms;
}

.service-tags span:nth-child(3)::after {
  animation-delay: 1400ms;
}

.service-tags span:nth-child(4)::after {
  animation-delay: 2100ms;
}

.service-tags span:nth-child(5)::after {
  animation-delay: 2800ms;
}

.service-tags span:nth-child(6)::after {
  animation-delay: 3500ms;
}

.service-tags span:nth-child(7)::after {
  animation-delay: 4200ms;
}

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

.app-card {
  min-height: 108px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 122px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(5, 9, 8, 0.45);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  text-align: left;
  box-shadow: var(--shadow);
}

.app-card > div:first-child {
  min-width: 0;
}

.app-card-heading {
  display: flex;
  align-items: center;
  gap: 9px;
}

.app-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 9px;
  display: block;
  object-fit: cover;
  background: #050607;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 680;
}

.panel .app-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
}

.store-links {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: center;
  gap: 7px;
}

.store-button {
  width: min(100%, 122px);
  display: block;
  border-radius: 999px;
  color: inherit;
  line-height: 0;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.26));
  transition:
    filter 150ms ease,
    transform 150ms ease;
}

.store-button:hover {
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.34));
  transform: translateY(-1px);
}

.store-badge-image {
  display: block;
  width: 100%;
  height: auto;
}

.work-modal-trigger {
  position: relative;
  width: min(100%, 640px);
  min-height: 52px;
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(25, 214, 207, 0.34);
  border-radius: 999px;
  padding: 10px 14px 10px 18px;
  background:
    linear-gradient(145deg, rgba(25, 214, 207, 0.1), rgba(255, 46, 163, 0.045)),
    rgba(5, 9, 8, 0.58);
  -webkit-backdrop-filter: blur(18px) saturate(155%);
  backdrop-filter: blur(18px) saturate(155%);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.23),
    0 0 0 1px rgba(255, 46, 163, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.work-modal-trigger:hover {
  border-color: rgba(255, 46, 163, 0.42);
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(25, 214, 207, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.work-modal-trigger::after {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(25, 214, 207, 0.32);
  border-radius: 999px;
  background: #050607;
  color: var(--accent);
  content: "+";
  font-size: 20px;
  line-height: 1;
  box-shadow:
    0 0 16px rgba(25, 214, 207, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.work-modal-trigger span:first-child {
  font-size: 16px;
  font-weight: 720;
  line-height: 1.2;
}

.work-modal-trigger span:nth-child(2) {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  text-transform: uppercase;
}

.modal-open {
  overflow: hidden;
}

.work-modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 26px;
}

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

.work-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(25, 214, 207, 0.12), transparent 40%),
    rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  cursor: pointer;
}

.work-modal-panel {
  position: relative;
  width: min(780px, 100%);
  max-height: min(760px, calc(100vh - 52px));
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  padding: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(4, 8, 7, 0.72);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  backdrop-filter: blur(26px) saturate(170%);
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

.work-modal-panel:focus {
  outline: none;
}

.work-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(5, 9, 8, 0.74);
  color: var(--text);
  cursor: pointer;
}

.work-modal-close span,
.work-modal-close span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.work-modal-close span {
  transform: translate(-50%, -50%) rotate(45deg);
}

.work-modal-close span::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.work-modal h2 {
  padding-right: 44px;
}

.work-modal p {
  max-width: 620px;
  margin: 12px 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  text-align: left;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.work-list span {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(25, 214, 207, 0.2);
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(5, 9, 8, 0.55);
  color: rgba(246, 248, 247, 0.92);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.work-list span::before {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  box-shadow: 0 0 12px rgba(25, 214, 207, 0.38);
  content: "";
}

.work-list span:nth-child(3n + 2) {
  border-color: rgba(123, 124, 242, 0.22);
}

.work-list span:nth-child(3n + 2)::before {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent));
}

.work-list span:nth-child(3n) {
  border-color: rgba(255, 46, 163, 0.2);
}

.work-list span:nth-child(3n)::before {
  background: linear-gradient(135deg, var(--accent-warm), var(--accent-blue));
}

.panel {
  position: relative;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  text-align: center;
}

.panel::before {
  position: absolute;
  top: -2px;
  left: 50%;
  width: min(180px, 46%);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-blue), var(--accent-warm));
  content: "";
  transform: translateX(-50%);
}

h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 620;
}

.panel p {
  max-width: 560px;
  margin: 9px auto 14px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

footer {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.app-page {
  grid-template-rows: auto auto;
  align-content: center;
  row-gap: 14px;
  padding: clamp(18px, 3vh, 42px) 0;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1060px, calc(100% - 52px));
  margin: 0 auto;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(5, 8, 7, 0.38);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  backdrop-filter: blur(22px) saturate(165%);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(25, 214, 207, 0.08);
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.app-topbar a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(5, 9, 8, 0.52);
  color: var(--text);
  font-size: 13px;
  font-weight: 720;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.app-hero {
  max-width: 720px;
  margin: 0 auto 24px;
  text-align: center;
}

.app-eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1;
  font-weight: 760;
}

.app-hero p:not(.app-eyebrow) {
  max-width: 540px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.app-download-list {
  display: grid;
  gap: 16px;
}

.app-download-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 310px);
  align-items: center;
  gap: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 24px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(8, 12, 12, 0.68);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.app-download-card-primary {
  border-color: rgba(25, 214, 207, 0.32);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 46, 163, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.app-download-info {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 18px;
}

.app-download-copy {
  min-width: 0;
}

.app-download-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-download-icon {
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.11);
}

.app-download-rank {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(25, 214, 207, 0.22);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(25, 214, 207, 0.1);
  color: var(--accent);
  font-size: 11px;
  font-weight: 780;
}

.app-download-card h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
  font-weight: 780;
}

.app-download-card p {
  max-width: 460px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.app-download-actions {
  display: grid;
  justify-items: stretch;
  gap: 10px;
}

.app-download-actions .store-button {
  width: 100%;
  min-height: 58px;
}

.app-download-actions .store-badge-image {
  width: 100%;
}

.buy-page {
  grid-template-rows: auto auto;
  align-content: center;
  row-gap: 14px;
  padding: clamp(18px, 3vh, 42px) 0;
}

.buy-shell {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 52px));
  margin: 0 auto;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(5, 8, 7, 0.38);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  backdrop-filter: blur(22px) saturate(165%);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(25, 214, 207, 0.08);
}

.buy-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}

.buy-topbar a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(5, 9, 8, 0.52);
  color: var(--text);
  font-size: 13px;
  font-weight: 720;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.buy-hero {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.buy-eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.buy-hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1;
  font-weight: 760;
}

.buy-hero p:not(.buy-eyebrow) {
  max-width: 650px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

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

.pricing-card {
  min-height: 450px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 24px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(8, 12, 12, 0.68);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.pricing-card-featured {
  border-color: rgba(25, 214, 207, 0.32);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 46, 163, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pricing-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.pricing-card h2 {
  font-size: 23px;
  font-weight: 760;
}

.pricing-card-header span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(25, 214, 207, 0.22);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(25, 214, 207, 0.1);
  color: var(--accent);
  font-size: 11px;
  font-weight: 760;
  white-space: nowrap;
}

.pricing-price {
  margin: 0;
  color: var(--text);
  font-size: 30px;
  line-height: 1.1;
  font-weight: 780;
}

.pricing-price span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 680;
}

.pricing-note {
  margin: 8px 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.amount-field {
  margin: 0 0 8px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.amount-input-wrap {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(25, 214, 207, 0.22);
  border-radius: 14px;
  padding: 0 14px;
  background: rgba(3, 6, 5, 0.44);
  color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.amount-input-wrap input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 17px;
  font-weight: 780;
}

.amount-input-wrap input::placeholder {
  color: rgba(246, 248, 247, 0.38);
}

.amount-hint {
  min-height: 18px;
  margin: 0 0 18px;
  color: rgba(165, 175, 170, 0.82);
  font-size: 12px;
  line-height: 1.35;
}

.pricing-card ul {
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 12px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  list-style: none;
}

.pricing-card li {
  position: relative;
  padding-left: 24px;
}

.pricing-card li::before {
  position: absolute;
  left: 0;
  color: var(--accent);
  content: "✓";
  font-weight: 800;
}

.pricing-action {
  min-height: 44px;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0 18px;
  background: #f6f8f7;
  color: #030605;
  font-size: 14px;
  font-weight: 820;
}

.buy-support {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(25, 214, 207, 0.22);
  border-radius: 18px;
  padding: 18px 20px;
  background:
    linear-gradient(135deg, rgba(25, 214, 207, 0.09), rgba(255, 46, 163, 0.04)),
    rgba(5, 9, 8, 0.54);
}

.buy-support h2 {
  font-size: 20px;
}

.buy-support p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

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

.buy-support-actions a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0 15px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 13px;
  font-weight: 760;
}

.kat-page {
  grid-template-rows: auto auto;
  align-content: start;
  row-gap: 14px;
  padding: clamp(18px, 3vh, 42px) 0;
}

.kat-shell {
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  position: relative;
  z-index: 1;
  width: min(1380px, calc(100% - 52px));
  min-height: calc(100dvh - 104px);
  margin: 0 auto;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(5, 8, 7, 0.38);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  backdrop-filter: blur(22px) saturate(165%);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(25, 214, 207, 0.08);
  overflow: hidden;
}

.kat-topbar,
.kat-toolbar,
.kat-card-header,
.kat-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kat-topbar {
  margin-bottom: 24px;
}

.kat-table-header-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.kat-table-status-note {
  max-width: min(520px, 42vw);
  margin: 0;
  border: 1px solid rgba(25, 214, 207, 0.18);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(25, 214, 207, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kat-table-status-note:empty {
  display: none;
}

.kat-topbar a,
.kat-ghost-button,
.kat-file-input span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(5, 9, 8, 0.52);
  color: var(--text);
  font-size: 13px;
  font-weight: 720;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

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

.kat-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.kat-hero-right {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.kat-eyebrow,
.kat-card-label {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kat-hero h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
  font-weight: 760;
}

.kat-hero p:not(.kat-eyebrow) {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.kat-security-chip,
.kat-security-note,
.kat-login-card,
.kat-card,
.kat-table-card,
.kat-side-panel,
.kat-metrics article {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(8, 12, 12, 0.68);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.kat-security-chip {
  min-width: 178px;
  align-self: start;
  display: grid;
  gap: 6px;
  border-radius: 20px;
  padding: 16px 18px;
}

.kat-security-chip span {
  color: var(--muted);
  font-size: 12px;
}

.kat-security-chip strong {
  font-size: 18px;
}

.kat-security-note {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 20px;
  border-color: rgba(25, 214, 207, 0.18);
  border-radius: 22px;
  padding: 20px 22px;
}

.kat-security-note h2,
.kat-login-card h2,
.kat-card h2,
.kat-table-card h2 {
  font-size: 21px;
}

.kat-security-note p,
.kat-login-card p,
.kat-card-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.kat-security-note ul,
.kat-bullet-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.kat-security-note li,
.kat-bullet-list li {
  position: relative;
  padding-left: 18px;
}

.kat-security-note li::before,
.kat-bullet-list li::before {
  position: absolute;
  top: 0.35em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  content: "";
}

.kat-login-card,
.kat-card,
.kat-table-card {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  padding: 20px;
}

.kat-login-section,
.kat-workspace,
.kat-bottom-grid,
.kat-table-card,
.kat-side-panel {
  min-height: 0;
}

.kat-login-form,
.kat-import-actions,
.kat-filters,
.kat-file-meta {
  display: grid;
  gap: 12px;
}

.kat-login-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  margin-top: 18px;
}

.kat-login-form label,
.kat-filters label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.kat-login-form input,
.kat-filters input,
.kat-filters select,
.kat-table input,
.kat-table select {
  min-height: 42px;
  width: 100%;
  border: 1px solid rgba(25, 214, 207, 0.18);
  border-radius: 14px;
  padding: 0 12px;
  background: rgba(3, 6, 5, 0.64);
  color: var(--text);
  font: inherit;
}

.kat-login-form button {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  background: #f6f8f7;
  color: #030605;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.kat-login-feedback {
  grid-column: 1 / -1;
  min-height: 18px;
  margin: 0;
  color: #ff8dbd;
  font-size: 12px;
}

.kat-workspace {
  display: grid;
  grid-template-rows: auto auto minmax(360px, 1fr) auto;
  gap: 16px;
  min-height: 0;
}

.kat-toolbar {
  align-items: start;
}

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

.kat-metrics article {
  min-width: 0;
  border-radius: 18px;
  padding: 14px 16px;
}

.kat-metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.kat-metrics strong {
  display: block;
  margin-top: 6px;
  font-size: 26px;
  line-height: 1;
}

.kat-toolbar-right {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.kat-sync-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.kat-control-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 12px;
}

.kat-import-actions {
  grid-template-columns: repeat(3, minmax(0, max-content));
  align-items: center;
  margin-top: 14px;
}

.kat-file-input {
  position: relative;
  display: inline-flex;
}

.kat-file-input input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.kat-filters {
  grid-template-columns: minmax(200px, 1.4fr) repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

/* Keep the editable columns readable instead of compressing their values. */
.kat-table th:nth-child(1),
.kat-table td:nth-child(1) { width: 125px; min-width: 125px; }

.kat-table th:nth-child(2),
.kat-table td:nth-child(2) { width: 185px; min-width: 185px; }

.kat-table th:nth-child(3),
.kat-table td:nth-child(3) { width: 170px; min-width: 170px; }

.kat-table th:nth-child(4),
.kat-table td:nth-child(4) { width: 190px; min-width: 190px; }

.kat-table th:nth-child(5),
.kat-table td:nth-child(5) { width: 135px; min-width: 135px; }

.kat-table th:nth-child(6),
.kat-table td:nth-child(6) { width: 165px; min-width: 165px; }

.kat-table th:nth-child(7),
.kat-table td:nth-child(7) { width: 290px; min-width: 290px; }

.kat-table-wrap {
  overflow: auto;
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #09100c;
  min-height: 0;
  box-shadow: inset 0 0 0 1px rgba(20, 34, 28, 0.85);
}

.kat-table-wrap-main {
  height: 100%;
  min-height: 420px;
  max-height: 100%;
}

.kat-horizontal-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  height: 18px;
  margin-top: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(5, 9, 8, 0.48);
}

.kat-horizontal-scroll[hidden] {
  display: none;
}

.kat-horizontal-scroll > div {
  height: 1px;
}

.kat-horizontal-scroll::-webkit-scrollbar {
  height: 12px;
}

.kat-horizontal-scroll::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.kat-horizontal-scroll::-webkit-scrollbar-thumb {
  border: 2px solid rgba(5, 9, 8, 0.48);
  border-radius: 999px;
  background: rgba(25, 214, 207, 0.72);
}

.kat-table-wrap-secondary {
  height: 100%;
  max-height: 100%;
}

.kat-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1120px;
}

.kat-table-secondary {
  min-width: 980px;
}

.kat-table th,
.kat-table td {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0;
  text-align: left;
  vertical-align: middle;
}

.kat-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #11241b;
  color: #eef7f2;
  font-size: 12px;
  font-weight: 780;
  white-space: nowrap;
  padding: 10px 12px;
}

.kat-table th:first-child,
.kat-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
}

.kat-table thead th:first-child {
  z-index: 7;
  background: #163125;
}

.kat-table td:first-child {
  background: #0e1713;
}

.kat-table td {
  min-width: 120px;
  background: #0a0f0d;
}

.kat-table td input,
.kat-table td select {
  min-height: 42px;
  border: 0;
  border-radius: 0;
  padding: 10px 12px;
  background: transparent;
  box-shadow: none;
}

.kat-table td input:focus,
.kat-table td select:focus {
  outline: 0;
  background: rgba(31, 94, 70, 0.2);
  box-shadow: inset 0 0 0 1px rgba(25, 214, 207, 0.24);
}

.kat-table-readonly {
  color: var(--muted);
  font-size: 13px;
  padding: 10px 12px !important;
}

.kat-table-link a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 12px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kat-side-panel {
  display: grid;
  gap: 16px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.kat-accordion-group {
  display: grid;
  gap: 12px;
}

.kat-disclosure {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(8, 12, 12, 0.68);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.kat-disclosure-primary {
  border-color: rgba(25, 214, 207, 0.18);
}

.kat-disclosure-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.kat-disclosure-summary::-webkit-details-marker {
  display: none;
}

.kat-disclosure-summary h2 {
  font-size: 24px;
}

.kat-disclosure-meta {
  position: relative;
  padding-right: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.kat-disclosure-meta::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translateY(-65%) rotate(45deg);
  transition: transform 160ms ease;
}

.kat-disclosure[open] .kat-disclosure-meta::after {
  transform: translateY(-30%) rotate(225deg);
}

.kat-disclosure-content {
  padding: 0 18px 18px;
}

.kat-automation-button {
  border-color: rgba(25, 214, 207, 0.42);
  color: #8ef6e7;
}

.kat-automation-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.kat-automation-note {
  margin: 12px 0 0;
  color: #8ef6e7;
  font-size: 12px;
}

.kat-disclosure-actions {
  display: flex;
  justify-content: flex-end;
}

.kat-table td.is-success,
.kat-table td.is-success:first-child,
.kat-table tr.is-row-complete td:not([class*="is-"]),
.kat-table tr.is-row-complete td.is-code,
.kat-table tr.is-row-complete td.is-fee,
.kat-table tr.is-row-complete td.kat-table-readonly {
  background: linear-gradient(180deg, rgba(24, 78, 56, 0.38), rgba(12, 26, 20, 0.94));
}

.kat-table td.is-warning,
.kat-table td.is-warning:first-child {
  background: linear-gradient(180deg, rgba(112, 82, 16, 0.38), rgba(28, 22, 10, 0.94));
}

.kat-table td.is-danger,
.kat-table td.is-danger:first-child {
  background: linear-gradient(180deg, rgba(122, 31, 53, 0.34), rgba(35, 13, 19, 0.94));
}

.kat-table td.is-info,
.kat-table td.is-info:first-child,
.kat-table tr.is-row-processing td:not([class*="is-"]),
.kat-table tr.is-row-processing td.is-code,
.kat-table tr.is-row-processing td.is-fee,
.kat-table tr.is-row-processing td.kat-table-readonly {
  background: linear-gradient(180deg, rgba(21, 63, 90, 0.34), rgba(11, 19, 29, 0.94));
}

.kat-table td.is-code input,
.kat-table td.is-result input,
.kat-table td.is-fee input {
  font-weight: 700;
}

.kat-table td.is-code input {
  color: #78efda;
}

.kat-table td.is-result input,
.kat-table td.is-fee input {
  color: #f4f7f5;
}

/* Excel-style status colors keep project rows scannable on the dark surface. */
.kat-table tr.is-row-complete td:not([class*="is-"]),
.kat-table tr.is-row-complete td.is-code,
.kat-table tr.is-row-complete td.is-fee,
.kat-table tr.is-row-complete td.kat-table-readonly {
  background: #e2f0d9;
  border-top-color: #70ad47;
  border-bottom-color: #70ad47;
  color: #1f5130;
}

.kat-table tr.is-row-processing td:not([class*="is-"]),
.kat-table tr.is-row-processing td.is-code,
.kat-table tr.is-row-processing td.is-fee,
.kat-table tr.is-row-processing td.kat-table-readonly {
  background: #ddebf7;
  border-top-color: #5b9bd5;
  border-bottom-color: #5b9bd5;
  color: #1f4e78;
}

.kat-table td.is-success,
.kat-table td.is-danger,
.kat-table td.is-warning,
.kat-table td.is-info,
.kat-table td.is-status-complete,
.kat-table td.is-status-returned,
.kat-table td.is-status-tapu,
.kat-table td.is-status-cadastre,
.kat-table td.is-status-sent,
.kat-table td.is-status-drawn,
.kat-table td.is-status-waiting {
  font-weight: 750;
}

.kat-table td.is-success,
.kat-table td.is-status-complete {
  background: #c6efce;
  border-color: #70ad47;
  color: #1f5130;
}

.kat-table td.is-danger,
.kat-table td.is-status-returned {
  background: #ffc7ce;
  border-color: #c00000;
  color: #9c0006;
}

.kat-table td.is-warning,
.kat-table td.is-status-waiting {
  background: #fff2cc;
  border-color: #ffc000;
  color: #7f6000;
}

.kat-table td.is-info,
.kat-table td.is-status-sent,
.kat-table td.is-status-drawn {
  background: #ddebf7;
  border-color: #5b9bd5;
  color: #1f4e78;
}

.kat-table td.is-status-tapu {
  background: #d9ead3;
  border-color: #70ad47;
  color: #274e13;
}

.kat-table td.is-status-ready {
  background: #e2f0d9;
  border-color: #70ad47;
  color: #1f5130;
}

.kat-table td.is-status-cadastre {
  background: #fce4d6;
  border-color: #ed7d31;
  color: #9e480e;
}

.kat-table td.is-success input,
.kat-table td.is-success select,
.kat-table td.is-danger input,
.kat-table td.is-danger select,
.kat-table td.is-warning input,
.kat-table td.is-warning select,
.kat-table td.is-info input,
.kat-table td.is-info select,
.kat-table td[class*="is-status-"] input,
.kat-table td[class*="is-status-"] select {
  color: inherit;
  font-weight: 750;
}

.kat-table td.is-code input,
.kat-table td.is-result input,
.kat-table td.is-fee input {
  color: inherit;
}

.kat-table tr.is-row-complete td:not([class*="is-"]) input,
.kat-table tr.is-row-complete td:not([class*="is-"]) select,
.kat-table tr.is-row-complete td.is-code input,
.kat-table tr.is-row-complete td.is-code select,
.kat-table tr.is-row-complete td.is-fee input,
.kat-table tr.is-row-complete td.is-fee select {
  color: #1f5130;
  font-weight: 750;
}

.kat-table tr.is-row-processing td:not([class*="is-"]) input,
.kat-table tr.is-row-processing td:not([class*="is-"]) select,
.kat-table tr.is-row-processing td.is-code input,
.kat-table tr.is-row-processing td.is-code select,
.kat-table tr.is-row-processing td.is-fee input,
.kat-table tr.is-row-processing td.is-fee select {
  color: #1f4e78;
  font-weight: 750;
}

.kat-file-meta {
  margin: 14px 0 0;
}

.kat-file-meta div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.kat-file-meta dt,
.kat-file-meta dd {
  margin: 0;
}

.kat-session-active .kat-shell {
  grid-template-rows: auto auto minmax(0, 1fr);
  height: auto;
  min-height: calc(100dvh - 24px);
  padding: 12px 16px 16px;
}

.kat-page.kat-session-active {
  padding-top: 12px;
  padding-bottom: 12px;
}

@media (min-width: 641px) {
  .kat-session-active .kat-shell {
    width: calc(100% - 32px);
    max-width: none;
  }
}

.kat-session-active .kat-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 4px;
}

.kat-session-active .kat-control-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
  gap: 8px;
}

.kat-session-active .kat-card,
.kat-session-active .kat-table-card {
  padding: 10px 12px;
}

.kat-session-active .kat-card h2,
.kat-session-active .kat-table-card h2 {
  margin: 0;
  font-size: 18px;
}

.kat-session-active .kat-import-actions,
.kat-session-active .kat-filters {
  margin-top: 6px;
}

.kat-session-active .kat-import-actions {
  gap: 6px;
}

.kat-session-active .kat-filters {
  gap: 6px;
}

.kat-session-active .kat-card-label {
  margin-bottom: 4px;
}

.kat-session-active .kat-card-note,
.kat-session-active .kat-automation-note {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.25;
}

.kat-session-active .kat-filters label {
  gap: 4px;
}

.kat-session-active .kat-filters input,
.kat-session-active .kat-filters select {
  min-height: 36px;
  border-radius: 10px;
}

.kat-session-active .kat-hero p:not(.kat-eyebrow) {
  max-width: 560px;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.3;
}

.kat-session-active .kat-topbar {
  margin-bottom: 6px;
}

.kat-session-active .kat-hero h1 {
  font-size: clamp(28px, 2.6vw, 38px);
}

.kat-session-active .kat-security-chip,
.kat-session-active footer {
  display: none;
}

.kat-session-active .kat-security-note {
  display: none;
}

.kat-session-active .kat-workspace {
  height: auto;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 8px;
}

.kat-session-active .kat-toolbar {
  align-items: center;
}

.kat-session-active .kat-table-wrap {
  margin-top: 8px;
}

.kat-session-active .kat-card,
.kat-session-active .kat-table-card {
  padding: 10px 12px;
}

.kat-session-active .kat-table-card {
  min-height: 0;
  border-color: rgba(25, 214, 207, 0.28);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(25, 214, 207, 0.08);
}

.kat-session-active .kat-table-wrap-main {
  height: clamp(420px, calc(100dvh - 340px), 720px);
  min-height: 420px;
  max-height: none;
}

.kat-session-active .kat-card-note,
.kat-session-active .kat-bullet-list {
  font-size: 11px;
  line-height: 1.25;
}

.text-page {
  max-width: 700px;
  padding-top: 84px;
}

.text-page h1 {
  font-size: 44px;
  line-height: 1.08;
  margin-bottom: 28px;
}

.text-page p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.text-page h2 {
  margin: 34px 0 12px;
  font-size: 24px;
}

.text-page ul {
  margin: 12px 0 22px;
  padding-left: 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.text-page ol {
  margin: 12px 0 22px;
  padding-left: 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.ytube-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 30px;
}

.ytube-actions a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  border: 1px solid var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
}

.primary-action {
  background: var(--accent);
  border-color: var(--accent) !important;
  color: #03100f !important;
}

.secondary-action {
  background: transparent;
  color: var(--text) !important;
}

.ytube-panel {
  margin: 30px 0 34px;
  padding: 22px 24px;
  border: 1px solid rgba(29, 33, 30, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.ytube-panel h2 {
  margin-top: 0;
}

.policy-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 14px;
}

.policy-nav a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-page p a,
.back-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
  font-size: 14px;
}

@media (max-width: 640px) {
  .app-page {
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto auto;
    align-content: center;
    row-gap: 8px;
    padding: max(10px, env(safe-area-inset-top)) 0 max(10px, env(safe-area-inset-bottom));
  }

  .app-shell {
    width: calc(100vw - 20px);
    max-width: 480px;
    padding: 12px;
    border-radius: 22px;
  }

  .app-topbar {
    margin-bottom: 12px;
  }

  .app-topbar a {
    min-height: 30px;
    padding: 0 11px;
    font-size: 11.5px;
  }

  .app-hero {
    margin-bottom: 12px;
  }

  .app-hero h1 {
    font-size: clamp(34px, 13vw, 48px);
  }

  .app-eyebrow {
    margin-bottom: 6px;
    font-size: 11px;
  }

  .app-hero p:not(.app-eyebrow) {
    max-width: 310px;
    margin-top: 8px;
    font-size: 12.5px;
    line-height: 1.32;
  }

  .app-download-list {
    gap: 10px;
  }

  .app-download-card {
    grid-template-columns: 1fr;
    gap: 8px;
    border-radius: 17px;
    padding: 12px;
  }

  .app-download-info {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }

  .app-download-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .app-download-heading {
    gap: 8px;
  }

  .app-download-rank {
    min-height: 24px;
    padding: 0 10px;
    font-size: 11px;
  }

  .app-download-card h2 {
    font-size: clamp(25px, 7.2vw, 30px);
  }

  .app-download-card p {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 5px;
    font-size: 12.4px;
    line-height: 1.32;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .app-download-actions {
    align-self: center;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    width: 100%;
    gap: 8px;
  }

  .app-download-actions .store-button {
    width: 100%;
    min-height: 0;
    max-width: none;
  }

  .buy-page {
    display: block;
    padding: 14px 0 20px;
  }

  .kat-page {
    display: block;
    padding: 14px 0 20px;
  }

  .buy-shell {
    width: min(calc(100% - 28px), 480px);
    padding: 16px;
    border-radius: 24px;
  }

  .kat-shell {
    width: min(calc(100% - 28px), 520px);
    min-height: auto;
    padding: 16px;
    border-radius: 24px;
    overflow: visible;
  }

  .buy-topbar {
    margin-bottom: 20px;
  }

  .buy-topbar a {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }

  .kat-topbar {
    align-items: start;
    gap: 10px;
    margin-bottom: 18px;
  }

  .kat-topbar a,
  .kat-ghost-button,
  .kat-file-input span {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }

  .kat-topbar-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .kat-hero,
  .kat-security-note,
  .kat-control-grid,
  .kat-login-form,
  .kat-filters {
    grid-template-columns: 1fr;
  }

  .kat-workspace {
    grid-template-rows: auto auto minmax(320px, auto) auto;
  }

  .kat-hero {
    margin-bottom: 14px;
  }

  .kat-hero h1 {
    font-size: clamp(32px, 11vw, 42px);
  }

  .kat-hero p:not(.kat-eyebrow) {
    font-size: 14px;
    line-height: 1.45;
  }

  .kat-security-chip {
    min-width: 0;
    width: 100%;
    padding: 14px 16px;
  }

  .kat-security-note,
  .kat-login-card,
  .kat-card,
  .kat-table-card {
    border-radius: 18px;
    padding: 16px;
  }

  .kat-toolbar,
  .kat-section-header {
    align-items: stretch;
    flex-direction: column;
  }

  .kat-toolbar-right {
    justify-items: stretch;
  }

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

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

  .kat-table-wrap {
    margin-top: 12px;
    max-height: none;
  }

  .kat-table {
    min-width: 1500px;
    font-size: 14px;
    line-height: 1.45;
  }

  .kat-table th,
  .kat-table td input,
  .kat-table td select {
    padding-left: 10px;
    padding-right: 10px;
  }

  .kat-session-active .kat-control-grid {
    gap: 10px;
  }

  .kat-session-active .kat-card,
  .kat-session-active .kat-table-card {
    padding: 13px;
  }

  .kat-session-active .kat-table-card h2 {
    font-size: 20px;
  }

  .kat-session-active .kat-table-wrap-main {
    width: 100%;
    max-height: 58dvh;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .kat-session-active .kat-table-wrap-main .kat-table {
    width: 1040px;
    min-width: 1040px;
    table-layout: fixed;
  }

  .kat-session-active .kat-table-wrap-main .kat-table th,
  .kat-session-active .kat-table-wrap-main .kat-table td {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .kat-session-active .kat-table-wrap-main .kat-table th:nth-child(1),
  .kat-session-active .kat-table-wrap-main .kat-table td:nth-child(1) {
    width: 78px;
  }

  .kat-session-active .kat-table-wrap-main .kat-table th:nth-child(2),
  .kat-session-active .kat-table-wrap-main .kat-table td:nth-child(2) {
    width: 102px;
  }

  .kat-session-active .kat-table-wrap-main .kat-table th:nth-child(3),
  .kat-session-active .kat-table-wrap-main .kat-table td:nth-child(3) {
    width: 98px;
  }

  .kat-session-active .kat-table-wrap-main .kat-table th:nth-child(4),
  .kat-session-active .kat-table-wrap-main .kat-table td:nth-child(4) {
    width: 108px;
  }

  .kat-session-active .kat-table-wrap-main .kat-table th:nth-child(5),
  .kat-session-active .kat-table-wrap-main .kat-table td:nth-child(5) {
    width: 78px;
  }

  .kat-session-active .kat-table-wrap-main .kat-table th:nth-child(6),
  .kat-session-active .kat-table-wrap-main .kat-table td:nth-child(6) {
    width: 105px;
  }

  .kat-session-active .kat-table-wrap-main .kat-table th:nth-child(7),
  .kat-session-active .kat-table-wrap-main .kat-table td:nth-child(7) {
    width: 140px;
  }

  .kat-session-active .kat-table-wrap-main .kat-table th:nth-child(8),
  .kat-session-active .kat-table-wrap-main .kat-table td:nth-child(8) {
    width: 75px;
  }

  .kat-session-active .kat-table-wrap-main .kat-table th:nth-child(9),
  .kat-session-active .kat-table-wrap-main .kat-table td:nth-child(9) {
    width: 56px;
  }

  .kat-session-active .kat-table-wrap-main .kat-table th:nth-child(10),
  .kat-session-active .kat-table-wrap-main .kat-table td:nth-child(10),
  .kat-session-active .kat-table-wrap-main .kat-table th:nth-child(11),
  .kat-session-active .kat-table-wrap-main .kat-table td:nth-child(11),
  .kat-session-active .kat-table-wrap-main .kat-table th:nth-child(12),
  .kat-session-active .kat-table-wrap-main .kat-table td:nth-child(12),
  .kat-session-active .kat-table-wrap-main .kat-table th:nth-child(13),
  .kat-session-active .kat-table-wrap-main .kat-table td:nth-child(13) {
    width: 50px;
  }

  .kat-session-active .kat-table th {
    font-size: 10px;
    line-height: 1.15;
    padding: 7px 6px;
  }

  .kat-session-active .kat-table td input,
  .kat-session-active .kat-table td select {
    min-height: 36px;
    padding: 7px 6px;
    font-size: 11px;
  }

  .kat-session-active .kat-table td.kat-table-readonly {
    padding: 7px 6px !important;
    font-size: 11px;
    line-height: 1.25;
  }

  .kat-session-active .kat-table-card {
    min-height: 0;
  }

  .kat-session-active .kat-table-wrap-main {
    height: 420px;
    min-height: 420px;
  }

  .kat-table td,
  .kat-table th {
    padding: 0;
  }

  .kat-table th {
    padding: 8px 10px;
  }

  .kat-table td:first-child,
  .kat-table th:first-child {
    position: static;
  }

  .kat-disclosure-summary {
    align-items: start;
    flex-direction: column;
  }

  .kat-disclosure-summary h2 {
    font-size: 21px;
  }

  .kat-disclosure-content {
    padding: 0 14px 14px;
  }

  .buy-hero {
    margin-bottom: 18px;
  }

  .buy-hero h1 {
    font-size: clamp(34px, 13vw, 48px);
  }

  .buy-hero p:not(.buy-eyebrow) {
    font-size: 14px;
    line-height: 1.45;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pricing-card {
    min-height: auto;
    border-radius: 16px;
    padding: 18px;
  }

  .pricing-card h2 {
    font-size: 21px;
  }

  .pricing-price {
    font-size: 25px;
  }

  .pricing-card ul {
    gap: 9px;
    margin-bottom: 20px;
    font-size: 13px;
  }

  .buy-support {
    display: grid;
    gap: 14px;
    border-radius: 16px;
    padding: 16px;
  }

  .buy-support-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  body.home-page {
    grid-template-rows: 1fr auto;
    align-content: stretch;
    row-gap: 0;
    padding: 0;
  }

  body::after {
    background:
      radial-gradient(circle at 50% 32%, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.38) 72%),
      linear-gradient(to bottom, rgba(3, 6, 5, 0.08), rgba(3, 6, 5, 0.36));
  }

  .profile {
    width: min(calc(100% - 28px), 480px);
    padding: 12px 0 18px;
  }

  .profile::before {
    inset: 8px -4px 8px;
    border-color: rgba(255, 255, 255, 0.08);
    border-radius: 26px;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
      rgba(5, 8, 7, 0.18);
    -webkit-backdrop-filter: blur(12px) saturate(145%);
    backdrop-filter: blur(12px) saturate(145%);
    box-shadow:
      0 24px 70px rgba(0, 0, 0, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      inset 0 -1px 0 rgba(25, 214, 207, 0.06);
  }

  h1 {
    font-size: clamp(28px, 8.3vw, 34px);
  }

  .intro h1 {
    max-width: 100%;
    padding: 7px 13px 9px;
    border-radius: 18px;
  }

  .title {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.25;
  }

  .role-line {
    min-height: 20px;
  }

  .typed-role {
    max-width: 100%;
  }

  .links {
    margin: 14px 0 16px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .apps-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
  }

  .app-card {
    min-height: 92px;
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 8px;
    padding: 10px;
    border-radius: 16px;
  }

  .links a,
  .service-tags span {
    min-width: 0;
  }

  .links a {
    position: relative;
    min-height: 42px;
    width: 100%;
    justify-content: center;
    padding: 0;
  }

  .links a span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .icon-circle {
    width: 38px;
    height: 38px;
  }

  .icon-circle img {
    width: 36px;
    height: 36px;
  }

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

  .service-tags span {
    min-height: 31px;
    width: 100%;
    gap: 6px;
    padding: 4px 8px 4px 5px;
    font-size: 10.5px;
  }

  .service-tags span::before {
    width: 18px;
    height: 18px;
  }

  .panel {
    padding-top: 18px;
  }

  h2 {
    font-size: 21px;
  }

  .panel p {
    margin: 7px auto 10px;
    font-size: 12.5px;
    line-height: 1.35;
  }

  .store-links {
    gap: 5px;
  }

  .store-button {
    width: min(100%, 118px);
  }

  .app-card-heading {
    gap: 7px;
  }

  .app-icon {
    width: 27px;
    height: 27px;
    border-radius: 8px;
  }

  h3 {
    font-size: 15px;
  }

  .panel .app-card p {
    margin-top: 4px;
    font-size: 11.5px;
    line-height: 1.25;
  }

  .work-modal-trigger {
    min-height: 44px;
    margin-top: 10px;
    border-radius: 22px;
    padding: 8px 10px 8px 14px;
  }

  .work-modal-trigger span:first-child {
    font-size: 14px;
  }

  .work-modal-trigger span:nth-child(2) {
    font-size: 10px;
  }

  .work-modal {
    padding: 14px;
  }

  .work-modal-panel {
    max-height: calc(100vh - 28px);
    border-radius: 22px;
    padding: 24px 16px 18px;
  }

  .work-modal h2 {
    font-size: 24px;
  }

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

  .work-list span {
    min-height: 42px;
    font-size: 12px;
  }

  .text-page h1 {
    font-size: 36px;
  }

  footer {
    width: min(calc(100% - 28px), 480px);
    padding-bottom: 28px;
  }
}

@keyframes caretBlink {
  0%,
  48% {
    opacity: 1;
  }

  49%,
  100% {
    opacity: 0.15;
  }
}

@keyframes tagScan {
  0%,
  28% {
    opacity: 0;
    transform: translateX(-120%);
  }

  38% {
    opacity: 1;
  }

  54% {
    opacity: 0;
    transform: translateX(120%);
  }

  100% {
    opacity: 0;
    transform: translateX(120%);
  }
}

@keyframes titleGlassScan {
  0%,
  30% {
    opacity: 0;
    transform: translateX(0) skewX(-12deg);
  }

  42% {
    opacity: 0.72;
  }

  58% {
    opacity: 0;
    transform: translateX(290%) skewX(-12deg);
  }

  100% {
    opacity: 0;
    transform: translateX(290%) skewX(-12deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .typing-caret,
  .service-tags span::after,
  .intro h1::after {
    animation: none;
  }
}

/* The private tracker uses a practical spreadsheet surface instead of the public site's visual language. */
body.kat-session-active {
  --text: #17231b;
  --muted: #5f6d63;
  --line: #c7d2c9;
  --surface: #ffffff;
  --surface-strong: #f2f6f3;
  --accent: #217346;
  --accent-soft: #e2f0d9;
  --accent-blue: #2f75b5;
  --accent-warm: #c55a11;
  --link-bg: #ffffff;
  --link-text: #17231b;
  color-scheme: light;
  background: #edf1ee;
  color: var(--text);
}

body.kat-session-active::before,
body.kat-session-active::after {
  display: none;
}

body.kat-session-active .kat-shell {
  border: 1px solid #c4cec6;
  border-radius: 8px;
  background: #f7f9f7;
  box-shadow: 0 12px 30px rgba(35, 55, 43, 0.12);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body.kat-session-active .kat-topbar a,
body.kat-session-active .kat-ghost-button,
body.kat-session-active .kat-file-input span {
  border: 1px solid #aebbb1;
  border-radius: 5px;
  background: #ffffff;
  color: #1d2b22;
  box-shadow: none;
}

body.kat-session-active .kat-topbar a:hover,
body.kat-session-active .kat-ghost-button:hover,
body.kat-session-active .kat-file-input span:hover {
  background: #e2f0d9;
  border-color: #70ad47;
}

body.kat-session-active .kat-hero h1,
body.kat-session-active .kat-card h2,
body.kat-session-active .kat-table-card h2,
body.kat-session-active .kat-section-header h2 {
  color: #1f2d24;
}

body.kat-session-active .kat-eyebrow,
body.kat-session-active .kat-card-label {
  color: #217346;
}

body.kat-session-active .kat-hero p:not(.kat-eyebrow),
body.kat-session-active .kat-card-note,
body.kat-session-active .kat-file-meta,
body.kat-session-active .kat-file-meta div,
body.kat-session-active .kat-metrics span,
body.kat-session-active .kat-disclosure-meta {
  color: #5f6d63;
}

body.kat-session-active .kat-metrics article,
body.kat-session-active .kat-card,
body.kat-session-active .kat-table-card,
body.kat-session-active .kat-side-panel,
body.kat-session-active .kat-disclosure {
  border: 1px solid #c4cec6;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 2px 7px rgba(35, 55, 43, 0.08);
}

body.kat-session-active .kat-metrics article strong {
  color: #1f2d24;
}

body.kat-session-active .kat-filters input,
body.kat-session-active .kat-filters select {
  border-color: #b8c5bb;
  background: #ffffff;
  color: #17231b;
}

body.kat-session-active .kat-table input,
body.kat-session-active .kat-table select {
  height: 100%;
  min-height: 42px;
  border-color: transparent;
  background: inherit;
  color: inherit;
  box-shadow: none;
}

body.kat-session-active .kat-filters input:focus,
body.kat-session-active .kat-filters select:focus {
  outline: 2px solid rgba(33, 115, 70, 0.2);
  outline-offset: -2px;
  box-shadow: none;
}

body.kat-session-active .kat-table input:focus,
body.kat-session-active .kat-table select:focus {
  outline: 2px solid rgba(33, 115, 70, 0.28);
  outline-offset: -2px;
  background: inherit;
  box-shadow: none;
}

body.kat-session-active .kat-table-wrap {
  border: 1px solid #aebbb1;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: none;
}

body.kat-session-active .kat-horizontal-scroll {
  height: 18px;
  margin-top: 6px;
  border-color: #aebbb1;
  border-radius: 4px;
  background: #eef3ef;
}

body.kat-session-active .kat-horizontal-scroll::-webkit-scrollbar-track {
  background: #e1e8e3;
}

body.kat-session-active .kat-horizontal-scroll::-webkit-scrollbar-thumb {
  border-color: #e1e8e3;
  background: #6fa36d;
}

body.kat-session-active .kat-table thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 30 !important;
  border-right: 1px solid #4d8c68;
  border-bottom: 2px solid #1b5e3a;
  background: #217346;
  color: #ffffff;
  box-shadow: 0 2px 0 #1b5e3a;
}

body.kat-session-active .kat-table thead th:first-child {
  z-index: 40 !important;
  background: #1b5e3a;
}

body.kat-session-active .kat-table td {
  border-right: 1px solid #c4d1c7;
  border-bottom: 1px solid #9db98f;
  background: #ffffff;
  color: #17231b;
}

body.kat-session-active .kat-table tr:not(.is-empty-row) td {
  box-shadow: inset 0 -1px 0 rgba(112, 173, 71, 0.28);
}

body.kat-session-active .kat-table td:first-child {
  background: #f4f7f4;
}

body.kat-session-active .kat-table tr.is-empty-row td {
  background: #fbfdfb;
  border-top: 2px dashed #9caf9f;
  color: #7a887d;
}

body.kat-session-active .kat-table tr.is-empty-row td input,
body.kat-session-active .kat-table tr.is-empty-row td select {
  color: #7a887d;
}

body.kat-session-active .kat-table td input,
body.kat-session-active .kat-table td select {
  color: inherit;
}

body.kat-session-active .kat-table-readonly {
  color: #4f5f54;
}

body.kat-session-active .kat-table td.is-code input {
  color: #1f4e78;
}

body.kat-session-active .kat-table tr.is-row-complete td:not([class*="is-"]),
body.kat-session-active .kat-table tr.is-row-complete td.is-code,
body.kat-session-active .kat-table tr.is-row-complete td.is-fee,
body.kat-session-active .kat-table tr.is-row-complete td.kat-table-readonly {
  background: #e2f0d9;
  color: #1f5130;
}

body.kat-session-active .kat-table tr.is-row-processing td:not([class*="is-"]),
body.kat-session-active .kat-table tr.is-row-processing td.is-code,
body.kat-session-active .kat-table tr.is-row-processing td.is-fee,
body.kat-session-active .kat-table tr.is-row-processing td.kat-table-readonly {
  background: #ddebf7;
  color: #1f4e78;
}

body.kat-session-active .kat-table td.is-success,
body.kat-session-active .kat-table td.is-status-complete,
body.kat-session-active .kat-table td.is-status-tapu,
body.kat-session-active .kat-table td.is-status-ready {
  background: #c6efce;
  color: #1f5130;
}

body.kat-session-active .kat-table td.is-danger,
body.kat-session-active .kat-table td.is-status-returned {
  background: #ffc7ce;
  color: #9c0006;
}

body.kat-session-active .kat-table td.is-warning,
body.kat-session-active .kat-table td.is-status-waiting {
  background: #fff2cc;
  color: #7f6000;
}

body.kat-session-active .kat-table td.is-info,
body.kat-session-active .kat-table td.is-status-sent,
body.kat-session-active .kat-table td.is-status-drawn {
  background: #ddebf7;
  color: #1f4e78;
}

body.kat-session-active .kat-table td.is-status-cadastre {
  background: #fce4d6;
  color: #9e480e;
}

@media (min-width: 641px) {
  body.kat-session-active [data-main-table] th:nth-child(1),
  body.kat-session-active [data-main-table] td:nth-child(1) { min-width: 110px; }
  body.kat-session-active [data-main-table] th:nth-child(2),
  body.kat-session-active [data-main-table] td:nth-child(2) { min-width: 190px; }
  body.kat-session-active [data-main-table] th:nth-child(3),
  body.kat-session-active [data-main-table] td:nth-child(3) { min-width: 140px; }
  body.kat-session-active [data-main-table] th:nth-child(4),
  body.kat-session-active [data-main-table] td:nth-child(4) { min-width: 180px; }
  body.kat-session-active [data-main-table] th:nth-child(5),
  body.kat-session-active [data-main-table] td:nth-child(5) { min-width: 110px; }
  body.kat-session-active [data-main-table] th:nth-child(6),
  body.kat-session-active [data-main-table] td:nth-child(6) { min-width: 155px; }
  body.kat-session-active [data-main-table] th:nth-child(7),
  body.kat-session-active [data-main-table] td:nth-child(7) { min-width: 300px; }
  body.kat-session-active [data-main-table] th:nth-child(8),
  body.kat-session-active [data-main-table] td:nth-child(8) { min-width: 150px; }
  body.kat-session-active [data-main-table] th:nth-child(9),
  body.kat-session-active [data-main-table] td:nth-child(9) { min-width: 90px; }
  body.kat-session-active [data-main-table] th:nth-child(n + 10),
  body.kat-session-active [data-main-table] td:nth-child(n + 10) { min-width: 110px; }
}

body.kat-session-active .kat-table tr.is-row-approved td:not(.is-danger):not(.is-warning),
body.kat-session-active .kat-table tr.is-row-approved td.is-code,
body.kat-session-active .kat-table tr.is-row-approved td.is-fee,
body.kat-session-active .kat-table tr.is-row-approved td.kat-table-readonly {
  background: #e2f0d9;
  color: #1f5130;
}

body.kat-session-active .kat-table tr.is-row-danger td:not(.is-success):not(.is-warning),
body.kat-session-active .kat-table tr.is-row-danger td.is-code,
body.kat-session-active .kat-table tr.is-row-danger td.is-fee,
body.kat-session-active .kat-table tr.is-row-danger td.kat-table-readonly {
  background: #ffc7ce;
  color: #9c0006;
}

body.kat-session-active .kat-table tr.is-row-warning td:not(.is-danger):not(.is-success),
body.kat-session-active .kat-table tr.is-row-warning td.is-code,
body.kat-session-active .kat-table tr.is-row-warning td.is-fee,
body.kat-session-active .kat-table tr.is-row-warning td.kat-table-readonly {
  background: #fff2cc;
  color: #7f6000;
}

body.kat-session-active .kat-table tr.is-row-processing td:not(.is-success):not(.is-danger):not(.is-warning),
body.kat-session-active .kat-table tr.is-row-processing td.is-code,
body.kat-session-active .kat-table tr.is-row-processing td.is-fee,
body.kat-session-active .kat-table tr.is-row-processing td.kat-table-readonly {
  background: #ddebf7;
  color: #1f4e78;
}

/* Keep the working surface compact so the main table remains the primary view. */
@media (min-width: 641px) {
  body.kat-session-active .kat-shell {
    padding: 14px;
  }

  body.kat-session-active .kat-topbar {
    margin-bottom: 8px;
  }

  body.kat-session-active .kat-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    margin-bottom: 8px;
  }

  body.kat-session-active .kat-hero .kat-metrics {
    grid-template-columns: repeat(4, minmax(86px, 1fr));
    gap: 7px;
    align-self: center;
  }

  body.kat-session-active .kat-hero h1 {
    font-size: 32px;
  }

  body.kat-session-active .kat-hero p:not(.kat-eyebrow) {
    max-width: 680px;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.25;
  }

  body.kat-session-active .kat-eyebrow,
  body.kat-session-active .kat-card-label {
    margin-bottom: 5px;
    font-size: 11px;
  }

  body.kat-session-active .kat-workspace {
    gap: 8px;
  }

  body.kat-session-active .kat-toolbar {
    min-height: 34px;
    justify-content: flex-end;
  }

  body.kat-session-active .kat-toolbar-right {
    display: flex;
    align-items: center;
    justify-items: initial;
    gap: 10px;
  }

  body.kat-session-active .kat-metrics {
    gap: 7px;
  }

  body.kat-session-active .kat-metrics article {
    padding: 9px 12px;
    border-radius: 6px;
  }

  body.kat-session-active .kat-metrics strong {
    margin-top: 3px;
    font-size: 22px;
  }

  body.kat-session-active .kat-card,
  body.kat-session-active .kat-table-card {
    padding: 11px;
  }

  body.kat-session-active .kat-card h2,
  body.kat-session-active .kat-table-card h2 {
    font-size: 18px;
  }

  body.kat-session-active .kat-import-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin-top: 8px;
  }

  body.kat-session-active .kat-import-actions .kat-ghost-button,
  body.kat-session-active .kat-import-actions .kat-file-input,
  body.kat-session-active .kat-import-actions .kat-file-input span {
    width: 100%;
  }

  body.kat-session-active .kat-card-note,
  body.kat-session-active .kat-automation-note {
    margin-top: 7px;
    font-size: 11px;
    line-height: 1.25;
  }

  body.kat-session-active .kat-filters {
    gap: 7px;
    margin-top: 8px;
  }

  body.kat-session-active .kat-filters label {
    gap: 4px;
    font-size: 11px;
  }

  body.kat-session-active .kat-filters input,
  body.kat-session-active .kat-filters select {
    min-height: 36px;
    border-radius: 5px;
    padding: 0 9px;
    font-size: 12px;
  }

  body.kat-session-active .kat-table-wrap {
    margin-top: 8px;
  }
}

body.kat-session-active .kat-table td input,
body.kat-session-active .kat-table td select {
  overflow: visible;
  text-overflow: clip;
}

body.kat-session-active .kat-disclosure-summary {
  color: #1f2d24;
}

body.kat-session-active .kat-disclosure-summary h2 {
  color: #1f2d24;
}

body.kat-session-active .kat-automation-note {
  color: #217346;
}

/* Dense working mode: prioritize visible project rows after login. */
@media (min-width: 641px) {
  body.kat-session-active {
    padding: 8px 0;
  }

  body.kat-session-active .kat-shell {
    grid-template-rows: auto auto minmax(0, 1fr);
    min-height: calc(100dvh - 16px);
    padding: 10px 12px 12px;
  }

  body.kat-session-active .kat-topbar {
    margin-bottom: 4px;
  }

  body.kat-session-active .kat-topbar a,
  body.kat-session-active .kat-ghost-button,
  body.kat-session-active .kat-file-input span {
    min-height: 32px;
    border-radius: 5px;
    padding: 0 12px;
    font-size: 12px;
  }

  body.kat-session-active .kat-hero {
    grid-template-columns: 230px minmax(860px, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
  }

  body.kat-session-active .kat-hero h1 {
    font-size: 26px;
  }

  body.kat-session-active .kat-hero p:not(.kat-eyebrow) {
    display: none;
  }

  body.kat-session-active .kat-eyebrow,
  body.kat-session-active .kat-card-label {
    margin-bottom: 2px;
    font-size: 10px;
  }

  body.kat-session-active .kat-metrics {
    grid-template-columns: repeat(4, minmax(74px, 1fr));
    gap: 5px;
  }

  body.kat-session-active .kat-metrics article {
    padding: 6px 10px;
  }

  body.kat-session-active .kat-metrics span {
    font-size: 10px;
  }

  body.kat-session-active .kat-metrics strong {
    margin-top: 1px;
    font-size: 20px;
    line-height: 1;
  }

  body.kat-session-active .kat-workspace {
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 6px;
  }

  body.kat-session-active .kat-toolbar {
    min-height: 28px;
    justify-content: flex-end;
  }

  body.kat-session-active .kat-sync-note {
    margin: 0;
    font-size: 11px;
  }

  body.kat-session-active .kat-table-header-actions {
    flex: 1;
    min-width: 280px;
  }

  body.kat-session-active .kat-table-status-note {
    max-width: min(620px, 48vw);
    padding: 5px 9px;
    border-color: #b8c5bb;
    background: #eef6ee;
    color: #1f5130;
    font-size: 11px;
  }

  body.kat-session-active .kat-control-grid {
    grid-template-columns: minmax(440px, 0.95fr) minmax(420px, 1.05fr);
    gap: 6px;
  }

  body.kat-session-active .kat-import-actions {
    grid-template-columns: minmax(120px, 1fr) minmax(140px, 1fr) minmax(180px, 1.25fr);
  }

  body.kat-session-active .kat-card,
  body.kat-session-active .kat-table-card {
    padding: 8px 10px;
    border-radius: 6px;
  }

  body.kat-session-active .kat-card h2,
  body.kat-session-active .kat-table-card h2 {
    font-size: 16px;
    line-height: 1.05;
  }

  body.kat-session-active .kat-import-actions,
  body.kat-session-active .kat-filters {
    gap: 5px;
    margin-top: 5px;
  }

  body.kat-session-active .kat-card-note {
    display: none;
  }

  body.kat-session-active .kat-automation-note {
    margin-top: 4px;
    font-size: 10px;
    line-height: 1.15;
  }

  body.kat-session-active .kat-filters label {
    gap: 2px;
    font-size: 10px;
  }

  body.kat-session-active .kat-filters input,
  body.kat-session-active .kat-filters select {
    min-height: 32px;
    padding: 0 8px;
    font-size: 12px;
  }

  body.kat-session-active .kat-table-wrap {
    margin-top: 6px;
  }

  body.kat-session-active .kat-table-wrap-main {
    height: clamp(560px, calc(100dvh - 205px), 900px);
    min-height: 560px;
  }
}

/* Keep the unauthenticated screen compact and keep both forms inside the card. */
body.kat-page [hidden] {
  display: none !important;
}

body.kat-page:not(.kat-session-active) .kat-control-grid,
body.kat-page:not(.kat-session-active) .kat-toolbar {
  display: none;
}

body.kat-page:not(.kat-session-active) .kat-shell {
  width: min(100% - 32px, 980px);
  min-height: 0;
  padding: clamp(18px, 3vw, 30px);
}

body.kat-page:not(.kat-session-active) .kat-topbar {
  margin-bottom: 18px;
}

body.kat-page:not(.kat-session-active) .kat-hero {
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 16px;
}

body.kat-page:not(.kat-session-active) .kat-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
}

body.kat-page:not(.kat-session-active) .kat-hero p:not(.kat-eyebrow) {
  max-width: 680px;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.45;
}

body.kat-page:not(.kat-session-active) .kat-metrics {
  display: none;
}

body.kat-page:not(.kat-session-active) .kat-security-note {
  grid-template-columns: 1fr;
  gap: 8px;
  max-width: 760px;
  margin: 0 auto 16px;
  padding: 16px 18px;
  border-radius: 16px;
}

body.kat-page:not(.kat-session-active) .kat-security-note h2 {
  font-size: 18px;
}

body.kat-page:not(.kat-session-active) .kat-security-note p {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.4;
}

body.kat-page:not(.kat-session-active) .kat-security-note ul {
  display: none;
}

body.kat-page:not(.kat-session-active) .kat-login-section {
  display: grid;
  place-items: center;
  padding: 0;
}

body.kat-page:not(.kat-session-active) .kat-login-card {
  width: min(100%, 560px);
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 26px);
  box-sizing: border-box;
  border-radius: 18px;
}

body.kat-page:not(.kat-session-active) .kat-login-card > div:first-child {
  max-width: 100%;
}

body.kat-page:not(.kat-session-active) .kat-login-card h2 {
  font-size: clamp(20px, 3vw, 25px);
}

body.kat-page:not(.kat-session-active) .kat-login-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 11px;
  width: 100%;
  max-width: 100%;
  margin-top: 16px;
  box-sizing: border-box;
}

body.kat-page:not(.kat-session-active) .kat-login-form label,
body.kat-page:not(.kat-session-active) .kat-login-form input,
body.kat-page:not(.kat-session-active) .kat-login-form button,
body.kat-page:not(.kat-session-active) .kat-login-card > [data-signup-button] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

body.kat-page:not(.kat-session-active) .kat-login-form label,
body.kat-page:not(.kat-session-active) .kat-login-form button,
body.kat-page:not(.kat-session-active) .kat-login-form .kat-login-feedback {
  grid-column: 1 / -1;
}

body.kat-page:not(.kat-session-active) .kat-login-form input {
  display: block;
}

body.kat-page:not(.kat-session-active) .kat-login-card > [data-signup-button] {
  margin-top: 11px;
}

body.kat-page:not(.kat-session-active) .kat-login-form[hidden] {
  display: none;
}

/* HARBEL spreadsheet page */
body.harbel-page {
  color-scheme: light;
  min-height: 100dvh;
  margin: 0;
  padding: 8px 0;
  background: #edf1ee;
  color: #17231b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.harbel-page::before,
body.harbel-page::after {
  display: none;
}

body.harbel-page [hidden] {
  display: none !important;
}

.harbel-shell {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: calc(100% - 24px);
  min-height: calc(100dvh - 16px);
  margin: 0 auto;
  border: 1px solid #c4cec6;
  border-radius: 8px;
  padding: 10px 12px 12px;
  background: #f7f9f7;
  box-shadow: 0 12px 30px rgba(35, 55, 43, 0.12);
  box-sizing: border-box;
}

.harbel-topbar,
.harbel-toolbar,
.harbel-topbar-actions,
.harbel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.harbel-topbar,
.harbel-toolbar {
  justify-content: space-between;
}

.harbel-topbar {
  margin-bottom: 4px;
}

.harbel-topbar a,
.harbel-button,
.harbel-file-input span,
.harbel-login-form button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #aebbb1;
  border-radius: 5px;
  padding: 0 12px;
  background: #ffffff;
  color: #1d2b22;
  font: inherit;
  font-size: 12px;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
}

.harbel-button:hover,
.harbel-file-input span:hover,
.harbel-login-form button:hover,
.harbel-topbar a:hover {
  border-color: #70ad47;
  background: #e2f0d9;
}

.harbel-hero {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 8px;
}

.harbel-eyebrow {
  margin: 0 0 2px;
  color: #217346;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.harbel-hero h1,
.harbel-toolbar h2,
.harbel-login-card h2 {
  margin: 0;
  color: #1f2d24;
  line-height: 1.05;
}

.harbel-hero h1 {
  font-size: 26px;
}

.harbel-toolbar h2,
.harbel-login-card h2 {
  font-size: 18px;
}

.harbel-hero p:not(.harbel-eyebrow),
.harbel-login-card p,
.harbel-sync-note {
  margin: 4px 0 0;
  color: #5f6d63;
  font-size: 12px;
  line-height: 1.25;
}

.harbel-sync-note {
  max-width: min(620px, 48vw);
  border: 1px solid #b8c5bb;
  border-radius: 999px;
  padding: 5px 9px;
  background: #eef6ee;
  color: #1f5130;
  font-weight: 760;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.harbel-login-section {
  display: grid;
  place-items: center;
  min-height: 420px;
}

.harbel-login-card,
.harbel-table-card {
  border: 1px solid #c4cec6;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 2px 7px rgba(35, 55, 43, 0.08);
}

.harbel-login-card {
  width: min(100%, 620px);
  padding: 18px;
  box-sizing: border-box;
}

.harbel-login-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 10px;
  margin-top: 14px;
}

.harbel-login-form label {
  display: grid;
  gap: 5px;
  color: #5f6d63;
  font-size: 12px;
  font-weight: 760;
}

.harbel-login-form input {
  min-height: 34px;
  border: 1px solid #b8c5bb;
  border-radius: 5px;
  padding: 0 10px;
  background: #ffffff;
  color: #17231b;
  font: inherit;
}

.harbel-login-feedback {
  grid-column: 1 / -1;
  min-height: 16px;
  margin: 0;
  color: #9c0006;
  font-size: 12px;
}

.harbel-workspace {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
  min-width: 0;
}

.harbel-file-input input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.harbel-table-card {
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  padding: 8px;
  overflow: hidden;
}

.harbel-table-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: clamp(560px, calc(100dvh - 158px), 920px);
  min-height: 420px;
  max-height: calc(100dvh - 145px);
  overflow-x: auto;
  overflow-y: auto;
  border: 1px solid #aebbb1;
  border-radius: 4px;
  background: #ffffff;
  scrollbar-gutter: stable both-edges;
  scrollbar-width: thin;
  scrollbar-color: #5d9564 #dfe8e1;
}

.harbel-table {
  min-width: 1440px;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  color: #17231b;
  font-size: 14px;
  font-weight: 650;
}

.harbel-table th,
.harbel-table td {
  height: 32px;
  border-right: 1px solid #b7c8b6;
  border-bottom: 1px solid #9bbb8e;
  padding: 0;
  text-align: center;
  vertical-align: middle;
  background: #ffffff;
}

.harbel-table thead th {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 32px;
  padding: 0 10px;
  background: #217346;
  color: #ffffff;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: inset 0 -2px 0 #1b5e3a;
}

.harbel-table th:first-child,
.harbel-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 20;
}

.harbel-table thead th:first-child {
  z-index: 60;
  background: #1b5e3a;
}

.harbel-table input,
.harbel-table select {
  width: 100%;
  height: 100%;
  min-height: 32px;
  border: 0;
  border-radius: 0;
  padding: 0 7px;
  background: inherit;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-align: center;
  box-sizing: border-box;
  outline-offset: -2px;
}

.harbel-table select {
  appearance: auto;
}

.harbel-table input:focus,
.harbel-table select:focus {
  outline: 2px solid rgba(33, 115, 70, 0.35);
  background: inherit;
}

.harbel-table th:nth-child(1),
.harbel-table td:nth-child(1) { width: 96px; min-width: 96px; }
.harbel-table th:nth-child(2),
.harbel-table td:nth-child(2) { width: 150px; min-width: 150px; }
.harbel-table th:nth-child(3),
.harbel-table td:nth-child(3) { width: 108px; min-width: 108px; }
.harbel-table th:nth-child(4),
.harbel-table td:nth-child(4) { width: 82px; min-width: 82px; }
.harbel-table th:nth-child(5),
.harbel-table td:nth-child(5) { width: 150px; min-width: 150px; }
.harbel-table th:nth-child(6),
.harbel-table td:nth-child(6) { width: 132px; min-width: 132px; }
.harbel-table th:nth-child(7),
.harbel-table td:nth-child(7) { width: 92px; min-width: 92px; }
.harbel-table th:nth-child(8),
.harbel-table td:nth-child(8) { width: 140px; min-width: 140px; }
.harbel-table th:nth-child(9),
.harbel-table td:nth-child(9) { width: 140px; min-width: 140px; }
.harbel-table th:nth-child(10),
.harbel-table td:nth-child(10) { width: 96px; min-width: 96px; }
.harbel-table th:nth-child(n + 11),
.harbel-table td:nth-child(n + 11) { width: 82px; min-width: 82px; }

.harbel-table td.is-parcel {
  background: #ff7825;
  color: #ffffff;
  font-weight: 850;
}

.harbel-table td.is-harbel-status-waiting,
.harbel-table td.is-harbel-ukome-to-apply,
.harbel-table td.is-harbel-suski-to-apply {
  background: #ff0000;
  color: #ffffff;
  font-weight: 850;
}

.harbel-table td.is-harbel-status-cubage {
  background: #fe4826;
  color: #ffffff;
  font-weight: 850;
}

.harbel-table td.is-harbel-status-tax {
  background: #ffe331;
  color: #17231b;
  font-weight: 850;
}

.harbel-table td.is-harbel-status-applied {
  background: #ff7825;
  color: #ffffff;
  font-weight: 850;
}

.harbel-table td.is-harbel-status-payment-info,
.harbel-table td.is-harbel-ukome-payment-info,
.harbel-table td.is-harbel-ukome-paid,
.harbel-table td.is-harbel-suski-delivered {
  background: #ede561;
  color: #17231b;
  font-weight: 850;
}

.harbel-table td.is-harbel-status-paid,
.harbel-table td.is-harbel-ukome-received,
.harbel-table td.is-harbel-suski-received {
  background: #00b050;
  color: #ffffff;
  font-weight: 850;
}

.harbel-table td.is-harbel-ukome-applied {
  background: #ff6f56;
  color: #ffffff;
  font-weight: 850;
}

.harbel-table td.is-harbel-ukome-delivered,
.harbel-table td.is-harbel-suski-payment-info {
  background: #f2c565;
  color: #17231b;
  font-weight: 850;
}

.harbel-table td.is-harbel-suski-power-waiting {
  background: #ff4d00;
  color: #ffffff;
  font-weight: 850;
}

.harbel-table td.is-harbel-suski-applied {
  background: #fd6143;
  color: #ffffff;
  font-weight: 850;
}

.harbel-table td.is-haritaci {
  font-weight: 850;
}

@media (max-width: 760px) {
  .harbel-shell {
    width: min(calc(100% - 16px), 620px);
    padding: 10px;
  }

  .harbel-hero,
  .harbel-toolbar,
  .harbel-login-form {
    grid-template-columns: 1fr;
  }

  .harbel-toolbar,
  .harbel-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .harbel-actions,
  .harbel-topbar-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .harbel-sync-note {
    max-width: 100%;
  }

  .harbel-table-wrap {
    height: 62dvh;
    max-height: 62dvh;
  }
}

/* Kat irtifakı live-table overrides: keep the header and horizontal scroll usable on every desktop width. */
body.kat-session-active .kat-workspace,
body.kat-session-active .kat-table-card,
body.kat-session-active .kat-table-wrap-main,
body.kat-session-active .kat-horizontal-scroll {
  min-width: 0;
  max-width: 100%;
}

body.kat-session-active .kat-table-card {
  display: flex;
  flex-direction: column;
  overflow: visible;
}

body.kat-session-active .kat-table-wrap-main {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  height: clamp(520px, calc(100dvh - 205px), 900px);
  min-height: 420px;
  max-height: calc(100dvh - 180px);
  overflow: auto !important;
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
  -webkit-overflow-scrolling: touch;
}

body.kat-session-active .kat-table-wrap-main .kat-table {
  width: max-content;
  max-width: none;
  table-layout: fixed;
}

body.kat-session-active .kat-table-wrap-main .kat-table thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 90 !important;
  background: #217346 !important;
  box-shadow: inset 0 -2px 0 #1b5e3a, 0 2px 4px rgba(23, 35, 27, 0.14);
}

body.kat-session-active .kat-table-wrap-main .kat-table thead th:first-child {
  position: sticky !important;
  left: 0 !important;
  z-index: 100 !important;
  background: #1b5e3a !important;
}

body.kat-session-active .kat-table-wrap-main .kat-table tbody td:first-child {
  position: sticky !important;
  left: 0 !important;
  z-index: 20 !important;
}

body.kat-session-active .kat-horizontal-scroll {
  position: sticky;
  bottom: 0;
  z-index: 120;
  flex: 0 0 18px;
  display: block;
  width: 100%;
  min-height: 18px;
  overflow-x: scroll;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #5d9564 #dfe8e1;
}

body.kat-session-active .kat-horizontal-scroll[hidden] {
  display: block !important;
}

/* Validation result palette: each project row uses one solid color, including editable cells. */
body.kat-session-active .kat-table-wrap-main .kat-table tr.is-validation-step-0 {
  --kat-validation-row-bg: #f4faef;
  --kat-validation-row-text: #264f28;
  --kat-validation-row-line: #d3e9c9;
}

body.kat-session-active .kat-table-wrap-main .kat-table tr.is-validation-step-1 {
  --kat-validation-row-bg: #e9f5df;
  --kat-validation-row-text: #244b27;
  --kat-validation-row-line: #c6e0b4;
}

body.kat-session-active .kat-table-wrap-main .kat-table tr.is-validation-step-2 {
  --kat-validation-row-bg: #d9edcd;
  --kat-validation-row-text: #214722;
  --kat-validation-row-line: #b6d7a8;
}

body.kat-session-active .kat-table-wrap-main .kat-table tr.is-validation-step-3 {
  --kat-validation-row-bg: #c5e0b4;
  --kat-validation-row-text: #1e421f;
  --kat-validation-row-line: #a9d18e;
}

body.kat-session-active .kat-table-wrap-main .kat-table tr.is-validation-step-4 {
  --kat-validation-row-bg: #70ad47;
  --kat-validation-row-text: #ffffff;
  --kat-validation-row-line: #548235;
}

body.kat-session-active .kat-table-wrap-main .kat-table tr.is-validation-approved {
  --kat-validation-row-bg: #217346;
  --kat-validation-row-text: #ffffff;
  --kat-validation-row-line: #1b5e3a;
}

body.kat-session-active .kat-table-wrap-main .kat-table tr.is-validation-returned {
  --kat-validation-row-bg: #ffc7ce;
  --kat-validation-row-text: #9c0006;
  --kat-validation-row-line: #d8646d;
}

body.kat-session-active .kat-table-wrap-main .kat-table tr[class*="is-validation-"] > td,
body.kat-session-active .kat-table-wrap-main .kat-table tr[class*="is-validation-"] > td.kat-table-readonly,
body.kat-session-active .kat-table-wrap-main .kat-table tr[class*="is-validation-"] > td.is-code,
body.kat-session-active .kat-table-wrap-main .kat-table tr[class*="is-validation-"] > td.is-fee,
body.kat-session-active .kat-table-wrap-main .kat-table tr[class*="is-validation-"] > td.is-success,
body.kat-session-active .kat-table-wrap-main .kat-table tr[class*="is-validation-"] > td.is-danger,
body.kat-session-active .kat-table-wrap-main .kat-table tr[class*="is-validation-"] > td.is-warning,
body.kat-session-active .kat-table-wrap-main .kat-table tr[class*="is-validation-"] > td.is-info,
body.kat-session-active .kat-table-wrap-main .kat-table tr[class*="is-validation-"] > td[class*="is-status-"] {
  background: var(--kat-validation-row-bg) !important;
  color: var(--kat-validation-row-text) !important;
  border-top-color: var(--kat-validation-row-line) !important;
  border-bottom-color: var(--kat-validation-row-line) !important;
}

body.kat-session-active .kat-table-wrap-main .kat-table tr[class*="is-validation-"] > td input,
body.kat-session-active .kat-table-wrap-main .kat-table tr[class*="is-validation-"] > td select,
body.kat-session-active .kat-table-wrap-main .kat-table tr[class*="is-validation-"] > td.kat-table-readonly {
  background: var(--kat-validation-row-bg) !important;
  color: var(--kat-validation-row-text) !important;
  font-weight: 760;
}

body.kat-session-active .kat-table-wrap-main .kat-table td.is-payment-unpaid,
body.kat-session-active .kat-table-wrap-main .kat-table td.is-application-missing,
body.kat-session-active .kat-table-wrap-main .kat-table tr[class*="is-validation-"] > td.is-payment-unpaid,
body.kat-session-active .kat-table-wrap-main .kat-table tr[class*="is-validation-"] > td.is-application-missing {
  background: #ffc7ce !important;
  color: #9c0006 !important;
  border-top-color: #d8646d !important;
  border-bottom-color: #d8646d !important;
}

body.kat-session-active .kat-table-wrap-main .kat-table td.is-payment-unpaid select,
body.kat-session-active .kat-table-wrap-main .kat-table td.is-application-missing select,
body.kat-session-active .kat-table-wrap-main .kat-table tr[class*="is-validation-"] > td.is-payment-unpaid select,
body.kat-session-active .kat-table-wrap-main .kat-table tr[class*="is-validation-"] > td.is-application-missing select {
  background: #ffc7ce !important;
  color: #9c0006 !important;
  font-weight: 850;
}

@media (max-width: 640px) {
  body.kat-page:not(.kat-session-active) .kat-shell {
    width: min(calc(100% - 20px), 520px);
    padding: 14px;
    border-radius: 20px;
  }

  body.kat-page:not(.kat-session-active) .kat-topbar {
    margin-bottom: 14px;
  }

  body.kat-page:not(.kat-session-active) .kat-topbar-actions {
    width: auto;
  }

  body.kat-page:not(.kat-session-active) .kat-hero h1 {
    font-size: clamp(30px, 10vw, 40px);
  }

  body.kat-page:not(.kat-session-active) .kat-hero p:not(.kat-eyebrow) {
    font-size: 13px;
  }

  body.kat-page:not(.kat-session-active) .kat-security-note,
  body.kat-page:not(.kat-session-active) .kat-login-card {
    border-radius: 15px;
    padding: 15px;
  }
}
