@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --ink: #14251f;
  --muted: #607069;
  --paper: #f4f1e8;
  --line: rgba(20, 37, 31, 0.16);
  --acid: #d8ff62;
  --mint: #a8f4d2;
  --forest: #143a2c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(rgba(20, 37, 31, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 37, 31, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
  font-family: "Manrope", sans-serif;
}

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

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
}

.ambient-one {
  width: 420px;
  height: 420px;
  top: 70px;
  right: -170px;
  background: radial-gradient(circle, rgba(168, 244, 210, 0.65), transparent 68%);
}

.ambient-two {
  width: 360px;
  height: 360px;
  top: 510px;
  left: -230px;
  background: radial-gradient(circle, rgba(216, 255, 98, 0.42), transparent 68%);
}

.site-header {
  width: min(1180px, calc(100% - 48px));
  height: 96px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 31px;
  height: 31px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 3px;
  padding: 7px;
  border-radius: 50%;
  background: var(--forest);
}

.brand-mark i {
  display: block;
  background: var(--acid);
  border-radius: 5px;
}

.brand-mark i:nth-child(1) {
  height: 7px;
}

.brand-mark i:nth-child(2) {
  height: 15px;
}

.brand-mark i:nth-child(3) {
  height: 11px;
}

nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 13px;
  font-weight: 600;
}

nav > a:not(.nav-cta) {
  color: var(--muted);
  transition: color 180ms ease;
}

nav > a:not(.nav-cta):hover {
  color: var(--ink);
}

.nav-cta {
  display: flex;
  gap: 13px;
  padding: 11px 16px;
  color: white;
  background: var(--forest);
  border-radius: 999px;
}

main {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
}

.hero {
  max-width: 850px;
  padding: 105px 0 76px;
}

.eyebrow,
.version,
.section-number,
.card-kicker,
.signal-header,
.method,
.route-note,
footer {
  font-family: "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 30px;
  font-size: 11px;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35b775;
  box-shadow: 0 0 0 4px rgba(53, 183, 117, 0.12);
}

.version {
  padding-left: 10px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  font-size: 10px;
}

h1 {
  margin: 0;
  font-size: clamp(55px, 8.2vw, 108px);
  line-height: 0.91;
  letter-spacing: -0.07em;
  font-weight: 500;
}

h1 em {
  color: var(--forest);
  font-family: Georgia, serif;
  font-weight: 400;
}

.hero-copy {
  max-width: 620px;
  margin: 40px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: -0.02em;
}

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

.button {
  min-height: 54px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(20, 37, 31, 0.12);
}

.button-primary {
  color: white;
  background: var(--forest);
}

.button-secondary {
  background: rgba(244, 241, 232, 0.65);
}

.signal-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 30px 70px rgba(20, 37, 31, 0.08);
}

.signal-header {
  height: 54px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

.signal-state {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #277c56;
}

.signal-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #35b775;
}

.signal-body {
  padding: 16px;
}

.route-line {
  min-height: 62px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 74px 1fr auto;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.method {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 500;
}

.method-mcp {
  color: #435c00;
  background: var(--acid);
}

.method-get {
  color: #176141;
  background: var(--mint);
}

code,
pre {
  font-family: "DM Mono", monospace;
}

.route-line code {
  font-size: 13px;
  font-weight: 500;
}

.route-note {
  color: var(--muted);
  font-size: 9px;
}

.terminal {
  margin-top: 16px;
  overflow: hidden;
  color: #dbe9e1;
  background: #10231c;
  border-radius: 4px;
}

.terminal-top {
  height: 38px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-top > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.terminal-top small {
  margin-left: auto;
  color: #789386;
  font-family: "DM Mono", monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

pre {
  margin: 0;
  padding: 24px;
  font-size: 12px;
  line-height: 1.75;
}

.prompt,
.key {
  color: var(--acid);
}

.value {
  color: #fff;
}

.success {
  color: var(--mint);
}

.interfaces {
  padding: 150px 0 110px;
}

.section-intro {
  display: grid;
  grid-template-columns: 80px 1fr;
  margin-bottom: 50px;
}

.section-number {
  padding-top: 10px;
  color: var(--muted);
  font-size: 10px;
}

h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 500;
}

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

.interface-card {
  min-height: 365px;
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--acid);
  transition: transform 200ms ease;
}

.interface-card:hover {
  transform: translateY(-5px);
}

.card-dark {
  color: white;
  background: var(--forest);
}

.card-kicker {
  font-size: 9px;
}

h3 {
  margin: 42px 0 14px;
  font-size: 39px;
  letter-spacing: -0.05em;
}

.interface-card p {
  max-width: 420px;
  margin: 0;
  color: rgba(20, 37, 31, 0.7);
  font-size: 14px;
  line-height: 1.7;
}

.card-dark p {
  color: rgba(255, 255, 255, 0.66);
}

.card-link {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid currentColor;
  font-size: 12px;
  font-weight: 700;
}

footer {
  width: min(1180px, calc(100% - 48px));
  min-height: 90px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 9px;
}

@media (max-width: 720px) {
  .site-header {
    width: min(100% - 30px, 1180px);
    height: 78px;
  }

  nav > a:not(.nav-cta) {
    display: none;
  }

  main,
  footer {
    width: min(100% - 30px, 1180px);
  }

  .hero {
    padding: 80px 0 60px;
  }

  h1 {
    font-size: clamp(50px, 16vw, 78px);
  }

  .hero-copy {
    font-size: 16px;
  }

  .route-line {
    grid-template-columns: 65px 1fr;
  }

  .route-note {
    display: none;
  }

  .interfaces {
    padding: 100px 0 75px;
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

  .interface-card {
    min-height: 320px;
    padding: 28px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

/* Hyves-inspired landing page */
.landing-body {
  --hyves-blue: #2385bd;
  --hyves-blue-dark: #146895;
  --hyves-blue-pale: #e9f5fc;
  --hyves-orange: #f5a623;
  --hyves-orange-dark: #dd8510;
  --hyves-green: #6fba31;
  --hyves-border: #c9dce9;
  min-height: 100vh;
  color: #344453;
  background:
    radial-gradient(circle at 15% 8%, rgba(255, 255, 255, 0.95) 0 90px, transparent 260px),
    repeating-linear-gradient(0deg, rgba(80, 133, 166, 0.025) 0 1px, transparent 1px 4px),
    #edf3f6;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}

.landing-body a {
  color: var(--hyves-blue);
}

.hyves-header {
  min-height: 86px;
  color: #473514;
  border-top: 1px solid #f8c75b;
  border-bottom: 1px solid #db8a11;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent 52%),
    linear-gradient(180deg, #ffd780 0%, #ffbd4a 100%);
  box-shadow: inset 0 -1px rgba(255, 255, 255, 0.6);
}

.hyves-header-inner,
.hyves-nav-inner,
.hyves-page,
.hyves-footer > div {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hyves-header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.hyves-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: #2b86bc !important;
  transform: rotate(-2deg);
}

.hyves-logo > span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -2px;
  text-shadow: 0 1px #fff;
}

.hyves-logo > span > span {
  color: var(--hyves-orange-dark);
}

.hyves-logo small {
  margin-top: 5px;
  color: #543c18;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.quick-login {
  display: grid;
  grid-template-columns: auto 220px auto auto;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.quick-login > label:first-of-type {
  grid-column: 1;
}

.quick-login > input[type="email"] {
  grid-column: 2;
  width: 220px;
  min-height: 44px;
  padding: 8px 10px;
  color: #293e4a;
  border: 1px solid #84652e;
  border-radius: 3px;
  outline: none;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(57, 37, 8, 0.14);
  font: inherit;
  font-size: 16px;
}

.quick-login .remember {
  grid-column: 3;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.remember input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #287fad;
}

.quick-login button {
  grid-column: 4;
  min-width: 72px;
  min-height: 44px;
  color: #4b4b4b;
  border: 1px solid #b29565;
  border-radius: 4px;
  background: linear-gradient(#fff, #eee6d8);
  box-shadow: 0 1px 2px rgba(81, 48, 5, 0.2);
  cursor: pointer;
}

.quick-login > input[type="email"]:focus-visible,
.quick-login button:focus-visible,
.quick-login .remember:has(input:focus-visible) {
  outline: 3px solid #185f8b;
  outline-offset: 2px;
}

.hyves-nav {
  height: 34px;
  border-top: 1px solid #5ba6d2;
  border-bottom: 1px solid #145b85;
  background: linear-gradient(#5ca8d5, #287cae 52%, #1f6e9d 53%, #348abd);
  box-shadow: 0 2px 4px rgba(37, 77, 100, 0.25);
}

.hyves-nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  height: 100%;
  display: flex;
}

.nav-links a {
  height: 100%;
  padding: 0 18px;
  display: flex;
  align-items: center;
  color: #fff;
  border-right: 1px solid rgba(18, 89, 131, 0.65);
  border-left: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px rgba(0, 0, 0, 0.25);
}

.nav-links a:hover,
.nav-links a.active {
  background: linear-gradient(rgba(255, 255, 255, 0.25), rgba(8, 90, 141, 0.12));
}

.nav-search {
  height: 23px;
  display: flex;
}

.nav-search input {
  width: 165px;
  padding: 2px 5px;
  border: 1px solid #356e8c;
  border-radius: 3px 0 0 3px;
  background: #fff;
}

.nav-search button {
  width: 27px;
  color: #395562;
  border: 1px solid #356e8c;
  border-left: 0;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(#fff, #dfeaf0);
  font-size: 20px;
  line-height: 16px;
}

.hyves-page {
  min-height: calc(100vh - 188px);
  margin-top: 20px;
  margin-bottom: 24px;
  padding: 0 14px 18px;
  border: 1px solid #d4dde3;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 7px rgba(61, 92, 111, 0.11);
}

.welcome-strip {
  min-height: 124px;
  padding: 19px 14px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid #dae5eb;
}

.crumb {
  color: #91a3ad;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.welcome-strip h1 {
  margin: 5px 0 6px;
  color: #2e4050;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(27px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.welcome-strip p {
  max-width: 650px;
  margin: 0;
  color: #6a7a85;
  font-size: 13px;
  line-height: 1.45;
}

.signup-button {
  flex: 0 0 auto;
  padding: 10px 18px 9px;
  color: white !important;
  border: 1px solid #5c9e27;
  border-radius: 6px;
  background: linear-gradient(#91d54b, #5baa21);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.45), 0 1px 2px rgba(65, 104, 31, 0.24);
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 1px rgba(58, 99, 19, 0.7);
}

.signup-button:hover {
  background: linear-gradient(#9dde57, #67b62a);
}

.hyves-columns {
  padding-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 2.12fr) minmax(260px, 0.98fr);
  gap: 14px;
}

.main-column,
.side-column {
  display: grid;
  align-content: start;
  gap: 14px;
}

.hyves-panel {
  overflow: hidden;
  border: 1px solid var(--hyves-border);
  background: #fff;
  box-shadow: 0 1px 2px rgba(41, 90, 119, 0.05);
}

.panel-tabs,
.panel-heading {
  min-height: 33px;
  border-bottom: 1px solid #c7dce9;
  background: linear-gradient(#fdfefe, #e9f3f9);
}

.panel-tabs {
  padding-left: 10px;
  display: flex;
  align-items: end;
  gap: 2px;
}

.panel-tabs a,
.panel-tabs span {
  height: 31px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
}

.panel-tabs .selected {
  position: relative;
  top: 1px;
  color: var(--hyves-orange-dark);
  border: 1px solid #c7dce9;
  border-bottom-color: white;
  border-radius: 4px 4px 0 0;
  background: white;
}

.panel-heading {
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #3a80aa;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
}

.panel-heading > span {
  color: #ee9a18;
  font-family: Arial, Helvetica, sans-serif;
}

.intro-content {
  padding: 17px 15px 10px;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 15px;
}

.feature-icon {
  position: relative;
  width: 68px;
  height: 64px;
  display: grid;
  place-items: center;
  color: white;
  border: 1px solid #1f78aa;
  border-radius: 8px;
  background: linear-gradient(140deg, #51b3e7, #147aad);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.feature-icon span {
  font-family: Georgia, serif;
  font-size: 39px;
  font-weight: 700;
}

.feature-icon i {
  position: absolute;
  width: 7px;
  height: 7px;
  right: 7px;
  border-radius: 50%;
  background: #ffc348;
}

.feature-icon i:nth-of-type(1) { top: 9px; }
.feature-icon i:nth-of-type(2) { top: 20px; }
.feature-icon i:nth-of-type(3) { top: 31px; }

.intro-content h2 {
  margin: 0 0 2px;
  color: #338ac1;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(21px, 2.5vw, 28px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.intro-content .meta {
  margin: 0 0 7px;
  color: #9aa7af;
  font-size: 9px;
}

.intro-content p:last-child {
  margin: 0;
  color: #53646e;
  font-size: 12px;
  line-height: 1.5;
}

.news-list {
  margin: 0;
  padding: 4px 15px 13px 28px;
  list-style: none;
}

.news-list li {
  position: relative;
  min-height: 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px dotted #dce6eb;
  font-size: 11px;
}

.news-list li::before,
.panel-links a::before {
  content: "›";
  color: #ed9517;
  font-size: 19px;
  font-weight: 700;
}

.news-list li::before {
  position: absolute;
  left: -13px;
}

.news-list time {
  color: #a4b0b7;
  font-size: 9px;
}

.tool-grid {
  padding: 19px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tool-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  color: #33434c !important;
}

.tool-card:hover strong {
  color: var(--hyves-blue);
}

.tool-visual {
  position: relative;
  height: 132px;
  margin-bottom: 8px;
  overflow: hidden;
  display: block;
  border: 1px solid #b8cbd6;
  background: #ecf5fa;
  box-shadow: inset 0 0 18px rgba(27, 86, 121, 0.12);
}

.tool-card strong {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-card small {
  margin-top: 2px;
  color: #86959e;
  font-size: 10px;
}

.tool-card-blue .tool-visual {
  background:
    linear-gradient(135deg, rgba(255,255,255,.35) 25%, transparent 25%) 0 0 / 20px 20px,
    linear-gradient(160deg, #7dcff3, #1489c7);
}

.bubble {
  position: absolute;
  display: grid;
  place-items: center;
  color: #fff;
  border: 3px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: #f6a31d;
  font-style: normal;
  font-weight: 700;
  box-shadow: 0 3px 5px rgba(16, 72, 106, 0.28);
}

.bubble-one { width: 66px; height: 66px; left: 18%; top: 28px; font-size: 26px; }
.bubble-two { width: 48px; height: 48px; right: 19%; top: 15px; background: #79b832; }
.bubble-three { width: 42px; height: 42px; right: 13%; bottom: 13px; background: #2c90c8; }

.tool-card-orange .tool-visual {
  background: linear-gradient(150deg, #ffd981, #f2a421);
}

.share-visual {
  padding: 34px 18px 16px;
  color: #d9edf9;
  background: linear-gradient(150deg, #ffcd6c, #f09916);
}

.share-visual::before {
  content: "";
  position: absolute;
  inset: 22px 13px 15px;
  border: 4px solid #dcebf2;
  border-radius: 5px;
  background: #326c8a;
  box-shadow: 0 4px 0 rgba(82, 92, 76, 0.18);
}

.share-visual i {
  position: absolute;
  z-index: 1;
  left: 22px;
  top: 31px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffae2c;
  box-shadow: 12px 0 #8bc748, 24px 0 #66b4df;
}

.share-visual b,
.share-visual em {
  position: relative;
  z-index: 1;
  top: 24px;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  font-style: normal;
}

.share-visual b { color: #d7f276; }
.share-visual em { margin-left: 7px; color: white; }

.tool-card-green .tool-visual {
  background: linear-gradient(160deg, #d8ef9d, #7bbf38);
}

.pulse-visual i {
  position: absolute;
  top: 65px;
  left: 8%;
  right: 8%;
  height: 3px;
  background: white;
  transform: rotate(-2deg);
}

.pulse-visual i::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  left: 42%;
  top: -19px;
  border-top: 4px solid #fff;
  border-right: 4px solid #fff;
  transform: rotate(130deg) skew(-12deg);
}

.pulse-visual b {
  position: absolute;
  right: 14px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #5a9f27;
  border-radius: 50%;
  background: white;
  font-size: 21px;
}

.panel-links {
  padding: 0 18px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  border-top: 1px dotted #cfdee7;
}

.panel-links a {
  padding-top: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
}

.connection-list {
  padding: 4px 13px 9px;
}

.connection-list > a {
  padding: 10px 0;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 9px;
  align-items: center;
  border-bottom: 1px dotted #cfdee7;
}

.connection-list > a:last-child {
  border-bottom: 0;
}

.connection-list strong,
.connection-list small {
  display: block;
}

.connection-list strong {
  color: #2d4050;
  font-size: 12px;
}

.connection-list a:hover strong {
  color: var(--hyves-blue);
}

.connection-list small {
  margin-top: 2px;
  color: #78909d;
  font-size: 10px;
}

.mini-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: white;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #2c92c6;
  box-shadow: 0 0 0 1px #94b9cd;
  font-size: 16px;
  font-weight: 700;
}

.key-icon { background: #ef9e21; }
.docs-icon { background: #75ad36; font-size: 10px; }

.profile-row {
  padding: 13px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.profile-tile {
  position: relative;
  aspect-ratio: 1 / 1.03;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid #aebfc9;
  background: #ddd;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.15);
}

.profile-tile span,
.profile-tile b {
  color: white;
  font-size: clamp(20px, 3vw, 34px);
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.25);
}

.profile-tile i {
  position: absolute;
  inset: auto 0 0;
  height: 13px;
  background: rgba(255, 255, 255, 0.38);
}

.robot-profile { background: linear-gradient(135deg, #1a6a90, #64c8ed); }
.orange-profile { background: linear-gradient(135deg, #f7c85a, #ee8a18); }
.human-profile { background: linear-gradient(135deg, #83c84c, #297ba7); }

.people-panel > p {
  margin: 0 13px 13px;
  color: #71838d;
  font-size: 10px;
  line-height: 1.45;
}

.people-panel > p b {
  color: #3a5362;
}

.service-line {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.large-online-dot {
  width: 31px;
  height: 31px;
  border: 5px solid #dcf2ca;
  border-radius: 50%;
  background: #64b72a;
  box-shadow: 0 0 0 1px #88bd61;
}

.service-line strong,
.service-line small {
  display: block;
}

.service-line strong {
  color: #3d5665;
  font-size: 12px;
}

.service-line small {
  margin-top: 2px;
  color: #92a0a8;
  font-size: 9px;
}

.hyves-footer {
  min-height: 56px;
  color: #7d929f;
  border-top: 1px solid #c3d3dc;
  background: #e5eef3;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  letter-spacing: 0;
  text-transform: none;
}

.hyves-footer > div {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hyves-footer nav {
  display: flex;
  gap: 18px;
  font-size: 10px;
}

.hyves-footer nav a {
  color: #428bb4;
}

.sparse-home {
  min-height: calc(100vh - 188px);
}

.sparse-welcome {
  min-height: 132px;
}

.empty-panel {
  min-height: 230px;
  margin-top: 14px;
}

.empty-panel-content {
  min-height: 195px;
  padding: 22px 16px;
  color: #778a95;
  font-size: 11px;
}

.empty-panel-content p {
  margin: 0;
}

.datepoll-feature {
  margin-top: 14px;
}

.datepoll-feature-content {
  min-height: 280px;
  padding: 38px clamp(24px, 6vw, 72px);
  display: grid;
  grid-template-columns: 190px minmax(0, 520px);
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
  background:
    radial-gradient(circle at 16% 50%, rgba(58, 156, 207, 0.09), transparent 28%),
    #fff;
}

.datepoll-calendar {
  position: relative;
  width: 176px;
  height: 172px;
  display: grid;
  place-items: center;
  color: #328abd;
  border: 1px solid #95b9ce;
  border-radius: 8px;
  background:
    linear-gradient(#fff 0 39px, transparent 39px),
    repeating-linear-gradient(90deg, transparent 0 43px, #dceaf1 43px 44px),
    repeating-linear-gradient(0deg, #f7fbfd 0 43px, #dceaf1 43px 44px);
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.7),
    0 8px 20px rgba(37, 99, 133, 0.13);
}

.calendar-top {
  position: absolute;
  inset: 0 0 auto;
  height: 41px;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(#5eb1da, #287fad);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.4);
}

.calendar-top i {
  position: absolute;
  top: -9px;
  width: 13px;
  height: 25px;
  border: 3px solid #f6a21b;
  border-radius: 7px;
  background: #fff;
}

.calendar-top i:first-child {
  left: 35px;
}

.calendar-top i:last-child {
  right: 35px;
}

.datepoll-calendar > strong {
  position: relative;
  top: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 64px;
  font-weight: 700;
  text-shadow: 0 2px #fff;
}

.calendar-marks {
  position: absolute;
  right: 10px;
  bottom: 9px;
  display: flex;
  gap: 4px;
}

.calendar-marks span {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #72b832;
  box-shadow: 0 0 0 1px rgba(69, 111, 133, 0.35);
  font-size: 11px;
  font-weight: 700;
}

.calendar-marks span:nth-child(2) {
  background: #efa01d;
}

.calendar-marks span:nth-child(3) {
  background: #ce6860;
}

.datepoll-kicker {
  color: #ee9413;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.datepoll-copy h2 {
  margin: 7px 0 10px;
  color: #2f4656;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(28px, 4vw, 43px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.datepoll-copy p {
  max-width: 470px;
  margin: 0;
  color: #687d89;
  font-size: 13px;
  line-height: 1.55;
}

.datepoll-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.datepoll-secondary {
  font-size: 11px;
  font-weight: 700;
}

.mcp-feature {
  margin-top: 14px;
}

.mcp-feature-content {
  padding: 30px clamp(24px, 5vw, 58px) 32px;
}

.mcp-intro {
  padding-bottom: 24px;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: center;
  border-bottom: 1px dotted #c6d9e4;
}

.mcp-badge {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 3px solid #fff;
  border-radius: 50%;
  background: linear-gradient(#58b4e1, #217fad);
  box-shadow: 0 0 0 1px #7eafca, 0 3px 8px rgba(40, 100, 132, 0.18);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
}

.mcp-intro h2 {
  margin: 5px 0 5px;
  color: #2f4656;
  font: 700 clamp(23px, 3vw, 32px)/1.08 Arial, Helvetica, sans-serif;
  letter-spacing: -0.035em;
}

.mcp-intro p {
  margin: 0;
  color: #6c818d;
  font-size: 12px;
}

.chatgpt-cta-row {
  padding: 20px 0 4px;
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(220px, 1fr);
  gap: 20px;
  align-items: center;
}

.mcp-chatgpt-button {
  min-height: 72px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #fff !important;
  border: 1px solid #347f25;
  border-radius: 7px;
  background: linear-gradient(#82cf42, #4ea820);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.45),
    0 3px 8px rgba(61, 111, 31, 0.22);
  text-shadow: 0 1px rgba(42, 89, 17, 0.65);
}

.mcp-chatgpt-button:hover {
  background: linear-gradient(#90d94f, #59b528);
}

.mcp-chatgpt-button strong,
.mcp-chatgpt-button small {
  display: block;
}

.mcp-chatgpt-button strong {
  font-size: 17px;
}

.mcp-chatgpt-button small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 10px;
  font-weight: 400;
}

.mcp-chatgpt-button b {
  font-size: 22px;
}

.mcp-chatgpt-button:focus-visible {
  outline: 3px solid #185f8b;
  outline-offset: 3px;
}

.chatgpt-cta-row > p {
  margin: 0;
  color: #607784;
  font-size: 11px;
  line-height: 1.55;
}

.chatgpt-cta-row > p b {
  color: #3d5665;
}

.mcp-steps {
  margin: 0;
  padding: 4px 0 0;
  list-style: none;
}

.mcp-steps > li {
  padding: 17px 0;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px dotted #c6d9e4;
}

.mcp-steps > li > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #ee9d1d;
  box-shadow: 0 0 0 1px #d2a24f;
  font-size: 11px;
  font-weight: 700;
}

.mcp-steps strong {
  display: block;
  color: #3a5362;
  font-size: 12px;
}

.mcp-steps p {
  margin: 4px 0 0;
  color: #758a96;
  font-size: 11px;
  line-height: 1.45;
}

.mcp-endpoint {
  max-width: 620px;
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr auto;
}

.mcp-endpoint code {
  min-height: 44px;
  padding: 0 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: #e8f6fc;
  border: 1px solid #245d79;
  border-radius: 3px 0 0 3px;
  background: #326c8a;
  font: 12px "DM Mono", monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-mcp-button {
  min-width: 70px;
  min-height: 44px;
  color: #315263;
  border: 1px solid #9db6c5;
  border-left: 0;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(#fff, #e8f1f6);
  font: 700 11px Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.copy-mcp-button:focus-visible {
  position: relative;
  outline: 3px solid #185f8b;
  outline-offset: 2px;
}

.mcp-help {
  padding-top: 17px;
  text-align: right;
}

.mcp-help a {
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 780px) {
  .hyves-header {
    height: auto;
  }

  .hyves-header-inner {
    min-height: 76px;
  }

  .quick-login {
    display: none;
  }

  .hyves-nav {
    height: auto;
  }

  .hyves-nav-inner {
    min-height: 40px;
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
  }

  .nav-links a {
    min-height: 40px;
    padding: 0 14px;
    white-space: nowrap;
  }

  .nav-search {
    display: none;
  }

  .hyves-page {
    width: calc(100% - 16px);
    margin-top: 8px;
    padding: 0 8px 12px;
  }

  .welcome-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

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

  .side-column {
    grid-template-columns: 1fr 1fr;
  }

  .service-card {
    grid-column: 1 / -1;
  }

  .datepoll-feature-content {
    grid-template-columns: 140px 1fr;
    gap: 25px;
  }

  .datepoll-calendar {
    width: 136px;
    height: 139px;
  }
}

@media (max-width: 520px) {
  .hyves-header-inner,
  .hyves-nav-inner,
  .hyves-footer > div {
    width: calc(100% - 20px);
  }

  .hyves-logo {
    align-items: flex-start;
  }

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

  .tool-visual {
    height: 155px;
  }

  .side-column {
    grid-template-columns: 1fr;
  }

  .service-card {
    grid-column: auto;
  }

  .intro-content {
    grid-template-columns: 1fr;
  }

  .feature-icon {
    width: 58px;
    height: 54px;
  }

  .news-list time {
    display: none;
  }

  .hyves-footer > div {
    padding: 13px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .datepoll-feature-content {
    padding: 30px 20px 36px;
    grid-template-columns: 1fr;
  }

  .datepoll-calendar {
    width: 142px;
    height: 143px;
  }

  .mcp-feature-content {
    padding: 24px 16px;
  }

  .mcp-intro {
    grid-template-columns: 1fr;
  }

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

  .mcp-endpoint {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.back-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.auth-main,
.account-main {
  min-height: calc(100vh - 186px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.72fr);
  gap: 10vw;
  align-items: center;
  padding: 65px 0;
}

.auth-intro h1,
.account-heading h1 {
  font-size: clamp(58px, 7vw, 98px);
}

.auth-intro p {
  max-width: 500px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.auth-panel,
.account-card {
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 25px 70px rgba(20, 37, 31, 0.09);
  backdrop-filter: blur(12px);
}

.auth-panel-heading {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.auth-panel-heading h2 {
  margin-top: 13px;
  font-size: 34px;
}

.form-error {
  margin: 24px 0 -2px;
  padding: 12px 14px;
  color: #7f241f;
  border: 1px solid rgba(154, 51, 43, 0.25);
  border-radius: 4px;
  background: rgba(255, 219, 213, 0.55);
  font-size: 12px;
  line-height: 1.5;
}

.auth-form {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.auth-form label {
  display: grid;
  gap: 9px;
}

.auth-form label > span {
  font-family: "DM Mono", monospace;
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-form input {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
  background: rgba(244, 241, 232, 0.6);
  font: inherit;
  font-size: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.auth-form input::placeholder {
  color: #92a098;
}

.auth-form input:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(20, 58, 44, 0.1);
}

.auth-form button,
.logout-button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.auth-form button {
  height: 54px;
  margin-top: 4px;
  padding: 0 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  border-radius: 4px;
  background: var(--forest);
  font-size: 13px;
  font-weight: 700;
}

.auth-switch {
  margin: 25px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.auth-switch a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  font-weight: 700;
}

.logout-button {
  font-size: 12px;
}

.account-card .card-kicker {
  color: var(--muted);
}

.account-card dl {
  margin: 28px 0 35px;
}

.account-card dl > div {
  padding: 19px 0;
  display: grid;
  grid-template-columns: 135px 1fr;
  border-bottom: 1px solid var(--line);
}

.account-card dt {
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.account-card dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 600;
}

.account-stack {
  display: grid;
  gap: 18px;
}

.connection-card {
  padding-bottom: 22px;
}

.connection-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.connection-count,
.consent-client-id {
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.connection-list article {
  padding: 19px 0;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.connection-client-icon,
.client-icon {
  display: grid;
  place-items: center;
  color: var(--acid);
  background: var(--forest);
  font-weight: 700;
}

.connection-client-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 13px;
}

.connection-details {
  display: grid;
  gap: 3px;
}

.connection-details strong {
  font-size: 13px;
}

.connection-details span,
.connection-details small {
  color: var(--muted);
  font-size: 10px;
}

.disconnect-button {
  padding: 7px 10px;
  color: #852c25;
  border: 1px solid rgba(133, 44, 37, 0.25);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
}

.empty-connections {
  padding: 28px 0 10px;
}

.empty-connections strong {
  font-size: 13px;
}

.empty-connections p {
  margin: 8px 0 15px;
  color: var(--muted);
  font-size: 11px;
}

.empty-connections code {
  display: block;
  padding: 10px 12px;
  overflow-wrap: anywhere;
  color: var(--mint);
  border-radius: 3px;
  background: var(--forest);
  font-size: 10px;
}

.consent-main {
  width: min(680px, calc(100% - 30px));
  min-height: calc(100vh - 186px);
  margin: auto;
  display: grid;
  place-items: center;
  padding: 60px 0;
}

.consent-card {
  width: 100%;
  padding: 45px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 25px 70px rgba(20, 37, 31, 0.1);
}

.client-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 35px;
  grid-template-columns: 12px 12px;
  gap: 4px;
  border-radius: 50%;
}

.client-icon span {
  height: 20px;
  border: 2px solid var(--acid);
  border-radius: 10px;
}

.consent-card h1 {
  font-size: clamp(48px, 8vw, 74px);
}

.consent-copy {
  margin: 28px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

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

.permission-list {
  border-top: 1px solid var(--line);
}

.permission-list > div {
  padding: 18px 0;
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.permission-check {
  color: #277c56;
  font-weight: 700;
}

.permission-list strong,
.permission-list small {
  display: block;
}

.permission-list strong {
  font-size: 12px;
}

.permission-list small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.consent-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 28px;
}

.consent-actions button {
  cursor: pointer;
}

.consent-client-id {
  margin: 22px 0 0;
  overflow-wrap: anywhere;
  text-align: center;
}

@media (max-width: 820px) {
  .auth-main,
  .account-main {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 55px;
    padding: 70px 0;
  }

  .auth-intro h1,
  .account-heading h1 {
    font-size: clamp(56px, 16vw, 78px);
  }

  .auth-panel,
  .account-card {
    padding: 28px;
  }

  .consent-card {
    padding: 28px;
  }

  .connection-list article {
    grid-template-columns: 38px 1fr;
  }

  .connection-list form {
    grid-column: 2;
  }
}

/* Shared Hyves application shell */
.app-shell .app-page {
  min-height: calc(100vh - 210px);
  margin-top: 20px;
  margin-bottom: 24px;
  padding: 0 14px 28px;
}

.member-actions,
.guest-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.member-actions > span {
  margin-right: 5px;
}

.member-actions a,
.guest-actions a,
.member-actions button {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  color: #315263;
  border: 1px solid #b68a44;
  border-radius: 4px;
  background: linear-gradient(#fff, #eee6d8);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.6);
  font: 700 12px Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.guest-actions .header-login {
  color: #fff;
  border-color: #5e9e28;
  background: linear-gradient(#91d54b, #5baa21);
  text-shadow: 0 1px rgba(58, 99, 19, 0.6);
}

.member-actions form {
  margin: 0;
}

.member-actions a:focus-visible,
.guest-actions a:focus-visible,
.member-actions button:focus-visible,
.hyves-button:focus-visible,
.secondary-button:focus-visible,
.disconnect-button:focus-visible,
.app-shell input:focus-visible {
  outline: 3px solid #185f8b;
  outline-offset: 2px;
}

.app-page-heading {
  min-height: 138px;
  padding: 24px 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid #dae5eb;
}

.app-page-heading.compact-heading {
  min-height: 118px;
}

.app-page-heading h1 {
  margin: 6px 0 5px;
  color: #2e4050;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(29px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.app-page-heading p {
  margin: 0;
  color: #6a7a85;
  font-size: 13px;
  line-height: 1.45;
}

.account-layout {
  padding-top: 14px;
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
  align-items: start;
}

.panel-heading small {
  margin-left: auto;
  color: #8197a4;
  font: 400 10px Arial, Helvetica, sans-serif;
}

.account-panel-content {
  padding: 18px;
}

.hyves-details {
  margin: 0 0 22px;
}

.hyves-details > div {
  min-height: 44px;
  padding: 11px 0;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: center;
  border-bottom: 1px dotted #cbdde7;
}

.hyves-details dt {
  color: #758995;
  font-size: 10px;
  font-weight: 700;
}

.hyves-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #344b59;
  font-size: 12px;
  font-weight: 700;
}

.hyves-form {
  display: grid;
  gap: 18px;
}

.hyves-form altcha-widget {
  display: block;
  margin: 4px 0 2px;
  max-width: 100%;
  --altcha-max-width: 100%;
}

.verification-code-form {
  margin-top: 18px;
}

.verification-code-form input[name="code"] {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2em;
  max-width: 12ch;
  text-align: center;
}

.hyves-form label {
  display: grid;
  gap: 7px;
}

.hyves-form label > span,
.hyves-datepoll-form label > span,
.hyves-datepoll-form legend {
  color: #4f6877;
  font: 700 11px Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

.hyves-form input,
.hyves-datepoll-form input {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  color: #2d4654;
  border: 1px solid #9eb8c7;
  border-radius: 3px;
  outline: none;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(41, 81, 105, 0.1);
  font: 16px Arial, Helvetica, sans-serif;
}

.hyves-button {
  min-height: 44px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  border: 1px solid #5c9e27;
  border-radius: 5px;
  background: linear-gradient(#91d54b, #5baa21);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.45);
  font: 700 12px Arial, Helvetica, sans-serif;
  text-shadow: 0 1px rgba(58, 99, 19, 0.7);
  cursor: pointer;
  text-decoration: none;
}

.wide-button {
  width: 100%;
}

.inline-button {
  margin-top: 14px;
}

.profile-form {
  margin-top: 0;
  grid-template-columns: 1fr auto;
}

.account-connections article {
  min-height: 70px;
  padding: 12px 0;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px dotted #cbdde7;
}

.account-connections article:last-child {
  border-bottom: 0;
}

.connection-client-icon {
  color: #fff;
  border: 2px solid #fff;
  background: #2c92c6;
  box-shadow: 0 0 0 1px #94b9cd;
}

.connection-details strong {
  color: #344b59;
}

.connection-details span,
.connection-details small {
  color: #80929d;
}

.disconnect-button,
.secondary-button {
  min-height: 40px;
  padding: 0 13px;
  color: #3e5968;
  border: 1px solid #9db6c5;
  border-radius: 4px;
  background: linear-gradient(#fff, #e8f1f6);
  font: 700 11px Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.disconnect-button,
.danger-button {
  color: #963e35;
}

.hyves-empty {
  padding: 28px 10px;
  color: #758995;
  text-align: center;
}

.hyves-empty strong {
  color: #3d5665;
  font-size: 15px;
}

.hyves-empty p {
  margin: 7px 0 0;
  font-size: 11px;
}

.auth-hyves-panel,
.consent-hyves-panel {
  width: min(540px, calc(100% - 28px));
  margin: 14px auto 0;
}

.auth-hyves-content,
.consent-hyves-content {
  padding: 28px;
}

.auth-switch {
  margin: 22px 0 0;
  color: #748894;
}

.auth-switch a {
  color: var(--hyves-blue);
  border-bottom-color: var(--hyves-blue);
}

.form-error {
  margin: 0 0 18px;
  border-radius: 3px;
  font-size: 12px;
}

.form-success {
  padding: 18px;
  color: #315b35;
  border: 1px solid #9bc39d;
  border-radius: 3px;
  background: #eff9ef;
}

.form-success h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.form-success p {
  margin: 8px 0 0;
}

.consent-hyves-panel {
  width: min(650px, calc(100% - 28px));
}

.consent-hyves-content h2 {
  margin: 16px 0 0;
  color: #2f4656;
  font: 700 26px Arial, Helvetica, sans-serif;
}

.consent-app-icon {
  width: 48px;
  height: 48px;
  font-size: 18px;
}

.consent-copy {
  color: #687d89;
}

.permission-list {
  border-color: #cbdde7;
}

.permission-list > div {
  border-color: #cbdde7;
}

.consent-actions {
  grid-template-columns: 1fr auto;
}

.datepoll-list-content {
  padding: 16px;
}

.datepoll-cards {
  gap: 12px;
}

.datepoll-card {
  min-height: 190px;
  padding: 18px;
  border: 1px solid #bdd2df;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(41, 90, 119, 0.07);
}

.datepoll-card:hover {
  border-color: #6ea8c8;
  transform: translateY(-2px);
}

.datepoll-card h2 {
  margin: 25px 0 8px;
  color: #328ac0;
  font: 700 21px Arial, Helvetica, sans-serif;
}

.datepoll-card p,
.datepoll-card small {
  color: #78909d;
  font-size: 11px;
}

.datepoll-state,
.responding-as {
  padding: 5px 9px;
  color: #3c7620;
  border: 1px solid #a1c986;
  border-radius: 3px;
  background: #e7f5da;
  font: 700 9px Arial, Helvetica, sans-serif;
  letter-spacing: 0.03em;
}

.datepoll-state.is-closed {
  color: #77868f;
  border-color: #c6d0d5;
  background: #edf1f3;
}

.large-empty {
  min-height: 240px;
  display: grid;
  place-items: center;
  align-content: center;
}

.hyves-datepoll-form {
  max-width: none;
  padding: 26px;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.hyves-datepoll-form .mode-picker {
  padding: 14px;
  border: 1px solid #c4d8e4;
  background: #f5fafc;
}

.hyves-datepoll-form .mode-picker input {
  width: 18px;
  min-height: 18px;
}

.option-heading {
  padding-bottom: 9px;
  border-bottom: 1px solid #cbdde7;
}

.option-heading strong {
  color: #3a5362;
  font-size: 13px;
}

.option-edit-row {
  border-color: #d4e2ea;
}

.remove-option {
  min-width: 40px;
  min-height: 40px;
  color: #9b443d;
}

.poll-detail-heading .share-actions {
  padding-top: 0;
}

.poll-section {
  margin-top: 14px;
}

.poll-panel-content {
  padding: 20px;
}

.section-help {
  margin: 0;
  color: #778c98;
  font-size: 11px;
}

.response-option {
  border-color: #d2e1e9;
}

.answer-picker label {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 4px;
  border-color: #aac1ce;
  border-radius: 3px;
  background: #f7fbfd;
  font-size: 11px;
}

.answer-picker input {
  width: 17px;
  height: 17px;
  accent-color: #4f9c25;
}

.results-table th,
.results-table td {
  border-color: #cadde7;
}

.results-table thead {
  color: #3a80aa;
  background: #edf6fb;
}

.result-yes {
  background: #e2f3d7;
}

.result-maybe {
  background: #fff0c9;
}

.result-no {
  background: #f8e3e0;
}

.close-poll-form {
  display: flex;
  justify-content: flex-end;
}

.assistant-prompt {
  padding: 0;
  border-radius: 0;
  background: #fff;
}

.assistant-prompt summary {
  min-height: 42px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  color: #3a80aa;
  border-bottom: 1px solid #c7dce9;
  background: linear-gradient(#fdfefe, #e9f3f9);
  font: 700 12px Arial, Helvetica, sans-serif;
}

.assistant-prompt pre {
  margin: 14px;
  color: #d9edf9;
  border-radius: 3px;
  background: #326c8a;
}

@media (max-width: 780px) {
  .app-shell .app-page {
    width: calc(100% - 16px);
    margin-top: 8px;
  }

  .member-actions > span {
    display: none;
  }

  .app-page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

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

  .account-connections article {
    grid-template-columns: 38px 1fr;
  }

  .account-connections article form {
    grid-column: 2;
  }

  .datepoll-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .member-actions,
  .guest-actions {
    gap: 5px;
  }

  .member-actions a,
  .guest-actions a,
  .member-actions button {
    padding: 0 9px;
    font-size: 11px;
  }

  .guest-actions a:first-child {
    display: none;
  }

  .app-page-heading {
    padding-inline: 8px;
  }

  .auth-hyves-panel,
  .consent-hyves-panel {
    width: 100%;
  }

  .auth-hyves-content,
  .consent-hyves-content,
  .hyves-datepoll-form,
  .poll-panel-content {
    padding: 18px 14px;
  }

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

  .option-edit-row {
    grid-template-columns: 24px 1fr 40px;
  }

  .response-option {
    grid-template-columns: 1fr;
  }

  .answer-picker {
    flex-wrap: wrap;
  }

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

/* DatePoll: intentionally small, server-rendered scheduling UI */
.datepoll-main {
  padding: 72px 0 110px;
}

.datepoll-page-heading {
  max-width: 720px;
  margin-bottom: 44px;
}

.datepoll-page-heading h1,
.shared-heading h1 {
  margin: 10px 0;
  font-size: clamp(46px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.datepoll-page-heading p,
.shared-heading p,
.option-heading p {
  color: var(--muted);
}

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

.datepoll-card,
.datepoll-empty,
.datepoll-form,
.datepoll-response-card,
.results-section,
.results-locked,
.assistant-prompt {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
}

.datepoll-card {
  min-height: 230px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  transition: transform 160ms ease, border-color 160ms ease;
}

.datepoll-card:hover {
  transform: translateY(-3px);
  border-color: var(--forest);
}

.datepoll-card h2 {
  margin: 32px 0 8px;
  font-size: 24px;
}

.datepoll-card p,
.datepoll-card small {
  color: var(--muted);
}

.datepoll-card small {
  margin-top: auto;
}

.datepoll-state,
.responding-as {
  width: fit-content;
  padding: 6px 10px;
  color: #175d40;
  border-radius: 999px;
  background: var(--mint);
  font: 500 10px "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.datepoll-state.is-closed {
  color: var(--muted);
  background: #e5e2d9;
}

.datepoll-empty {
  padding: 48px;
}

.datepoll-empty.compact {
  padding: 24px;
}

.primary-link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.datepoll-form {
  max-width: 820px;
  padding: 34px;
}

.datepoll-form label > span,
.datepoll-form legend,
.profile-form label > span {
  display: block;
  margin-bottom: 8px;
  font: 500 11px "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.datepoll-form input,
.profile-form input {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  font: inherit;
}

.wide-field {
  display: block;
  margin-bottom: 28px;
}

.mode-picker {
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  gap: 24px;
  border: 0;
}

.mode-picker label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mode-picker input {
  width: auto;
}

.option-heading,
.shared-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.option-heading p {
  margin: 5px 0 0;
  font-size: 13px;
}

.secondary-button {
  padding: 10px 13px;
  cursor: pointer;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  font: 600 12px "Manrope", sans-serif;
}

.option-editor {
  margin: 18px 0 30px;
}

.option-edit-row {
  padding: 10px 0;
  display: grid;
  grid-template-columns: 28px minmax(190px, 0.8fr) 110px 1.2fr 34px;
  gap: 9px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.option-index {
  color: var(--muted);
  font: 11px "DM Mono", monospace;
}

.remove-option {
  cursor: pointer;
  border: 0;
  background: transparent;
  font-size: 22px;
}

.datepoll-submit {
  width: 100%;
  padding: 15px 18px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  color: white;
  border: 0;
  border-radius: 10px;
  background: var(--forest);
  font: 700 14px "Manrope", sans-serif;
}

.shared-heading {
  margin-bottom: 38px;
}

.shared-heading > div:first-child {
  max-width: 760px;
}

.share-actions {
  padding-top: 28px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.datepoll-response-card,
.results-section {
  margin-top: 20px;
  padding: 30px;
}

.response-options {
  margin: 20px 0;
}

.response-option {
  padding: 20px 0;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.response-option legend {
  padding: 0;
  display: contents;
}

.response-option legend strong,
.response-option legend span,
.response-option legend small {
  display: block;
}

.response-option legend span,
.response-option legend small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.answer-picker {
  display: flex;
  gap: 5px;
  align-items: center;
}

.answer-picker label {
  padding: 8px 10px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
}

.answer-picker input {
  accent-color: var(--forest);
}

.closed-notice,
.results-locked {
  padding: 24px;
  color: var(--muted);
}

.results-locked {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.results-scroll {
  margin-top: 20px;
  overflow-x: auto;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.results-table th,
.results-table td {
  min-width: 76px;
  padding: 13px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.results-table th:first-child {
  min-width: 160px;
  text-align: left;
}

.result-yes {
  color: #17623f;
  background: rgba(168, 244, 210, 0.38);
}

.result-maybe {
  background: rgba(216, 255, 98, 0.32);
}

.result-no {
  color: #8f4238;
}

.summary-row {
  font-family: "DM Mono", monospace;
}

.danger-button {
  color: #8f4238;
}

.assistant-prompt {
  margin-top: 20px;
  padding: 20px;
}

.assistant-prompt summary {
  cursor: pointer;
  font-weight: 700;
}

.assistant-prompt pre {
  margin: 18px 0 0;
  padding: 16px;
  overflow-x: auto;
  white-space: pre-wrap;
  border-radius: 10px;
  background: var(--forest);
  color: white;
  font: 12px/1.6 "DM Mono", monospace;
}

.profile-form {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

@media (max-width: 820px) {
  .datepoll-cards {
    grid-template-columns: 1fr;
  }

  .shared-heading,
  .option-heading,
  .results-locked {
    flex-direction: column;
  }

  .share-actions {
    padding-top: 0;
    justify-content: flex-start;
  }

  .option-edit-row {
    grid-template-columns: 24px 1fr 34px;
  }

  .option-edit-row input[name="option_location"] {
    grid-column: 2;
  }

  .option-edit-row .duration-value {
    grid-column: 2;
  }

  .remove-option {
    grid-column: 3;
    grid-row: 1;
  }

  .response-option {
    grid-template-columns: 1fr;
  }
}

/* Keep DatePoll pages inside the shared Hyves visual system. */
.app-shell .datepoll-card {
  min-height: 190px;
  padding: 18px;
  border: 1px solid #bdd2df;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(41, 90, 119, 0.07);
}

.app-shell .datepoll-card h2 {
  margin: 25px 0 8px;
  color: #328ac0;
  font: 700 21px Arial, Helvetica, sans-serif;
}

.app-shell .datepoll-state,
.app-shell .responding-as {
  padding: 5px 9px;
  color: #3c7620;
  border: 1px solid #a1c986;
  border-radius: 3px;
  background: #e7f5da;
  font: 700 9px Arial, Helvetica, sans-serif;
  letter-spacing: 0.03em;
}

.app-shell .datepoll-state.is-closed {
  color: #77868f;
  border-color: #c6d0d5;
  background: #edf1f3;
}

.app-shell .hyves-datepoll-form {
  max-width: none;
  padding: 26px;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.app-shell .hyves-datepoll-form input {
  min-height: 44px;
  padding: 9px 11px;
  color: #2d4654;
  border: 1px solid #9eb8c7;
  border-radius: 3px;
  background: #fff;
  font: 16px Arial, Helvetica, sans-serif;
}

.app-shell .hyves-datepoll-form .option-edit-row {
  grid-template-columns: 28px minmax(190px, 0.9fr) 1.1fr 40px;
}

.app-shell .hyves-datepoll-form.is-timed .option-edit-row {
  grid-template-columns: 28px minmax(190px, 0.9fr) 120px 1fr 40px;
}

.app-shell .secondary-button {
  min-height: 40px;
  padding: 0 13px;
  color: #3e5968;
  border: 1px solid #9db6c5;
  border-radius: 4px;
  background: linear-gradient(#fff, #e8f1f6);
  font: 700 11px Arial, Helvetica, sans-serif;
}

.app-shell .response-option {
  border-color: #d2e1e9;
}

.app-shell .answer-picker label {
  min-height: 40px;
  border-color: #aac1ce;
  border-radius: 3px;
  background: #f7fbfd;
  font: 11px Arial, Helvetica, sans-serif;
}

.app-shell .assistant-prompt {
  padding: 0;
  border: 1px solid var(--hyves-border);
  border-radius: 0;
  background: #fff;
}

.app-shell .assistant-prompt summary {
  min-height: 42px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  color: #3a80aa;
  border-bottom: 1px solid #c7dce9;
  background: linear-gradient(#fdfefe, #e9f3f9);
  font: 700 12px Arial, Helvetica, sans-serif;
}

.app-shell .assistant-prompt pre {
  margin: 14px;
  color: #d9edf9;
  border-radius: 3px;
  background: #326c8a;
}

@media (max-width: 820px) {
  .app-shell .hyves-datepoll-form .option-edit-row,
  .app-shell .hyves-datepoll-form.is-timed .option-edit-row {
    grid-template-columns: 24px 1fr 40px;
  }

  .app-shell .hyves-datepoll-form .option-edit-row input[name="option_location"],
  .app-shell .hyves-datepoll-form .option-edit-row .duration-value {
    grid-column: 2;
  }
}
