:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: #0e0e0e;
  overscroll-behavior: none;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #ccc;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

#app {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #0e0e0e;
}

/* ---------- Header ---------- */
.app-header {
  flex: 0 0 auto;
  padding-top: calc(env(safe-area-inset-top, 0px) + 14px);
  padding-bottom: 10px;
  text-align: center;
}

.app-header span {
  font-size: 8px;
  letter-spacing: 4px;
  color: #2a2a2a;
  text-transform: lowercase;
}

/* ---------- Views ---------- */
.views {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
}

.view {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.view.active {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Bottom nav ---------- */
.bottom-nav {
  flex: 0 0 auto;
  display: flex;
  background: #131313;
  border-top: 1px solid #1e1e1e;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.nav-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 16px 2px 14px;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #777;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-btn.active {
  color: #fff;
}

/* ================= LOOK TAB ================= */
#view-look {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  text-align: center;
  min-height: 100%;
  position: relative;
}

.look-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.look-container-text {
  font-size: 18px;
  line-height: 1.55;
  color: #ccc;
  max-width: 520px;
  font-weight: 300;
}

.look-divider {
  width: 32px;
  height: 1px;
  background: #2a2a2a;
  margin: 22px auto;
}

.look-attention-text {
  font-size: 14px;
  line-height: 1.55;
  color: #aaa;
  max-width: 460px;
  font-weight: 300;
}

.look-goback-heading {
  font-size: 24px;
  letter-spacing: 1px;
  color: #ccc;
  font-weight: 300;
  margin-bottom: 22px;
}

.look-goback-entry {
  font-size: 18px;
  line-height: 1.55;
  color: #ddd;
  max-width: 520px;
  font-weight: 300;
  margin-bottom: 22px;
}

.look-goback-tagline {
  font-size: 14px;
  color: #aaa;
}

.look-next-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.look-next {
  background: none;
  border: none;
  color: #777;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 3px;
  padding: 14px 22px;
  text-transform: lowercase;
}

.look-next:active {
  color: #bbb;
}

/* --- Feedback scoring --- */
.look-feedback-row {
  display: flex;
  gap: 22px;
  margin-top: 30px;
}

.look-feedback-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: lowercase;
  color: #777;
  padding: 8px 6px;
}

.look-feedback-btn:active {
  color: #bbb;
}

/* --- "Just walk today" mode --- */
.look-justwalk-text {
  font-size: 18px;
  line-height: 1.55;
  color: #ccc;
  font-weight: 300;
}

/* --- Today's lenses link --- */
.lens-today-wrap {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  left: 0;
  right: 0;
  text-align: center;
  z-index: 4;
}

.lens-today-link {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 9px;
  letter-spacing: 2px;
  color: #777;
  text-transform: uppercase;
  padding: 10px;
}

.session-counter {
  font-size: 9px;
  letter-spacing: 1px;
  color: #666;
  margin-top: 2px;
}

.lens-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  padding: 24px;
}

.lens-overlay.active {
  display: flex;
}

.lens-overlay-card {
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  padding: 24px 20px;
  width: 100%;
  max-width: 340px;
}

.lens-overlay-title {
  font-size: 9px;
  letter-spacing: 3px;
  color: #777;
  text-transform: uppercase;
  margin-bottom: 18px;
  text-align: center;
}

.lens-overlay-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.lens-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 6px;
  font-size: 14px;
  color: #ccc;
  border-bottom: 1px solid #1e1e1e;
}

.lens-row:last-child {
  border-bottom: none;
}

.lens-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #999;
  flex: 0 0 auto;
}

.lens-overlay-done {
  width: 100%;
  background: none;
  border: 1px solid #333;
  color: #bbb;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 0;
  border-radius: 3px;
}

/* --- Post-shoot "walked past" banner --- */
.walked-banner {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 58px);
  left: 20px;
  right: 20px;
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 3px;
  padding: 14px 16px;
  text-align: left;
  z-index: 5;
}

.walked-dismiss {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  color: #777;
  font-size: 15px;
  line-height: 1;
  padding: 6px;
}

.walked-question {
  font-size: 12px;
  color: #bbb;
  margin-bottom: 10px;
  padding-right: 20px;
}

.walked-row {
  display: flex;
  gap: 8px;
}

#walked-input {
  flex: 1 1 auto;
  min-width: 0;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #ccc;
  font-family: inherit;
  font-size: 13px;
  padding: 9px 10px;
  border-radius: 3px;
  outline: none;
}

#walked-input::placeholder {
  color: #888;
}

.walked-submit-btn {
  flex: 0 0 auto;
  background: none;
  border: 1px solid #333;
  color: #bbb;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0 14px;
  border-radius: 3px;
}

/* ================= COLOUR TAB ================= */
#view-colour {
  display: flex;
  flex-direction: column;
}

.colour-subnav {
  flex: 0 0 auto;
  display: flex;
  gap: 24px;
  padding: 16px 20px 14px;
  border-bottom: 1px solid #1a1a1a;
}

.subnav-btn,
.loc-subnav-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 2px;
  color: #777;
  padding: 4px 0;
}

.subnav-btn.active,
.loc-subnav-btn.active {
  color: #eee;
  border-bottom: 1px solid #555;
}

.colour-subview {
  display: none;
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.colour-subview.active {
  display: block;
}

/* --- Shades --- */
.search-wrap {
  padding: 14px 20px 4px;
}

#swatch-search {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #ccc;
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 3px;
  outline: none;
}

#swatch-search::placeholder {
  color: #888;
}

.family-group {
  padding: 18px 20px 4px;
}

.family-label {
  font-size: 11px;
  letter-spacing: 3px;
  color: #777;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 6px;
}

.swatch {
  width: 100%;
  height: 72px;
  border-radius: 2px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 5px 6px;
  border: none;
  font-family: inherit;
}

.swatch span {
  font-size: 10px;
  line-height: 1.3;
}

.swatch-bottom-spacer {
  height: 24px;
}

/* full screen swatch view */
.swatch-full {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.swatch-full.active {
  display: flex;
}

.swatch-full-name {
  font-size: 28px;
  letter-spacing: 1px;
  font-weight: 300;
}

.swatch-full-hex {
  font-size: 12px;
  letter-spacing: 2px;
  margin-top: 10px;
  opacity: 0.6;
}

/* --- Pairings --- */
.pairing-card {
  margin-bottom: 30px;
}

.pairing-blocks {
  display: flex;
  height: 60px;
  border-radius: 2px;
  overflow: hidden;
}

.pairing-block {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pairing-block span {
  font-size: 10px;
  letter-spacing: 1px;
  text-align: center;
  padding: 0 8px;
}

.pairing-desc {
  font-size: 12px;
  line-height: 1.75;
  color: #777;
  margin-top: 12px;
}

.pairing-desc div + div {
  margin-top: 6px;
}

/* --- Colour tab framing --- */
.colour-framing {
  font-size: 9px;
  color: #666;
  letter-spacing: 0.5px;
  line-height: 1.6;
  padding: 16px 20px 4px;
}

/* --- Pairing generator --- */
.pairing-generator {
  padding: 16px 20px calc(20px + env(safe-area-inset-bottom, 0px));
}

.new-pairing-btn {
  background: none;
  border: 1px solid #2a2a2a;
  color: #aaa;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 3px;
  padding: 12px 0;
  width: 100%;
  border-radius: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.new-pairing-btn:active {
  color: #ddd;
}

.save-pairing-btn {
  background: none;
  border: 1px solid #333;
  color: #999;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 2px;
  padding: 10px 16px;
  border-radius: 3px;
  text-transform: uppercase;
  margin-top: 16px;
}

.save-pairing-btn:active {
  color: #ccc;
}

.save-pairing-btn:disabled {
  opacity: 0.4;
}

/* --- Shade link inside LOOK prompts --- */
.shade-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #eee;
}

/* ================= LENS TAB ================= */
#view-lens {
  padding: 20px 18px calc(24px + env(safe-area-inset-bottom, 0px));
}

.lens-card {
  background: #141414;
  border: 1px solid #1e1e1e;
  border-radius: 3px;
  padding: 20px 18px;
  margin-bottom: 14px;
}

.lens-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 12px;
}

.lens-desc {
  font-size: 14px;
  line-height: 1.8;
  color: #888;
}

/* ================= LOG TAB ================= */
.log-input-row {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid #1a1a1a;
}

.log-shade-wrap {
  position: relative;
}

#log-shade-input,
#log-note-input,
.field {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #ccc;
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 3px;
  outline: none;
}

#log-shade-input::placeholder,
#log-note-input::placeholder,
.field::placeholder {
  color: #888;
}

.log-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 3px;
  z-index: 10;
  max-height: 180px;
  overflow-y: auto;
  display: none;
}

.log-suggestions.active {
  display: block;
}

.log-suggestion-item {
  padding: 9px 12px;
  font-size: 13px;
  color: #ccc;
}

.log-suggestion-item:active {
  background: #2a2a2a;
}

.log-add-btn {
  background: none;
  border: 1px solid #333;
  color: #bbb;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 2px;
  padding: 11px 0;
  border-radius: 3px;
  text-transform: uppercase;
}

.log-add-btn:active {
  color: #fff;
}

.log-list {
  padding: 4px 20px calc(20px + env(safe-area-inset-bottom, 0px));
}

.log-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #1a1a1a;
}

.log-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.log-entry-main {
  flex: 1 1 auto;
  min-width: 0;
}

.log-entry-shade {
  font-size: 13px;
  color: #eee;
}

.log-entry-note {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

.log-entry-date {
  font-size: 10px;
  color: #777;
  flex: 0 0 auto;
  margin-left: 4px;
}

.log-delete-btn {
  background: none;
  border: none;
  color: #777;
  font-size: 16px;
  line-height: 1;
  padding: 4px 2px 4px 10px;
  flex: 0 0 auto;
}

.log-empty {
  font-size: 12px;
  color: #777;
  text-align: center;
  padding: 60px 20px;
}

/* ================= LOCATIONS TAB ================= */
.locations-toolbar {
  padding: 16px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-bottom: 1px solid #1a1a1a;
}

.locations-link-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #888;
  padding: 4px 0;
  text-align: left;
}

.locations-link-btn:active {
  color: #ccc;
}

.locations-add-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#add-location-input,
#add-location-section-input {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #ccc;
  font-family: inherit;
  font-size: 13px;
  padding: 9px 10px;
  border-radius: 3px;
  outline: none;
}

#add-location-input::placeholder,
#add-location-section-input::placeholder {
  color: #888;
}

.locations-add-btn {
  width: 100%;
  background: none;
  border: 1px solid #333;
  color: #bbb;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 11px 0;
  border-radius: 3px;
}

.shortlist-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shortlist-count {
  font-size: 10px;
  color: #777;
}

.location-section {
  padding: 18px 20px 4px;
}

.location-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #1a1a1a;
}

.location-toggle-zone {
  flex: 0 0 auto;
  background: none;
  border: none;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.location-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #999;
}

.location-delete-x {
  color: #777;
  font-size: 16px;
  line-height: 1;
}

.location-name-zone {
  flex: 1 1 auto;
  min-width: 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  color: #ccc;
  text-align: left;
  padding: 2px 0;
  line-height: 1.4;
}

.location-name-zone.removed {
  color: #555555;
  text-decoration: line-through;
}

.hide-entry-name {
  font-size: 14px;
  font-weight: 500;
  color: #eee;
}

/* --- Location detail overlay --- */
.location-detail-name {
  font-size: 22px;
  font-weight: 300;
  color: #fff;
  padding: 0 20px 14px;
  line-height: 1.4;
}

/* =====================================================
   ADDED IN THE REBUILD
   ===================================================== */

/* ---------- Header control ---------- */
.app-header {
  position: relative;
}

.settings-btn {
  position: absolute;
  right: 8px;
  bottom: 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 9px;
  letter-spacing: 2px;
  color: #888;
  text-transform: lowercase;
  padding: 10px 12px;
  min-height: 34px;
}

.settings-btn:active {
  color: #ddd;
}

/* ---------- Update available line ---------- */
.update-line {
  flex: 0 0 auto;
  width: 100%;
  background: #1a1a1a;
  border: none;
  border-top: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
  color: #ddd;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 10px 0;
}

.update-line[hidden] {
  display: none;
}

/* ---------- Inputs ---------- */
.field {
  display: block;
}

textarea.field {
  resize: vertical;
  line-height: 1.5;
  min-height: 96px;
  user-select: text;
}

select.field {
  -webkit-appearance: none;
  appearance: none;
  color: #ccc;
}

input[type="date"].field {
  min-height: 40px;
}

.field-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #999;
  text-transform: uppercase;
}

input, textarea {
  user-select: text;
}

/* ---------- Full-screen sheet (detail views, settings, picker) ---------- */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: #0e0e0e;
  display: none;
  flex-direction: column;
}

.sheet.active {
  display: flex;
}

.sheet-close {
  align-self: flex-end;
  flex: 0 0 auto;
  background: none;
  border: none;
  color: #bbb;
  font-size: 24px;
  line-height: 1;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 20px 12px;
  min-width: 56px;
}

.sheet-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
}

.sheet-section {
  padding: 4px 20px 16px;
}

.form-buttons {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 4px;
}

.form-buttons .log-add-btn {
  flex: 1 1 auto;
}

/* ---------- Location detail ---------- */
.loc-totals {
  padding: 0 20px 18px;
  border-bottom: 1px solid #1a1a1a;
  margin-bottom: 12px;
}

.loc-totals-row {
  display: flex;
  gap: 22px;
  font-size: 12px;
  color: #aaa;
  letter-spacing: 0.5px;
}

.loc-totals-row strong {
  display: block;
  font-size: 20px;
  font-weight: 300;
  color: #eee;
  letter-spacing: 0;
}

.ic-row {
  margin-top: 16px;
  font-size: 11px;
  color: #aaa;
  letter-spacing: 1px;
}

.ic-numbers {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.ic-bar {
  display: flex;
  height: 6px;
  background: #1e1e1e;
  border-radius: 3px;
  overflow: hidden;
}

.ic-bar-instinctive {
  background: #ddd;
}

.ic-bar-considered {
  background: #666;
}

.session-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 10px;
}

.session-form[hidden] {
  display: none;
}

.stepper-row {
  display: flex;
  gap: 14px;
}

.stepper {
  flex: 1 1 0;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  grid-template-rows: auto 44px;
  align-items: center;
  text-align: center;
  border: 1px solid #2a2a2a;
  border-radius: 3px;
  padding: 8px 6px 6px;
}

.stepper-label {
  grid-column: 1 / 4;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.stepper-btn {
  background: none;
  border: 1px solid #333;
  border-radius: 3px;
  color: #ddd;
  font-size: 18px;
  height: 40px;
  font-family: inherit;
}

.stepper-btn:active {
  background: #222;
}

.stepper-val {
  font-size: 20px;
  color: #eee;
  font-weight: 300;
}

.session-entry {
  padding: 14px 0;
  border-bottom: 1px solid #1a1a1a;
  display: flex;
  gap: 12px;
}

.session-main {
  flex: 1 1 auto;
  min-width: 0;
}

.session-head {
  font-size: 13px;
  color: #eee;
}

.session-meta {
  font-size: 11px;
  color: #999;
  margin-top: 3px;
}

.session-notes {
  font-size: 13px;
  color: #bbb;
  line-height: 1.55;
  margin-top: 8px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.location-hides-title {
  margin-top: 10px;
}

/* ---------- Location list sections ---------- */
.section-heading {
  font-size: 11px;
  letter-spacing: 3px;
  color: #aaa;
  text-transform: uppercase;
  padding: 22px 20px 2px;
}

.subsection-toggle {
  display: flex;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid #1a1a1a;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 2px;
  color: #999;
  text-transform: uppercase;
  padding: 14px 0 10px;
  text-align: left;
}

.subsection-toggle .count {
  color: #777;
  letter-spacing: 1px;
}

.location-row .session-count {
  flex: 0 0 auto;
  font-size: 10px;
  color: #888;
  padding-top: 5px;
}

.location-empty {
  font-size: 12px;
  color: #888;
  padding: 10px 0;
}

.hide-entry-loc {
  font-size: 10px;
  letter-spacing: 1px;
  color: #999;
  margin-top: 4px;
  text-transform: uppercase;
  background: none;
  border: none;
  font-family: inherit;
  padding: 4px 0;
  text-align: left;
}

.hide-entry-main {
  flex: 1 1 auto;
  min-width: 0;
}

.hide-loc-edit {
  margin-top: 6px;
}

/* ---------- LENS tab meta line ---------- */
.lens-meta {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #999;
  text-transform: uppercase;
  margin: -6px 0 12px;
}

/* ---------- LOG second dot ---------- */
.log-dots {
  display: flex;
  flex: 0 0 auto;
}

.log-dots .log-dot + .log-dot {
  margin-left: -4px;
  box-shadow: 0 0 0 2px #0e0e0e;
}

.street-row {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid #1a1a1a;
  font-family: inherit;
  text-align: left;
  color: inherit;
}

/* ---------- PAIRINGS ---------- */
.pairing-actions {
  display: flex;
  gap: 10px;
}

.pairing-actions .new-pairing-btn {
  flex: 1 1 0;
}

.pairing-blocks {
  cursor: pointer;
}

.pairing-open-btn {
  margin-left: 10px;
}

.picker-prompt {
  font-size: 11px;
  letter-spacing: 2px;
  color: #ccc;
  text-transform: uppercase;
  padding: 0 20px 4px;
}

/* ---------- Pairing study view ---------- */
.pv-title {
  font-size: 15px;
  font-weight: 300;
  color: #eee;
  padding: 0 20px 4px;
}

.pv-tabs {
  gap: 16px;
  overflow-x: auto;
  white-space: nowrap;
}

.pv-tabs .subnav-btn {
  font-size: 10px;
  letter-spacing: 1.5px;
}

.pv-stage {
  flex: 1 1 auto;
  position: relative;
  margin: 14px 20px 0;
  min-height: 220px;
  border-radius: 2px;
  overflow: hidden;
}

.pv-fill {
  position: absolute;
  inset: 0;
}

.pv-square {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
}

.pv-halves {
  position: absolute;
  inset: 0;
  display: flex;
}

.pv-halves > div {
  flex: 1 1 0;
}

.pv-three {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 6px;
}

.pv-three > div {
  flex: 1 1 0;
  position: relative;
}

.pv-three .pv-square {
  width: 46%;
}

.pv-sliver {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.pv-controls {
  padding: 14px 20px 0;
  min-height: 14px;
}

.pv-controls label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #999;
  text-transform: uppercase;
}

.pv-controls input[type="range"] {
  flex: 1 1 auto;
  accent-color: #bbb;
  height: 32px;
}

.pv-text {
  padding: 10px 20px 0;
  font-size: 13px;
  line-height: 1.6;
  color: #ccc;
  min-height: 46px;
}

.pv-text .pv-flag {
  color: #fff;
}

.pv-footer {
  display: flex;
  gap: 10px;
  padding: 12px 20px calc(16px + env(safe-area-inset-bottom, 0px));
}

.pv-toggle {
  flex: 1 1 0;
  background: none;
  border: 1px solid #333;
  color: #bbb;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 2px;
  padding: 12px 0;
  border-radius: 3px;
}

.pv-toggle[aria-pressed="true"] {
  background: #ddd;
  color: #111;
  border-color: #ddd;
}

/* ---------- Settings ---------- */
.settings-title {
  font-size: 11px;
  letter-spacing: 4px;
  color: #ccc;
  padding: 0 20px 6px;
}

.settings-section {
  padding: 18px 20px 14px;
  border-bottom: 1px solid #1a1a1a;
}

.settings-section .family-label {
  color: #aaa;
  margin-bottom: 12px;
}

.settings-note {
  font-size: 12px;
  line-height: 1.6;
  color: #aaa;
  margin-bottom: 12px;
}

.settings-version {
  font-size: 9px;
  letter-spacing: 2px;
  color: #666;
  text-align: center;
  padding: 24px 0 0;
}

.settings-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #1a1a1a;
}

.settings-row-main {
  flex: 1 1 auto;
  min-width: 0;
  background: none;
  border: none;
  font-family: inherit;
  text-align: left;
  color: inherit;
  padding: 0;
}

.settings-row-name {
  font-size: 14px;
  color: #eee;
}

.settings-row-meta {
  font-size: 10px;
  letter-spacing: 1px;
  color: #999;
  margin-top: 3px;
  text-transform: uppercase;
}

.switch {
  flex: 0 0 auto;
  background: none;
  border: 1px solid #444;
  color: #999;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 8px 12px;
  min-width: 54px;
  border-radius: 3px;
}

.switch[aria-pressed="true"] {
  background: #ddd;
  border-color: #ddd;
  color: #111;
}

.segmented {
  display: flex;
  border: 1px solid #333;
  border-radius: 3px;
  overflow: hidden;
}

.segmented button {
  flex: 1 1 0;
  background: none;
  border: none;
  color: #aaa;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 0;
}

.segmented button + button {
  border-left: 1px solid #333;
}

.segmented button[aria-pressed="true"] {
  background: #ddd;
  color: #111;
}

.lens-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 0 6px;
}

.lens-editor[hidden] {
  display: none;
}

.hint {
  font-size: 10px;
  color: #999;
  letter-spacing: 0.5px;
  text-transform: none;
}

.danger-link {
  color: #c66;
}

.import-summary {
  margin-top: 14px;
  padding: 14px 14px 12px;
  border: 1px solid #2a2a2a;
  border-radius: 3px;
  background: #141414;
}

.import-summary ul {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  font-size: 12px;
  line-height: 1.8;
  color: #ccc;
}

.status-line {
  font-size: 12px;
  color: #ccc;
  margin-top: 10px;
  min-height: 16px;
}

.notif-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
