/* AvailableYA! — a calm blue world for getting people together. */
:root {
  --navy: #172f51;
  --blue: #e1efff;
  --red: #963c52;
  --muted: #516b87;
  --border: #a9c7e16e;
  color: #172f51;
  background: #d2e5fa;
}
body {
  background:
    radial-gradient(ellipse at 88% 15%, #a8cffa99 0, transparent 48%),
    radial-gradient(ellipse at 8% 44%, #eef6ffa8 0, transparent 46%),
    linear-gradient(135deg, #e7f2ff 0%, #c4def7 45%, #dce9ff 100%);
  background-attachment: fixed;
  isolation: isolate;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%232b5380' opacity='.6' filter='url(%23n)' d='M0 0h160v160H0z'/%3E%3C/svg%3E");
}
header {
  height: 98px;
  border: 0;
  padding: 0 5vw;
  max-width: 1480px;
  margin: auto;
  gap: 24px;
  background: transparent;
}
.brand {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -1.4px;
  gap: 10px;
  white-space: nowrap;
}
.brand .ya {
  color: #3767b7;
}
.brand-symbol {
  background: #183653;
  color: #eff8ff;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px 15px 15px 5px;
  font-size: 34px;
  line-height: 1;
  position: relative;
  letter-spacing: -2px;
}
.brand-symbol > span {
  position: absolute;
  right: -8px;
  top: -9px;
  font-size: 21px;
  color: #8a3650;
  filter: drop-shadow(0 1px 0 #e9f3ff);
}
header nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}
header .byline {
  font-size: 13px;
  margin-left: 24px;
  color: #52718d;
}
.header-create {
  border: 1px solid #7e9ebd;
  border-radius: 100px;
  padding: 11px 20px;
  color: var(--navy);
  background: #e2efffa8;
  font-size: 14px;
  font-weight: 600;
}
main {
  max-width: 1180px;
  padding: 45px 32px 80px;
  min-height: calc(100vh - 180px);
}
h1,
h2,
h3 {
  font-family: Manrope, sans-serif;
  letter-spacing: -0.045em;
}
h1 {
  font-weight: 800;
}
p {
  color: var(--muted);
}
button,
input,
textarea {
  transition:
    background 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
button:not(:disabled):active {
  transform: translateY(1px);
}
button.primary,
.button {
  background: #193c64;
  border-color: #193c64;
  border-radius: 100px;
  padding: 14px 25px;
  box-shadow: 0 5px 12px #355e8520;
}
.secondary,
button.secondary {
  border-radius: 100px !important;
  background: #e8f3ffad !important;
  border-color: #aac4df !important;
}
input,
textarea,
select {
  background: #f2f8ffc9;
  border-color: #a8c3dc;
  border-radius: 12px;
  padding: 13px 15px;
}
input:focus,
textarea:focus {
  background: #f7fbff;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 2.3px;
  color: #91334d;
}
.home-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 50px;
  padding: 26px 0 54px;
}
.home-kicker {
  font-size: 11px;
  letter-spacing: 2.2px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #385978;
  display: flex;
  gap: 9px;
  align-items: center;
}
.mini-spark {
  font-size: 19px;
  color: var(--red);
}
.home-copy h1 {
  font-size: clamp(48px, 5.2vw, 70px);
  line-height: 1.07;
  letter-spacing: -0.065em;
}
.home-copy h1 > span {
  color: #396daf;
}
.home-copy > p {
  font-size: 17px;
  max-width: 420px;
  line-height: 1.75;
  margin: 22px 0 28px;
}
.home-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.home-actions .primary {
  font-size: 16px;
  display: flex;
  gap: 28px;
  align-items: center;
}
.home-actions .primary span {
  font-size: 22px;
}
.home-actions .quiet {
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.home-note {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 38px;
  font-size: 12px;
  line-height: 1.7;
  color: #516d88;
}
.home-note strong {
  font-weight: 500;
  color: #243e5e;
}
.avatar-stack {
  display: flex;
  padding-left: 8px;
}
.character {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  overflow: visible;
}
.avatar-stack .character {
  margin-left: -8px;
  border: 2px solid #d4e6f8;
  border-radius: 50%;
  background: #dceeff;
  width: 42px;
  height: 42px;
}
.hero-companion {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 400px;
}
.hero-bot {
  width: min(100%, 330px);
  height: auto;
  filter: drop-shadow(0 24px 14px #557f9d28);
  animation: bob 5s ease-in-out infinite;
}
.hello-bubble {
  align-self: flex-start;
  background: linear-gradient(135deg, #f3f9ffcc, #deeeffc9);
  border: 1px solid #f4f9ffd9;
  border-radius: 21px 21px 4px 21px;
  padding: 17px 22px;
  transform: rotate(-5deg);
  margin: 0 0 -2px 5px;
  box-shadow: 0 8px 25px #769ec21a;
  font-weight: 700;
  font-size: 18px;
}
.hello-bubble span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  margin-top: 5px;
  color: var(--muted);
}
.companion-caption {
  font-size: 12px;
  color: #55718a;
  letter-spacing: 0.5px;
  margin-top: 20px;
}
.companion-caption span {
  color: var(--red);
  margin-right: 6px;
}
.home-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px;
  border-top: 1px solid #7ea6cd50;
  padding-top: 29px;
}
.home-steps article {
  position: relative;
  padding-left: 33px;
}
.home-steps article > span {
  position: absolute;
  left: 0;
  top: 3px;
  font-size: 11px;
  color: #718eab;
}
.home-steps h3 {
  font-size: 17px;
  letter-spacing: -0.02em;
}
.home-steps p {
  font-size: 13px;
  line-height: 1.6;
  margin: 8px 0;
  max-width: 250px;
}
.form-page {
  max-width: 780px;
}
.form-page h1 {
  font-size: 40px;
  line-height: 1.16;
}
.form-page > .eyebrow {
  margin-top: 26px;
}
.form-page > p {
  font-size: 16px;
}
.panel {
  background: linear-gradient(145deg, #edf6ffd9, #d8eafaad);
  border: 1px solid #f5faffb0;
  box-shadow: 0 10px 36px #426b9620;
  border-radius: 22px;
  padding: 30px;
}
.guide {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  border: 1px solid #f2f8ffb3;
  border-radius: 20px;
  background: linear-gradient(100deg, #e2f0ffd6, #c9e3fa99);
  margin-bottom: 28px;
}
.guide-face {
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #d4e8fba3;
  border-radius: 18px;
}
.guide-character {
  width: 58px;
  height: 58px;
}
.guide-name {
  font-size: 11px;
  letter-spacing: 1.1px;
  font-weight: 700;
  text-transform: uppercase;
  color: #45698c;
}
.guide p {
  font-size: 14px;
  line-height: 1.55;
  margin: 5px 0 0;
  color: #254867;
}
.guide-panel {
  padding: 0 !important;
  box-shadow: none !important;
  background: none !important;
  border: 0 !important;
}
.guide-panel .guide {
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
}
.guide-panel .guide-face {
  width: 38px;
  height: 42px;
  background: none;
}
.guide-panel .character {
  width: 40px;
  height: 40px;
}
.creation-steps {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 25px;
}
.creation-steps li {
  font-size: 13px;
}
.creation-steps li[aria-current="step"] {
  border-color: #325f92;
}
.calendar-day {
  background: #d5e8fa80;
  border: 1px solid #b6cfe280;
  border-radius: 12px;
}
.calendar-day.chosen {
  background: #224e7b;
}
.calendar-week {
  color: #52708b;
}
.calendar-toolbar button {
  background: #ecf6ff80;
  border-color: #a7c5df;
}
.date-chip {
  background: #e4f2ffb3;
  border-color: #96bad9;
}
.date-time-card {
  background: linear-gradient(140deg, #ecf7ff99, #d1e6fa99);
  border-color: #99b7d0;
}
.date-time-card.active {
  background: #c9e2f9;
  border-color: #224e7b;
}
.timezone-banner {
  background: #c2ddf47a;
  border: 1px solid #a1c4e25c;
}
.time-picker {
  background: #e6f3ff4f;
  border-color: #abc8df;
}
.slider-field input[type="range"] {
  background: #accdebf0;
}
.slot-options span {
  background: #e8f4ff80;
  border-color: #a9c6df;
}
.slot-options input:checked + span {
  background: #224e7b;
  border-color: #224e7b;
}
.grid-scroll {
  border-color: #9fbdd8;
  background: #e9f4ff9c;
}
.availability th {
  background: #dfedfb;
}
.cell {
  background: #edf6ff9c;
  border-color: #bad3e9;
}
.cell.selected {
  background: #224e7b;
  border-color: #224e7b;
}
.preview-slot {
  background: #c4def3a8;
  border-color: #a4c6e2;
}
.share-dialog {
  background: linear-gradient(140deg, #e4f2ff, #c9def8);
}
.share-dialog::backdrop {
  background: #183a609c;
}
.best {
  background: linear-gradient(140deg, #c5e1f8, #d4e8fc) !important;
}
.pill {
  background: #bfd9f280;
  color: #2c5275;
}
.session-head h1 {
  font-size: 36px;
}
.person .character {
  width: 36px;
  height: 36px;
}
.tabs button {
  color: #4c6b89;
}
.tabs button.active {
  color: #173f68;
  border-color: #315f8c;
}
.roster-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}
.roster-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #e3f2ffb3;
  border: 1px solid #b0cbe2;
  border-radius: 100px;
  padding: 4px 14px 4px 5px;
  font-size: 14px;
}
.roster-chip .character {
  width: 34px;
  height: 34px;
}
.profile-page {
  max-width: 950px;
  margin: auto;
}
.profile-page h1 {
  font-size: 48px;
}
.profile-search {
  max-width: 390px;
  margin: 25px 0;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}
.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 12px;
  border-radius: 22px;
  border: 1px solid #edf7ffd9;
  background: linear-gradient(145deg, #eaf5ffd9, #c8e2fa9c);
  box-shadow: 0 5px 20px #446b8915;
  color: var(--navy);
}
.profile-card:hover {
  background: #e9f5ff;
  box-shadow: 0 9px 24px #34587929;
}
.profile-card .character {
  width: 80px;
  height: 80px;
}
.profile-card strong {
  font-size: 16px;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.profile-card > span {
  font-size: 12px;
  color: #53718b;
}
.chosen-profile {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #d5e9fbb3;
  padding: 17px;
  border: 1px solid #afcde6;
  border-radius: 16px;
  margin: 4px 0 25px;
}
.chosen-profile .character {
  width: 60px;
  height: 60px;
}
.chosen-profile > div {
  display: grid;
  gap: 5px;
}
.chosen-profile span {
  font-size: 12px;
  color: #55748e;
}
.chosen-profile strong {
  font-size: 21px;
}
.share-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 30px 0;
}
.link-card {
  padding: 25px;
  border: 1px solid #ecf7ffb3;
  border-radius: 20px;
  background: linear-gradient(145deg, #eaf6ffdb, #c6e0f7a6);
  min-width: 0;
}
.link-card h3 {
  font-size: 23px;
}
.link-card p {
  font-size: 14px;
  min-height: 66px;
}
.link-card input {
  font-size: 12px;
  margin-bottom: 18px;
}
.link-card .pill {
  font-size: 10px;
  letter-spacing: 1.4px;
}
.ready-page .actions {
  justify-content: center;
}
.settings-roster {
  margin-top: 25px;
}
.settings-roster .person span {
  flex: 1;
}
.settings-roster .person button {
  font-size: 12px;
}
.saved {
  color: #315d85;
}
footer {
  border-color: #8db2d14d;
  color: #56738e;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bot {
    animation: none;
  }
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media (max-width: 800px) {
  header {
    height: 84px;
    padding: 0 24px;
  }
  .brand {
    font-size: 22px;
  }
  .brand-symbol {
    width: 36px;
    height: 36px;
    font-size: 29px;
  }
  header .byline {
    display: none;
  }
  header nav {
    gap: 8px;
  }
  header #home {
    display: none;
  }
  .header-create {
    font-size: 12px;
    padding: 9px 14px;
  }
  main {
    padding: 30px 22px 55px;
  }
  .home-hero {
    gap: 10px;
    padding-top: 10px;
    grid-template-columns: 1.2fr 1fr;
  }
  .home-copy h1 {
    font-size: 48px;
  }
  .home-copy > p {
    font-size: 15px;
  }
  .hero-bot {
    width: 230px;
  }
  .hero-companion {
    min-height: 300px;
  }
  .hello-bubble {
    font-size: 15px;
    padding: 13px 16px;
  }
  .hello-bubble span {
    font-size: 11px;
  }
  .companion-caption {
    font-size: 10px;
  }
  .home-steps {
    gap: 20px;
  }
  .home-steps article {
    padding-left: 0;
  }
  .home-steps article > span {
    position: static;
    display: block;
    margin-bottom: 10px;
  }
  .profile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .share-links {
    grid-template-columns: 1fr;
  }
  .link-card p {
    min-height: 0;
  }
  .panel {
    padding: 23px;
  }
}
@media (max-width: 560px) {
  header {
    padding: 0 20px;
    gap: 10px;
  }
  .brand {
    font-size: 20px;
    letter-spacing: -1px;
  }
  main {
    padding: 25px 20px 50px;
  }
  .home-hero {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-bottom: 24px;
  }
  .home-copy h1 {
    font-size: 50px;
  }
  .home-kicker {
    font-size: 10px;
    margin-bottom: 17px;
  }
  .home-copy > p {
    max-width: 330px;
    font-size: 16px;
    margin: 20px 0;
  }
  .home-actions {
    gap: 12px;
  }
  .home-note {
    margin-top: 22px;
  }
  .hero-companion {
    min-height: 260px;
    margin-top: 12px;
  }
  .hero-bot {
    width: 190px;
  }
  .hello-bubble {
    align-self: auto;
    margin-left: -160px;
    position: relative;
    z-index: 1;
    font-size: 14px;
  }
  .companion-caption {
    margin-top: 10px;
  }
  .home-steps {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .home-steps article {
    padding-left: 34px;
  }
  .home-steps article > span {
    position: absolute;
    left: 0;
    top: 0;
  }
  .home-steps p {
    max-width: none;
    margin: 5px 0;
  }
  .form-page h1 {
    font-size: 33px;
  }
  .guide {
    padding: 14px;
    gap: 10px;
  }
  .guide-face {
    width: 45px;
    height: 45px;
  }
  .guide-character {
    width: 46px;
    height: 46px;
  }
  .guide p {
    font-size: 13px;
  }
  .guide-name {
    font-size: 10px;
  }
  .creation-steps {
    gap: 3px;
  }
  .creation-steps li {
    font-size: 11px;
    padding: 10px 0;
  }
  .profile-page h1 {
    font-size: 36px;
  }
  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .profile-card {
    padding: 20px 10px;
  }
  .profile-card .character {
    width: 66px;
    height: 66px;
  }
  .profile-card strong {
    font-size: 15px;
  }
  .profile-card > span {
    font-size: 11px;
  }
  .session-head h1 {
    font-size: 30px;
  }
  .form-page > .eyebrow {
    margin-top: 15px;
  }
  .link-card {
    padding: 22px;
  }
  footer {
    font-size: 12px;
  }
}
.character.avatar {
  display: block;
  min-width: 0;
  background: none;
  border-radius: 0;
}
.settings-roster .person small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.add-profile {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.link-card input {
  width: 100%;
}
.form-page .panel + .panel {
  margin-top: 22px;
}
.avatar-stack .character.avatar {
  border-radius: 50%;
  background: transparent;
}
/* Vertical, scroll-snapping time wheels. */
.time-wheels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 7px;
}
.wheel-column {
  position: relative;
  min-width: 0;
}
.wheel-label {
  display: block;
  text-align: center;
  font-size: 11px;
  color: #56718c;
  margin-bottom: 8px;
}
.time-wheel {
  height: 144px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  padding: 48px 0;
  border-radius: 12px;
  background: linear-gradient(#c8dcf12e, #e5f3ff91, #c8dcf12e);
  position: relative;
}
.time-wheel::-webkit-scrollbar {
  display: none;
}
.time-wheel button {
  display: block;
  width: 100%;
  height: 48px;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  scroll-snap-align: center;
  font-size: 22px;
  color: #6e88a2;
  font-variant-numeric: tabular-nums;
}
.time-wheel button[aria-selected="true"] {
  color: #183d65;
  background: #b4d4ef8a;
  font-weight: 700;
}
.time-wheel[data-wheel$="period"] button {
  font-size: 16px;
}
.wheel-picker .time-value {
  font-size: 22px;
  min-height: 30px;
  margin-bottom: 18px;
}
.wheel-picker {
  padding: 18px 12px 22px;
}
.window-list {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}
.availability-window {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #e7f4ffd1, #c8e0f7a3);
  border: 1px solid #e7f5ff;
  border-radius: 18px;
}
.availability-window h3 {
  font-size: 23px;
}
.availability-window p {
  margin: 7px 0 0;
  font-size: 15px;
}
.window-weekday {
  display: block;
  font-size: 12px;
  color: #56718c;
  margin-bottom: 5px;
}
.window-options,
.answer-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.answer-button,
.answer-preview span {
  border: 1px solid #a4bfda;
  background: #edf7ff99;
  color: #234b72;
  padding: 12px 17px;
  border-radius: 100px;
  font-size: 14px;
}
.answer-button.chosen {
  background: #224e7b;
  border-color: #224e7b;
  color: white;
}
.answer-button.unavailable.chosen {
  background: #963c52;
  border-color: #963c52;
}
.answer-preview span {
  font-size: 12px;
}
.window-results strong {
  display: block;
  color: #234f77;
}
.window-results > span {
  font-size: 12px;
  color: #58718a;
}
.window-results p {
  font-size: 13px;
}
@media (max-width: 600px) {
  .availability-window {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
  }
  .window-options {
    width: 100%;
  }
  .answer-button {
    flex: 1;
    padding: 12px;
  }
  .time-fields {
    gap: 10px;
  }
  .wheel-picker {
    padding: 12px 7px;
  }
  .time-wheels {
    gap: 3px;
  }
  .time-wheel button {
    font-size: 20px;
  }
  .time-wheel[data-wheel$="period"] button {
    font-size: 13px;
  }
  .wheel-picker .time-value {
    font-size: 18px;
  }
}
/* Centered character stage, following the supplied frontpage reference. */
.is-home header {
  max-width: none;
  padding: 0 3.4vw;
  height: 90px;
}
.is-home header .byline {
  margin-left: auto;
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.is-home header nav {
  display: none;
}
.is-home main {
  max-width: none;
  padding: 0 24px 20px;
  min-height: calc(100svh - 130px);
}
.is-home footer {
  padding: 16px 0;
  font-size: 11px;
}
.frontpage {
  min-height: calc(100svh - 160px);
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 32px 0 18px;
}
.frontpage-heading {
  margin-bottom: 24px;
}
.frontpage-eyebrow {
  font-family: monospace;
  font-size: 12px;
  letter-spacing: 3px;
  margin: 0 0 18px;
  color: #254768;
}
.frontpage h1 {
  font-size: clamp(42px, 6.8vw, 88px);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 1.03;
  color: #142e45;
}
.frontpage-character {
  display: grid;
  place-items: center;
  margin: 6px 0 13px;
  min-height: 220px;
}
.frontpage .hero-bot {
  width: clamp(200px, 23vh, 270px);
  height: auto;
  filter: drop-shadow(0 12px 20px #67819a1c);
}
.frontpage-caption h2 {
  font-family: monospace;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 6px;
  margin: 0 0 9px;
}
.frontpage-caption p {
  font-family: monospace;
  font-size: 12px;
  letter-spacing: 1px;
  margin: 0;
  color: #345372;
}
.pal-dock {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #173449;
  border: 1px solid #173449;
  border-radius: 100px;
  padding: 11px 13px;
  margin-top: 35px;
  box-shadow: 0 16px 28px #345b792b;
  max-width: 100%;
}
.pal-switch {
  width: 39px;
  height: 39px;
  border: 0;
  border-radius: 50%;
  background: #cde7f6;
  color: #173449;
  font-size: 31px;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}
.pal-options {
  display: flex;
  gap: 7px;
}
.pal-options button {
  width: 43px;
  height: 43px;
  padding: 2px;
  border: 2px solid transparent;
  border-radius: 50%;
  background: transparent;
  opacity: 0.55;
}
.pal-options button.chosen {
  opacity: 1;
  border-color: #f8edbc;
  background: #fff6d7;
}
.pal-options .character {
  width: 35px;
  height: 35px;
  display: block;
}
.pal-start {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  border: 0;
  border-radius: 100px;
  background: #ffdf37;
  color: #262b25;
  padding: 14px 23px;
  font-size: 15px;
  font-weight: 700;
}
.pal-start > span {
  font-size: 19px;
}
.dock-divider {
  height: 34px;
  width: 1px;
  background: #547181;
  margin: 0 5px;
}
.frontpage-invite {
  margin-top: 23px;
  border: 0;
  border-bottom: 1px solid #47637d;
  padding: 0 0 4px;
  background: none;
  font-family: monospace;
  letter-spacing: 1.8px;
  font-size: 11px;
  color: #23445e;
}
.frontpage-footnote {
  font-size: 12px;
  color: #54718a;
  margin: 17px 0 0;
}
@media (min-height: 900px) and (min-width: 761px) {
  .frontpage {
    padding-top: 65px;
  }
  .frontpage-heading {
    margin-bottom: 40px;
  }
  .frontpage-character {
    margin-bottom: 20px;
  }
  .pal-dock {
    margin-top: 45px;
  }
}
@media (max-width: 760px) {
  .is-home header {
    padding: 0 22px;
    height: 78px;
  }
  .is-home main {
    padding: 0 16px 15px;
  }
  .frontpage {
    padding-top: 32px;
  }
  .frontpage h1 {
    font-size: 50px;
    max-width: 540px;
  }
  .frontpage-eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
  }
  .frontpage .hero-bot {
    width: 210px;
  }
  .pal-dock {
    gap: 7px;
    padding: 10px;
  }
  .pal-options {
    gap: 3px;
  }
  .pal-options button {
    width: 33px;
    height: 33px;
    padding: 0;
  }
  .pal-options .character {
    width: 29px;
    height: 29px;
  }
  .pal-switch {
    width: 30px;
    height: 30px;
    font-size: 25px;
  }
  .pal-start {
    font-size: 13px;
    padding: 12px 15px;
    gap: 7px;
  }
  .dock-divider {
    margin: 0 2px;
  }
}
@media (max-width: 560px) {
  .frontpage h1 {
    font-size: 48px;
    max-width: 350px;
  }
  .frontpage-heading {
    margin-bottom: 12px;
  }
  .frontpage-character {
    min-height: 210px;
    margin-top: 0;
  }
  .frontpage-caption h2 {
    font-size: 17px;
  }
  .frontpage-caption p {
    font-size: 11px;
  }
  .pal-dock {
    border-radius: 27px;
    flex-wrap: wrap;
    justify-content: center;
    width: min(355px, 100%);
    gap: 9px;
    margin-top: 27px;
    padding: 12px;
  }
  .pal-options {
    gap: 5px;
  }
  .pal-options button {
    width: 31px;
    height: 31px;
  }
  .pal-options .character {
    width: 27px;
    height: 27px;
  }
  .pal-switch {
    width: 29px;
    height: 29px;
  }
  .dock-divider {
    display: none;
  }
  .pal-start {
    width: 100%;
    justify-content: center;
    margin-top: 3px;
    font-size: 15px;
  }
  .frontpage-invite {
    margin-top: 20px;
  }
  .frontpage-footnote {
    font-size: 11px;
  }
  .is-home header .byline {
    display: none;
  }
  .is-home footer {
    display: none;
  }
  .frontpage {
    min-height: calc(100svh - 95px);
  }
}

.language-switch {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
  border: 1px solid #8baecb;
  border-radius: 100px;
  padding: 3px;
  margin-left: auto;
}
.language-switch button {
  border: 0;
  background: transparent;
  color: #294e70;
  padding: 6px 10px;
  border-radius: 100px;
  font-size: 11px;
  white-space: nowrap;
}
.language-switch button[aria-pressed="true"] {
  background: #234764;
  color: #fff;
}
.is-home header .byline {
  margin-left: auto;
  margin-right: 20px;
}
.is-home .language-switch {
  margin-left: 0;
}
html[lang="zh-HK"] .frontpage h1 {
  letter-spacing: -0.035em;
  font-size: clamp(38px, 5.8vw, 76px);
}
html[lang="zh-HK"] .frontpage-eyebrow {
  letter-spacing: 2px;
}
@media (max-width: 700px) {
  header .byline {
    display: none;
  }
  header nav {
    display: none;
  }
  header {
    gap: 12px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .is-home .language-switch {
    margin-left: auto;
  }
  .language-switch button {
    padding: 6px 8px;
  }
  html[lang="zh-HK"] .frontpage h1 {
    max-width: 330px;
    font-size: 46px;
    line-height: 1.2;
  }
  .brand {
    font-size: 20px;
  }
}

.frontpage h1 {
  text-wrap: balance;
}

.wheel-label {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
html[lang="zh-HK"] .wheel-label {
  font-size: 10px;
}

.deadline-control,
.date-detail-fields,
.roster-import {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #aec9df;
}
.deadline-fields {
  max-width: 420px;
  margin: 18px auto 0;
}
.deadline-fields .time-picker {
  max-width: 300px;
  margin: auto;
}
.deadline-selected {
  font-weight: 700;
  text-align: center;
}
.deadline-banner {
  padding: 16px 20px;
  border: 1px solid #e2bbc4;
  background: #fff2f399;
  border-radius: 14px;
  color: #803b4d;
  margin: 20px 0;
}
.deadline-banner strong {
  margin-right: 10px;
}
.roster-import summary,
.response-specifics summary {
  cursor: pointer;
  font-weight: 600;
  padding: 10px 0;
}
.roster-import {
  margin-bottom: 24px;
}
.responder-calendar {
  max-width: 560px;
  margin: 22px 0;
}
.calendar-day {
  position: relative;
}
.calendar-day:disabled {
  opacity: 0.35;
  cursor: default;
}
.calendar-day.answer-yes {
  background: #cee5f8;
  color: #163c62;
}
.calendar-day.answer-no {
  background: #f1d4da;
  color: #81364b;
}
.calendar-dot {
  display: block;
  line-height: 1;
  font-size: 10px;
}
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 12px;
  color: #355777;
}
.window-with-details {
  display: block;
}
.window-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}
.window-location,
.window-notes {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.window-location > span:first-child {
  font-weight: 600;
}
.response-specifics {
  border-top: 1px solid #abc7df;
  margin-top: 18px;
  padding-top: 8px;
  width: 100%;
}
.response-specifics label {
  margin-top: 12px;
}
.participant-suggestion {
  padding: 12px 0;
  border-bottom: 1px solid #c2d8eb;
}
.self-register {
  margin: 28px 0;
  max-width: 540px;
}
.delete-session {
  margin-top: 26px !important;
  border: 1px solid #d899a9;
}
.danger-button {
  border: 1px solid #914258;
  background: #914258;
  color: white;
  border-radius: 100px;
  padding: 12px 22px;
  font-weight: 600;
}
.deletion-code {
  font-family: monospace;
  letter-spacing: 3px;
  user-select: all;
}
.summary-list .availability-window {
  display: block;
}
@media (max-width: 600px) {
  .window-main {
    flex-direction: column;
    align-items: flex-start;
  }
  .deadline-banner span {
    display: block;
    margin-top: 6px;
  }
  .calendar-day {
    min-height: 43px;
  }
}

.period-boundaries {
  display: flex;
  gap: 12px;
  margin: 20px 0;
}
.period-boundaries button {
  flex: 1;
  min-height: 64px;
}
.period-boundaries [aria-pressed="true"] {
  background: #244f78;
  color: white;
}
.flex-editor {
  margin: 22px 0;
}
.added-range {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #acc7de;
}
.added-range p {
  font-size: 13px;
  margin-top: 5px;
}
.added-range > div:last-child {
  display: flex;
  align-items: center;
}
.overview-date {
  display: block;
  text-align: left;
  width: 100%;
  white-space: normal;
}
.flex-editor .time-fields {
  margin-top: 24px;
}
@media (max-width: 600px) {
  .period-boundaries {
    gap: 8px;
  }
  .period-boundaries button {
    padding: 12px 8px;
    font-size: 13px;
  }
  .added-range {
    flex-direction: column;
  }
}

.period-boundaries button[aria-pressed="true"] {
  background: #244f78 !important;
  border-color: #244f78 !important;
  color: #fff;
}
#period-calendar .calendar-day.answer-yes {
  background: #87b9df;
  border-color: #6da6d1;
  color: #143c61;
}

.schedule-mode {
  border: 0;
  padding: 0;
  margin: 0 0 24px;
}
.schedule-mode legend {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}
label.mode-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  margin: 10px 0;
  border: 1px solid #9dbdd8;
  border-radius: 16px;
  background: #ecf6ff99;
  cursor: pointer;
}
.mode-card input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 3px 0 0;
  accent-color: #224c77;
}
.mode-card strong {
  display: block;
  font-size: 16px;
}
.mode-card small {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: #476987;
  margin-top: 5px;
}
.mode-card:has(input:checked) {
  background: #c3dff4;
  border: 2px solid #244f78;
  padding: 17px;
}
#slot-builder-editor {
  margin-top: 24px;
}
#slot-builder-editor .time-fields {
  margin-top: 20px;
}
.window-list > section > .availability-window {
  margin-top: 12px;
}

/* Reusable scheduling shortcuts and organizer-owned meeting polls. */
.planning-presets,
.quick-times {
  border: 1px solid #c6dceb;
  background: #f6fbff;
  border-radius: 18px;
  padding: 18px;
  margin: 18px 0;
}
.planning-presets summary {
  cursor: pointer;
  font-weight: 750;
}
.preset-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 10px;
  margin: 14px 0;
}
.preset-row label {
  margin: 0;
  min-width: 0;
}
.preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.preset-chips button {
  display: flex;
  flex-direction: column;
  align-items: start;
  border-radius: 14px;
}
.preset-chips small {
  font-size: 12px;
  opacity: 0.8;
}
.quick-times input,
.quick-times select {
  width: 100%;
}
.quick-times h4 {
  margin: 0;
  font-size: 19px;
}
.poll-choices {
  display: grid;
  gap: 12px;
}
.poll-choice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  margin: 0;
  border: 1px solid #c6dceb;
  border-radius: 16px;
  background: #f8fcff;
}
.poll-choice:has(input:checked) {
  background: #e0f0ff;
  border-color: #235a85;
}
.poll-choice input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin: 0;
  accent-color: #163b64;
}
.poll-choice > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.poll-choice strong,
.poll-choice small,
.poll-context {
  display: block;
}
.poll-context {
  font-size: 14px;
  font-weight: 400;
  margin: 8px 0;
}
.poll-context p {
  margin: 4px 0;
}
.poll-option-editor {
  padding: 18px;
  margin: 18px 0;
  border: 1px solid #c6dceb;
  border-radius: 18px;
  background: #f6fbff;
}
.poll-date-picker {
  margin: 14px 0;
}
.poll-date-picker summary {
  cursor: pointer;
}
.poll-date-picker [data-poll-calendar] {
  max-width: 430px;
  margin-top: 12px;
}
.meeting-poll {
  margin-bottom: 20px;
}
.tabs {
  flex-wrap: wrap;
}
@media (max-width: 560px) {
  .preset-row {
    grid-template-columns: 1fr auto;
  }
  .preset-row label:first-child {
    grid-column: 1 / -1;
  }
  .quick-times,
  .poll-option-editor {
    padding: 14px;
  }
  .poll-choice {
    padding: 14px;
  }
  .tabs button {
    flex: 1 1 auto;
  }
}

.poll-templates {
  padding: 18px;
  border-radius: 18px;
  background: #e7f4ff;
  margin: 16px 0;
}
.poll-templates h4 {
  margin-top: 0;
}
.poll-answer-dates {
  padding: 18px;
  border: 1px solid #bdd7ee;
  border-radius: 16px;
  background: #f3f9ff;
}
.poll-answer-dates [data-answer-calendar] {
  max-width: 440px;
}
.poll-answer-dates h4 {
  margin-top: 0;
}
.poll-date-results {
  font-size: 13px;
  font-weight: 400;
}
.poll-date-results p {
  margin: 6px 0;
}
.poll-map-picker {
  margin: 18px 0;
}
.poll-map-picker summary {
  cursor: pointer;
  font-weight: 650;
}
.hk-map {
  position: relative;
  width: 100%;
  aspect-ratio: 700/460;
  margin-top: 16px;
  background: #d9effb;
  border: 1px solid #aac9e0;
  border-radius: 18px;
  overflow: hidden;
}
.hk-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hk-map path {
  fill: #f6fbef;
  stroke: #7399a5;
  stroke-width: 2;
  stroke-linejoin: round;
}
.district-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #365b7a;
  border-radius: 50%;
  background: white;
  color: #163b64;
  font: 700 12px system-ui;
}
.district-pin[aria-pressed="true"],
.district-list button[aria-pressed="true"] {
  background: #163b64;
  color: white;
}
.district-pin:disabled {
  opacity: 0.4;
  cursor: default;
}
.district-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.district-list button {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  border: 1px solid #bdd7ee;
  border-radius: 12px;
  padding: 9px;
  font-size: 13px;
}
.district-number {
  flex: 0 0 19px;
  text-align: center;
  font-weight: 800;
}
@media (max-width: 560px) {
  .district-pin {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }
  .poll-answer-dates {
    padding: 12px;
  }
}

.required-polls {
  width: min(680px, calc(100vw - 28px));
  max-height: 90dvh;
  overflow-y: auto;
}
.required-polls::backdrop {
  background: rgb(12 35 61 / 65%);
  backdrop-filter: blur(4px);
}
.required-polls #required-poll-progress {
  font-weight: 700;
  color: #214d73;
}
.required-polls .meeting-poll {
  padding: 16px;
}
.required-polls #required-poll-error:not(:empty) {
  padding: 12px;
  background: #fff1f1;
  border-radius: 12px;
  color: #7d2638;
}
@media (max-width: 560px) {
  .required-polls {
    padding: 18px;
  }
  .required-polls .meeting-poll {
    padding: 12px;
  }
}
