/*
 * LDM-09A Simple owner interface.
 * Every rule is opt-in through html[data-ui="simple"]; Apple and Original
 * remain available through the reversible selector.
 */
html[data-ui="simple"] {
  color-scheme: light;
  --primary: #1d1d1f;
  --primary-2: #0071e3;
  --accent: #0071e3;
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --ink-faint: #8e8e93;
  --line: rgba(60, 60, 67, .13);
  --surface: #fff;
  --surface-2: #f2f2f7;
  --danger: #d70015;
  --ok-deep: #248a3d;
  --r-md: 16px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-2: 0 10px 35px rgba(0, 0, 0, .055);
  min-width: 0;
  background: #f5f5f7;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

html[data-ui="simple"],
html[data-ui="simple"] body {
  width: 100%;
  min-height: 100%;
  overflow-x: clip;
}

html[data-ui="simple"] body {
  color: var(--ink);
  background: #f5f5f7;
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
}

html[data-ui="simple"] button,
html[data-ui="simple"] input,
html[data-ui="simple"] select,
html[data-ui="simple"] summary {
  font: inherit;
}

html[data-ui="simple"] button,
html[data-ui="simple"] a,
html[data-ui="simple"] summary,
html[data-ui="simple"] select {
  min-height: 44px;
  touch-action: manipulation;
}

html[data-ui="simple"] :focus-visible {
  outline: 3px solid rgba(0, 113, 227, .38);
  outline-offset: 2px;
}

html[data-ui="simple"] #app {
  grid-template-columns: 232px minmax(0, 1fr);
  grid-template-rows: 72px minmax(0, 1fr);
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: #f5f5f7;
}

html[data-ui="simple"] #app.rail { grid-template-columns: 64px minmax(0, 1fr); }

html[data-ui="simple"] aside {
  min-width: 0;
  border-right: 1px solid var(--line);
  background: rgba(250, 250, 252, .88);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
}

html[data-ui="simple"] .brand {
  min-height: 72px;
  padding: 0 18px;
  gap: 10px;
  border-bottom-color: var(--line);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
}

html[data-ui="simple"] .cam-ico {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(160deg, #2697ff, #0065d8);
  box-shadow: 0 7px 16px rgba(0, 113, 227, .22);
}

html[data-ui="simple"] .side-tools { padding: 14px 14px 8px; }
html[data-ui="simple"] #newEvBtn {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #0071e3;
  font-weight: 700;
}
html[data-ui="simple"] #evSearch {
  min-height: 44px;
  margin-top: 10px;
  border: 0;
  border-radius: 12px;
  background: rgba(118, 118, 128, .1);
}
html[data-ui="simple"] nav#evNav { padding: 10px; }
html[data-ui="simple"] .evitem {
  min-width: 0;
  min-height: 54px;
  margin-bottom: 4px;
  border-radius: 12px;
}
html[data-ui="simple"] .evitem.sel {
  color: var(--ink);
  background: rgba(0, 113, 227, .11);
}

html[data-ui="simple"] header#top {
  min-width: 0;
  min-height: 72px;
  padding: 0 24px;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 245, 247, .86);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
}
html[data-ui="simple"] #topName {
  max-width: min(42vw, 520px);
  overflow: hidden;
  font-family: inherit;
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[data-ui="simple"] #topCode {
  border: 0;
  color: #075ec8;
  background: #e6f0ff;
}
html[data-ui="simple"] #topStats { display: none; }
html[data-ui="simple"] .health {
  margin-left: auto;
  border: 0;
  color: var(--ink-soft);
  background: rgba(118, 118, 128, .09);
}
html[data-ui="simple"] #logout {
  min-height: 44px;
  padding: 0 15px;
  border: 0;
  border-radius: 12px;
  background: rgba(118, 118, 128, .09);
}

html[data-ui="simple"] main {
  min-width: 0;
  padding: 0 28px 80px;
  overflow-x: hidden;
  background: #f5f5f7;
}
html[data-ui="simple"] .tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  min-width: 0;
  margin: 0 -28px 24px;
  padding: 10px 28px;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 245, 247, .88);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
}
html[data-ui="simple"] .tab {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}
html[data-ui="simple"] .tab::after { display: none; }
html[data-ui="simple"] .tab.on { color: var(--ink); background: #fff; box-shadow: 0 3px 14px rgba(0, 0, 0, .07); }
html[data-ui="simple"] .tab.dngr { margin-left: auto; }

html[data-ui="simple"] .panel { min-width: 0; }
html[data-ui="simple"] #app .card {
  min-width: 0;
  margin-bottom: 16px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(60, 60, 67, .09);
  border-radius: 22px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-2);
}
html[data-ui="simple"] #app .card h3 { color: var(--ink); font-family: inherit; font-size: 15px; }
html[data-ui="simple"] .hintline { color: var(--ink-soft); font-weight: 450; }
html[data-ui="simple"] .statrow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
html[data-ui="simple"] .stat {
  min-width: 0;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
}
html[data-ui="simple"] .stat:hover { transform: translateY(-1px); border-color: rgba(0, 113, 227, .3); box-shadow: 0 8px 24px rgba(0, 0, 0, .06); }
html[data-ui="simple"] .stat .lbl { color: var(--ink-soft); font-size: 12px; }
html[data-ui="simple"] .stat .val { margin-top: 6px; color: var(--ink); font-family: inherit; font-size: 28px; }
html[data-ui="simple"] #lastUpd { margin: 8px 2px 20px; color: var(--ink-faint); }
html[data-ui="simple"] .ovgrid { grid-template-columns: minmax(0, 1fr); max-width: 1040px; gap: 0; margin-inline: auto; }
html[data-ui="simple"] #drop {
  min-height: 170px;
  border: 1.5px dashed rgba(0, 113, 227, .35);
  border-radius: 18px;
  color: var(--ink-soft);
  background: rgba(0, 113, 227, .035);
}
html[data-ui="simple"] #drop b { color: #0071e3; }

html[data-ui="simple"] #processingCard > h3,
html[data-ui="simple"] #processingCard > .qrow { display: none; }
html[data-ui="simple"] #batchPanel {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
html[data-ui="simple"] .simple-processing { display: grid; gap: 14px; }
html[data-ui="simple"] .simple-processing h3 { margin: 8px 0 4px; font-size: 20px; letter-spacing: -.02em; }
html[data-ui="simple"] .simple-processing p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
html[data-ui="simple"] .simple-state {
  display: inline-flex;
  min-height: 28px;
  padding: 0 10px;
  align-items: center;
  border-radius: 999px;
  color: #075ec8;
  background: #e6f0ff;
  font-size: 11px;
  font-weight: 750;
}
html[data-ui="simple"] .simple-state.ready { color: #167233; background: #e5f7ea; }
html[data-ui="simple"] .simple-state.needs-attention { color: #b42318; background: #ffebe9; }
html[data-ui="simple"] .simple-progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: #e5e5ea; }
html[data-ui="simple"] .simple-progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0071e3, #59aaff); transition: width .2s ease; }
html[data-ui="simple"] .simple-state.needs-attention ~ * .simple-progress-track span { background: var(--danger); }
html[data-ui="simple"] .simple-finish { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 16px; padding: 12px; border-radius: 14px; background: #f2f2f7; }
html[data-ui="simple"] .simple-finish button { min-height: 44px; flex: none; }
html[data-ui="simple"] .simple-advanced { border-top: 1px solid var(--line); }
html[data-ui="simple"] .simple-advanced summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}
html[data-ui="simple"] .simple-advanced-body { padding: 2px 0 4px; }
html[data-ui="simple"] #costPanel { display: none; }
html[data-ui="simple"] .qfail .fr { min-height: 44px; }

html[data-ui="simple"] #guestAccessDetails > summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  list-style-position: inside;
}
html[data-ui="simple"] #guestAccessDetails .counters { margin-top: 14px; }
html[data-ui="simple"] .counterbox { min-width: 0; border-radius: 16px; }
html[data-ui="simple"] #feedCard { max-width: 1040px; margin-inline: auto; padding: 0; }
html[data-ui="simple"] #feedHead { padding: 16px 18px; border-color: var(--line); }
html[data-ui="simple"] #feedMore,
html[data-ui="simple"] #newPill {
  min-height: 44px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  color: #0071e3;
  background: rgba(0, 113, 227, .09);
  font-size: 12px;
  font-weight: 700;
}
html[data-ui="simple"] #feed:not(.feed-expanded) .fitem:nth-of-type(n+6) { display: none; }
html[data-ui="simple"] #feed { max-height: none; }
html[data-ui="simple"] .fitem { min-height: 54px; border-color: var(--line); }

/* People */
html[data-ui="simple"] #panel-guests { max-width: 1200px; margin-inline: auto; }
html[data-ui="simple"] #peopleSimple[hidden],
html[data-ui="simple"] #guestLegacy[hidden] { display: none; }
html[data-ui="simple"] #peopleSimple { min-width: 0; }
html[data-ui="simple"] .people-heading {
  display: flex;
  min-width: 0;
  margin-bottom: 18px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
html[data-ui="simple"] .people-eyebrow { margin: 0 0 4px; color: #0071e3; font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
html[data-ui="simple"] .people-heading h2 { margin: 0; font-size: 34px; letter-spacing: -.045em; }
html[data-ui="simple"] #peopleSummary { margin: 6px 0 0; color: var(--ink-soft); font-size: 13px; }
html[data-ui="simple"] .people-export { position: relative; }
html[data-ui="simple"] .people-export summary,
html[data-ui="simple"] .people-export button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-weight: 650;
}
html[data-ui="simple"] .people-export button { margin-top: 6px; }
html[data-ui="simple"] .people-tools {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  min-width: 0;
  margin-bottom: 22px;
  align-items: end;
  gap: 12px;
}
html[data-ui="simple"] .people-search span,
html[data-ui="simple"] .people-sort { color: var(--ink-soft); font-size: 11px; font-weight: 650; }
html[data-ui="simple"] .people-search input,
html[data-ui="simple"] .people-sort select {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
}
html[data-ui="simple"] #peopleFilters {
  display: flex;
  min-width: 0;
  margin: 0;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #e9e9ed;
}
html[data-ui="simple"] #peopleFilters legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
html[data-ui="simple"] #peopleFilters label { position: relative; }
html[data-ui="simple"] #peopleFilters input { position: absolute; opacity: 0; pointer-events: none; }
html[data-ui="simple"] #peopleFilters span { display: flex; min-height: 44px; padding: 0 12px; align-items: center; border-radius: 10px; color: var(--ink-soft); cursor: pointer; font-size: 12px; font-weight: 650; white-space: nowrap; }
html[data-ui="simple"] #peopleFilters input:checked + span { color: var(--ink); background: #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, .13); }
html[data-ui="simple"] #peopleFilters input:focus-visible + span { outline: 3px solid rgba(0, 113, 227, .38); }
html[data-ui="simple"] .people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(154px, 1fr));
  min-width: 0;
  gap: 16px;
}
html[data-ui="simple"] .person-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 220px;
  padding: 12px;
  justify-items: center;
  align-content: start;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 20px;
  color: inherit;
  background: transparent;
  text-align: center;
  cursor: pointer;
}
html[data-ui="simple"] .person-card:hover { border-color: var(--line); background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .055); }
html[data-ui="simple"] .person-card-photo {
  width: 128px;
  height: 128px;
  flex-basis: 128px;
  border: 0;
  background: #e5e5ea;
  font-size: 38px;
}
html[data-ui="simple"] .person-card-copy { display: grid; min-width: 0; gap: 3px; }
html[data-ui="simple"] .person-card-copy strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
html[data-ui="simple"] .person-card-copy span { color: var(--ink-soft); font-size: 11px; }
html[data-ui="simple"] .person-live { position: absolute; top: 12px; right: 12px; padding: 4px 7px; border-radius: 999px; color: #167233; background: #e5f7ea; font-size: 10px; font-weight: 750; }
html[data-ui="simple"] .person-chevron { display: none; }
html[data-ui="simple"] .people-empty { padding: 72px 20px; color: var(--ink-soft); text-align: center; }

/* Person detail sheet */
html[data-ui="simple"] #personDetail {
  width: min(820px, calc(100vw - 32px));
  max-width: 820px;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 24px;
  color: var(--ink);
  background: rgba(250, 250, 252, .98);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .28);
}
html[data-ui="simple"] #personDetail::backdrop { background: rgba(0, 0, 0, .36); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
html[data-ui="simple"] .person-sheet { max-height: calc(100dvh - 32px); padding: 20px; overflow-y: auto; overscroll-behavior: contain; }
html[data-ui="simple"] .person-sheet-head { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 16px; }
html[data-ui="simple"] .person-sheet-identity { display: flex; min-width: 0; align-items: center; gap: 14px; }
html[data-ui="simple"] .person-detail-thumb { display: grid; width: 72px; height: 72px; flex: 0 0 72px; overflow: hidden; place-items: center; border-radius: 50%; background: #e5e5ea; font-size: 28px; }
html[data-ui="simple"] .person-detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
html[data-ui="simple"] .person-sheet-identity p { margin: 0; color: #0071e3; font-size: 11px; font-weight: 700; }
html[data-ui="simple"] .person-sheet-identity h2 { max-width: 460px; margin: 3px 0; overflow: hidden; font-size: 25px; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
html[data-ui="simple"] #personDetailMeta { color: var(--ink-soft); font-size: 12px; }
html[data-ui="simple"] #personDetailClose { width: 44px; height: 44px; flex: 0 0 44px; padding: 0; border: 0; border-radius: 50%; color: #3a3a3c; background: rgba(118, 118, 128, .12); font-size: 28px; cursor: pointer; }
html[data-ui="simple"] .person-actions { display: flex; margin: 20px 0; flex-wrap: wrap; gap: 8px; }
html[data-ui="simple"] .person-actions > a,
html[data-ui="simple"] .person-actions > button,
html[data-ui="simple"] .person-actions > label {
  display: inline-flex;
  min-height: 44px;
  padding: 0 13px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}
html[data-ui="simple"] .person-actions .person-primary { border-color: #0071e3; color: #fff; background: #0071e3; }
html[data-ui="simple"] .person-actions select { min-height: 44px; border: 0; color: inherit; background: transparent; }
html[data-ui="simple"] .person-photo-section { padding-top: 18px; border-top: 1px solid var(--line); }
html[data-ui="simple"] .person-photo-section h3 { margin: 0; font-size: 18px; }
html[data-ui="simple"] #personPhotoCount { margin: 4px 0 14px; color: var(--ink-soft); font-size: 12px; }
html[data-ui="simple"] .person-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
html[data-ui="simple"] .person-photo { position: relative; min-width: 0; aspect-ratio: 4/3; padding: 0; overflow: hidden; border: 0; border-radius: 14px; color: var(--ink-faint); background: #e5e5ea; cursor: zoom-in; }
html[data-ui="simple"] .person-photo span { position: absolute; inset: 0; display: grid; padding: 8px; place-items: center; font-size: 11px; }
html[data-ui="simple"] .person-photo img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
html[data-ui="simple"] .person-photo.is-ready img { opacity: 1; }
html[data-ui="simple"] .person-photo.is-ready span { display: none; }
html[data-ui="simple"] #personPhotosEmpty { padding: 30px 0; color: var(--ink-soft); text-align: center; }
html[data-ui="simple"] .person-more { margin-top: 20px; border-top: 1px solid var(--line); }
html[data-ui="simple"] .person-more summary { display: flex; min-height: 44px; align-items: center; color: var(--ink-soft); cursor: pointer; font-size: 12px; font-weight: 650; }
html[data-ui="simple"] #personMoreActions { padding: 12px; border-radius: 14px; background: #fff; }
html[data-ui="simple"] #personMoreActions p { margin: 0 0 12px; color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
html[data-ui="simple"] #personMoreActions button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 11px; color: #fff; background: var(--danger); font-weight: 700; }
html[data-ui="simple"] body.person-detail-open { overflow: hidden; }

@media (max-width: 1279px) {
  html[data-ui="simple"] #app { grid-template-columns: 208px minmax(0, 1fr); }
  html[data-ui="simple"] main { padding-inline: 22px; }
  html[data-ui="simple"] .tabs { margin-inline: -22px; padding-inline: 22px; }
  html[data-ui="simple"] .statrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-ui="simple"] .people-tools { grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr); }
  html[data-ui="simple"] .people-sort { grid-column: 1 / -1; max-width: 180px; }
}

@media (max-width: 768px) {
  html[data-ui="simple"] #app {
    display: block;
    min-height: 100vh;
    min-height: 100dvh;
  }
  html[data-ui="simple"] aside { background: rgba(250, 250, 252, .97); }
  html[data-ui="simple"] #mbMenuBtn {
    top: calc(10px + env(safe-area-inset-top));
    left: calc(10px + env(safe-area-inset-left));
    z-index: 71;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--ink);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
  }
  html[data-ui="simple"] header#top {
    min-height: calc(64px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 10px 0 64px;
    gap: 7px;
  }
  html[data-ui="simple"] #topName { max-width: 42vw; font-size: 16px; }
  html[data-ui="simple"] #topCode,
  html[data-ui="simple"] #renameBtn { display: none; }
  html[data-ui="simple"] .health { margin-left: auto; padding-inline: 9px; font-size: 10px; }
  html[data-ui="simple"] #logout { min-height: 40px; padding-inline: 10px; font-size: 11px; }
  html[data-ui="simple"] main {
    padding: 14px 14px calc(112px + env(safe-area-inset-bottom));
    overflow: visible;
  }
  html[data-ui="simple"] .tabs {
    position: fixed;
    inset: auto 8px calc(8px + env(safe-area-inset-bottom));
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 5px;
    gap: 2px;
    border: 1px solid rgba(60, 60, 67, .14);
    border-radius: 20px;
    background: rgba(250, 250, 252, .94);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
  }
  html[data-ui="simple"] .tab {
    display: grid;
    min-width: 0;
    min-height: 50px;
    padding: 0 3px;
    place-items: center;
    border-radius: 15px;
    font-size: 10px;
    white-space: normal;
  }
  html[data-ui="simple"] .tab.dngr { margin-left: 0; }
  /* (Removed the old font-size:0 + ::before "Photos" relabel hack — the tab
     markup now carries its own icon + short "Photos" label, and the hack was
     rendering the word twice on phones.) */
  html[data-ui="simple"] .statrow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  html[data-ui="simple"] .stat { min-height: 84px; padding: 13px; }
  html[data-ui="simple"] .stat .val { font-size: 24px; }
  html[data-ui="simple"] #app .card { padding: 16px; border-radius: 19px; }
  html[data-ui="simple"] #drop { min-height: 140px; }
  html[data-ui="simple"] .simple-finish { align-items: stretch; flex-direction: column; }
  html[data-ui="simple"] .simple-finish button { width: 100%; }
  html[data-ui="simple"] #guestAccessDetails .counters { grid-template-columns: minmax(0, 1fr); overflow: visible; }
  html[data-ui="simple"] .counterbox { width: 100%; }
  html[data-ui="simple"] .people-heading h2 { font-size: 30px; }
  html[data-ui="simple"] .people-tools { grid-template-columns: minmax(0, 1fr); }
  html[data-ui="simple"] .people-sort { grid-column: auto; max-width: none; }
  html[data-ui="simple"] #peopleFilters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  html[data-ui="simple"] #peopleFilters span { padding-inline: 4px; justify-content: center; font-size: 10px; }
  html[data-ui="simple"] .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  html[data-ui="simple"] .person-card { min-height: 192px; padding: 8px 4px; }
  html[data-ui="simple"] .person-card-photo { width: min(128px, 36vw); height: min(128px, 36vw); flex-basis: min(128px, 36vw); }
  html[data-ui="simple"] #personDetail {
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 18px - env(safe-area-inset-top));
    margin: auto 0 0;
    border-radius: 24px 24px 0 0;
  }
  html[data-ui="simple"] .person-sheet { max-height: calc(100dvh - 18px - env(safe-area-inset-top)); padding: 16px 14px calc(18px + env(safe-area-inset-bottom)); }
  html[data-ui="simple"] .person-detail-thumb { width: 58px; height: 58px; flex-basis: 58px; }
  html[data-ui="simple"] .person-sheet-identity h2 { max-width: 50vw; font-size: 21px; }
  html[data-ui="simple"] .person-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-ui="simple"] .person-actions > * { min-width: 0; justify-content: center; text-align: center; }
  html[data-ui="simple"] .person-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 390px) {
  html[data-ui="simple"] .health span:last-child { display: none; }
  html[data-ui="simple"] #topName { max-width: 46vw; }
  html[data-ui="simple"] .people-export summary { padding-inline: 11px; }
  html[data-ui="simple"] .person-actions { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html[data-ui="simple"] *,
  html[data-ui="simple"] *::before,
  html[data-ui="simple"] *::after {
    scroll-behavior: auto;
    transition-duration: .001ms;
    animation-duration: .001ms;
    animation-iteration-count: 1;
  }
}
