:root {
  color-scheme: light;
  font-family: Inter, system-ui, sans-serif;
  color: #142450;
  background: #f4f6ff;
  --ink: #142450;
  --blue: #153cc6;
  --muted: #475677;
  --line: #dee5f6;
  --mint: #d8fa78;
}
* { box-sizing: border-box; }
body, h1, h2 { margin: 0; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #315bde; outline-offset: 3px; }
header { color: #fff; background: linear-gradient(110deg, #0d289d, #224be0); }
header :focus-visible { outline-color: var(--mint); }
.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.bar { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { color: #fff; text-decoration: none; font-size: 1.46rem; letter-spacing: -.07em; font-weight: 850; }
.brand span { color: var(--mint); }
.app-footer { border-top: 1px solid var(--line); padding-block: 18px 22px; color: var(--muted); font-size: .85rem; }
.app-footer strong { color: var(--ink); }
.public-main + .app-footer { margin-top: 18px; }
.account, .heading-row, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.account { justify-content: flex-end; font-size: .9rem; }
.heading-row { justify-content: space-between; gap: 15px; }
main { padding-block: 36px; }
h1 { font-size: clamp(2rem, 5vw, 3.45rem); letter-spacing: -.065em; line-height: 1.05; }
h2 { font-size: 1.3rem; letter-spacing: -.035em; }
p { margin: .6rem 0 1rem; line-height: 1.5; }
.muted, .hint { color: var(--muted); }
.page-title { margin-bottom: 21px; }
.page-title p { margin-bottom: 0; }
.panel { padding: 21px; border: 1px solid var(--line); background: white; border-radius: 17px; margin-bottom: 15px; }
.login, .form-panel { max-width: 510px; margin-inline: auto; }
.login { margin-top: min(7vw, 65px); }
.login h1, .form-panel h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); margin-bottom: 14px; }
label { display: block; margin-top: 14px; font-size: .9rem; font-weight: 680; }
input, select { width: 100%; min-height: 42px; margin-top: 6px; padding: 8px 11px; border: 1px solid #abb9db; border-radius: 8px; color: var(--ink); font: inherit; }
.customization-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
.customization-form button { margin-top: 18px; }
.favicon-settings { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.favicon-settings h3 { margin: 0; }
.current-favicon { display: flex; align-items: center; gap: 8px; }
.current-favicon img { width: 24px; height: 24px; object-fit: contain; }
.favicon-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 6px; }
.favicon-upload input { flex: 1 1 240px; max-width: 460px; min-width: 0; margin: 0; }
.file-input { max-width: 460px; margin-bottom: 14px; }
.settings-editor { width: min(540px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 17px; background: white; color: var(--ink); overscroll-behavior: contain; }
.settings-editor::backdrop { background: #0c194d88; }
.settings-editor .form-panel { max-width: none; margin: 0; }
.login button, .form-panel form > .actions { margin-top: 18px; }
.button { display: inline-flex; justify-content: center; align-items: center; border: 1px solid #bbc8e7; border-radius: 8px; background: white; color: var(--ink); padding: .55rem .78rem; font: inherit; font-size: .87rem; font-weight: 680; text-decoration: none; cursor: pointer; white-space: nowrap; }
.button:hover { background: #eef2ff; }
.button.primary { border-color: var(--blue); background: var(--blue); color: white; }
.button.primary:hover { background: #0e298b; }
.danger { color: #8b233f; }
.solid-danger { color: white; background: #8b233f; border-color: #8b233f; }
.solid-danger:hover { background: #672030; }
.hint { font-size: .86rem; }
.table-wrap { overflow-x: auto; margin-top: 18px; }
table { width: 100%; border-collapse: collapse; font-size: .91rem; }
th, td { text-align: left; padding: .65rem .7rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: #eef2ff; font-size: .84rem; }
td:first-child { min-width: 150px; }
td:last-child { width: 1%; }
td .actions { flex-wrap: nowrap; }
.destination, .public-url { overflow-wrap: anywhere; }
.public-url { display: block; font-size: .86rem; margin-top: 4px; }
.error, .success, .renew { border-radius: 9px; padding: .7rem .9rem; margin-bottom: 15px; }
.error { background: #ffedf2; color: #792137; }
.success { background: #e9f7d3; color: #31511b; }
.settings-status { position: fixed; z-index: 1; right: 20px; bottom: 16px; margin: 0; box-shadow: 0 6px 22px #14245035; }
.renew { background: #e7eeff; }
.public-main { padding: 0; }
.public-hero {
  color: #fff;
  background: radial-gradient(ellipse at 87% 65%, #315de9 0%, transparent 54%),
    linear-gradient(110deg, #0d289d, #224be0);
  overflow: hidden;
}
.public-header .bar { border-bottom: 1px solid #ffffff38; }
.settings-wheel {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #ffffff55;
  border-radius: 12px;
  color: white;
  text-decoration: none;
  font-family: "Segoe UI Symbol", system-ui, sans-serif;
  font-size: 1.45rem;
  line-height: 1;
}
.settings-wheel:hover { background: #ffffff20; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  min-height: 390px;
  padding-block: 46px;
  gap: 24px;
}
.hero-copy { min-width: 0; overflow-wrap: anywhere; }
.hero-copy h1 { font-size: clamp(4.5rem, 10vw, 8.25rem); line-height: .9; letter-spacing: -.09em; }
.hero-copy h1 span { color: var(--mint); }
.hero-line { margin: 24px 0 8px; font-size: clamp(1.35rem, 2.65vw, 2rem); font-weight: 700; letter-spacing: -.045em; }
.hero-intro { max-width: 38ch; margin: 0; color: #e5ecff; font-size: 1.06rem; }
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  container-type: inline-size;
  width: 100%;
  max-width: 470px;
  height: 290px;
  justify-self: end;
}
.hero-art::before {
  position: absolute;
  inset: 5% 0;
  content: "";
  background: radial-gradient(circle, #aec4ff 1px, transparent 1.8px) 0 0 / 14px 14px;
  mask-image: radial-gradient(ellipse, #0009 25%, transparent 72%);
}
.hero-orbit {
  position: absolute;
  width: 85%;
  height: 57%;
  border: 1px solid #b9caff75;
  border-radius: 50%;
  transform: rotate(-23deg);
}
.hero-orbit::before, .hero-orbit::after {
  position: absolute;
  width: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 16px #ddff9d;
  content: "";
}
.hero-orbit::before { top: 2%; right: 27%; }
.hero-orbit::after { bottom: 6%; left: 18%; background: #b3caff; }
.chain { position: relative; width: 74%; aspect-ratio: 2.8; transform: rotate(-27deg); }
.chain::before, .chain::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
  width: 57%;
  height: 100%;
  border: clamp(12px, 5cqw, 24px) solid #dde8ff;
  border-radius: 999px;
  box-shadow: 0 15px 35px #071e823d, inset 0 5px 12px #071e8247;
}
.chain::before { right: 0; top: -12%; }
.chain::after { left: 0; top: 14%; border-color: var(--mint); }
.public-links { padding-block: 36px 50px; }
.public-links h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.1; letter-spacing: -.05em; }
.links-note { margin: 0 0 16px; color: var(--muted); font-size: .92rem; }
.public-link-section + .public-link-section { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); }
.public-link-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-bottom: 15px; }
.public-link-heading h2 { overflow-wrap: anywhere; }
.group-page-link { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; text-decoration: none; font-weight: 700; }
.group-page-link:hover { text-decoration: underline; }
.link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.link-card {
  display: flex;
  flex-direction: column;
  align-items: start;
  min-height: 182px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: white;
  box-shadow: 0 6px 18px #182e7e0d;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.link-card:hover, .link-card:focus-visible { transform: translateY(-3px); border-color: #9db2f7; box-shadow: 0 12px 22px #182e7e1c; }
.card-icon { position: relative; display: block; width: 42px; height: 42px; border-radius: 12px; background: #e9efff; color: var(--blue); }
.card-icon::before, .card-icon::after {
  position: absolute;
  box-sizing: border-box;
  top: 17px;
  left: 9px;
  width: 14px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  transform: rotate(-37deg);
  content: "";
}
.card-icon::after { top: 14px; left: 18px; }
.card-title { margin-top: 12px; font-size: 1.25rem; font-weight: 750; letter-spacing: -.025em; }
.card-host { margin: 3px 0 10px; color: var(--muted); font-size: .88rem; }
.card-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; align-self: stretch; margin-top: auto; color: var(--blue); font-size: .87rem; font-weight: 750; }
.arrow { font-size: 1.25rem; }
.link-grid[data-columns="1"], .link-grid[data-layout="list"] { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 881px) {
  .link-grid[data-columns="2"][data-layout="grid"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .link-grid[data-columns="4"][data-layout="grid"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.link-grid[data-layout="list"] .link-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 14px;
  min-height: 0;
}
.link-grid[data-layout="list"] .card-icon { grid-area: 1 / 1 / span 2; }
.link-grid[data-layout="list"] .card-title { grid-area: 1 / 2; margin: 0; }
.link-grid[data-layout="list"] .card-host { grid-area: 2 / 2; margin: 0; }
.link-grid[data-layout="list"] .card-action { grid-area: 1 / 3 / span 2; align-self: center; margin: 0; }
@media (max-width: 880px) {
  .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .hero-inner { grid-template-columns: 1fr; gap: 4px; min-height: 0; padding-block: 36px 20px; }
  .hero-art { max-width: 350px; height: 196px; justify-self: center; }
  .hero-line { margin-top: 17px; }
  .link-grid { grid-template-columns: 1fr; }
  .public-links { padding-block: 28px 36px; }
}
@media (max-width: 600px) {
  .shell { width: calc(100% - 32px); }
  .panel { padding: 15px; }
  .customization-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .link-card { transition: none; } .link-card:hover, .link-card:focus-visible { transform: none; } }
