@font-face {
  font-family: Inter;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Inter;
  src: url("/fonts/inter-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope-cyrillic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Noto Sans Thai";
  src: url("/fonts/noto-sans-thai.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
}

:root {
  --ink: #12252c;
  --muted: #71838a;
  --secondary: #47565c;
  --line: #dde7e8;
  --line-strong: #b3c5c8;
  --bg: #f4f7f7;
  --bg-soft: #e6eef0;
  --sunken: #eef3f3;
  --accent: #67b300;
  --accent-hover: #5a9c00;
  --accent-soft: #eaf6da;
  --menu: #0870b8;
  --menu-on: #ffffff;
  --ok: #2e7d32;
  --ok-soft: #e6f4e2;
  --warn: #a8650a;
  --warn-soft: #faedd8;
  --display: Manrope, "Noto Sans Thai", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: Inter, "Noto Sans Thai", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, .desk-title { font-family: var(--display); }
code { font-family: ui-monospace, Menlo, monospace; font-size: 0.92em; }

.app {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}
#app[hidden], #gate[hidden] { display: none !important; }
.app.panel-open { grid-template-columns: 260px minmax(320px, 1fr) minmax(400px, 460px); }

.side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: white;
  border-right: 1px solid var(--line);
  overflow: auto;
}
.brand { padding: 20px 16px 14px; text-align: center; }
.brand img { width: 188px; height: auto; display: block; margin: 0 auto; }
.side-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 24px);
  margin: 16px 12px 8px;
  padding: 6px 6px;
  border: 0;
  background: transparent;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
}
.fold {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  margin-top: -4px;
}
#lens-wrap.is-shut .fold { transform: rotate(-45deg); margin-top: 2px; }
#lens-wrap.is-shut .lens { display: none; }
.menu, .people, .lens { display: grid; gap: 4px; padding: 0 12px; }
.lens { padding-bottom: 8px; }
.lens button {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 8px 12px;
  text-align: left;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
}
.lens button:hover { background: color-mix(in srgb, var(--menu) 14%, white); }
.lens button.on { background: color-mix(in srgb, var(--menu) 18%, white); color: var(--ink); }
.menu button, .people button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  color: var(--ink);
}
.menu button {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.menu button:hover { background: color-mix(in srgb, var(--menu) 14%, white); }
.people button:hover { background: var(--sunken); }
.menu button.on { background: color-mix(in srgb, var(--menu) 18%, white); color: var(--ink); }
.people button.on { background: var(--accent-soft); color: var(--ink); }
.menu b:empty { display: none; }
.menu b {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--sunken);
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--secondary);
  text-align: center;
}
.menu button.on b { background: var(--menu); color: var(--menu-on); }
.people button { align-items: flex-start; }
.people strong { display: block; font-family: var(--display); font-size: 14px; font-weight: 700; }
.people small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.35; }

.side-foot { margin-top: auto; padding: 14px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.lang { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.lang select, .settings input, .assign select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: white;
}
.ghost, .primary, .quiet {
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 10px 12px;
}
.ghost { width: 100%; font-weight: 600; text-align: left; }
.ghost:hover { border-color: var(--line-strong); }
.ghost:disabled { opacity: 0.6; cursor: wait; }
#settings-btn:hover { background: color-mix(in srgb, var(--menu) 14%, white); }
#settings-btn.on { background: color-mix(in srgb, var(--menu) 18%, white); border-color: transparent; }
.profile {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 4px 2px;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  flex: none;
}
.profile strong { display: block; font-family: var(--display); font-size: 14px; font-weight: 700; }
.profile small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.settings { overflow: auto; min-height: 0; padding: 4px 24px 28px; }
.settings-stack { display: grid; gap: 16px; align-content: start; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 2px solid white;
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--line-strong);
}
.swatch.on { box-shadow: 0 0 0 2px var(--ink); }
.own-color {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
}
.own-color input[type="color"] {
  width: 42px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.settings-card {
  max-width: 480px;
  display: grid;
  gap: 14px;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.settings-card h2 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
.settings-card p { margin: 0; color: var(--secondary); font-size: 14px; line-height: 1.5; }
.whatsapp-qr {
  width: 220px;
  height: 220px;
  object-fit: contain;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.link-btn {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
}
.link-btn:hover { background: var(--accent-hover); }
.link-btn:disabled { opacity: 0.6; cursor: wait; }
.settings form { display: grid; gap: 10px; }
.settings label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.settings form button {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
}
.settings form button:hover { background: var(--accent-hover); }
.settings form button:disabled { opacity: 0.6; cursor: wait; }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.phone-logo { display: none; }
.desk-title {
  margin: 0;
  padding: 18px 28px 0;
  text-align: right;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0;
  color: var(--ink);
}
.desk-title img {
  display: block;
  margin-left: auto;
  height: 22px;
  width: auto;
}
.hello-block {
  margin: 14px 24px 0;
  padding: 16px 18px 16px 16px;
  background: color-mix(in srgb, var(--menu) 8%, white);
  border: 1px solid color-mix(in srgb, var(--menu) 22%, white);
  border-left: 4px solid var(--menu);
  border-radius: 18px;
}
.hello-block h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.hello-facts {
  margin: 6px 0 0;
  max-width: none;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
}
.update-now {
  align-self: flex-start;
  margin: 12px 24px 0;
  min-height: 44px;
}
.update-now[hidden] { display: none; }
.update-now:disabled { opacity: 0.6; cursor: wait; }
.bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  padding: 14px 24px 10px;
}
.bar h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.bar p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.verdict {
  margin: 0;
  max-width: 340px;
  padding: 10px 14px;
  border-radius: 14px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
}
.verdict.ok { background: var(--ok-soft); color: var(--ok); }
.verdict.issue { background: var(--warn-soft); color: var(--warn); }
.note, .status { margin: 0 24px 10px; font-size: 14px; line-height: 1.45; color: var(--secondary); }
.status { display: none; padding: 10px 12px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); }
.status.show { display: block; }
.status.good { background: var(--ok-soft); color: var(--ok); }

.stay-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 16px 12px;
}
.stay-filter[hidden] { display: none; }
.file-tools {
  display: grid;
  gap: 10px;
  margin: 0 16px 12px;
}
.file-tools[hidden] { display: none; }
.file-lead { margin: 0; color: var(--secondary); font-size: 14px; }
.lib-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.lib-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lib-btn {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
}
.lib-btn-strong { background: var(--accent); border-color: var(--accent); }
.lib-btn.danger { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.lib-btn:disabled { opacity: 0.55; }
#file-search, #file-sort, .file-add input {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: white;
  font: inherit;
  color: var(--ink);
}
#file-search { width: min(220px, 46vw); }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.crumbs button, .crumb-sep {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--menu);
  font: inherit;
  font-weight: 700;
}
.crumbs button { cursor: pointer; }
.crumbs button.is-here { color: var(--ink); cursor: default; }
.file-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.file-add[hidden] { display: none; }
.file-add input { flex: 1 1 180px; min-width: 0; }
.lib-bulk {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--menu) 8%, white);
}
.lib-bulk[hidden] { display: none; }
.lib-shade {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(18, 37, 44, 0.35);
}
.lib-shade[hidden] { display: none; }
.lib-dialog {
  width: min(460px, 100%);
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  background: white;
  box-shadow: 0 18px 50px rgba(18, 37, 44, 0.18);
}
.lib-dialog p { margin: 0; font-family: var(--display); font-size: 18px; font-weight: 700; }
.lib-dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lib-preview { width: min(860px, 100%); }
.lib-preview-body { max-height: min(68vh, 640px); overflow: auto; }
.lib-preview-body img, .lib-preview-body video { display: block; max-width: 100%; height: auto; }
.lib-preview-body iframe { width: 100%; height: min(68vh, 640px); border: 0; }
.lib-preview-body pre { margin: 0; white-space: pre-wrap; word-break: break-word; font: 14px/1.45 ui-monospace, SFMono-Regular, monospace; }
.lib-card, .lib-tile, .lib-row { cursor: pointer; }
.lib-move-list { display: grid; gap: 6px; max-height: 280px; overflow: auto; }
.lib-move-list button {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 8px 10px;
  text-align: left;
  font: inherit;
  font-weight: 700;
}
.list.library {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.lib-all { display: flex; align-items: center; min-height: 28px; margin: 0 0 8px; }
.lib-all input { width: 16px; height: 16px; accent-color: var(--menu); }
.lib-section { margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.lib-folders, .lib-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.lib-card, .lib-tile {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 32px;
  grid-template-rows: auto auto auto;
  column-gap: 8px;
  align-items: center;
  min-height: 128px;
  padding: 8px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  text-align: left;
}
.lib-card .lib-tick, .lib-tile .lib-tick { grid-column: 1; grid-row: 1; align-self: center; }
.lib-card .lib-ico, .lib-tile .lib-ico { grid-column: 1 / -1; grid-row: 2; width: 64px; height: 52px; margin: 2px 0 8px; }
.lib-card .lib-open, .lib-tile .lib-open { grid-column: 1 / -1; grid-row: 3; display: grid; align-content: start; gap: 2px; }
.lib-card .lib-more, .lib-tile .lib-more { grid-column: 2; grid-row: 1; align-self: center; justify-self: end; }
.lib-card strong, .lib-tile strong, .lib-name {
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lib-card small, .lib-tile small, .lib-where { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-ico { display: block; }
.lib-ico svg { display: block; width: 100%; height: 100%; }
.lib-tick { grid-row: 1 / span 2; display: flex; align-items: center; }
.lib-tick input { width: 16px; height: 16px; accent-color: var(--menu); }
.lib-more, .lib-open {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
}
.lib-open { min-width: 0; padding: 0; cursor: pointer; }
.lib-more {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-size: 20px;
  line-height: 1;
}
.lib-more:hover, .lib-card:hover, .lib-tile:hover, .lib-row:hover { background: var(--sunken); }
.lib-card.is-on, .lib-tile.is-on, .lib-row.is-on { background: color-mix(in srgb, var(--menu) 8%, white); }
.lib-menu {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.lib-menu button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}
.lib-menu button.danger { color: var(--warn); }
.lib-row .lib-tick { grid-row: auto; }
.lib-table {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.lib-head, .lib-row {
  display: grid;
  grid-template-columns: 28px 36px minmax(0, 1fr) 132px 78px 40px;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
}
.lib-head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.lib-row { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: white; }
.lib-row:last-child { border-bottom: 0; }
.lib-row .lib-ico { width: 32px; height: 32px; }
.lib-line { display: grid; min-width: 0; }
.lib-drop { outline: 2px solid var(--menu); outline-offset: -2px; }
.list.library.grid .lib-tiles { margin: 0; }
.stay-filter button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
}
.stay-filter button b {
  min-width: 1.4em;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--sunken);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.stay-filter button.on {
  background: var(--accent-soft);
  border-color: transparent;
}
.stay-filter button.on b { background: white; color: var(--ink); }

.cal-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 16px 12px;
}
.cal-tools[hidden] { display: none !important; }
.cal-views, .cal-nav, .cal-zoom, .cal-pop { display: flex; align-items: center; gap: 6px; }
.cal-tools button, .cal-tools select, .cal-tools input {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 8px 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
}
.cal-tools button.on { background: color-mix(in srgb, var(--menu) 18%, white); border-color: transparent; }
.cal-nav button { min-width: 36px; }
.cal-nav strong { font-size: 14px; }
.cal-tools input { min-width: 180px; border-radius: 12px; }
.cal-tools select { max-width: 240px; border-radius: 12px; }
.cal-pop { position: relative; }
.cal-menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  left: 0;
  display: grid;
  gap: 4px;
  min-width: 180px;
  padding: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.cal-menu[hidden] { display: none !important; }
.cal-menu button { text-align: left; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.cal-legend[hidden] { display: none !important; }
.cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
}
.cal-legend i { width: 18px; height: 10px; border-radius: 4px; display: block; }
.list.cal-host {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.cal-board { flex: 1; min-height: 0; display: flex; overflow: hidden; background: white; }
.cal-gutter {
  flex: none;
  width: 190px;
  display: flex;
  flex-direction: column;
  background: white;
  border-right: 1px solid var(--line);
}
.cal-gutter-rows { flex: 1; min-height: 0; overflow: hidden; }
.cal-gutter .cal-name {
  position: static;
  width: auto;
  box-shadow: none;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  box-sizing: border-box;
}
.cal-gutter .cal-corner { flex: none; height: 52px; }
.cal-board .cal-head { height: 52px; box-sizing: border-box; }
.cal-board .cal-row { box-sizing: border-box; }
.cal-board .cal-scroll { flex: 1; min-width: 0; }
.cal-scroll { flex: 1; overflow: auto; min-height: 0; }
.cal-sheet { min-width: max-content; }
.cal-head, .cal-row { display: flex; }
.cal-head {
  position: sticky;
  top: 0;
  z-index: 6;
  background: white;
  border-bottom: 1px solid var(--line);
}
.cal-name {
  position: sticky;
  left: 0;
  z-index: 4;
  width: 190px;
  flex: none;
  background: white;
  border-right: 1px solid var(--line);
  box-shadow: 1px 0 0 white;
  padding: 8px 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
}
.cal-corner { z-index: 2; }
.cal-days { display: flex; }
.cal-day {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 8px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.cal-day b { color: var(--ink); font-size: 13px; }
.cal-day.weekend { background: var(--bg); }
.cal-day.today b { color: var(--menu); }
.cal-row { border-bottom: 1px solid var(--line); }
.cal-track { position: relative; z-index: 1; isolation: isolate; overflow: hidden; background: white; }
.cal-shade {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--bg);
  pointer-events: none;
}
.cal-now {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--menu);
  pointer-events: none;
  z-index: 1;
}
.cal-bar {
  position: absolute;
  z-index: 1;
  border: 0;
  border-radius: 8px;
  background: var(--menu);
  color: white;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
}
.cal-bar.cut { border-top-left-radius: 2px; border-bottom-left-radius: 2px; }
.cal-bar.owner { background: #1f6f78; }
.cal-bar.inquiry { background: var(--warn-soft); color: var(--warn); }
.cal-bar.clash { box-shadow: inset 0 0 0 2px var(--warn); }
.cal-mark {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 99px;
  background: var(--warn);
  vertical-align: middle;
}
.cal-month, .cal-year { padding: 8px; }
.cal-dow, .cal-cells { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-dow span, .cal-cell {
  padding: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.cal-cell { color: var(--ink); min-height: 36px; }
.cal-cell.out { color: var(--line-strong); }
.cal-cell.today b { color: var(--menu); }
.cal-week { position: relative; border-top: 1px solid var(--line); }
.cal-year { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cal-ymonth {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
}
.cal-ymonth h3 { margin: 0 0 8px; font-size: 14px; }
.cal-ydays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-yday {
  border: 0;
  background: transparent;
  border-radius: 6px;
  padding: 4px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.cal-yday.blank { visibility: hidden; }
.cal-yday.stay { background: color-mix(in srgb, var(--menu) 78%, white); color: white; }
.cal-yday.owner { background: #1f6f78; color: white; }
.cal-yday.inquiry { background: var(--warn-soft); color: var(--warn); }
.cal-yday.today { box-shadow: inset 0 0 0 2px var(--ink); }
.cal-yday.open { box-shadow: inset 0 -3px 0 var(--warn); }

@media (max-width: 800px) {
  .cal-tools { margin: 0 12px 8px; }
  .cal-tools input, .cal-tools select { font-size: 16px; min-height: 44px; }
  .cal-name { width: 124px; font-size: 12px; }
  .cal-gutter { width: 124px; }
  .cal-year { grid-template-columns: 1fr 1fr; }
  .list.cal-host {
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
  }
}

.list {
  overflow: auto;
  min-height: 0;
  margin: 0 16px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.row {
  width: 100%;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: white;
  text-align: left;
}
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--sunken); }
.row.on { background: var(--accent-soft); }
.dot { width: 8px; height: 8px; margin-top: 7px; border-radius: 99px; background: var(--warn); }
.dot.ok { background: var(--ok); }
.group-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  padding: 14px 18px 8px;
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.group-head span:last-child { letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
.object-row { cursor: default; }
.object-row:hover { background: white; }
.dot.idle { background: var(--line-strong); }
.row h2 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.chat-guest { font-weight: 650; color: var(--secondary); }
.row .chip.request { margin: 0 0 0 8px; vertical-align: 1px; }
.request-left { margin-left: 6px; color: var(--warn); font-size: 12px; font-weight: 700; }
.chat-guest::before { content: "·"; margin: 0 0.4em; color: var(--muted); font-weight: 600; }
.panel-bar h2 .chat-guest { font-size: 20px; }
.row .meta { margin: 4px 0 0; color: var(--secondary); font-size: 13px; }
.row .side-meta { color: var(--muted); font-size: 13px; white-space: nowrap; }
.empty-state { padding: 56px 28px; color: var(--secondary); }
.list.library .empty-state p { margin: 8px 0 0; }
.empty-state strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ok);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.empty-state.issue strong { color: var(--warn); }

.panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  margin: 16px 16px 16px 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.panel[hidden] { display: none !important; }
.panel-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.kicker {
  margin: 0;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.panel-title-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.panel-title-row h2 { min-width: 0; }
.panel-bar h2 { margin: 6px 0 0; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; overflow-wrap: anywhere; }
#panel-channel { display: inline-flex; flex: none; margin-top: 6px; }
#panel-channel[hidden] { display: none !important; }
.channel {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-weight: 650;
  vertical-align: middle;
}
.channel svg { width: 18px; height: 18px; flex: none; display: block; }
.panel-title-row .channel svg { width: 22px; height: 22px; }
.icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  font-size: 22px;
  line-height: 1;
}
.panel-body { overflow: auto; padding: 18px 18px 28px; }
.panel-action { display: none; }
.back-mark { display: none; }
.tabbar { display: none; }
.who-line { margin: 0 0 14px; color: var(--secondary); font-size: 14px; overflow-wrap: anywhere; }
.ticket {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  background: white;
}
.ticket.focus { border-color: #c5e39a; background: #fbfff6; }
.ticket h3 { margin: 8px 0; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.chip {
  display: inline-block;
  margin-right: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--warn-soft);
  color: var(--warn);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.prep { background: var(--sunken); color: var(--muted); }
.quote { margin: 0 0 8px; color: var(--secondary); white-space: pre-wrap; overflow-wrap: anywhere; }
.step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 42px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.step input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--accent); }
.step small { display: block; color: var(--muted); }
.step.done span { color: var(--muted); }
.primary {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
  border-radius: 999px;
  margin-top: 12px;
  font-family: var(--display);
  font-weight: 700;
}
.primary:hover { background: var(--accent-hover); }
.quiet {
  color: var(--ink);
  border-color: var(--line-strong);
  background: white;
  border-radius: 999px;
  margin-top: 8px;
  font-weight: 600;
}
.done-note { color: var(--ok); font-size: 13px; font-weight: 600; }
.ha-tabs { display: flex; gap: 8px; margin: 0 0 14px; }
.ha-tabs button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 6px 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
}
.ha-tabs button.on { background: var(--ink); color: white; border-color: var(--ink); }
.ha-sheet { display: flex; flex-direction: column; gap: 12px; }
.ha-status {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--ink);
}
.ha-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 12px 4px;
  background: white;
}
.ha-card h3 {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ha-row {
  display: grid;
  grid-template-columns: minmax(108px, 0.9fr) minmax(0, 1.2fr);
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.ha-row span { color: var(--muted); }
.ha-row strong { font-weight: 600; overflow-wrap: anywhere; white-space: pre-wrap; }
.ha-muted { margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.ha-photo, .ha-shot { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.ha-shots { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.ha-review textarea, .ha-review { display: grid; gap: 8px; margin: 8px 0; }
.thread { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.thread h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.msg { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding: 0; border: 0; }
.msg.guest { align-items: flex-start; }
.msg .by {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  width: min(100%, 420px);
  font-size: 12px;
  color: var(--muted);
}
.msg.guest .by { justify-content: flex-start; }
.msg p {
  margin: 0;
  max-width: min(100%, 420px);
  padding: 10px 12px;
  border-radius: 16px 16px 4px 16px;
  background: color-mix(in srgb, var(--menu) 14%, white);
  white-space: pre-wrap;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.msg.guest p {
  border-radius: 16px 16px 16px 4px;
  background: var(--bg-soft);
}
.msg .quiet { margin-top: 0; }
.composer {
  position: sticky;
  bottom: 0;
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}
.composer select,
.composer textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: white;
}
.composer textarea { min-height: 76px; resize: vertical; }
.composer .primary { margin-top: 0; justify-self: start; }
.composer-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.composer-error { margin: 0; color: var(--warn); font-size: 13px; font-weight: 600; }
.composer-error:empty { display: none; }
.assign { display: grid; gap: 6px; margin: 0 0 16px; font-size: 13px; color: var(--secondary); }

@media (max-width: 800px) {
  html, body { overflow: hidden; }
  .app, .app.panel-open {
    display: block;
    height: 100dvh;
    overflow: hidden;
  }
  .side { display: none; }
  .app.more-open .side {
    display: flex;
    position: fixed;
    z-index: 25;
    inset: 0 0 calc(62px + env(safe-area-inset-bottom)) 0;
    border: 0;
    background: var(--bg);
  }
  .app.more-open .menu [data-view="open"],
  .app.more-open .menu [data-view="prep"],
  .app.more-open .menu [data-view="all"] { display: none; }
  .app.more-open .menu button,
  .app.more-open .lens button,
  .app.more-open .side-label { min-height: 48px; }
  .main {
    height: 100dvh;
    overflow: hidden;
    padding-bottom: calc(62px + env(safe-area-inset-bottom));
  }
  .settings { flex: 1; }
  .phone-logo {
    display: block;
    width: min(220px, 70vw);
    height: auto;
    margin: calc(14px + env(safe-area-inset-top)) auto 0;
  }
  .desk-title { padding: 6px 16px 0; font-size: 16px; }
  .desk-title img { height: 20px; }
  .hello-block { margin: 10px 12px 0; padding: 14px 14px 14px 12px; }
  .hello-block h2 { font-size: 22px; }
  .update-now { margin: 10px 12px 0; }
  .file-tools { margin: 0 12px 10px; }
  .file-add input, #file-search, #file-sort { font-size: 16px; min-height: 44px; }
  .lib-btn { min-height: 44px; }
  .lib-actions, .lib-bar { align-items: stretch; }
  #file-search { width: 100%; }
  .lib-date, .lib-size, .lib-head { display: none; }
  .lib-head, .lib-row { grid-template-columns: 28px 36px minmax(0, 1fr) 40px; }
  .lib-folders, .lib-tiles { grid-template-columns: 1fr; }
  .lib-card, .lib-tile {
    grid-template-columns: 22px 44px minmax(0, 1fr) 36px;
    grid-template-rows: auto;
    min-height: 72px;
    padding: 8px 10px;
  }
  .lib-card .lib-tick, .lib-tile .lib-tick { grid-column: 1; grid-row: 1; }
  .lib-card .lib-ico, .lib-tile .lib-ico { grid-column: 2; grid-row: 1; width: 40px; height: 34px; margin: 0; }
  .lib-card .lib-open, .lib-tile .lib-open { grid-column: 3; grid-row: 1; }
  .lib-card .lib-more, .lib-tile .lib-more { grid-column: 4; grid-row: 1; }
  .lib-card .lib-menu, .lib-tile .lib-menu { grid-column: 1 / -1; grid-row: 2; }
  .hello-facts { margin-top: 4px; font-size: 15px; }
  .bar { padding: 10px 16px 8px; align-items: flex-start; }
  .bar h1 { font-size: 20px; }
  .bar p { font-size: 13px; }
  .verdict { text-align: left; max-width: none; }
  .note { display: none; }
  .stay-filter { margin: 0 12px 10px; }
  .list {
    flex: 1;
    margin: 0 12px 12px;
    background: transparent;
    border: 0;
    border-radius: 0;
  }
  .row {
    margin-bottom: 8px;
    border: 0;
    border-radius: 16px;
    min-height: 76px;
    align-items: center;
  }
  .row:last-child { margin-bottom: 0; }
  .row:active { background: var(--accent-soft); }
  .tabbar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    z-index: 26;
    left: 0;
    right: 0;
    bottom: 0;
    gap: 4px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: white;
    border-top: 1px solid var(--line);
  }
  .tabbar button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    font-family: var(--display);
    font-weight: 700;
    font-size: 12px;
  }
  .tabbar button.on { background: color-mix(in srgb, var(--menu) 18%, white); color: var(--ink); }
  .tabbar b {
    min-width: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--sunken);
    color: var(--secondary);
    font-size: 11px;
    line-height: 16px;
  }
  .tabbar b:empty { display: none; }
  .tabbar button.on b { background: var(--menu); color: var(--menu-on); }
  .app.panel-open .tabbar,
  .app.panel-open .main { display: none; }
  .panel {
    position: fixed;
    inset: 0;
    width: auto;
    height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
    z-index: 30;
  }
  .panel-body { flex: 1; min-height: 0; }
  .panel-bar { padding-top: calc(12px + env(safe-area-inset-top)); background: white; }
  .close-mark { display: none; }
  .back-mark { display: inline; font-size: 34px; line-height: 0.8; }
  .icon {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
  }
  .panel-action {
    display: block;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: white;
  }
  .panel-action[hidden] { display: none !important; }
  .panel-action .primary,
  .panel-action .quiet {
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 14px 16px;
    font-size: 17px;
  }
  .gate { padding: 0; }
  .gate-card {
    border: 0;
    border-radius: 0;
    min-height: 100dvh;
    align-content: center;
    padding: 28px 22px calc(28px + env(safe-area-inset-bottom));
  }
  .gate-card input,
  .gate-submit {
    min-height: 52px;
    font-size: 16px;
    border-radius: 14px;
  }
}

.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}
.gate-card {
  width: min(420px, 100%);
  display: grid;
  gap: 12px;
  padding: 28px 24px 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.gate-card img { width: 220px; height: auto; display: block; margin: 0 auto; }
.gate-kicker {
  margin: 0;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--secondary);
}
.gate-card h1 {
  margin: 0 0 6px;
  font-size: 28px;
  letter-spacing: -0.03em;
}
.gate-card label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--secondary); }
.gate-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: white;
}
.gate-error {
  min-height: 1.2em;
  margin: 0;
  color: var(--warn);
  font-size: 13px;
  font-weight: 600;
}
.gate-submit {
  border: 0;
  background: var(--accent);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--display);
  font-weight: 700;
}
.gate-submit:hover { background: var(--accent-hover); }
.gate-submit:disabled { opacity: 0.6; cursor: wait; }
.gate-app {
  border: 1px solid var(--line-strong);
  background: white;
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--display);
  font-weight: 700;
}

.install {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(18, 37, 44, 0.45);
}
.install[hidden] { display: none !important; }
.install-card {
  width: min(440px, 100%);
  max-height: min(860px, 100%);
  overflow: auto;
  background: white;
  border-radius: 20px;
  padding: 16px 16px 22px;
}
.install-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.install-bar h2 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
.install-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.install-tabs button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  font-family: var(--display);
  font-weight: 700;
}
.install-tabs button.on { background: var(--accent-soft); border-color: transparent; }
.install-note { margin: 0 0 14px; color: var(--secondary); font-size: 14px; line-height: 1.45; }
.shot { margin: 0 0 18px; }
.shot figcaption { margin: 8px 0 0; color: var(--ink); font-size: 14px; line-height: 1.45; }
.phone {
  width: min(280px, 100%);
  margin: 0 auto;
  padding: 10px;
  background: #1c1c1e;
  border-radius: 28px;
}
.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  overflow: hidden;
  background: #f2f2f7;
  border-radius: 20px;
}
.safari-page { flex: 1; padding: 28px 16px 8px; color: var(--muted); font-family: var(--display); font-weight: 700; }
.safari-bar, .chrome-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px;
  padding: 8px 10px;
  background: white;
  border-radius: 12px;
}
.chrome-bar { margin: 0; border-radius: 20px 20px 0 0; }
.aa { font-size: 12px; font-weight: 700; color: #007aff; }
.url { flex: 1; min-width: 0; overflow: hidden; color: var(--ink); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.dots {
  display: flex;
  gap: 2px;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
}
.dots i { width: 3px; height: 3px; border-radius: 99px; background: #12252c; }
.hit { outline: 3px solid #67b300; outline-offset: 1px; background: #f3fbe6; }
.pop {
  position: absolute;
  right: 14px;
  bottom: 58px;
  min-width: 132px;
  padding: 6px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(18, 37, 44, 0.16);
}
.pop-row { padding: 8px 10px; border-radius: 10px; font-size: 13px; font-weight: 700; }
.sheet { margin-top: auto; padding: 8px 8px 12px; background: white; border-radius: 16px 16px 0 0; }
.grab { display: block; width: 36px; height: 4px; margin: 4px auto 8px; border-radius: 99px; background: #d5d8dc; }
.sheet-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}
.sheet-row.dim { color: var(--muted); font-weight: 600; }
.sheet-row:has(> span[data-k]:empty) { display: none; }
.chrome-menu { margin: 8px; padding: 6px; background: white; border-radius: 14px; }
.add-screen { justify-content: center; padding: 16px 12px; }
.add-top { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.add-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 16px 12px;
  background: white;
  border-radius: 16px;
  text-align: center;
}
.add-card img { width: 52px; height: 52px; border-radius: 12px; }
.add-card strong { font-size: 15px; }
.add-go {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  color: #12252c;
  font-size: 13px;
  font-weight: 700;
}
.add-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; font-size: 12px; font-weight: 700; text-align: left; }
.switch { width: 40px; height: 24px; border-radius: 99px; background: #d5d8dc; position: relative; flex: none; }
.switch.on { background: #34c759; }
.switch.on::after { content: ""; position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 99px; background: white; }
@media (max-width: 800px) {
  .gate { padding: 0; }
  .gate-card {
    border: 0;
    border-radius: 0;
    min-height: 100dvh;
    align-content: start;
    padding: calc(20px + env(safe-area-inset-top)) 22px calc(28px + env(safe-area-inset-bottom));
  }
  .gate-card input,
  .gate-submit,
  .gate-app {
    min-height: 52px;
    font-size: 16px;
    border-radius: 14px;
  }
  .install { padding: 0; place-items: stretch; }
  .install-card { width: auto; max-height: none; height: 100dvh; border-radius: 0; }
}
