﻿@font-face {
  font-family: Outfit;
  src: url("/fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Arabic;
  src: url("/fonts/arabic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
[hidden] {
  display: none !important;
}
.map-selection-state {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.map-selection-state .pill {
  font-size: 11px;
  padding: 3px 7px;
}
.topbar .top-actions {
  flex-wrap: nowrap;
  flex: none;
}
.topbar > span {
  min-inline-size: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:root {
  color-scheme: light;
  --canvas: #f7f5f0;
  --surface: #fffdfa;
  --ink: #1b2035;
  --muted: #5a6073;
  --line: #e5e0d8;
  --primary: #5044af;
  --tint: #efebff;
  --rail: #25264f;
  --rail-ink: #f7f5ff;
  --rail-muted: #cbc9e5;
  --rail-selected: #3e3e6a;
  --green: #176348;
  --green-bg: #e4f3e9;
  --warn: #8a5017;
  --warn-bg: #faecd9;
  --danger: #a03648;
  --focus: #6357c9;
  --shadow: #29244520;
  --lime: #c6efa8;
  --map: #ebe8e0;
}
:root[data-dark="true"] {
  color-scheme: dark;
  --canvas: #151927;
  --surface: #202536;
  --ink: #f4f1fa;
  --muted: #b5b9ce;
  --line: #383e52;
  --primary: #c5b9ff;
  --tint: #343054;
  --rail: #202240;
  --rail-selected: #3d3d67;
  --green: #90e1bb;
  --green-bg: #243e39;
  --warn: #f6c183;
  --warn-bg: #47372e;
  --danger: #ffadb6;
  --focus: #c5b9ff;
  --shadow: #090b1480;
  --map: #282e3c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font:
    400 15px/1.55 Outfit,
    Arial,
    sans-serif;
  min-width: 300px;
}
html[lang="ar"] body {
  font-family: Arabic, Tahoma, sans-serif;
}
html {
  scrollbar-color: var(--line) var(--canvas);
}
::selection {
  background: var(--tint);
  color: var(--ink);
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.2em;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
button,
input,
select {
  caret-color: var(--primary);
}
svg.icon {
  inline-size: 20px;
  block-size: 20px;
  flex: none;
  vertical-align: middle;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(30px, 3vw, 45px);
  line-height: 1.13;
  letter-spacing: -0.035em;
  font-weight: 650;
}
h2 {
  font-size: 23px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 17px;
  font-weight: 600;
}
html[lang="ar"] :is(h1, h2, h3) {
  letter-spacing: 0;
  line-height: 1.45;
}
.muted,
small {
  color: var(--muted);
}
small {
  font-size: 13px;
}
.skip {
  position: fixed;
  z-index: 10;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  transform: translateY(-150%);
  padding: 10px;
  background: var(--surface);
}
.skip:focus {
  transform: none;
}
.hidden {
  display: none !important;
}
.shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100dvh;
}
.rail {
  background: var(--rail);
  color: var(--rail-ink);
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 29px 18px 20px;
  z-index: 3;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-inline: 10px;
  min-height: 46px;
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1;
}
.brand img {
  width: 43px;
  height: 43px;
}
.brand small {
  display: block;
  color: var(--rail-muted);
  font-size: 11px;
  font-weight: 450;
  letter-spacing: 0;
  margin-block-start: 5px;
}
.nav {
  display: grid;
  gap: 6px;
  margin-block-start: 49px;
}
.nav a,
.rail-foot a,
.rail-foot button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 8px 12px;
  border-radius: 11px;
  color: var(--rail-muted);
  white-space: nowrap;
  background: none;
  border: 0;
  text-align: start;
}
.nav a:hover,
.rail-foot :is(a, button):hover {
  color: var(--rail-ink);
  background: var(--rail-selected);
}
.nav a[aria-current="page"] {
  color: #fff;
  background: var(--rail-selected);
}
.nav a[aria-current="page"] svg {
  color: var(--lime);
}
.rail-foot {
  display: grid;
  gap: 4px;
  margin-block-start: auto;
}
.rail-foot .family-line {
  display: flex;
  align-items: center;
  gap: 10px;
  border-block-start: 1px solid #ffffff28;
  padding: 17px 8px 0;
  margin-block-start: 9px;
  min-width: 0;
}
.family-line strong,
.row-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.family-line small {
  color: var(--rail-muted);
}
.family-line > div {
  min-width: 0;
}
.rail a:focus-visible,
.rail button:focus-visible {
  outline-color: var(--lime);
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 72px;
  border-block-end: 1px solid var(--line);
  padding-inline: clamp(18px, 3vw, 44px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--surface);
}
.topbar > span {
  font-weight: 550;
  color: var(--muted);
}
.top-actions,
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.main {
  max-width: 1560px;
  margin: auto;
  padding: 33px clamp(16px, 3vw, 44px) 42px;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-block-end: 24px;
}
.heading p {
  margin-block-start: 7px;
  color: var(--muted);
  max-width: 65ch;
}
.btn,
.icon-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-block-size: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  text-align: center;
  font-weight: 550;
}
.icon-btn {
  inline-size: 44px;
  padding: 0;
}
.btn:hover,
.icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.primary:hover {
  background: var(--rail);
  color: white;
  border-color: var(--rail);
}
[data-dark="true"] .primary {
  color: #201944;
}
[data-dark="true"] .primary:hover {
  background: #e5dcff;
  color: #201944;
}
.secondary {
  color: var(--primary);
}
.danger {
  color: var(--danger);
}
.compact {
  min-height: 40px;
  font-size: 14px;
}
.ltr {
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}
.demo-tag,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 30px;
  padding: 5px 10px;
  background: var(--tint);
  color: var(--primary);
  white-space: nowrap;
}
.pill.sharing {
  background: var(--green-bg);
  color: var(--green);
}
.pill.stale {
  background: var(--warn-bg);
  color: var(--warn);
}
.pill.paused,
.pill.unpaired {
  background: var(--canvas);
  color: var(--muted);
}
.dot {
  inline-size: 6px;
  block-size: 6px;
  border-radius: 100%;
  background: currentColor;
  flex: none;
}
.map-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(265px, 31%);
  gap: 20px;
  align-items: start;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  min-height: 58px;
}
.panel-head small {
  display: block;
}
.map-frame {
  position: relative;
  min-height: 470px;
  height: clamp(470px, 57vh, 690px);
  isolation: isolate;
  overflow: hidden;
  background: var(--map);
  border-block-start: 1px solid var(--line);
}
.map-image,
.map-pins,
.google-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map-pins {
  pointer-events: none;
}
.map-image {
  object-fit: cover;
}
.map-stamp {
  position: absolute;
  z-index: 1;
  inset-block-start: 14px;
  inset-inline-start: 14px;
  max-width: calc(100% - 28px);
  border-radius: 8px;
  padding: 7px 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  box-shadow: 0 3px 12px var(--shadow);
}
.map-marker {
  position: absolute;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 49px;
  height: 49px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--pin, #5548ad);
  color: white;
  box-shadow: 0 5px 13px #22175050;
  font-weight: 650;
  font-size: 20px;
}
.map-marker[aria-pressed="true"] {
  box-shadow:
    0 0 0 4px var(--pin, #5548ad),
    0 5px 15px #22175070;
}
.map-marker[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  bottom: -13px;
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  border-radius: 2px;
  background: var(--pin, #5548ad);
}
.map-empty {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 28px;
  text-align: center;
  background: linear-gradient(145deg, var(--tint), var(--map) 65%);
}
.map-empty > div {
  max-width: 330px;
}
.map-empty svg {
  width: 44px;
  height: 44px;
  color: var(--primary);
  margin-bottom: 10px;
}
.map-empty p {
  color: var(--muted);
  margin-top: 8px;
}
.map-selection {
  position: absolute;
  inset-inline: 14px;
  inset-block-end: 15px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  width: max-content;
  max-width: calc(100% - 28px);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 4px 18px var(--shadow);
}
.map-selection .summary {
  min-width: 0;
}
.map-selection small {
  display: block;
}
.map-selection strong {
  display: block;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.roster .panel-head {
  border-block-end: 1px solid var(--line);
}
.roster .row {
  width: 100%;
  border: 0;
  border-block-end: 1px solid var(--line);
  background: none;
  text-align: start;
}
.roster .row:last-child {
  border-block-end: 0;
}
.roster .row:hover,
.roster .row[aria-pressed="true"] {
  background: var(--tint);
}
.row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 16px;
  min-width: 0;
}
.row-body {
  flex: 1;
  min-width: 0;
}
.row-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-block-start: 3px;
}
.row-meta svg {
  width: 16px;
  height: 16px;
}
.avatar {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 13px;
  background: var(--pin, #5548ad);
  color: white;
  font-size: 18px;
  font-weight: 600;
}
.avatar.sm {
  width: 36px;
  height: 36px;
  font-size: 15px;
  border-radius: 10px;
}
.tag-indigo {
  --pin: #584bae;
}
.tag-mint {
  --pin: #23745e;
}
.tag-coral {
  --pin: #aa5062;
}
.tag-amber {
  --pin: #8b5a27;
}
.map-meta {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 15px;
  color: var(--muted);
  font-size: 12px;
}
.mono {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  white-space: nowrap;
}
.intro {
  margin-block-end: 20px;
}
.section {
  margin-block-start: 23px;
}
.activity .row + .row,
.list .row + .row,
.setting-list a + a {
  border-block-start: 1px solid var(--line);
}
.event-icon {
  display: grid;
  place-items: center;
  inline-size: 39px;
  block-size: 39px;
  border-radius: 11px;
  background: var(--tint);
  color: var(--primary);
  flex: none;
}
.read {
  opacity: 0.8;
}
.unread {
  color: var(--primary);
}
.segment {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.empty {
  padding: 26px 19px;
  color: var(--muted);
  max-width: 64ch;
}
.form-area {
  max-width: 690px;
}
.form {
  display: grid;
  gap: 17px;
  padding: 23px;
}
.field {
  display: grid;
  gap: 5px;
  font-weight: 550;
  min-width: 0;
}
.field p,
.hint {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.field input:not([type="checkbox"]),
.field select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 11px;
}
.field input:read-only {
  color: var(--muted);
}
.field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}
.field.check {
  display: flex;
  align-items: center;
  gap: 9px;
}
.form-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-block-start: 3px;
}
.setting-list a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 19px;
}
.setting-list a:hover {
  background: var(--tint);
}
.setting-list a p {
  color: var(--muted);
}
.setting-list .icon:last-child {
  margin-inline-start: auto;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-block-end: 15px;
  color: var(--primary);
  font-weight: 550;
  min-height: 40px;
}
html[dir="rtl"] .mirror {
  transform: scaleX(-1);
}
.code {
  direction: ltr;
  unicode-bidi: isolate;
  background: var(--tint);
  color: var(--primary);
  padding: 15px;
  border-radius: 10px;
  font: 600 clamp(18px, 4vw, 27px) / 1.3 monospace;
  letter-spacing: 0.06em;
  text-align: center;
  margin-block: 2px;
}
.room {
  margin-block-start: 16px;
}
.plain-alert {
  display: flex;
  gap: 10px;
  border: 1px solid var(--line);
  padding: 13px;
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface);
}
.notices {
  position: fixed;
  z-index: 5;
  inset-inline-end: 22px;
  inset-block-end: 24px;
  max-width: min(400px, calc(100% - 44px));
  color: var(--surface);
}
.toast {
  border-radius: 11px;
  background: var(--ink);
  padding: 12px 17px;
  box-shadow: 0 5px 20px var(--shadow);
}
.gate {
  max-width: 1100px;
  min-height: 100dvh;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  padding: 24px;
  gap: 32px;
}
.gate-story {
  background: var(--rail);
  color: var(--rail-ink);
  border-radius: 16px;
  display: grid;
  align-content: space-between;
  min-height: 560px;
  overflow: hidden;
  padding: 26px;
  position: relative;
  isolation: isolate;
}
.gate-story h2 {
  font-size: clamp(29px, 4.6vw, 53px);
  max-width: 13ch;
  margin-block-end: 11px;
}
.gate-story p {
  color: var(--rail-muted);
  max-width: 35ch;
}
.gate-story .brand {
  padding: 0;
}
.gate-art {
  position: absolute;
  z-index: -1;
  inset: 88px -18% 115px;
  width: 136%;
  height: 63%;
  opacity: 0.75;
  object-fit: cover;
  mask-image: linear-gradient(transparent, #000 22%, #000 68%, transparent);
}
.gate-controls {
  display: flex;
  justify-content: flex-end;
  margin-block-end: 19px;
  gap: 8px;
}
.gate .form {
  padding: 17px 0 0;
}
.gate .heading {
  margin: 0;
}
.gate .actions {
  margin-top: 16px;
}
.photo-label {
  color: var(--muted);
}
@media (max-width: 1150px) {
  .shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .rail {
    padding-inline: 12px;
  }
  .map-grid {
    grid-template-columns: minmax(0, 1fr) minmax(245px, 33%);
  }
  .row {
    padding-inline: 12px;
  }
}
@media (max-width: 930px) {
  .shell {
    grid-template-columns: 68px minmax(0, 1fr);
  }
  .rail {
    padding: 13px 9px;
  }
  .rail .brand {
    padding: 0;
    justify-content: center;
  }
  .rail
    :is(
      .brand-label,
      .nav a span,
      .rail-foot :is(button, a) span,
      .family-line div
    ) {
    display: none;
  }
  .rail :is(.nav a, .rail-foot a, .rail-foot button, .family-line) {
    justify-content: center;
    padding-inline: 0;
  }
  .nav {
    margin-block-start: 25px;
  }
}
@media (max-width: 730px) {
  .shell {
    display: block;
    padding-block-end: 72px;
  }
  .rail {
    position: fixed;
    top: auto;
    bottom: 0;
    inset-inline: 0;
    width: 100%;
    height: auto;
    padding: 5px 6px max(5px, env(safe-area-inset-bottom));
    background: var(--rail);
    box-shadow: 0 -3px 12px var(--shadow);
  }
  .rail :is(.brand, .rail-foot) {
    display: none;
  }
  .nav {
    display: flex;
    gap: 3px;
    margin: 0;
  }
  .nav a {
    flex: 1;
    flex-direction: column;
    gap: 1px;
    min-height: 53px;
    padding: 5px 2px;
    font-size: 11px;
  }
  .rail .nav a span {
    display: block;
  }
  .nav svg {
    width: 19px;
    height: 19px;
  }
  .topbar {
    height: 61px;
  }
  .main {
    padding-block-start: 22px;
  }
  .map-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .map-frame {
    min-height: 315px;
    height: 45dvh;
    max-height: 540px;
  }
  .heading {
    align-items: start;
  }
  .gate {
    display: block;
    max-width: 580px;
    padding: 15px;
  }
  .gate-story {
    min-height: auto;
    padding: 12px 15px;
    margin-block-end: 18px;
  }
  .gate-story :is(.gate-art, .gate-intro) {
    display: none;
  }
  .gate-controls {
    margin-block-end: 12px;
  }
  .notices {
    inset-block-end: 79px;
  }
}
@media (max-width: 400px) {
  .topbar > span {
    font-size: 13px;
  }
  .heading .btn {
    padding-inline: 9px;
  }
  .heading h1 {
    font-size: 29px;
  }
  .form-pair {
    grid-template-columns: 1fr;
  }
  .form {
    padding: 17px;
  }
  .map-meta {
    flex-wrap: wrap;
    gap: 4px;
  }
  .map-selection .btn {
    padding: 6px 8px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .map-marker,
  .btn,
  .nav a,
  .row {
    transition:
      background-color 0.16s ease-out,
      box-shadow 0.16s ease-out;
  }
  .map-selection {
    animation: appear 0.22s cubic-bezier(0.18, 0.8, 0.26, 1) both;
  }
  @keyframes appear {
    from {
      opacity: 0.45;
      transform: translateY(4px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
