:root {
  --brand-ink: #101820;
  --brand-muted: #66737f;
  --brand-soft: #8a96a1;
  --brand-line: rgba(16, 24, 32, 0.1);
  --brand-line-strong: rgba(16, 24, 32, 0.18);
  --brand-page: #f6f8f9;
  --brand-panel: rgba(255, 255, 255, 0.86);
  --brand-panel-solid: #ffffff;
  --brand-panel-dark: #101820;
  --brand-accent: #12a99a;
  --brand-accent-dark: #087a71;
  --brand-accent-soft: rgba(18, 169, 154, 0.14);
  --brand-danger: #c83f4a;
  --brand-focus: rgba(18, 169, 154, 0.34);
  --brand-shadow: 0 24px 80px rgba(16, 24, 32, 0.1);
  --brand-shadow-soft: 0 14px 42px rgba(16, 24, 32, 0.08);
  --brand-radius-xl: 24px;
  --brand-radius-lg: 18px;
  --brand-radius-md: 12px;
  --brand-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --primary: var(--brand-accent-dark);
  --primary-visited: #07655e;
  --primary-hover: #06554f;
  --bg-color: var(--brand-page);
  --text-color: var(--brand-ink);
  --color-primary: var(--brand-accent-dark);
  --outline-color: var(--brand-accent);
  --button-bg: linear-gradient(135deg, #ffffff, #eef3f4);
  --button-bg-box-shadow-color: rgba(16, 24, 32, 0.1);
  --button-bg-primary: linear-gradient(135deg, #111a22, #24313b);
  --button-bg-primary-box-shadow-color: rgba(16, 24, 32, 0.2);
  --button-bg-secondary: linear-gradient(135deg, #12a99a, #087a71);
  --button-bg-secondary-box-shadow-color: rgba(18, 169, 154, 0.22);
  --button-bg-danger: linear-gradient(135deg, #d9545f, #b92f3d);
  --button-bg-danger-box-shadow-color: rgba(200, 63, 74, 0.2);
  --button-bg-success: linear-gradient(135deg, #12a99a, #087a71);
  --button-bg-success-box-shadow-color: rgba(18, 169, 154, 0.22);
  --button-action-shadow-color: rgba(16, 24, 32, 0.08);
  --underline-color: rgba(18, 169, 154, 0.42);
  --secondary-text-color: var(--brand-muted);
  --send-icon-hover-color: var(--brand-accent-dark);
  --send-spinner-icon-color: var(--brand-accent);
  --success-icon-color: var(--brand-accent-dark);
  --error-icon-color: var(--brand-danger);
  --copy-icon-color: var(--brand-accent-dark);
  --copy-icon-bg-color: rgba(18, 169, 154, 0.1);
  --copy-icon-shadow-color: rgba(18, 169, 154, 0.1);
  --focus-outline-color: var(--brand-focus);
  --checkbox-bg-color: var(--brand-accent-dark);
  --input-shadow-color: rgba(16, 24, 32, 0.07);
  --input-hover-shadow-color: rgba(18, 169, 154, 0.18);
  --input-label-color: var(--brand-ink);
  --table-bg-color: rgba(246, 248, 249, 0.92);
  --table-shadow-color: rgba(16, 24, 32, 0.08);
  --table-tr-border-color: rgba(16, 24, 32, 0.07);
  --table-tr-hover-bg-color: rgba(18, 169, 154, 0.06);
  --table-head-tr-border-color: rgba(16, 24, 32, 0.1);
  --table-status-gray-bg-color: rgba(16, 24, 32, 0.05);
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(16, 24, 32, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #fbfcfc 0%, #f0f4f5 52%, #f7f9f9 100%);
  background-size: 92px 92px, 92px 92px, auto;
  color: var(--brand-ink);
  font-family: Aptos, "SF Pro Display", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(16, 24, 32, 0.016) 0,
      rgba(16, 24, 32, 0.016) 1px,
      transparent 1px,
      transparent 6px
    );
  opacity: 0.78;
}

.main-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

*:focus-visible {
  outline: 3px solid var(--brand-focus);
  outline-offset: 3px;
}

a,
button.link {
  color: var(--brand-accent-dark);
  transition: color 220ms var(--brand-ease), border-color 220ms var(--brand-ease), opacity 220ms var(--brand-ease);
}

a:hover,
button.link:hover {
  color: var(--brand-accent-dark);
  border-bottom-color: rgba(18, 169, 154, 0.5);
}

hr {
  height: 1px;
  background: var(--brand-line);
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1240px, calc(100% - 48px));
  height: auto;
  min-height: 74px;
  margin: 28px auto 30px;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 52px rgba(16, 24, 32, 0.08);
  backdrop-filter: saturate(1.22) blur(14px);
}

header .logo-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

header a.logo {
  gap: 10px;
  font-size: 20px;
  font-weight: 760;
  color: var(--brand-ink);
}

header a.logo img {
  width: 30px;
  height: 30px;
  margin: 0;
  border-radius: 9px;
  box-shadow: 0 10px 28px rgba(16, 24, 32, 0.15);
}

header a.logo .brand-wordmark-text,
.brand-static-logo .brand-wordmark-text {
  color: var(--brand-ink);
  font-size: 22px;
  font-weight: 840;
  letter-spacing: -0.035em;
  line-height: 1;
}

header ul.logo-links {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 4px;
  border: 1px solid rgba(16, 24, 32, 0.06);
  border-radius: 999px;
  background: rgba(246, 248, 249, 0.68);
}

header ul.logo-links li {
  margin: 0;
}

header ul.logo-links li a,
header nav ul li a.nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: var(--brand-muted);
  font-size: 14px;
  font-weight: 720;
}

header ul.logo-links li a:hover,
header ul.logo-links li a:focus-visible,
header nav ul li a.nav:hover,
header nav ul li a.nav:focus-visible {
  color: var(--brand-ink);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(16, 24, 32, 0.05);
}

header nav ul {
  flex-direction: row;
  gap: 12px;
  align-items: center;
}

header nav ul li {
  margin: 0;
}

a.button,
button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: var(--brand-ink);
  font-weight: 720;
  box-shadow: 0 10px 26px rgba(16, 24, 32, 0.08);
  transition:
    transform 420ms var(--brand-ease),
    box-shadow 420ms var(--brand-ease),
    background 420ms var(--brand-ease),
    color 220ms var(--brand-ease),
    opacity 220ms var(--brand-ease);
}

a.button.primary,
button.primary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--button-bg-primary);
}

a.button.secondary,
button.secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  background: var(--button-bg-secondary);
}

a.button.danger,
button.danger {
  color: #ffffff;
  background: var(--button-bg-danger);
}

a.button:focus,
a.button:hover,
button:focus,
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(16, 24, 32, 0.14);
}

a.button:active,
button:active {
  transform: translateY(0) scale(0.98);
}

button.link {
  min-height: auto;
  border: 0;
  border-bottom: 1px dotted transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-weight: 650;
}

button.link:hover,
button.link:focus {
  transform: none;
  box-shadow: none;
}

button.action,
a.button.action,
button.table,
button.nav {
  border: 1px solid rgba(16, 24, 32, 0.06);
  background: rgba(255, 255, 255, 0.82);
}

button.action svg,
a.button.action svg {
  stroke-width: 2;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(16, 24, 32, 0.08);
  border-radius: 18px;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--brand-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 16px 42px rgba(16, 24, 32, 0.07);
  font-family: inherit;
  font-weight: 620;
  transition:
    transform 360ms var(--brand-ease),
    border-color 260ms var(--brand-ease),
    box-shadow 360ms var(--brand-ease),
    background-color 260ms var(--brand-ease);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus {
  border-color: rgba(18, 169, 154, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 50px rgba(18, 169, 154, 0.14);
  transform: translateY(-1px);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder {
  color: var(--brand-soft);
  font-weight: 560;
}

label {
  color: var(--brand-ink);
  font-weight: 730;
}

input[type="checkbox"] {
  border-radius: 8px;
  border-color: rgba(16, 24, 32, 0.1);
  background-color: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 24, 32, 0.08);
}

input[type="checkbox"]:checked {
  background-color: var(--brand-accent-dark);
}

.brand-hero {
  width: min(1160px, 100%);
  max-width: 100%;
  padding: 34px 16px 0;
  overflow-x: clip;
}

.brand-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 44px;
  align-items: center;
  min-height: 330px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(238, 244, 245, 0.78)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.18));
  box-shadow: var(--brand-shadow);
  overflow: hidden;
}

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

.brand-eyebrow,
.brand-static-label {
  margin: 0 0 14px;
  color: var(--brand-accent-dark);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.brand-hero h1,
main #shorturl h1,
.auth-copy h1,
.brand-page-intro h1,
.brand-static-page h1 {
  color: var(--brand-ink);
  font-size: 44px;
  line-height: 1.05;
  font-weight: 820;
  text-wrap: balance;
}

main #shorturl h1 {
  margin: 0;
  border-bottom: 0;
}

main #shorturl h1 span {
  border-bottom: 0;
  color: var(--brand-accent-dark);
}

main #shorturl {
  justify-content: flex-start;
  margin: 0;
}

.brand-hero-copy {
  min-width: 0;
}

.brand-subcopy,
.auth-copy p,
.brand-page-intro p,
.brand-static-page p,
.brand-404 p {
  max-width: 62ch;
  margin: 18px 0 0;
  color: var(--brand-muted);
  font-size: 16px;
  line-height: 1.7;
}

.brand-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 332px;
  isolation: isolate;
  perspective: 1400px;
}

.brand-hero-visual::before {
  content: "";
  position: absolute;
  inset: 4% -4% 0 8%;
  border-radius: 38px;
  background:
    radial-gradient(circle at 72% 24%, rgba(134, 245, 234, 0.34), transparent 28%),
    radial-gradient(circle at 26% 82%, rgba(18, 169, 154, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(241, 248, 247, 0.12));
  filter: blur(18px);
  opacity: 0.92;
  transform: translate3d(0, 14px, -1px);
  animation: brandAuraPulse 7s cubic-bezier(0.32, 0.72, 0, 1) infinite;
  z-index: -2;
}

.brand-hero-visual::after {
  content: "";
  position: absolute;
  right: 4%;
  bottom: 5%;
  width: 78%;
  height: 18%;
  border-radius: 999px;
  background: rgba(16, 24, 32, 0.2);
  filter: blur(28px);
  transform: rotate(-3deg);
  z-index: -1;
}

.brand-hero-media-shell {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(230, 242, 241, 0.48)),
    linear-gradient(145deg, rgba(18, 169, 154, 0.36), rgba(16, 24, 32, 0.04));
  box-shadow:
    0 42px 90px rgba(16, 24, 32, 0.2),
    0 18px 48px rgba(18, 169, 154, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  overflow: hidden;
  transform: rotateX(2deg) rotateY(-7deg) translate3d(0, 0, 0);
  transform-origin: center;
  transition:
    box-shadow 700ms cubic-bezier(0.32, 0.72, 0, 1),
    transform 700ms cubic-bezier(0.32, 0.72, 0, 1);
  animation: brandHeroFloat 7s cubic-bezier(0.32, 0.72, 0, 1) infinite;
}

.brand-hero-media-shell::before {
  content: "";
  position: absolute;
  inset: -48% -28%;
  background: linear-gradient(110deg, transparent 34%, rgba(255, 255, 255, 0.46) 48%, transparent 62%);
  opacity: 0.6;
  transform: translateX(-46%) rotate(8deg);
  animation: brandHeroSheen 6.5s cubic-bezier(0.32, 0.72, 0, 1) infinite;
  pointer-events: none;
  z-index: 2;
}

.brand-hero-visual:hover .brand-hero-media-shell {
  box-shadow:
    0 48px 104px rgba(16, 24, 32, 0.24),
    0 24px 56px rgba(18, 169, 154, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  transform: rotateX(0deg) rotateY(-3deg) translate3d(0, -8px, 0);
}

.brand-hero-media {
  position: relative;
  border: 1px solid rgba(16, 24, 32, 0.08);
  border-radius: 27px;
  background: #101820;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(16, 24, 32, 0.3);
}

.brand-hero-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1586 / 992;
  object-fit: cover;
  transform: scale(1.012);
}

main {
  width: min(880px, 100%);
  margin-top: 0;
  padding: 0 16px;
}

.brand-hero form,
main form#shortener-form {
  margin-top: 22px;
}

main form input#target {
  height: 74px;
  border-radius: 24px;
  font-size: 18px;
  line-height: normal;
  padding: 0 84px 0 30px;
}

main form button.submit {
  top: 50%;
  right: 12px;
  display: flex;
  width: 50px;
  height: 50px;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0;
  transform: translateY(-50%);
  color: var(--brand-accent-dark);
  line-height: 1;
}

main form button.submit svg.send {
  width: 30px;
  height: 30px;
  fill: var(--brand-accent-dark);
}

main form input#target:focus {
  transform: none;
}

main form button.submit:hover,
main form button.submit:focus {
  transform: translateY(calc(-50% - 1px));
}

main form button.submit:active {
  transform: translateY(-50%) scale(0.98);
}

main form label#advanced {
  margin-top: 20px;
  color: var(--brand-muted);
  font-size: 14px;
}

#advanced-options {
  width: 100%;
  padding: 18px;
  border: 1px solid var(--brand-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--brand-shadow-soft);
}

.advanced-input-wrapper {
  gap: 14px;
}

.advanced-input-wrapper label {
  display: grid;
  gap: 8px;
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

#advanced-options input,
#advanced-options select {
  height: 50px;
  padding: 0 14px;
  border-color: rgba(16, 24, 32, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 650;
}

#advanced-options input:focus,
#advanced-options select:focus {
  transform: none;
}

#main-table-wrapper table .status,
table .tab a {
  border: 1px solid rgba(16, 24, 32, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-muted);
  font-size: 12px;
  font-weight: 760;
}

#main-table-wrapper {
  width: min(1200px, 100%);
  max-width: 100%;
  margin: 58px 0 74px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

#main-table-wrapper h2 {
  color: var(--brand-ink);
  font-size: 24px;
  font-weight: 780;
}

table {
  min-width: 800px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--brand-shadow-soft);
  overflow: hidden;
}

table thead,
table tfoot {
  background: rgba(246, 248, 249, 0.94);
}

table th,
table td {
  color: var(--brand-ink);
}

table tbody tr:hover {
  background: rgba(18, 169, 154, 0.055);
}

input.table-input,
select.table-input {
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(16, 24, 32, 0.06);
}

.section-container {
  width: min(760px, calc(100% - 32px));
  max-width: 100%;
  margin: 42px auto 72px;
  padding: 0;
}

#settings {
  width: min(760px, calc(100% - 32px));
  padding: 0;
  overflow: visible;
}

.brand-page-intro,
.settings-block,
#settings > h2,
#settings > p,
#settings > table,
#settings > .add-domain-wrapper,
#settings > section,
#settings > form,
#apikey-wrapper,
#change-password-wrapper,
#change-email-wrapper,
#delete-account-wrapper,
#report,
#terms,
#notfound {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--brand-radius-xl);
  background: var(--brand-panel);
  box-shadow: var(--brand-shadow-soft);
}

.brand-page-intro {
  width: 100%;
  margin-bottom: 22px;
  padding: 28px;
}

h1.settings-welcome,
.brand-page-intro h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 820;
}

h1.settings-welcome span {
  border-bottom-color: rgba(18, 169, 154, 0.42);
  font-weight: 820;
}

#settings > h2,
#apikey-wrapper h2,
#change-password-wrapper h2,
#change-email-wrapper h2,
#delete-account-wrapper h2,
#report h2,
#terms h1,
#notfound h2 {
  color: var(--brand-ink);
  font-size: 24px;
  font-weight: 800;
}

#settings > h2,
#settings > p,
#settings > table,
#settings > .add-domain-wrapper,
.settings-block,
#apikey-wrapper,
#change-password-wrapper,
#change-email-wrapper,
#delete-account-wrapper {
  width: 100%;
  padding: 24px;
  margin-bottom: 14px;
}

#settings > h2 {
  margin-bottom: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  box-shadow: none;
}

#settings > h2 + p,
#settings > h2 + p + p {
  margin-top: -14px;
  border-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  box-shadow: none;
}

#domains-table {
  margin-top: 0;
}

.settings-block h2,
#apikey-wrapper h2,
#change-password-wrapper h2,
#change-email-wrapper h2,
#delete-account-wrapper h2 {
  margin-top: 0;
}

.settings-domain-block {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.add-domain-wrapper {
  gap: 12px;
}

#apikey {
  align-items: flex-start;
  gap: 8px;
}

#apikey p {
  color: var(--brand-ink);
  border-bottom-color: rgba(18, 169, 154, 0.36);
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 14px;
}

#settings form,
#report form {
  width: 100%;
}

#settings form .inputs,
#report form .inputs-wrapper,
#add-domain .inputs {
  display: grid;
  gap: 14px;
}

#settings form label,
#report form label,
#add-domain label {
  display: grid;
  gap: 9px;
  margin: 0;
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 820;
  line-height: 1.2;
  text-transform: uppercase;
}

#settings form input,
#report form input,
#report form textarea,
#add-domain input {
  width: 100%;
  padding: 0 16px;
  border: 1px solid rgba(16, 24, 32, 0.08);
  border-radius: 15px;
  background: rgba(247, 250, 250, 0.9);
  color: var(--brand-ink);
  font-size: 14px;
  font-weight: 660;
  line-height: normal;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 10px 26px rgba(16, 24, 32, 0.045);
}

#settings form input,
#report form input,
#add-domain input {
  height: 54px;
}

#report form textarea {
  min-height: 128px;
  padding-top: 15px;
  padding-bottom: 15px;
  line-height: 1.5;
  resize: vertical;
}

#settings form input::placeholder,
#report form input::placeholder,
#report form textarea::placeholder,
#add-domain input::placeholder {
  color: #8b9aa7;
  font-size: 13px;
  font-weight: 610;
}

#settings form input:focus,
#report form input:focus,
#report form textarea:focus,
#add-domain input:focus {
  border-color: rgba(18, 169, 154, 0.34);
  background: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 30px rgba(18, 169, 154, 0.13);
  transform: none;
}

#settings form button,
#settings form a.button,
#report form button,
#add-domain button,
#add-domain a.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 800;
}

#settings form button span,
#settings form a.button span,
#report form button span,
#add-domain button span,
#add-domain a.button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#settings form button svg,
#settings form a.button svg,
#report form button svg,
#add-domain button svg,
#add-domain a.button svg {
  width: 15px;
  height: 15px;
}

#change-password,
#change-email,
#delete-account,
#add-domain {
  display: grid;
  gap: 14px;
}

#generate-apikey {
  margin-top: 18px;
}

#add-domain {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(16, 24, 32, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

#add-domain small {
  color: var(--brand-muted);
  font-size: 12px;
  line-height: 1.55;
}

#add-domain .buttons-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#settings p.error,
#settings p.success,
#report p.error,
#report p.success,
#add-domain p.error,
#add-domain p.success {
  margin: 0;
  font-size: 13px;
  font-weight: 690;
  line-height: 1.45;
}

#settings p.error,
#report p.error,
#add-domain p.error {
  color: var(--brand-danger);
}

#settings p.success,
#report p.success,
#add-domain p.success {
  color: var(--brand-accent-dark);
}

.auth-shell {
  width: min(1120px, calc(100% - 32px));
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: 44px;
  align-items: center;
  margin: 34px auto 76px;
}

.auth-copy {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px;
  border-radius: 30px;
  background: var(--brand-panel-dark);
  color: #ffffff;
  box-shadow: 0 28px 80px rgba(16, 24, 32, 0.18);
}

.auth-copy h1,
.auth-copy p {
  color: #ffffff;
}

.auth-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.auth-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.auth-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 680;
}

.auth-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--brand-accent);
}

.auth-card {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(232, 242, 241, 0.56)),
    rgba(255, 255, 255, 0.54);
  box-shadow:
    0 28px 86px rgba(16, 24, 32, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.auth-card form#login-signup {
  width: 100%;
  margin: 0;
  padding: 32px;
  border: 1px solid rgba(16, 24, 32, 0.055);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 42px rgba(16, 24, 32, 0.055);
}

.auth-card form#login-signup label {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 820;
  line-height: 1.2;
  text-transform: uppercase;
}

.auth-card form#login-signup input {
  width: 100%;
  height: 58px;
  padding: 0 18px;
  border: 1px solid rgba(16, 24, 32, 0.08);
  border-radius: 16px;
  background: rgba(247, 250, 250, 0.92);
  color: var(--brand-ink);
  font-size: 15px;
  font-weight: 680;
  line-height: normal;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 12px 28px rgba(16, 24, 32, 0.05);
}

.auth-card form#login-signup input::placeholder {
  color: #8b9aa7;
  font-size: 14px;
  font-weight: 620;
}

.auth-card form#login-signup input:focus {
  border-color: rgba(18, 169, 154, 0.34);
  background: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 16px 34px rgba(18, 169, 154, 0.14);
  transform: none;
}

.auth-card form#login-signup .buttons-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}

.auth-card form#login-signup .buttons-wrapper button,
.auth-card form#login-signup .buttons-wrapper a.button {
  width: 100%;
  height: 54px;
  min-height: 54px;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 17px;
  font-size: 13px;
  font-weight: 820;
}

.auth-card form#login-signup .buttons-wrapper button span,
.auth-card form#login-signup .buttons-wrapper a.button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-card form#login-signup .buttons-wrapper svg {
  width: 15px;
  height: 15px;
}

.auth-card form#login-signup .forgot-password {
  display: inline-flex;
  margin-top: 16px;
  color: var(--brand-muted);
  font-size: 13px;
  font-weight: 720;
}

.auth-card form#login-signup .forgot-password:hover,
.auth-card form#login-signup .forgot-password:focus-visible {
  color: var(--brand-accent-dark);
}

.auth-card form#login-signup p.error {
  margin: 8px 0 0;
  color: var(--brand-danger);
  font-size: 13px;
  font-weight: 680;
  line-height: 1.45;
}

#report,
#terms,
#notfound {
  width: min(760px, calc(100% - 32px));
  padding: 32px;
}

#report {
  display: grid;
  flex: 0 0 auto;
  min-height: 0;
  align-items: start;
  gap: 18px;
}

#report .brand-eyebrow,
#report h2,
#report p {
  margin-top: 0;
}

#report p {
  max-width: 62ch;
  color: var(--brand-muted);
  line-height: 1.65;
}

#report-email {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

#report-email button.link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid rgba(18, 169, 154, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--brand-accent-dark);
  font-size: 13px;
  font-weight: 820;
  line-height: 1;
  box-shadow: 0 12px 30px rgba(16, 24, 32, 0.07);
}

#report-email button.link:hover,
#report-email button.link:focus-visible {
  background: #ffffff;
  color: var(--brand-ink);
  transform: translateY(-1px);
}

#report-email .eye-icon,
#report-email .email-address {
  display: inline-flex;
  align-items: center;
}

#report-email .eye-icon svg {
  width: 15px;
  height: 15px;
}

#report-email .email-address {
  padding: 10px 13px;
  border: 1px solid rgba(16, 24, 32, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-ink);
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 720;
  overflow-wrap: anywhere;
}

#report form .inputs-wrapper {
  gap: 12px;
}

#report form button {
  margin-left: 0;
}

#notfound {
  align-items: center;
  text-align: center;
}

.back-to-home {
  display: inline-flex;
  margin-top: 24px;
  font-weight: 760;
}

footer {
  width: min(1240px, calc(100% - 48px));
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 52px auto 28px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 14px 36px rgba(16, 24, 32, 0.06);
  backdrop-filter: saturate(1.18) blur(12px);
  color: var(--brand-muted);
}

footer p {
  margin: 0;
  color: var(--brand-muted);
  font-size: 13px;
  line-height: 1.5;
}

.brand-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

footer a,
footer button.link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: var(--brand-muted);
  font-size: 13px;
  font-weight: 720;
}

footer a:hover,
footer a:focus-visible,
footer button.link:hover,
footer button.link:focus-visible {
  color: var(--brand-ink);
  background: rgba(255, 255, 255, 0.82);
}

.brand-static-page {
  min-height: 100dvh;
  padding: 28px 16px 56px;
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(16, 24, 32, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #fbfcfc 0%, #f0f4f5 52%, #f7f9f9 100%);
  background-size: 92px 92px, 92px 92px, auto;
  color: var(--brand-ink);
  font-family: Aptos, "SF Pro Display", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

.brand-static-shell {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  margin: 0 auto;
}

.brand-static-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  margin-bottom: 34px;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 52px rgba(16, 24, 32, 0.08);
  backdrop-filter: blur(18px);
}

.brand-static-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--brand-ink);
  font-size: 20px;
  font-weight: 820;
  text-decoration: none;
}

.brand-static-logo img {
  width: 30px;
  height: 30px;
  display: block;
  border-radius: 9px;
  box-shadow: 0 10px 28px rgba(16, 24, 32, 0.15);
}

.brand-static-links {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 6px;
  border: 1px solid rgba(16, 24, 32, 0.06);
  border-radius: 999px;
  background: rgba(16, 24, 32, 0.045);
}

.brand-static-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--brand-muted);
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}

.brand-static-links a:hover,
.brand-static-links a:focus-visible {
  border-color: rgba(18, 169, 154, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-accent-dark);
}

.brand-static-links a.is-active {
  border-color: rgba(16, 24, 32, 0.12);
  background: var(--brand-panel-dark);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(16, 24, 32, 0.15);
}

.brand-discovery {
  margin-top: 34px;
  padding: 30px;
}

.brand-discovery > h2 {
  margin-bottom: 12px;
}

.brand-discovery > p:not(.brand-eyebrow) {
  max-width: 760px;
  color: var(--brand-muted);
}

.brand-discovery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.brand-discovery-grid article {
  padding: 20px;
  border: 1px solid var(--brand-line);
  border-radius: var(--brand-radius-lg);
  background: rgba(255, 255, 255, 0.7);
}

.brand-discovery-grid h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.brand-discovery-grid p {
  margin: 0;
  color: var(--brand-muted);
}

.brand-static-card {
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--brand-shadow);
}

.brand-static-page h2 {
  margin: 34px 0 12px;
  color: var(--brand-ink);
  font-size: 22px;
}

.brand-static-page p,
.brand-static-page li {
  color: var(--brand-muted);
  line-height: 1.72;
}

.brand-static-page code,
.brand-static-page pre {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

.brand-static-page code {
  color: var(--brand-ink);
}

.brand-static-page pre {
  overflow-x: auto;
  padding: 18px;
  border: 1px solid var(--brand-line);
  border-radius: 16px;
  background: #101820;
  color: #eefafa;
}

.brand-static-page pre code {
  color: #eefafa;
  text-shadow: 0 1px 12px rgba(134, 245, 234, 0.12);
}

.brand-static-page .brand-static-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 22px 0 0;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--brand-muted);
  font-size: 14px;
  box-shadow: 0 14px 36px rgba(16, 24, 32, 0.06);
}

.brand-static-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.brand-static-page .brand-static-footer a {
  color: var(--brand-muted);
  font-weight: 680;
  text-decoration: none;
}

.brand-static-page .brand-static-footer a:hover,
.brand-static-page .brand-static-footer a:focus-visible {
  color: var(--brand-accent-dark);
}

.brand-static-page .brand-static-footer p {
  margin: 0;
  color: var(--brand-muted);
}

@keyframes brandHeroFloat {
  0%,
  100% {
    transform: rotateX(2deg) rotateY(-7deg) translate3d(0, 0, 0);
  }
  50% {
    transform: rotateX(1deg) rotateY(-5deg) translate3d(0, -10px, 0);
  }
}

@keyframes brandHeroSheen {
  0%,
  42% {
    transform: translateX(-56%) rotate(8deg);
  }
  72%,
  100% {
    transform: translateX(48%) rotate(8deg);
  }
}

@keyframes brandAuraPulse {
  0%,
  100% {
    opacity: 0.72;
    transform: translate3d(0, 14px, -1px) scale(0.98);
  }
  50% {
    opacity: 0.96;
    transform: translate3d(0, 4px, -1px) scale(1.02);
  }
}

@keyframes brandRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand-hero-panel,
.auth-shell,
.brand-page-intro,
header,
footer,
#main-table-wrapper,
#report,
#terms,
#notfound,
.brand-static-nav,
.brand-static-footer,
.brand-static-card {
  animation: brandRise 680ms var(--brand-ease) both;
}

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

@media only screen and (max-width: 900px) {
  header {
    align-items: flex-start;
    width: min(100% - 32px, 760px);
    min-height: auto;
    flex-wrap: wrap;
    gap: 12px;
  }

  header nav {
    width: auto;
    margin-left: auto;
  }

  header nav ul {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .brand-hero-panel,
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .brand-hero-visual {
    order: 0;
    min-height: auto;
    justify-content: center;
  }

  .auth-copy {
    min-height: auto;
  }
}

@media only screen and (max-width: 768px) {
  body {
    background-size: 68px 68px, 68px 68px, auto;
  }

  header {
    display: grid;
    grid-template-columns: 1fr auto;
    margin-top: 16px;
    margin-bottom: 20px;
    padding: 12px;
  }

  header .logo-wrapper {
    display: contents;
  }

  header a.logo {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  header nav {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    width: auto;
    max-width: 100%;
    margin: 0;
  }

  header a.logo {
    font-size: 18px;
  }

  header ul.logo-links {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  header nav ul li a.button {
    height: 34px;
    padding: 0 14px;
  }

  .brand-hero {
    padding-top: 16px;
  }

  .brand-hero-panel,
  .auth-copy,
  .brand-static-card {
    padding: 24px;
    border-radius: 24px;
  }

  .brand-hero h1,
  main #shorturl h1,
  .auth-copy h1,
  .brand-page-intro h1,
  .brand-static-page h1 {
    font-size: 30px;
    line-height: 1.12;
  }

  .brand-subcopy,
  .auth-copy p,
  .brand-page-intro p,
  .brand-static-page p,
  .brand-404 p {
    font-size: 15px;
    line-height: 1.62;
  }

  main form input#target {
    height: 62px;
    padding: 0 70px 0 24px;
    font-size: 16px;
  }

  main form button.submit {
    right: 10px;
    width: 44px;
    height: 44px;
    min-height: 44px;
  }

  main form button.submit svg.send {
    width: 27px;
    height: 27px;
  }

  #main-table-wrapper {
    width: 100%;
    margin-top: 44px;
  }

  .auth-shell {
    width: calc(100% - 32px);
    gap: 18px;
    align-items: start;
    margin-top: 18px;
  }

  .auth-card {
    order: -1;
  }

  .auth-card form#login-signup {
    padding: 22px;
  }

  #settings > h2,
  #settings > p,
  #settings > table,
  #settings > .add-domain-wrapper,
  #apikey-wrapper,
  #change-password-wrapper,
  #change-email-wrapper,
  #delete-account-wrapper,
  .brand-page-intro,
  #report,
  #terms,
  #notfound {
    padding: 22px;
    border-radius: 20px;
  }

  .brand-static-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
    padding: 14px;
  }

  .brand-static-links {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    border-radius: 20px;
  }

  .brand-static-links a {
    flex: 1 1 auto;
    justify-content: center;
    min-width: max-content;
  }

  .brand-static-page .brand-static-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  footer {
    width: calc(100% - 32px);
    align-items: flex-start;
    flex-direction: column;
    text-align: left;
  }

  .brand-discovery-grid {
    grid-template-columns: 1fr;
  }
}

@media only screen and (max-width: 640px) {
  header .logo-wrapper {
    width: auto;
  }

  header {
    grid-template-columns: 1fr;
  }

  header a.logo,
  header nav,
  header ul.logo-links {
    grid-column: 1 / -1;
  }

  header nav {
    grid-row: 2;
    justify-self: stretch;
  }

  header nav ul {
    justify-content: flex-start;
  }

  header nav ul li a.button {
    height: auto;
    min-height: 34px;
  }

  header ul.logo-links {
    grid-row: 3;
    display: flex;
  }

  header a.logo .brand-wordmark-text,
  .brand-static-logo .brand-wordmark-text {
    font-size: 20px;
  }

  .brand-hero-panel {
    gap: 20px;
  }

  .brand-hero h1,
  main #shorturl h1,
  .auth-copy h1,
  .brand-page-intro h1,
  .brand-static-page h1 {
    font-size: 28px;
    line-height: 1.14;
  }

  .brand-hero-media-shell {
    border-radius: 26px;
    transform: none;
  }

  .brand-hero-media {
    border-radius: 20px;
  }

  #advanced-options {
    padding: 14px;
  }

  #apikey {
    align-items: flex-start;
  }
}

/* Operator dashboard refinements for the authenticated 1.0 product surface. */
body:has(#main-table-wrapper),
body:has(#settings) {
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.022) 1px, transparent 1px),
    linear-gradient(0deg, rgba(16, 24, 32, 0.02) 1px, transparent 1px),
    linear-gradient(180deg, #fbfcfc 0%, #f3f6f7 100%);
  background-size: 112px 112px, 112px 112px, auto;
}

body:has(#main-table-wrapper)::before,
body:has(#settings)::before {
  opacity: 0.34;
}

body:has(#main-table-wrapper) header,
body:has(#settings) header {
  width: min(1200px, calc(100% - 48px));
  min-height: 64px;
  margin-top: 22px;
  margin-bottom: 30px;
  padding: 10px 12px 10px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 34px rgba(16, 24, 32, 0.07);
}

body:has(#main-table-wrapper) footer,
body:has(#settings) footer {
  width: min(1200px, calc(100% - 48px));
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 28px rgba(16, 24, 32, 0.045);
}

#main-table-wrapper {
  width: min(1180px, calc(100% - 40px));
  margin: 26px auto 50px;
  border: 1px solid rgba(16, 24, 32, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 42px rgba(16, 24, 32, 0.07);
}

#main-table-wrapper h2 {
  margin: 0;
  padding: 20px 24px 12px;
  border-bottom: 1px solid rgba(16, 24, 32, 0.07);
  font-size: 22px;
  line-height: 1.15;
}

#main-table-wrapper table {
  width: 100%;
  min-width: 1040px;
  table-layout: fixed;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#main-table-wrapper table thead,
#main-table-wrapper table tfoot {
  background: rgba(246, 248, 249, 0.94);
}

#main-table-wrapper table th,
#main-table-wrapper table td {
  padding: 12px 18px;
  border-color: rgba(16, 24, 32, 0.075);
  vertical-align: middle;
}

#main-table-wrapper table th {
  color: var(--brand-ink);
  font-size: 14px;
  font-weight: 820;
}

#main-table-wrapper table td {
  color: var(--brand-ink);
  font-size: 14px;
  line-height: 1.35;
}

#main-table-wrapper table tbody tr {
  background: #ffffff;
}

#main-table-wrapper table tbody tr:hover {
  background: rgba(18, 169, 154, 0.045);
}

#main-table-wrapper table a {
  color: var(--brand-accent-dark);
  font-weight: 760;
}

#main-table-wrapper table tbody td:first-child > a {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
  white-space: nowrap;
}

#main-table-wrapper table small,
#main-table-wrapper table .secondary,
#main-table-wrapper table .description {
  color: var(--brand-muted);
  font-size: 13px;
  line-height: 1.35;
}

#main-table-wrapper input.table-input,
#main-table-wrapper select.table-input {
  height: 36px;
  min-height: 36px;
  border: 1px solid rgba(16, 24, 32, 0.08);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(16, 24, 32, 0.035);
  font-size: 13px;
  font-weight: 660;
}

#main-table-wrapper input.table-input.search {
  width: min(100%, 210px);
}

#main-table-wrapper button.nav,
#main-table-wrapper button.table,
#main-table-wrapper button.action,
#main-table-wrapper a.button.action {
  min-width: 34px;
  min-height: 34px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(16, 24, 32, 0.05);
}

#main-table-wrapper button.nav:disabled,
#main-table-wrapper button.table:disabled,
#main-table-wrapper button.action:disabled {
  opacity: 0.42;
  box-shadow: none;
}

#main-table-wrapper .clipboard.small button,
#settings .clipboard.small button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 10px;
  background: rgba(18, 169, 154, 0.1);
  box-shadow: none;
}

#main-table-wrapper table tr:has(th.actions) th.original-url,
#main-table-wrapper table tbody td:nth-child(1) {
  width: 36%;
  text-align: left;
}

#main-table-wrapper table tr:has(th.actions) th.created-at,
#main-table-wrapper table tbody td:nth-child(2) {
  width: 13%;
  text-align: left;
}

#main-table-wrapper table tr:has(th.actions) th.short-link,
#main-table-wrapper table tbody td:nth-child(3) {
  width: 19%;
  text-align: left;
}

#main-table-wrapper table tr:has(th.actions) th.views,
#main-table-wrapper table tbody td:nth-child(4) {
  width: 7%;
  text-align: center;
}

#main-table-wrapper table tr:has(th.actions) th.actions,
#main-table-wrapper table tbody td:nth-child(5) {
  width: 25%;
  text-align: right;
}

#main-table-wrapper table .category th,
#main-table-wrapper table .controls th {
  padding: 12px 18px;
}

#main-table-wrapper table .category-total {
  width: 32%;
}

#main-table-wrapper table .category-tab {
  width: 68%;
}

#main-table-wrapper table .tab {
  gap: 8px;
}

#main-table-wrapper table .tab a {
  min-height: 34px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
}

#main-table-wrapper table .filters > div {
  gap: 10px;
}

#main-table-wrapper table .filters .search-input-wrapper {
  width: 210px;
}

#main-table-wrapper table .filters select.table-input {
  width: 138px;
}

#main-table-wrapper table .nav {
  gap: 8px;
}

#main-table-wrapper table .nav-divider {
  height: 28px;
  margin: 0 8px;
}

#main-table-wrapper table tbody td:nth-child(3) {
  position: relative;
  padding-left: 58px;
  padding-right: 16px;
}

#main-table-wrapper table tbody td:nth-child(3) .short-link-wrapper {
  display: block;
  min-width: 0;
}

#main-table-wrapper table tbody td:nth-child(3) .clipboard.small {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
}

#main-table-wrapper table tbody td:nth-child(3) .clipboard.small svg {
  width: 18px;
  height: 18px;
}

#main-table-wrapper table tbody td:nth-child(3) .short-link-wrapper > a,
#main-table-wrapper table tbody td:nth-child(3) .description a {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#main-table-wrapper table tbody td:nth-child(3) .description {
  margin: 2px 0 0;
}

#main-table-wrapper table tbody td:nth-child(5) {
  padding-left: 12px;
  white-space: nowrap;
}

#main-table-wrapper table tbody td:nth-child(5) button.action,
#main-table-wrapper table tbody td:nth-child(5) a.button.action {
  width: 34px;
  height: 34px;
  margin-left: 5px;
  padding: 0;
}

#main-table-wrapper table tbody td:nth-child(5) svg {
  width: 18px;
  height: 18px;
}

#settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: min(1040px, calc(100% - 48px));
  margin: 34px auto 64px;
}

#settings .brand-page-intro,
#settings .settings-domain-block,
#settings #delete-account-wrapper {
  grid-column: 1 / -1;
}

#settings .brand-page-intro,
#settings .settings-block,
#settings #apikey-wrapper,
#settings #change-password-wrapper,
#settings #change-email-wrapper,
#settings #delete-account-wrapper {
  margin: 0;
  padding: 24px 26px;
  border: 1px solid rgba(16, 24, 32, 0.075);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 44px rgba(16, 24, 32, 0.06);
}

#settings .brand-page-intro {
  padding: 26px 28px;
}

#settings .brand-page-intro p {
  max-width: 72ch;
  margin-top: 12px;
}

#settings h1.settings-welcome,
#settings .brand-page-intro h1 {
  max-width: 100%;
  font-size: 30px;
  line-height: 1.14;
  overflow-wrap: anywhere;
}

#settings h2,
#settings #apikey-wrapper h2,
#settings #change-password-wrapper h2,
#settings #change-email-wrapper h2,
#settings #delete-account-wrapper h2 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.2;
}

#settings p {
  color: var(--brand-muted);
  font-size: 14px;
  line-height: 1.62;
}

#settings p b,
#settings strong {
  color: var(--brand-ink);
}

#settings table {
  width: 100%;
  min-width: 0;
  margin: 16px 0 0;
  border: 1px solid rgba(16, 24, 32, 0.075);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: none;
}

#settings table th,
#settings table td {
  padding: 13px 16px;
  font-size: 14px;
}

#settings .add-domain-wrapper {
  margin-top: 16px;
}

#settings #apikey {
  display: flex;
  max-width: 100%;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(16, 24, 32, 0.075);
  border-radius: 14px;
  background: rgba(246, 248, 249, 0.74);
}

#settings #apikey p {
  max-width: 100%;
  margin: 0;
  color: var(--brand-ink);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

#settings #generate-apikey {
  margin-top: 14px;
}

#settings form .inputs {
  gap: 12px;
}

#settings form input,
#settings #add-domain input {
  height: 48px;
  border-radius: 12px;
  font-size: 14px;
}

#settings form button,
#settings form a.button,
#settings #add-domain button,
#settings #add-domain a.button {
  min-height: 44px;
  border-radius: 12px;
}

#settings #change-password,
#settings #change-email,
#settings #delete-account,
#settings #add-domain {
  gap: 12px;
}

@media only screen and (max-width: 900px) {
  body:has(#main-table-wrapper) header,
  body:has(#settings) header,
  body:has(#main-table-wrapper) footer,
  body:has(#settings) footer,
  #main-table-wrapper,
  #settings {
    width: calc(100% - 32px);
  }

  #settings {
    grid-template-columns: 1fr;
  }

  #main-table-wrapper h2 {
    padding: 20px 20px 12px;
    font-size: 22px;
  }

  #main-table-wrapper table th,
  #main-table-wrapper table td {
    padding: 12px 16px;
  }
}

@media only screen and (max-width: 640px) {
  #main-table-wrapper {
    margin-top: 22px;
    border-radius: 16px;
  }

  #settings {
    margin-top: 22px;
    gap: 12px;
  }

  #settings .brand-page-intro,
  #settings .settings-block,
  #settings #apikey-wrapper,
  #settings #change-password-wrapper,
  #settings #change-email-wrapper,
  #settings #delete-account-wrapper {
    padding: 20px;
    border-radius: 16px;
  }

  #settings h1.settings-welcome,
  #settings .brand-page-intro h1 {
    font-size: 25px;
  }

  #settings #apikey {
    align-items: flex-start;
  }
}
