:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #061624;
  color: #effaff;
  --accent: #63edf5;
  --muted: #b2cbd9;
  --line: #2b6678;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }

.login {
  min-height: 100svh;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: clamp(28px, 6vw, 76px) 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #04132258 0%, #05162548 38%, #041322e8 100%),
    url('/assets/coast.webp') 87% center / cover no-repeat, #071b2a;
}
.login-content { width: min(100%, 460px); }
.brand { position: relative; text-align: center; margin: 0 0 34px; }
.brand h1 {
  position: relative;
  font-size: clamp(42px, 12vw, 74px);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -.065em;
  text-shadow: 0 4px 28px #03121e;
}
.brand h1 span, .wordmark span { color: var(--accent); }
.brand p { margin-top: 15px; font-size: clamp(10px, 2.6vw, 13px); letter-spacing: .28em; font-weight: 700; }
.orbit {
  width: 146px;
  height: 46px;
  margin: 0 auto 10px;
  border-radius: 50%;
  transform: rotate(-14deg);
  border: 2px solid #5df4ff99;
  border-top: 4px solid #97faff;
  box-shadow: 0 0 24px #26eafd73, inset 0 0 14px #34dcff40;
}
.orbit::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 16px;
  width: 7px;
  height: 7px;
  border-radius: 100%;
  background: #e0ffff;
  box-shadow: 0 0 12px 4px #30ebff;
}
.particles { position: absolute; inset: 52% 0 auto; pointer-events: none; }
.particles i {
  position: absolute;
  left: 50%;
  width: 3px;
  height: 3px;
  background: #9ffcff;
  border-radius: 50%;
  box-shadow: 0 0 8px 2px #27dbe8a0;
  animation: assemble 2.55s ease-in-out var(--delay) both;
}
.revealing :is(h1, .orbit) { animation: brand-reveal 3s ease-out both; }
@keyframes assemble {
  0% { opacity: 0; transform: translate(var(--x), var(--y)); }
  26% { opacity: .85; }
  83% { opacity: .72; }
  100% { opacity: 0; transform: translate(var(--end-x), var(--end-y)) scale(.25); }
}
@keyframes brand-reveal {
  from { opacity: .36; filter: brightness(.8); }
  73% { opacity: .93; filter: brightness(1.2); }
  to { opacity: 1; filter: none; }
}
.login-panel {
  display: grid;
  padding: clamp(22px, 6vw, 38px);
  border: 1px solid #79deed5c;
  border-radius: 26px;
  background: #071c2ce8;
  backdrop-filter: blur(13px);
  box-shadow: 0 28px 75px #0009, inset 0 1px #c4ffff12;
}
.login-panel label, .editor label { font-weight: 650; }
.key-field { display: flex; margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; background: #061522; }
input, textarea { min-width: 0; width: 100%; color: inherit; background: #061522; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.key-field input { border: 0; background: transparent; }
.key-field button { color: var(--accent); background: none; border: 0; min-width: 64px; }
.login-state { min-height: 30px; padding: 6px 0; color: #d9eafa; font-size: .86rem; }
.primary, .button {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  font-weight: 750;
  padding: 12px 20px;
}
.primary { color: #042432; background: #61eef4; box-shadow: 0 7px 23px #23dbe52e; }
.primary:hover { background: #98fbff; }
.private { text-align: center; margin-top: 18px; color: var(--muted); font-size: .85rem; }
.restoring { padding: 30px; color: var(--muted); }

.topbar { display: flex; align-items: center; gap: 16px; padding: 8px clamp(12px, 4vw, 48px); background: #0b2435; border-bottom: 1px solid #295669; }
.wordmark { font-weight: 850; letter-spacing: -.035em; font-size: 1.3rem; }
.account { color: var(--muted); margin-left: auto; }
.menu, .close { min-width: 48px; min-height: 48px; border: 1px solid #458291; border-radius: 12px; background: #133747; color: var(--accent); }
.menu span, .menu span::before, .menu span::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
.menu span { position: relative; margin: auto; }
.menu span::before, .menu span::after { content: ''; position: absolute; left: 0; }
.menu span::before { top: -6px; }
.menu span::after { top: 6px; }
.workspace-hero { background: linear-gradient(100deg, #061624d6, #06162438), url('/assets/coast.webp') center / cover; }
.workspace-hero > div, .workspace-content { max-width: 1050px; margin: auto; padding-inline: clamp(18px, 5vw, 48px); }
.workspace-hero > div { padding-block: clamp(44px, 8vw, 95px); }
.eyebrow { color: var(--accent); font-size: .75rem; letter-spacing: .21em; font-weight: 750; }
.workspace-hero h1 { margin-top: 9px; font-size: clamp(36px, 6vw, 62px); }
.workspace-content { padding-block: 24px 60px; }
.card { padding: clamp(20px, 5vw, 34px); border-radius: 20px; background: linear-gradient(155deg, #10394d, #092538); border: 1px solid var(--line); }
.card h2 { margin-bottom: 14px; }
.work-summary p { margin-block: 5px; overflow-wrap: anywhere; }
.work-summary p:first-child { font-size: 1.4rem; font-weight: 750; }
.work-summary p:nth-child(3) { color: var(--accent); font-weight: 750; }
.work-summary p:last-child, .connection { color: var(--muted); font-size: .9rem; }
.connection { margin-top: 16px; }
.button { display: inline-flex; align-items: center; margin-top: 14px; padding-inline: 0; }
.editor { display: grid; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.editor :is(input, textarea) { display: block; margin-top: 6px; }
.drawer {
  position: fixed;
  inset: 8px auto 8px 8px;
  margin: 0;
  max-width: none;
  max-height: none;
  width: min(316px, calc(100% - 54px));
  padding: 16px;
  background: linear-gradient(155deg, #10394d, #092538);
  border: 1px solid var(--line);
  border-radius: 20px;
  color: inherit;
  box-shadow: 12px 0 45px #0007;
  overflow: auto;
  touch-action: pan-y;
}
.drawer[open] { animation: drawer-in .22s ease-out both; }
.drawer::backdrop { background: #010912b8; }
@keyframes drawer-in { from { transform: translateX(calc(-100% - 8px)); } to { transform: none; } }
.drawer header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.close { font-size: 24px; }
.drawer nav { display: grid; gap: 3px; margin-block: 13px; }
.drawer :is(nav a, .drawer-account button) {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  text-align: left;
}
.drawer nav a[aria-current], .drawer :is(nav a, .drawer-account button):hover {
  color: var(--accent);
  background: #174456;
  border-color: var(--line);
}
.drawer-account { border-top: 1px solid var(--line); padding-top: 14px; }
.drawer-account h2 { color: var(--accent); font-size: .85rem; }
.drawer-account p { font-weight: 750; margin: 4px 0 8px; }
.drawer-account [role="status"] { display: block; color: var(--muted); font-size: .85rem; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; }
  .particles { display: none; }
}

[data-identity-form] label + label { margin-top: 12px; }
[data-identity-form] input { margin-top: 7px; }
.text-button { min-height: 44px; color: var(--accent); background: none; border: none; }
.account-dialog { color: inherit; width: min(92vw, 550px); max-height: 85svh; }
.account-dialog::backdrop { background: #010912c9; }
.account-dialog header { display: flex; align-items: center; justify-content: space-between; }
.account-dialog section { margin-top: 18px; }
.account-dialog form { display: grid; gap: 8px; margin-top: 8px; }
.account-dialog .text-button, [data-login-profiles] button { text-align: left; }
.account-dialog p { overflow-wrap: anywhere; }

[data-together] { overflow-wrap: anywhere; }
[data-together] fieldset { border: 0; padding: 0; min-width: 0; }
[data-together] form, .task-card { margin: 1rem 0; padding: 1rem; border: 1px solid #2a5262; border-radius: 1rem; }
[data-together] label { display: grid; gap: .35rem; margin-bottom: .7rem; }
[data-together] select { width: 100%; color: inherit; background: #0b2331; border: 1px solid #416979; border-radius: .6rem; padding: .6rem; font: inherit; }
[data-together] button { margin: .25rem .35rem .25rem 0; }
[data-together] button, [data-together] select, [data-together] summary { min-height: 44px; }
[data-together] summary { cursor: pointer; padding-block: .65rem; }
[data-together] li + li { margin-top: .5rem; }

.resort-discovery-dialog { width:min(92vw,640px); max-height:85dvh; overflow:auto; }
.resort-discovery-dialog label { display:block; margin-block:.75rem; }
.resort-discovery-dialog input[type=checkbox] { width:auto; }
.resort-filter-controls { display:flex; flex-wrap:wrap; gap:.5rem; margin-block:1rem; }
.resort-discovery-card { border:1px solid currentColor; border-radius:.9rem; padding:.8rem; margin-block:.7rem; }
.resort-preview-photo { display:block; max-width:100%; max-height:14rem; object-fit:contain; }
.resort-discovery-dialog table { width:100%; border-collapse:collapse; }
.resort-discovery-dialog th,.resort-discovery-dialog td { text-align:left; padding:.35rem; overflow-wrap:anywhere; }
