:root {
  --brand-50: #eef6ff;
  --brand-100: #dcecff;
  --brand-500: #0063e6;
  --brand-600: #0049ab;
  --brand-700: #00357c;
  --brand-900: #001f4d;
  --accent-500: #00a8c8;
  --ink: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;
  --line: #dbe7f6;
  --soft: #f6f9fd;
  --surface: #ffffff;
  --shadow: 0 18px 45px rgba(0, 73, 171, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(0, 73, 171, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 73, 171, 0.035) 1px, transparent 1px),
    #ffffff;
  background-size: 48px 48px;
  -webkit-font-smoothing: antialiased;
}

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

button,
input {
  font: inherit;
}

svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

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

.skip-link:focus {
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--brand-700);
  color: white;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(219, 231, 246, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-700);
  font-weight: 800;
}

.brand img {
  display: block;
  width: auto;
  height: 34px;
}

.brand span {
  padding-left: 10px;
  border-left: 1px solid var(--line);
  font-size: 1.05rem;
}

.header-search,
.hero-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.header-search,
.hero-search {
  position: relative;
}

.header-search {
  flex: 1 1 440px;
  max-width: 540px;
  height: 46px;
  margin-left: auto;
  padding: 0 16px;
  border: 1px solid rgba(219, 231, 246, 0.95);
  border-radius: 999px;
  background: #f8fbff;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-search:focus-within,
.hero-search:focus-within {
  border-color: rgba(0, 99, 230, 0.45);
  background: white;
  box-shadow: var(--shadow);
}

.header-search svg,
.hero-search svg {
  color: var(--brand-600);
}

.header-search svg {
  width: 18px;
  height: 18px;
}

.header-search input,
.hero-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}

.header-search input {
  font-size: 0.92rem;
}

.help-search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 60;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14);
}

.help-search-result {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.help-search-result:last-child {
  border-bottom: 0;
}

.help-search-result:hover {
  background: var(--brand-50);
}

.help-search-result span {
  color: var(--muted-2);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.help-search-result strong {
  color: var(--brand-900);
  font-size: 0.92rem;
  line-height: 1.35;
}

.help-search-empty {
  padding: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.header-search input::placeholder,
.hero-search input::placeholder {
  color: #64748b;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.header-actions > a:not(.login-button):hover {
  color: var(--brand-600);
}

.login-button,
.support-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand-600);
  color: white;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 73, 171, 0.18);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.login-button {
  height: 42px;
  padding: 0 20px;
  font-size: 0.93rem;
}

.support-nav-button {
  gap: 8px;
}

.support-nav-button svg {
  width: 17px;
  height: 17px;
}

.login-button:hover,
.support-button:hover {
  transform: translateY(-1px);
  background: var(--brand-700);
  box-shadow: 0 14px 30px rgba(0, 73, 171, 0.24);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0, 53, 124, 0.97) 0%, rgba(0, 73, 171, 0.94) 50%, rgba(0, 168, 200, 0.88) 100%),
    var(--brand-700);
  color: white;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -34% 45%;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  transform: rotate(-8deg);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 58px;
  align-items: center;
  min-height: 560px;
  padding: 82px 0 74px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-500);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #b7f4ff;
}

.hero h1 {
  max-width: 780px;
  margin-bottom: 24px;
  color: white;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: 0.98;
  font-weight: 800;
}

.hero-text {
  max-width: 640px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-metrics span {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-metrics strong {
  color: white;
  font-size: 1.1rem;
}

.hero-panel {
  align-self: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(0, 20, 54, 0.2);
  backdrop-filter: blur(18px);
}

.hero-search {
  min-height: 66px;
  padding: 0 22px;
  border: 1px solid rgba(219, 231, 246, 0.95);
  border-radius: 18px;
  background: #ffffff;
  color: var(--muted);
}

.hero-search svg {
  width: 22px;
  height: 22px;
}

.hero-search input {
  font-size: 1rem;
}

.quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.quick-links a {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 0.86rem;
  font-weight: 800;
  transition: border-color 180ms ease, background 180ms ease;
}

.quick-links a:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.2);
}

.hero-note {
  margin-top: 14px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.hero-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-700);
}

.hero-note p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.section {
  padding: 76px 0;
  background: rgba(255, 255, 255, 0.72);
}

.section-soft {
  background: var(--soft);
}

.section-head {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-head.split {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
}

.section-head.split > p {
  max-width: 420px;
  margin-bottom: 6px;
  color: var(--muted);
  line-height: 1.7;
}

.section-head h2,
.support-inner h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  font-weight: 800;
}

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

.module-card {
  display: block;
  min-height: 330px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(0, 73, 171, 0.05);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.module-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 99, 230, 0.34);
  box-shadow: var(--shadow);
}

.module-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 0.82rem;
  font-weight: 800;
}

.module-card h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 800;
}

.module-card p,
.module-card li {
  color: var(--muted);
  line-height: 1.58;
}

.module-card p {
  margin-bottom: 16px;
}

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

.module-card li {
  font-size: 0.9rem;
}

.card-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--brand-600);
  font-size: 0.9rem;
  font-weight: 800;
}

.card-action::after {
  content: ">";
}

.module-hero {
  background:
    linear-gradient(135deg, rgba(0, 53, 124, 0.98), rgba(0, 73, 171, 0.94) 58%, rgba(0, 168, 200, 0.82)),
    var(--brand-700);
  color: white;
}

.module-hero-inner {
  padding: 62px 0 58px;
}

.breadcrumb {
  display: inline-flex;
  margin-bottom: 24px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.84rem;
  font-weight: 800;
}

.breadcrumb::before {
  content: "<";
  margin-right: 8px;
}

.module-hero .eyebrow {
  color: #b7f4ff;
}

.module-hero h1 {
  max-width: 860px;
  margin-bottom: 18px;
  color: white;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1;
  font-weight: 800;
}

.module-hero p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
  line-height: 1.7;
}

.module-page-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.module-nav {
  top: 96px;
}

.empty-state {
  margin: 20px 0 0;
  padding: 18px 20px;
  border: 1px dashed rgba(0, 99, 230, 0.4);
  border-radius: 8px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 800;
}

.guide-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.guide-nav {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 26px rgba(0, 73, 171, 0.05);
}

.guide-nav .eyebrow {
  margin-bottom: 8px;
}

.guide-nav a {
  position: relative;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.guide-nav a:hover,
.guide-nav a.is-active {
  background: var(--brand-50);
  color: var(--brand-700);
}

.guide-nav a.is-active {
  box-shadow: inset 3px 0 0 var(--brand-600);
}

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

.guide-card {
  scroll-margin-top: 96px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 26px rgba(0, 73, 171, 0.04);
}

.guide-heading {
  margin-bottom: 20px;
}

.guide-heading span {
  display: inline-flex;
  margin-bottom: 9px;
  color: var(--accent-500);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-heading h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.12;
}

.guide-intro {
  margin: -4px 0 18px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.guide-intro strong {
  color: var(--ink);
}

.tutorial-media {
  margin: 22px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  box-shadow: 0 12px 30px rgba(0, 73, 171, 0.08);
}

.tutorial-media img {
  display: block;
  width: 100%;
  height: auto;
}

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
}

.steps li {
  padding-left: 6px;
  color: var(--muted);
  line-height: 1.68;
}

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

.tutorial-link {
  color: var(--brand-600);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.tutorial-link:hover {
  color: var(--brand-700);
  text-decoration-thickness: 2px;
}

.tutorial-link:focus-visible {
  outline: 3px solid rgba(0, 99, 230, 0.22);
  outline-offset: 3px;
  border-radius: 2px;
}

.tip {
  margin-top: 20px;
  padding: 14px 16px;
  border-left: 4px solid var(--accent-500);
  border-radius: 8px;
  background: #eefcff;
  color: #155e75;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.55;
}

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

.article-row {
  position: relative;
  display: block;
  min-height: 86px;
  padding: 18px 48px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
  box-shadow: 0 10px 26px rgba(0, 73, 171, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.article-row::after {
  content: ">";
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--brand-600);
}

.article-row:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 99, 230, 0.34);
  box-shadow: var(--shadow);
}

.support-strip {
  padding: 34px 0 82px;
  background: transparent;
}

.support-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
  color: white;
  box-shadow: var(--shadow);
}

.support-inner .eyebrow {
  color: #b7f4ff;
}

.support-inner h2 {
  color: white;
}

.support-inner p:not(.eyebrow) {
  max-width: 650px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.support-button {
  min-height: 50px;
  padding: 0 22px;
  background: white;
  color: var(--brand-700);
}

.support-button:hover {
  background: var(--brand-50);
  color: var(--brand-700);
}

.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  background: white;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.footer-inner a {
  color: var(--brand-600);
}

[hidden] {
  display: none !important;
}

a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 3px;
}

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

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

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 36px;
  }
}

@media (max-width: 860px) {
  .section-head.split,
  .support-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .guide-nav {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .guide-nav .eyebrow {
    grid-column: 1 / -1;
  }
}

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

  .header-inner {
    min-height: auto;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 0;
  }

  .brand img {
    height: 28px;
  }

  .brand span {
    font-size: 0.95rem;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-actions > a:not(.login-button) {
    display: none;
  }

  .login-button {
    height: 38px;
    padding: 0 16px;
  }

  .header-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
    height: 44px;
    margin-left: 0;
  }

  .hero-inner {
    padding: 56px 0;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 12vw, 4.2rem);
  }

  .hero-panel {
    padding: 12px;
    border-radius: 18px;
  }

  .hero-search {
    min-height: 58px;
    border-radius: 14px;
  }

  .quick-links,
  .module-grid,
  .article-grid,
  .guide-nav {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }

  .module-card {
    min-height: auto;
  }

  .module-hero-inner {
    padding: 48px 0;
  }

  .guide-card {
    padding: 22px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

.app-nav {
  margin-left: auto;
}

.app-hero .hero-inner {
  min-height: 500px;
}

.app-panel {
  display: grid;
  gap: 12px;
}

.auth-page {
  min-height: calc(100vh - 76px);
  padding: 58px 0 88px;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 99, 230, 0.07), transparent 34%),
    linear-gradient(90deg, rgba(0, 73, 171, 0.028) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 73, 171, 0.028) 1px, transparent 1px),
    #fbfdff;
  background-size: 100% 100%, 48px 48px, 48px 48px;
}

.auth-centered-shell {
  display: grid;
  justify-items: center;
  gap: 28px;
}

.auth-hero-copy {
  max-width: 600px;
  text-align: center;
}

.auth-hero-copy .eyebrow {
  margin-bottom: 14px;
  color: var(--brand-500);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
}

.auth-hero-copy h1 {
  margin-bottom: 14px;
  color: var(--brand-900);
  font-size: clamp(2.15rem, 3.5vw, 2.9rem);
  line-height: 1.16;
  font-weight: 800;
}

.auth-hero-copy p {
  margin: 0 auto;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.auth-card {
  width: min(100%, 548px);
  gap: 22px;
  padding: 30px;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.07);
}

.auth-card-head {
  margin-bottom: 4px;
}

.auth-card-head h2 {
  margin: 0 0 12px;
  color: var(--brand-900);
  font-size: 1.72rem;
  line-height: 1.1;
  font-weight: 800;
}

.auth-card-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.auth-card .support-button {
  min-height: 50px;
  border-radius: 8px;
  background: var(--brand-500);
  color: white;
  box-shadow: 0 12px 24px rgba(0, 99, 230, 0.18);
}

.auth-card .support-button:hover {
  background: var(--brand-600);
  color: white;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 42px;
  align-items: start;
}

.auth-shell h1,
.narrow h1,
.ticket-main h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
}

.narrow {
  max-width: 840px;
}

.muted-text {
  color: var(--muted);
  line-height: 1.7;
}

.form-card,
.table-card,
.side-panel,
.stat-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 26px rgba(0, 73, 171, 0.05);
}

.form-card {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.form-card.auth-card {
  width: min(100%, 548px);
  gap: 22px;
  padding: 30px;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.07);
}

.form-card.wide {
  margin-top: 24px;
}

.form-card label {
  display: grid;
  gap: 9px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  outline: 0;
}

.form-card input,
.form-card select {
  height: 48px;
  padding: 0 16px;
}

.form-card textarea {
  min-height: 130px;
  padding: 13px;
  resize: vertical;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  border-color: rgba(0, 99, 230, 0.55);
  background: white;
  box-shadow: 0 0 0 4px rgba(0, 99, 230, 0.1);
}

.form-help {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.auth-card-footer {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.auth-forgot-link {
  margin: -8px 0 0;
  text-align: right;
}

.auth-forgot-link a {
  color: var(--brand-600);
  font-size: 0.9rem;
  font-weight: 800;
}

.form-note {
  margin: -10px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--accent-500);
  border-radius: 8px;
  background: #eefcff;
  color: #155e75;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.5;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-2);
  cursor: pointer;
}

.password-toggle:hover {
  background: var(--brand-50);
  color: var(--brand-700);
}

.password-toggle svg {
  width: 18px;
  height: 18px;
}

.form-help a,
.data-table a,
.side-panel a {
  color: var(--brand-600);
  font-weight: 800;
}

.block-button,
.inline-button,
.secondary-button {
  border: 0;
  cursor: pointer;
  text-align: center;
}

.block-button {
  width: 100%;
  min-height: 50px;
}

.inline-button {
  min-height: 46px;
  padding: 0 18px;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--brand-700);
  font-weight: 800;
}

.button-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.flash-wrap {
  padding-top: 18px;
}

.flash {
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 800;
}

.flash-success {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.flash-error {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.table-card {
  overflow-x: auto;
}

.admin-summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: -4px 0 18px;
  color: var(--muted);
  font-weight: 700;
}

.admin-summary-row strong {
  color: var(--brand-700);
}

.admin-filters,
.user-access-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-filters label {
  display: grid;
  min-width: 160px;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.admin-filters input,
.admin-filters select,
.user-access-form select {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.user-access-form {
  min-width: 320px;
  margin: 0;
  padding: 0;
  border: 0;
}

.user-access-form .inline-button {
  min-height: 42px;
}

.support-help-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 14px 36px rgba(0, 73, 171, 0.07);
}

.support-help-panel h2 {
  margin: 0 0 10px;
  color: var(--brand-900);
  font-size: 1.35rem;
}

.support-help-panel p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.support-help-panel p + p {
  margin-top: 8px;
}

.support-help-panel a:not(.support-button) {
  color: var(--brand-600);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.support-history-head {
  margin-top: 10px;
}

.support-history-head h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.empty-history {
  padding: 28px;
}

.empty-history h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.15rem;
}

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

.data-table th,
.data-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.data-table small {
  color: var(--muted-2);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 0.82rem;
  font-weight: 800;
}

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

.ticket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--muted);
  font-weight: 800;
}

.message-list {
  display: grid;
  gap: 14px;
}

.message {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.message-admin {
  border-color: rgba(0, 168, 200, 0.35);
  background: #eefcff;
}

.message header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.message header span {
  color: var(--muted-2);
  font-size: 0.86rem;
  font-weight: 700;
}

.message p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.system-auto-message {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(0, 168, 200, 0.28);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f6fcff);
}

.system-auto-message strong {
  color: var(--brand-900);
  font-size: 1rem;
}

.system-auto-message p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.system-auto-message a {
  color: var(--brand-600);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.attachment-panel {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 26px rgba(0, 73, 171, 0.04);
}

.message-attachments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.attachment-panel h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 1.1rem;
}

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

.attachment-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--brand-700);
  font-weight: 800;
}

.attachment-item small {
  color: var(--muted-2);
  font-weight: 700;
}

.side-panel {
  display: grid;
  gap: 18px;
  padding: 20px;
  position: sticky;
  top: 96px;
}

.side-panel dl,
.side-panel dd {
  margin: 0;
}

.ticket-events {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.ticket-events h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.ticket-events ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticket-events li {
  display: grid;
  gap: 3px;
  color: var(--ink);
  font-size: .86rem;
  line-height: 1.4;
}

.ticket-events span {
  color: var(--muted-2);
  font-size: .78rem;
  font-weight: 700;
}

.side-panel dt {
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.side-panel dd {
  margin-top: 5px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.5;
}

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

.stat-card {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.stat-card strong {
  color: var(--brand-700);
  font-size: 2rem;
  line-height: 1;
}

.stat-card.is-active {
  border-color: rgba(0, 99, 230, 0.45);
  background: var(--brand-50);
}

.admin-kanban-section .container {
  width: min(1440px, calc(100% - 40px));
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 14px;
  align-items: stretch;
  overflow-x: auto;
  padding-bottom: 10px;
}

.kanban-column {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: calc(100vh - 220px);
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(246, 249, 253, 0.86);
}

.kanban-column-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.kanban-column-head strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
}

.kanban-column-head small {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 0.76rem;
  font-weight: 750;
}

.kanban-column-head span {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 800;
}

.kanban-cards {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
}

.kanban-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 26px rgba(0, 73, 171, 0.05);
  cursor: grab;
  transition: border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.kanban-card.is-dragging {
  opacity: 0.55;
  cursor: grabbing;
  transform: rotate(1deg);
}

.kanban-card.is-saving {
  opacity: 0.7;
  pointer-events: none;
}

.kanban-column.is-drop-target {
  border-color: rgba(0, 99, 230, 0.55);
  box-shadow: inset 0 0 0 2px rgba(0, 99, 230, 0.08);
}

.kanban-card-top,
.kanban-move-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.kanban-card-top > span:first-child {
  color: var(--muted-2);
  font-size: 0.86rem;
  font-weight: 800;
}

.kanban-card h2 {
  margin: 0;
  color: var(--brand-900);
  font-size: 1rem;
  line-height: 1.35;
}

.kanban-card h2 a:hover {
  color: var(--brand-600);
}

.kanban-card-meta {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 7px 10px;
  margin: 0;
}

.kanban-card-meta dt {
  color: var(--muted-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kanban-card-meta dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

.priority-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 0.75rem;
  font-weight: 800;
}

.priority-urgente {
  background: #fef2f2;
  color: #991b1b;
}

.priority-alta {
  background: #fff7ed;
  color: #9a3412;
}

.priority-normal {
  background: #eff6ff;
  color: #1d4ed8;
}

.priority-baixa {
  background: #f0fdf4;
  color: #166534;
}

.kanban-move-form select {
  min-width: 0;
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: white;
  color: var(--ink);
  font-weight: 750;
}

.kanban-move-form .inline-button {
  min-height: 40px;
  padding: 0 12px;
}

.kanban-empty {
  margin: 0;
  padding: 14px;
  border: 1px dashed rgba(0, 99, 230, 0.3);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .auth-shell,
  .ticket-layout,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }

  .support-help-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .kanban-board {
    grid-template-columns: repeat(4, minmax(280px, 1fr));
  }

  .admin-filters label {
    flex: 1 1 190px;
  }
}

@media (max-width: 560px) {
  .auth-page {
    min-height: auto;
    padding: 42px 0 52px;
  }

  .auth-centered-shell {
    gap: 24px;
  }

  .auth-hero-copy {
    text-align: left;
  }

  .auth-card {
    padding: 24px;
  }
}
