@font-face {
  font-family: Nunito;
  src: url("fonts/Nunito-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F7F4EE;
  --ink: #0E1218;
  --text: #303741;
  --muted: #68717D;
  --line: #E6E1D8;
  --amber: #F59E0B;
  --white: #FFFFFF;
  --alert: #C0392B;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --logo: Nunito, ui-sans-serif, sans-serif;
  --glass: rgba(255, 255, 255, 0.56);
  --glass-edge: rgba(255, 255, 255, 0.82);
  --shadow: 0 1px 0 rgba(14, 18, 24, 0.04), 0 14px 36px -22px rgba(14, 18, 24, 0.2);
  --shadow-dock: 0 10px 28px -14px rgba(14, 18, 24, 0.22), 0 0 0 1px rgba(14, 18, 24, 0.05);
  --phone-w: 402px;
  --phone-h: 874px;
  --phone-scale: 1;
  --gutter: 22px;
  --type-display: 32px;
  --type-page: 28px;
  --type-nav: 17px;
  --type-body: 15px;
  --type-meta: 12px;
  --radius-card: 22px;
  --radius-control: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  min-height: 100%;
  background: #E8E2D6;
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
body.studio {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 48px;
  padding: 56px 32px 80px;
}
body.one {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
@media (max-height: 980px) {
  :root { --phone-scale: 0.82; }
}
@media (max-width: 430px) {
  :root {
    --phone-scale: 1;
    --phone-w: 100vw;
    --phone-h: 100dvh;
  }
  body.one { padding: 0; min-height: 100dvh; background: #111; }
  .Phone { border-radius: 0; }
}
.PhoneWrap {
  width: calc(var(--phone-w) * var(--phone-scale));
  height: calc(var(--phone-h) * var(--phone-scale));
}
.Pad { margin: 16px var(--gutter) 0; }
.Frame { width: var(--phone-w); }
.Cap {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.Cap b { color: var(--ink); font-weight: 600; }

.Phone {
  position: relative;
  width: var(--phone-w);
  height: var(--phone-h);
  transform: scale(var(--phone-scale));
  transform-origin: top left;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--text);
  border-radius: 44px;
  background:
    radial-gradient(820px 420px at 50% -18%, rgba(245, 158, 11, 0.16), transparent 58%),
    var(--paper);
  box-shadow: var(--shadow), 0 0 0 1px rgba(14, 18, 24, 0.06);
}

.Status {
  height: 54px;
  flex: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 28px 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.Battery {
  width: 25px;
  height: 12px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  position: relative;
  opacity: 0.9;
}
.Battery::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  bottom: 2px;
  width: 70%;
  background: var(--ink);
  border-radius: 1px;
}
.Battery i {
  position: absolute;
  right: -4px;
  top: 3px;
  width: 2px;
  height: 6px;
  background: var(--ink);
  border-radius: 0 1px 1px 0;
}

.Top { padding: 6px var(--gutter) 0; flex: none; }
.Logo {
  font-family: var(--logo);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
  text-decoration: none;
}
.Phone .Logo {
  pointer-events: none;
  user-select: none;
  cursor: default;
}
.Logo i { font-style: normal; color: var(--amber); }
.Day {
  margin-top: 12px;
  font-size: var(--type-page);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1.15;
}
.Place {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.45;
}
.Live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--alert);
}
.Live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--alert);
  box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.45);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(192, 57, 43, 0); }
}

.Next, .Sheet {
  margin-left: var(--gutter);
  margin-right: var(--gutter);
}
.Next {
  margin-top: 22px;
  padding: 20px 20px 18px;
  background: var(--white);
  border: 0;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  flex: none;
}
.Next .lbl,
.Sheet .lbl,
.Fact .lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.Next .who {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.Next .meta {
  margin-top: 5px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.Btn {
  margin-top: 16px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--amber);
  color: #1F1500;
  font-size: var(--type-body);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.Btn.ghost {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}
.Btn.alert {
  background: transparent;
  color: var(--alert);
  border: 1.5px solid var(--alert);
  box-shadow: none;
}
.Btn.ink { background: var(--ink); color: #fff; }
.Btn[hidden],
.Sheet[hidden] { display: none; }
button.Btn {
  width: 100%;
  border: 0;
  cursor: pointer;
  font-family: var(--font);
}

.Sheet {
  margin-top: 12px;
  padding: 16px 18px 10px;
  background: var(--white);
  border: 0;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}
.Sheet .lbl { padding-bottom: 6px; }

.Row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
button.Row, button.Logo, button.MenuLink, button.Pill {
  width: 100%;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
}
button.Logo, button.MenuLink {
  width: auto;
  border-bottom: 0;
}
button.Pill {
  width: auto;
  border-bottom: 0;
}
.Sheet .Row:last-child,
.Sheet .Fact:last-child { border-bottom: 0; }
.Row.done .Who { color: var(--muted); }
.Row.done .What { color: var(--muted); }
.Who {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.What {
  margin-top: 3px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.Go {
  flex: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(14, 18, 24, 0.05);
}
.Go.quiet {
  background: transparent;
  color: var(--muted);
  font-weight: 500;
  padding: 8px 0;
}
.Go.next {
  background: rgba(245, 158, 11, 0.18);
  color: #8A5A00;
}

.Fact {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.Fact .Note { padding: 4px 0 0; font-size: 14px; line-height: 1.4; }
.Note {
  padding: 10px 0 6px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

.Tabs {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 22px;
  z-index: 4;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.Tabs[hidden] { display: none; }
.Tabs::before {
  content: "";
  position: absolute;
  left: -16px;
  right: -16px;
  bottom: -22px;
  height: 96px;
  background: linear-gradient(to bottom, transparent, var(--paper) 46%);
  pointer-events: none;
  z-index: -1;
}
.TabsMain {
  flex: 1;
  min-width: 0;
  height: 56px;
  display: flex;
  align-items: stretch;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 32px -18px rgba(14, 18, 24, 0.28), 0 0 0 1px rgba(14, 18, 24, 0.04);
}
.Tab {
  position: relative;
  flex: 1;
  min-width: 44px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: #6A7180;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  padding: 0;
  white-space: nowrap;
}
.Tab svg { width: 22px; height: 22px; display: block; flex: none; }
.Tab > span { display: none; }
.Tab.on {
  flex: 1.7;
  min-width: 92px;
  gap: 8px;
  padding: 0 14px;
  color: #fff;
  background: var(--ink);
}
.Tab.on > span { display: block; }
.Tab.hit {
  flex: none;
  width: auto;
  min-width: 56px;
  height: 56px;
  padding: 0 16px;
  gap: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 10px 32px -18px rgba(14, 18, 24, 0.28), 0 0 0 1px rgba(14, 18, 24, 0.04);
}
.Tab.hit > span { display: block; }
.Tab.attention::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--alert);
  box-shadow: 0 0 0 2px #fff;
}
.Tab.hit.on {
  color: #fff;
  background: var(--ink);
}
.Tab.on::after { box-shadow: 0 0 0 2px var(--ink); }

.Body {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 140px;
  scrollbar-width: none;
}
.Body::-webkit-scrollbar { display: none; }

.Pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0 10px;
}
.Pill {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(14, 18, 24, 0.05);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
}
.Pill.on {
  background: var(--ink);
  color: #fff;
}

.Topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.Topbar:has(> .MenuLink) {
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
}
.Topbar:has(> .MenuLink) .MenuLink {
  grid-column: 1;
  justify-self: start;
}
.Topbar:has(> .MenuLink) .Logo {
  grid-column: 2;
  justify-self: center;
}
.Topbar:has(> .BackOrb) {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
}
.Topbar:has(> .BackOrb) .BackOrb {
  grid-column: 1;
  grid-row: 1;
}
.Topbar:has(> .BackOrb) .Logo {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
}
.Topbar:has(> .EditLink) .EditLink {
  grid-column: 3;
  justify-self: end;
}
.MenuLink {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.Lock {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 32px 72px;
  text-align: center;
}
.Lock .Logo { font-size: 22px; }
.Lock.splash {
  padding-bottom: 0;
  position: relative;
}
.Lock.splash::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.2), transparent 70%);
}
.Lock.splash .Logo {
  position: relative;
  font-size: 22px;
}
.Lock .Day {
  margin-top: 16px;
  font-size: 22px;
}
.Lock .Place { margin-top: 8px; max-width: 260px; line-height: 1.45; }
.Lock .Btn { width: 100%; max-width: 280px; }
.Orb.ghost {
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}
.GateLead {
  margin: 8px 4px 0;
  max-width: 320px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.45;
}
.Quiet.left {
  display: block;
  margin: 16px 4px 0;
  text-align: left;
}
.Quiet.lock-alt {
  display: block;
  width: 100%;
  text-align: center;
}
.home-body > .Sheet,
.home-body > .Pad {
  margin-left: 0;
  margin-right: 0;
}
.home-body .Dots { margin-top: 28px; }
.home-body .Keys { margin-left: auto; margin-right: auto; }
a.Quiet, .Quiet, button.Quiet {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font);
}
.Pad .Quiet { width: 100%; text-align: center; }

.Dots {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 28px 0 8px;
}
.Dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
}
.Dot.on { background: var(--ink); }
.Keys {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  gap: 12px 18px;
  justify-content: center;
  margin-top: 28px;
}
.Key {
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font-family: var(--font);
  font-size: 24px;
  font-weight: 600;
  cursor: pointer;
}
.Key:nth-child(10) { grid-column: 2; }
.Keys.off { pointer-events: none; opacity: 0.28; }
.Warn {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.Drop {
  margin: 12px 20px 0;
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.Drop [hidden] { display: none !important; }
.Drop a, .Drop button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.Drop button.go::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.8px solid #B8B3A8;
  border-top: 1.8px solid #B8B3A8;
  transform: rotate(45deg);
}
.Drop a:last-child, .Drop button:last-child, .Drop .Later { border-bottom: 0; }
.Scrim {
  position: absolute;
  inset: 0;
  background: rgba(14, 18, 24, 0.18);
  z-index: 1;
}
.Sheet.float,
.Next.float,
.Drop.float,
.View[data-view="menu"] .Top {
  position: relative;
  z-index: 2;
}

.Empty {
  margin: 36px 28px 0;
  text-align: center;
}
.Empty .who {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.25;
}
.Empty .meta {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}
.Empty .Btn { max-width: 220px; margin-left: auto; margin-right: auto; }

.Frozen { pointer-events: none; }
.Write {
  display: block;
  width: 100%;
  min-height: 140px;
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  resize: none;
}
.Write:focus { outline: 2px solid rgba(245, 158, 11, 0.45); }
.Late {
  margin-top: 4px;
  padding: 14px 0 8px;
  border-top: 1px solid var(--line);
}
.Hint {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}
.Sheet.staff-card {
  padding: 16px 18px 18px;
}
.Sheet.staff-card .Note {
  padding: 4px 0 10px;
  font-size: 14px;
  color: var(--muted);
}
.Sheet.staff-card .Btn {
  margin-top: 8px;
}
.Sheet.staff-card .Quiet {
  margin-top: 10px;
  display: block;
  width: 100%;
  text-align: center;
}
.CodeShow {
  margin: 8px 0 12px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.28em;
  font-variant-numeric: tabular-nums;
}
.Copied {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}

.View { display: none; flex: 1; flex-direction: column; min-height: 0; overflow: hidden; }
.View.on { display: flex; overflow: visible; }
.Role {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(14, 18, 24, 0.06);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.Account {
  display: flex;
  align-items: center;
  gap: 8px;
}
.Field { margin-top: 14px; }
.Fields .Field:first-child { margin-top: 0; }
.Field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}
.Field input,
.Field select {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #DCD7CD;
  border-radius: 14px;
  background: #FCFBF8;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
}
.Field select {
  appearance: none;
  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, #77736C 50%),
    linear-gradient(135deg, #77736C 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 22px,
    calc(100% - 15px) 22px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.Field input:focus,
.Field select:focus { outline: 2px solid rgba(245, 158, 11, 0.45); }
.Later {
  color: #B4B8C0 !important;
  pointer-events: none;
}
.Tab.later { background: transparent; pointer-events: none; }
.Drop .Later {
  display: block;
  padding: 16px 18px;
  font-size: 16px;
  font-weight: 600;
}
.Switcher {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 8;
  align-items: center;
  justify-content: center;
  background: var(--paper);
}
.Phone.away .Switcher { display: flex; }
.Phone.away .Switcher .Logo { font-size: 22px; }
.MenuCol { display: flex; align-items: center; gap: 10px; }
button.Quiet, .Quiet {
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font);
}
.Greet {
  margin-top: 10px;
  font-size: var(--type-page);
  font-weight: 600;
  letter-spacing: -0.045em;
  color: var(--ink);
  line-height: 1.12;
}
.Lock .Greet {
  margin-top: 12px;
  font-size: 20px;
}
.Body.slim {
  display: flex;
  flex-direction: column;
  padding-bottom: 28px;
}
.Body.slim .Sheet:not(.staff-card),
.Fields {
  margin: 8px 22px 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-radius: 0;
}
.Body.slim .Pad { margin-top: auto; }
.Body.slim .Field input,
.Body.slim .Field select,
.Fields .Field input,
.Fields .Field select {
  height: 52px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.88);
}
.Home {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.HomeGraffiti {
  position: absolute;
  left: 0;
  right: 0;
  top: 36px;
  height: 58%;
  pointer-events: none;
  color: rgba(14, 18, 24, 0.1);
}
.HomeHero {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 28px 22px;
}
.Home .Greet {
  margin-top: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.Home .Logo { margin-top: auto; margin-bottom: auto; font-size: 32px; letter-spacing: -0.02em; }
.HomeTag {
  margin-top: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.45;
}
.HomeSheet {
  position: relative;
  flex: none;
  margin: 0;
  padding: 28px 28px 48px;
  background: #fff;
  border-radius: 44px 44px 0 0;
  box-shadow: 0 -24px 50px -30px rgba(14, 18, 24, 0.28);
}
.HomeSheet .Path {
  background: var(--paper);
  box-shadow: none;
}
.HomeSheet .Path.ink {
  background: var(--ink);
}
.Paths {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.Paths.help {
  margin: 8px 22px 0;
}
.Path {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 54px;
  margin: 0;
  padding: 0 18px;
  background: var(--white);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(14, 18, 24, 0.06);
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font);
}
.Path.ink {
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}
.Path.ink .Ico { color: #fff; }
.Ico {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--ink);
}
.Home .Warn { margin: 12px 4px 0; text-align: center; }
.home-link {
  display: block;
  width: 100%;
  margin-top: 22px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}
.home-link + .home-link { margin-top: 8px; }
.AuthFoot {
  margin-top: 26px;
  padding-top: 0;
  display: flex;
  justify-content: center;
  gap: 28px;
}
.AuthFoot button {
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
}
.Back {
  width: 36px;
  height: 36px;
  margin: 0 0 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(14, 18, 24, 0.06);
  cursor: pointer;
  position: relative;
}
.Back::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 12px;
  width: 8px;
  height: 8px;
  border-left: 1.8px solid var(--ink);
  border-bottom: 1.8px solid var(--ink);
  transform: rotate(45deg);
}
.PassWrap {
  position: relative;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}
.Fields .PassWrap input,
.Body.slim .PassWrap input {
  background: transparent;
}
.PassWrap input { padding-right: 72px; }
.Show {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  height: 36px;
  padding: 0 12px;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.Resend {
  margin-top: 8px;
  text-align: center;
}
.Resend .Hint {
  margin-top: 4px;
  line-height: 1.45;
}

body.site {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  display: block;
  padding: 0;
}
.Site {
  position: relative;
  min-height: 100vh;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.Site .View { min-height: 100vh; }
.Site .View.on { display: flex; }
.Site .Home {
  min-height: 100vh;
  padding: 48px 40px 40px;
}
.Site .HomeGraffiti {
  position: absolute;
  inset: 0 0 auto 0;
  height: 420px;
  width: 100%;
  color: rgba(14, 18, 24, 0.1);
  pointer-events: none;
}
.Site .HomeHero { padding-top: 12px; }
.Site .HomeSheet {
  margin: 28px auto 0;
  max-width: 420px;
  width: 100%;
  border-radius: 28px;
  padding-bottom: 28px;
}
.Site .Top {
  padding: 36px 40px 0;
}
.Site .Body {
  padding-bottom: 48px;
}
.Site .Body.slim {
  padding: 8px 40px 48px;
  max-width: 480px;
}
.Site .Lock {
  padding: 80px 40px 48px;
  max-width: 480px;
}
.Site .IdleBar {
  margin: 16px 40px 0;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.Site .DeskGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 8px 40px 0;
}
@media (max-width: 760px) {
  .Site .DeskGrid { grid-template-columns: 1fr; }
  .Site .Home, .Site .Top { padding-left: 22px; padding-right: 22px; }
  .Site .Body.slim, .Site .Lock { padding-left: 22px; padding-right: 22px; }
  .Site .IdleBar, .Site .DeskGrid { margin-left: 22px; margin-right: 22px; }
  .Site .DeskGrid { padding-left: 0; padding-right: 0; }
}
.Site .Sheet.staff-card { margin-left: 0; margin-right: 0; }

body.doors {
  margin: 0;
  min-height: 100vh;
  background: #E8E2D6;
  padding: 36px 28px 56px;
}
.DoorsHead {
  max-width: 1280px;
  margin: 0 auto 28px;
}
.DoorsHead .Logo { font-size: 28px; }
.DoorsHead p {
  margin-top: 8px;
  max-width: 560px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.Doors {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 402px) minmax(420px, 1fr);
  gap: 40px;
  align-items: start;
}
.Door {
  min-width: 0;
}
.Door h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}
.Door .who {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}
.Door a {
  color: var(--ink);
  font-weight: 600;
}
.DoorFrame {
  background: #111;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.DoorFrame.app {
  width: 402px;
  height: 874px;
  max-width: 100%;
}
.DoorFrame.web {
  width: 100%;
  height: 874px;
  background: var(--paper);
}
.DoorFrame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--paper);
}
@media (max-width: 980px) {
  .Doors { grid-template-columns: 1fr; }
  .DoorFrame.app { margin: 0 auto; }
}

.Mug {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.Mug.lg {
  width: 88px;
  height: 88px;
  font-size: 28px;
}
.PersonRow {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.CardHead {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 20px 4px;
}
.CardHead h1 {
  margin: 0;
  color: var(--ink);
  font-size: var(--type-page);
  font-weight: 600;
  letter-spacing: -0.04em;
}
.CardHead p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.Plan {
  display: grid;
  gap: 0;
}
.Plan i {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-style: normal;
}
.Plan i:last-child { border-bottom: 0; }
.Plan b {
  width: 76px;
  flex: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.Plan span { color: var(--text); font-size: 14px; }
.Bar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  width: 100%;
}
.Bar .Logo {
  justify-self: center;
  font-size: 22px;
  pointer-events: none;
  user-select: none;
}
.Face {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.Face .Mug {
  width: 36px;
  height: 36px;
  font-size: 12px;
}
.StaffPhoto {
  width: 36px;
  height: 36px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(14, 18, 24, 0.08);
}
.StaffPhoto.lg {
  width: 80px;
  height: 80px;
}
.AvatarSlot {
  flex: none;
  display: grid;
  place-items: center;
}
.ProfileRow > .AvatarSlot {
  width: 52px;
  height: 52px;
}
.ProfileRow > .AvatarSlot .StaffPhoto {
  width: 52px;
  height: 52px;
}
.SheetHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.SheetHead .Hello { margin: 0; }
.settings-top {
  padding: 18px var(--gutter) 0;
}
.SettingsTitle {
  color: var(--ink);
  font-size: var(--type-display);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.1;
}
.CloseOrb,
.BackOrb {
  position: relative;
  width: 46px;
  height: 46px;
  flex: none;
  border: 1px solid rgba(14, 18, 24, 0.06);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.CloseOrb::before,
.CloseOrb::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 21px;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}
.CloseOrb::before { transform: rotate(45deg); }
.CloseOrb::after { transform: rotate(-45deg); }
.BackOrb::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 15px;
  width: 12px;
  height: 12px;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
}
.settings-body {
  padding: 20px var(--gutter) 32px;
}
.ProfileRow {
  width: 100%;
  min-height: 88px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
}
.ProfileRow .profile-mug {
  width: 52px;
  height: 52px;
  font-size: 15px;
}
.ProfileRow > div {
  min-width: 0;
  flex: 1;
}
.ProfileRow strong {
  display: block;
  color: var(--ink);
  font-size: var(--type-nav);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.ProfileRow span:not(.Mug) {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ProfileRow span .js-role {
  display: inline;
  margin: 0;
  overflow: visible;
  white-space: inherit;
}
.ProfileRow > i,
.SettingsRow > i,
.TrainCount > i {
  width: 9px;
  height: 9px;
  flex: none;
  border-right: 1.8px solid #9B978E;
  border-top: 1.8px solid #9B978E;
  transform: rotate(45deg);
}
.SettingsGroup {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(14, 18, 24, 0.05);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: 0 10px 30px -26px rgba(14, 18, 24, 0.35);
}
.SettingsRow {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--type-body);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.SettingsRow:last-child { border-bottom: 0; }
.SettingsRow[hidden] { display: none; }
.SettingsValue {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.SettingsSignout {
  width: 100%;
  min-height: 54px;
  margin-top: 28px;
  padding: 0 18px;
  border: 1px solid rgba(192, 57, 43, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--alert);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.SettingsFoot {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}
.SettingsIntro {
  margin: 2px 2px 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.PreferenceRow {
  width: 100%;
  min-height: 72px;
  padding: 12px 16px 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
}
.PreferenceRow:last-child { border-bottom: 0; }
.PreferenceRow > span { min-width: 0; }
.PreferenceRow strong,
.PreferenceRow small {
  display: block;
}
.PreferenceRow strong {
  font-size: var(--type-body);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.PreferenceRow small {
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--type-meta);
  font-weight: 400;
  line-height: 1.4;
}
.Switch {
  position: relative;
  width: 46px;
  height: 28px;
  flex: none;
  border-radius: 999px;
  background: #D8D4CC;
  transition: background 0.2s ease;
}
.Switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(14, 18, 24, 0.2);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.PreferenceRow[aria-pressed="true"] .Switch {
  background: var(--ink);
}
.PreferenceRow[aria-pressed="true"] .Switch::after {
  transform: translateX(18px);
}
.preference-foot {
  margin: 18px 10px 0;
  line-height: 1.45;
}
.NativeTopbar {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
}
.NativeTopbar > strong {
  color: var(--ink);
  font-size: var(--type-nav);
  font-weight: 600;
  text-align: center;
  letter-spacing: -0.02em;
}
.profile-top { padding: 16px var(--gutter) 0; }
.profile-body { padding: 28px var(--gutter) 44px; }
.ProfileHero {
  text-align: center;
}
.ProfileHero .Mug {
  margin: 0 auto;
  width: 80px;
  height: 80px;
  font-size: 24px;
}
.ProfileHero .AvatarSlot {
  width: 80px;
  height: 80px;
  margin: 0 auto;
}
.ProfileHero h1 {
  margin-top: 14px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.ProfileHero p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.ProfileFacts {
  margin-top: 28px;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow);
}
.ProfileFacts > div {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.ProfileFacts > div:last-child { border-bottom: 0; }
.ProfileFacts span,
.ProfileFacts strong {
  display: block;
}
.ProfileFacts span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.ProfileFacts strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.ProfileNote {
  margin: 16px 4px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.Orb {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-dock);
  cursor: pointer;
}
.Orb svg { width: 22px; height: 22px; display: block; }
.Orb .Dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--alert);
}
.Orb { position: relative; }
.When {
  margin: 18px 4px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.Hello {
  margin: 6px 4px 0;
  color: var(--ink);
  font-size: var(--type-display);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
}
.Hello.slim { font-size: 28px; margin: 10px var(--gutter) 0; }
.home-body { padding: 0 var(--gutter) 160px; }
.stack-body { padding: 8px 0 40px; }
.Sheet.flush { margin-top: 12px; }
.HomeList[hidden] { display: none; }
.Now[hidden] { display: none; }
.Now {
  width: 100%;
  margin-top: 22px;
  padding: 18px 18px 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: left;
  cursor: pointer;
  font-family: var(--font);
}
.Now .lbl { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink); }
.Now strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}
.NowGo {
  flex: none;
  height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.NowGo[hidden] { display: none; }
.Tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.Tile {
  padding: 16px 16px 18px;
  border: 0;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: left;
  cursor: pointer;
  font-family: var(--font);
}
.TileTop {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}
.TileTop svg { width: 18px; height: 18px; display: block; }
.TileTop span { color: var(--ink); font-size: 16px; }
.Tile b {
  display: block;
  margin-top: 18px;
  color: var(--ink);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.Tile em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
}
.Duty {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(245, 158, 11, 0.14);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.Duty[hidden] { display: none; }
.Task {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 8px;
  padding: 14px 16px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: left;
  cursor: pointer;
  font-family: var(--font);
}
.Task b {
  width: 76px;
  flex: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.Task.you { box-shadow: inset 0 0 0 1.5px rgba(245, 158, 11, 0.45); }
.WeekDay {
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}
.WeekDay:last-child { border-bottom: 0; }
.WeekDay b {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.WeekDay span {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}
.WeekDay.on b { color: #8A5A00; }
.HomeList { margin-top: 22px; }
.HomeListTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}
.HomeListTop button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
}
.HomeList .Row {
  padding: 14px 14px;
  margin-bottom: 10px;
  border: 0;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}
.HomeList .Go {
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
}
.RowActs {
  display: flex;
  flex: none;
  gap: 8px;
}
.DocumentView { align-items: flex-start; }
.DocumentView .Go {
  max-width: 92px;
  white-space: normal;
  text-align: right;
  line-height: 1.35;
}
.DocumentView .Go.soon { color: var(--amber); }
.DocumentView .Go.expired { color: var(--alert); }

.IncidentList { margin: 18px var(--gutter) 0; }
.IncidentGroup + .IncidentGroup { margin-top: 28px; }
.IncidentGroupHead { padding: 0 4px 10px; }
.IncidentGroupHead p {
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--type-meta);
  line-height: 1.4;
}
.IncidentGroupRows {
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow);
}
.IncidentRow {
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  text-align: left;
}
button.IncidentRow { cursor: pointer; }
.IncidentRow:last-child { border-bottom: 0; }
.IncidentRow .What { margin-top: 4px; }
.IncidentMonth {
  padding: 14px 16px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--type-meta);
  font-weight: 600;
}
.IncidentEmpty { padding: 18px 16px; }
.StatusChip {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--type-meta);
  font-weight: 600;
  white-space: nowrap;
}

#app-reports {
  margin-top: 8px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.ReportDay + .ReportDay { margin-top: 28px; }
.ReportDayHead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px 10px;
}
.ReportDayHead h2 {
  color: var(--ink);
  font-size: var(--type-nav);
  font-weight: 600;
}
.ReportDayHead span {
  color: var(--muted);
  font-size: var(--type-meta);
}
.ReportRows {
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow);
}
.ReportRow {
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
}
.ReportRow:last-child { border-bottom: 0; }
.ReportRow .What { margin-top: 4px; }
.ReportEmpty { padding: 18px 16px; }
.BodyCheckChoice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 var(--gutter) 14px;
}
.BodyChoice {
  min-width: 0;
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  text-align: left;
}
.BodyChoice.on {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}
.BodyChoice b,
.BodyChoice small { display: block; }
.BodyChoice b { font-size: var(--type-body); }
.BodyChoice small {
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--type-meta);
  line-height: 1.25;
}
.BodyChoice.on small { color: var(--paper); }
.NoMarkSign,
.MarkSign {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-weight: 700;
}
.BodyMarkEditor { padding-bottom: 18px; }
.BodySideTabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-bottom: 14px;
}
.BodyFigureWrap {
  position: relative;
  max-width: 300px;
  margin: 0 auto;
  padding: 8px 12px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
}
.BodyFigure {
  width: 100%;
  height: 330px;
  display: block;
  color: var(--ink);
  filter: drop-shadow(7px 8px 0 var(--line));
}
.BodyFigure.back { transform: scaleX(-1); }
.BodySideTabs { flex-wrap: wrap; }
.BodyCanvas {
  width: 100%;
  height: 380px;
  display: block;
  touch-action: pan-y;
  cursor: grab;
}
.BodyCanvas:active { cursor: grabbing; }
.BodyZoom {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.BodyZoomBtn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: var(--type-body);
  font-weight: 700;
  cursor: pointer;
}
.BodyZoomBtn.wide { font-size: var(--type-meta); font-weight: 600; }
.BodyZoomBtn[hidden] { display: none; }
.BodyTurn {
  width: 100%;
  margin: 6px 0 0;
  accent-color: var(--ink);
}
.BodyDepth {
  stroke: var(--muted);
  stroke-width: 2;
}
.BodyDepth ellipse { fill: url("#body-head-volume"); }
.BodyDepth path { fill: url("#body-volume"); }
.BodyZones > * {
  fill: var(--amber);
  opacity: 0;
  cursor: pointer;
}
.BodyZones > *:hover { opacity: 0.16; }
.BodyPin {
  fill: var(--amber);
  stroke: var(--white);
  stroke-width: 4;
  pointer-events: none;
}
.BodyFigureHint {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--type-meta);
  text-align: center;
}
.BodyLocation {
  margin: 12px 0 4px;
  padding: 10px 12px;
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--ink);
  font-size: var(--type-meta);
  font-weight: 600;
  text-align: center;
}
.BodyMarkSaved {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.BodyMarkSaved:last-child { border-bottom: 0; }
.BodyMarkRow {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.BodyMarkRow b {
  color: var(--ink);
  font-size: var(--type-body);
}
.BodyMarkRow p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: var(--type-meta);
  line-height: 1.4;
}
.BodyMarkDot {
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--amber);
}
#body-carried-list .BodyMarkRow { padding: 10px 0; }
.SupportApp { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.SupportAppPrivacy {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
}
.SupportAppPrivacy b {
  color: var(--ink);
  font-size: var(--type-body);
}
.SupportAppPrivacy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: var(--type-meta);
  line-height: 1.45;
}
.SupportAppMessages {
  min-height: 220px;
  max-height: 300px;
  overflow-y: auto;
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--radius-card);
  background: var(--paper);
}
.SupportAppMessage {
  width: fit-content;
  max-width: 88%;
  margin-bottom: 10px;
  padding: 11px 13px;
  border-radius: var(--radius-control);
  background: var(--white);
  color: var(--ink);
  font-size: var(--type-body);
  line-height: 1.45;
}
.SupportAppMessage.mine {
  margin-left: auto;
  background: var(--ink);
  color: var(--white);
}
.SupportAppTopics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.SupportAppComposer {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: var(--type-meta);
  font-weight: 600;
}
.SupportAppComposer textarea {
  min-height: 100px;
  margin-top: 7px;
}
.SupportApp > .Btn { margin-top: 14px; }
.NoteAssistHead,
.NoteAssistMeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.NoteAssistHead .Quiet {
  width: auto;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: var(--type-meta);
}
.NoteAssistMeta {
  align-items: flex-start;
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--type-meta);
  line-height: 1.35;
}
.NoteAssistMeta span:last-child { text-align: right; }
.NoteAttest {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  margin-top: 18px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--paper);
}
.NoteAttest input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--ink);
}
.NoteAttest b,
.NoteAttest span { display: block; }
.NoteAttest b {
  color: var(--ink);
  font-size: var(--type-body);
}
.NoteAttest span {
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--type-meta);
  line-height: 1.4;
}
.TeamPeople {
  display: grid;
  gap: 10px;
}
.TeamPeople > div {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.TeamPeople > div:last-child { border-bottom: 0; }
.TeamPeople b,
.TeamPeople small { display: block; }
.TeamPeople b {
  color: var(--ink);
  font-size: var(--type-body);
}
.TeamPeople small {
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--type-meta);
}
.Pills button.Pill {
  border: 0;
  cursor: pointer;
  font-family: var(--font);
}
#incident-talk { margin-top: 12px; min-height: 88px; }

.Btn, .Orb, .Key, .Now, .Pill, .Path, .Go, .Quiet, .NavCta,
.SettingsRow, .ProfileRow, .PreferenceRow, .BackOrb, .CloseOrb {
  transition: transform 0.16s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(245, 158, 11, 0.35);
  outline-offset: 2px;
}
.Tab {
  transition: flex 0.28s cubic-bezier(0.22, 1, 0.36, 1), min-width 0.28s ease, background 0.22s ease, color 0.22s ease, padding 0.22s ease, gap 0.22s ease, transform 0.16s ease;
}
.Dot {
  transition: background 0.16s ease, transform 0.16s ease;
}
.Dot.on { transform: scale(1.12); }

@media (prefers-reduced-motion: no-preference) {
  .View.on {
    animation: fade-in 0.2s ease both;
  }
  .View:is(
    [data-view="member"],
    [data-view="arrival"],
    [data-view="body"],
    [data-view="note"],
    [data-view="late"],
    [data-view="departure"],
    [data-view="incident-start"],
    [data-view="incident-mode"],
    [data-view="incident-write"],
    [data-view="incident-summary"],
    [data-view="notify"],
    [data-view="notification-settings"],
    [data-view="profile"]
  ).on {
    animation: stack-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .View[data-view="splash"].on {
    animation: none;
  }
  .Lock.splash .Logo {
    animation: mark-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .Lock.splash::before {
    animation: glow-breathe 2.2s ease-in-out infinite;
  }
  .Scrim {
    animation: fade-in 0.22s ease both;
  }
  .Drop.float {
    animation: rise-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .Btn:active, .Orb:active, .Face:active, .Key:active, .Now:active, .Tab:active, .Pill:active, .Path:active,
  .SettingsRow:active, .ProfileRow:active, .PreferenceRow:active, .BackOrb:active, .CloseOrb:active {
    transform: scale(0.97);
  }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes stack-in {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes mark-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: none; }
}
@keyframes glow-breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.18); opacity: 0.7; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .View.on,
  .Lock.splash .Logo,
  .Lock.splash::before,
  .Scrim,
  .Drop.float { animation: none; }
  .Btn, .Orb, .Key, .Now, .Tab, .Pill, .Path, .Go, .Quiet, .Dot { transition: none; }
}

/* Training and documents to sign */
.TrainCount { display: flex; align-items: center; gap: 10px; }
.SettingsValue.TrainDue { color: #8A5A00; font-weight: 600; }
.SettingsGroup[hidden] { display: none; }
#training-rows { padding-top: 4px; padding-bottom: 4px; }
#training-item .Sheet { margin-left: 0; margin-right: 0; }
.TrainPrivacy { margin: 12px var(--gutter) 0; }
.Mug.MugIcon svg { width: 22px; height: 22px; }
#training-rows .Row > div { min-width: 0; }
.TrainWhat { color: var(--muted); font-weight: 500; }
.TrainChip {
  flex: none;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: var(--type-meta);
  font-weight: 600;
  white-space: nowrap;
  background: rgba(14, 18, 24, 0.05);
  color: var(--ink);
}
.TrainChip.done { background: transparent; color: var(--muted); }
.TrainChip.soon { background: rgba(245, 158, 11, 0.18); color: #8A5A00; }
.TrainChip.late { background: rgba(192, 57, 43, 0.16); color: var(--alert); }
.TrainHead { padding: 4px 2px 2px; }
#training-item .SettingsIntro { margin-top: 14px; }
.TrainType {
  color: var(--muted);
  font-size: var(--type-meta);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.TrainTitle {
  margin-top: 6px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.TrainSteps {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}
.TrainSteps li {
  flex: 1;
  padding-top: 8px;
  border-top: 3px solid var(--line);
  color: var(--muted);
  font-size: var(--type-meta);
  font-weight: 600;
}
.TrainSteps li.past { border-top-color: var(--ink); }
.TrainSteps li.on { border-top-color: var(--amber); color: var(--ink); }
.Paper {
  margin-top: 12px;
  padding: 16px 18px 12px;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}
.PaperHead, .PaperFoot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: var(--type-meta);
  font-weight: 600;
}
.PaperHead { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.PaperFoot {
  display: block;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-weight: 500;
  line-height: 1.4;
}
.Paper h2, .PaperSign {
  margin: 14px 0 6px;
  color: var(--ink);
  font-size: var(--type-nav);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.Paper h2.PaperTitle { font-size: 22px; letter-spacing: -0.02em; line-height: 1.25; }
.PaperVersion { color: var(--muted); font-size: var(--type-meta); font-weight: 600; }
.Paper p { margin-top: 8px; color: var(--text); font-size: var(--type-body); line-height: 1.5; }
.TrainCite {
  margin: 14px 2px 0;
  color: var(--muted);
  font-size: var(--type-meta);
  line-height: 1.4;
}
.TrainEnd {
  margin-top: 14px;
  color: var(--muted);
  font-size: var(--type-meta);
  font-weight: 600;
  text-align: center;
}
.PdfPages { margin-top: 12px; }
.PdfPages .Hint { padding: 24px 0; text-align: center; }
.PdfPage {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 12px;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}
.PdfPage:first-child { margin-top: 0; }
.TrainLink {
  display: inline-block;
  margin-top: 10px;
  color: var(--ink);
  font-size: var(--type-meta);
  font-weight: 600;
  text-decoration: underline;
}
a.TrainLinkBtn { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.TrainMovie {
  display: block;
  width: 100%;
  margin-top: 12px;
  background: var(--ink);
  border-radius: var(--radius-card);
}
.TrainCheck {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--ink);
  font-size: var(--type-body);
  font-weight: 600;
  cursor: pointer;
}
.TrainCheck input { width: 20px; height: 20px; accent-color: var(--ink); }
.ExtCard .Note { padding-top: 0; }
.ExtSteps {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--text);
  font-size: var(--type-body);
  line-height: 1.6;
}
.SigPad {
  position: relative;
  height: 160px;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--white);
}
.SigPad canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.SigLine {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 36px;
  border-top: 1px solid var(--line);
  pointer-events: none;
}
.SigClear { position: absolute; top: 6px; right: 6px; }
.SigImg { display: block; width: 100%; max-width: 280px; margin-top: 12px; }
.SigRule { max-width: 280px; border-top: 1px solid var(--ink); }
.SigFacts { margin: 12px 0 0; }
.SigFacts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.SigFacts dt { color: var(--muted); }
.SigFacts dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }
.TrainUploadImg {
  display: block;
  width: 100%;
  max-height: 360px;
  margin-top: 12px;
  object-fit: contain;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}
.TrainDone { padding: 14px 2px 0; }
.TrainQ { padding-bottom: 14px; }
.TrainQText {
  color: var(--ink);
  font-size: var(--type-body);
  font-weight: 600;
  line-height: 1.4;
}
.TrainOpt {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--type-body);
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}
.TrainOpt.on { border-color: var(--ink); color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--ink); }
.TrainScore { text-align: center; padding-bottom: 14px; }
.TrainBig {
  color: var(--ink);
  font-size: var(--type-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.TrainBig.late { color: var(--alert); }
.TrainPhoto {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 150px;
  margin-top: 14px;
  overflow: hidden;
  border: 1.5px dashed #DCD7CD;
  border-radius: var(--radius-card);
  background: #FCFBF8;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}
.TrainPhoto b { color: var(--ink); font-size: var(--type-body); font-weight: 600; }
.TrainPhoto img { display: block; width: 100%; max-height: 240px; object-fit: contain; }
.TrainErr { color: var(--alert); }
.TrainErr[hidden] { display: none; }
.TrainStatement .Note { padding-top: 0; }
.TrainReceipt { padding-bottom: 6px; }
.TrainSigned { padding-bottom: 6px; color: var(--ink); font-size: var(--type-nav); font-weight: 600; }
.TrainFact {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.TrainFact span { color: var(--muted); }
.TrainFact b { color: var(--ink); font-weight: 600; text-align: right; }
button.Btn:disabled { opacity: 0.4; cursor: default; }
