* {
  box-sizing: border-box;
}
body.capy-portal {
  margin: 0;
  background: #f1f5fb;
  color: #102b56;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 16px;
}
button,
input,
textarea {
  font: inherit;
}
a {
  color: inherit;
}
button,
a,
input,
textarea {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #1b66c9;
  outline-offset: 3px;
}
.capy-skip {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 10;
  padding: 12px;
  background: #fff;
}
.capy-skip:focus {
  top: 8px;
}
.capy-shell {
  max-width: 1440px;
  margin: auto;
  padding: 0 5vw;
}
.capy-top {
  height: 94px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #d9e2ef;
  gap: 16px;
}
.capy-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.capy-brand img { object-fit: contain; }
.capy-club-logo { width: 146px; height: auto; }
.capy-top nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}
.capy-top nav a {
  text-decoration: none;
}
.capy-account {
  background: #123e87;
  color: #fff;
  padding: 11px 21px;
  border-radius: 24px;
}
.capy-workspace {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 6vw;
  align-items: center;
  padding: 34px 0 24px;
  min-height: calc(100dvh - 154px);
}
.capy-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.17em;
  color: #45668f;
}
.capy-intro h1 {
  font-family: Neusharp, sans-serif;
  font-size: clamp(40px, 4.4vw, 66px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 20px 0;
}
.capy-intro > p {
  font-size: 19px;
  line-height: 1.65;
  color: #49617e;
}
.capy-intro ul {
  list-style: none;
  padding: 12px 0;
  font-size: 14px;
  line-height: 2.2;
  color: #345777;
}
.capy-intro li:before {
  content: '✓';
  color: #1769bb;
  margin-right: 10px;
}

.capy-web-link {
  font-size: 13px;
  text-underline-offset: 4px;
}
.capy-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0 18px;
  font-size: 10px;
  line-height: 1.6;
  color: #5f7189;
}
.capy-portal .kapi {
  position: static;
  width: 100%;
  z-index: auto;
}
.capy-portal .kapi-panel {
  position: relative;
  inset: auto;
  transform: none;
  width: 100%;
  height: clamp(510px, calc(100dvh - 208px), 810px);
  max-height: none;
  max-width: none;
  border: 1px solid #dce4f0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 50px #1239690d;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.capy-portal .kapi-header {
  padding: 20px 24px;
  background: #fff;
  color: #173f7b;
  border-bottom: 1px solid #e8edf5;
}
.capy-portal .kapi-heading h2 {
  font-size: 21px;
  color: #153f7e;
}
.capy-portal .kapi-heading p {
  color: #687b93;
}
.capy-portal .kapi-header-avatar {
  width: 48px;
  height: 48px;
}
.capy-portal .kapi-chat {
  flex: 1;
  min-height: 0;
  padding: 24px 24px 14px;
  overscroll-behavior: contain;
  background: #fbfcff;
}
.capy-portal .kapi-message {
  max-width: 94%;
  font-size: 14px;
  line-height: 1.65;
  border-radius: 16px;
}
.capy-portal .kapi-message-user {
  max-width: 88%;
  background: #174a92;
  color: #fff;
}
.capy-portal .kapi-message-user p {
  color: #fff;
}
.capy-portal .kapi-toolbar {
  background: #fff;
  padding: 12px 22px;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid #edf1f6;
}
.capy-portal .kapi-toolbar span {
  display: none;
}
.capy-portal .kapi-toolbar button {
  font-size: 12px;
}
.capy-portal .kapi-composer {
  background: #fff;
  padding: 8px 18px 18px;
}
.capy-portal .kapi-composer input {
  border-radius: 14px;
  padding: 15px;
  min-width: 0;
}
.kapi-human-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.kapi-human-form textarea {
  width: 100%;
  min-height: 95px;
  border: 1px solid #9eafc6;
  border-radius: 10px;
  padding: 12px;
  resize: vertical;
  background: #fff;
  color: #102b56;
}
.kapi-human-form p {
  font-size: 12px;
}
.kapi-human-status {
  border-left: 3px solid #d6b64d;
}
.kapi-human-form button {
  justify-self: start;
}
.capy-portal .kapi-composer[hidden] {
  display: none;
}
@media (min-width: 1500px) {
  .capy-shell {
    padding: 0 60px;
  }
}
@media (max-width: 800px) {
  .capy-shell {
    padding: 0 16px;
  }
  .capy-top {
    height: 70px;
  }
  .capy-brand {
    font-size: 8px;
    gap: 7px;
  }

  .capy-brand-logo { width: 44px; height: 44px; }
  .capy-club-logo { width: 90px; height: auto; }
  .capy-top nav {
    font-size: 11px;
    gap: 12px;
  }
  .capy-account {
    padding: 9px 13px;
  }
  .capy-workspace {
    display: block;
    padding: 12px 0 0;
    min-height: 0;
  }
  .capy-intro {
    display: none;
  }
  .capy-portal .kapi-panel {
    height: calc(100dvh - 148px);
    min-height: 340px;
    border-radius: 18px;
  }
  .capy-portal .kapi-header {
    padding: 13px 16px;
  }
  .capy-portal .kapi-chat {
    padding: 17px 14px;
  }
  .capy-portal .kapi-toolbar {
    padding: 10px 14px;
  }
  .capy-portal .kapi-composer {
    padding: 5px 12px 12px;
  }
  .capy-portal .kapi-message {
    font-size: 13px;
  }
  .capy-foot {
    display: block;
    padding: 10px 4px;
    font-size: 9px;
  }
  .capy-foot span {
    display: block;
  }
  .capy-portal .kapi-topics {
    grid-template-columns: 1fr 1fr;
  }
  .capy-portal .kapi-topic {
    min-width: 0;
  }
  .capy-portal .kapi-panel .kapi-composer input {
    font-size: 16px;
  }
}
@media (max-height: 520px) and (min-width: 801px) {
  .capy-workspace {
    padding: 15px 0;
  }
  .capy-portal .kapi-panel {
    height: 75dvh;
    min-height: 300px;
  }
  .capy-intro h1 {
    font-size: 32px;
  }
  .capy-intro ul {
    display: none;
  }
}
@media (max-width: 400px) {
  .capy-brand-logo { width: 40px; height: 40px; }
  .capy-club-logo { width: 74px; }
  .capy-top nav { font-size: 10px; gap: 10px; }
  .capy-account { padding: 9px 10px; }
}
