.quality-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 4px;
  margin: 0 0 11px;
  border-radius: 14px;
  background: #e9ebef;
}
.quality-choice {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #6c717b;
  font-size: 12px;
}
.quality-choice.active {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 2px 8px #20232a12;
  font-weight: 650;
}
.enhance-card {
  display: grid;
  gap: 9px;
  padding: 18px;
  margin: 12px 0 20px;
  border: 1px solid #d8cdef;
  border-radius: 18px;
  background: linear-gradient(145deg, #f4f0fc, #fff);
}
.enhance-card strong { font-size: 15px; }
.enhance-card.applied {
  border-color: #cddfc8;
  background: linear-gradient(145deg, #f0f8ee, #fff);
}
.enhance-card p {
  margin: 0 0 5px;
  color: #6d6876;
  font-size: 11px;
  line-height: 1.55;
}
.enhance-badge {
  color: #6e58aa;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 1.2px;
}
:root[data-theme=dark] .quality-switch { background: #181b20; }
:root[data-theme=dark] .enhance-card {
  border-color: #4a405e;
  background: linear-gradient(145deg, #302a3f, #23272d);
}
:root[data-theme=dark] .enhance-card.applied {
  border-color: #3f5942;
  background: linear-gradient(145deg, #28372c, #23272d);
}
:root[data-theme=dark] .enhance-card p { color: var(--muted); }

/* Camera keeps the full sensor view; the server performs the final crop. */
.camera-stage { background: #17191d; }
.camera-stage video { object-fit: contain; }
.person-guide {
  fill: none;
  stroke-width: 1.65;
  filter: drop-shadow(0 1px 2px #0009);
  pointer-events: none;
}
.guide-head, .guide-body { stroke-width: 2.15; }
.guide-ears { stroke-width: 1.35; opacity: .85; }
.guide-dash { stroke-dasharray: 5 5; opacity: .9; }
.guide-eye { fill: #e4ffae; stroke: none; }
.camera-label { top: 16px; left: 12px; right: 12px; font-weight: 600; }

/* Focused purchase price and the dedicated secondary-tools screen. */
.service-price {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 14px;
  margin: 0 0 19px;
  padding: 13px 15px;
  border: 1px solid #d5caef;
  border-radius: 16px;
  background: linear-gradient(135deg, #f0ebfb, #fff 68%);
  box-shadow: 0 7px 22px #7154b10f;
}
.service-price span { color: #70687d; font-size: 11px; }
.service-price strong {
  grid-row: 1 / 3;
  grid-column: 2;
  color: #6245ad;
  font-size: 27px;
  line-height: 1;
  letter-spacing: -1px;
}
.service-price small { color: var(--muted); font-size: 9px; letter-spacing: .3px; }
.tool-list { display: grid; gap: 12px; margin: 24px 0; }
.tool-list .tool-card {
  width: 100%;
  padding: 17px;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  border-radius: 18px;
}
.tool-list .tool-card:hover { border-color: #cfc2eb; }
.tool-list .tool-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 5px; }
.tool-list .tool-card strong { margin: 0; font-size: 14px; }
.tool-list .tool-card small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.tool-list .tool-card > .row-arrow { color: #9699a1; font-size: 19px; }
.tool-list .tool-icon { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; }
.tool-list .studio { color: var(--card); background: var(--ink); }
.site-footer button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-decoration: underline;
}
.account-save {
  display: grid;
  gap: 8px;
  border-color: #d5caef;
  background: linear-gradient(145deg, #f4f0fc, #fff);
}
.account-save strong { font-size: 14px; }
.account-save p { margin: 0 0 4px; }
.account-save-badge {
  width: max-content;
  color: #6e58aa;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 1.2px;
}
:root[data-theme=dark] .service-price,
:root[data-theme=dark] .account-save {
  border-color: #4a405e;
  background: linear-gradient(145deg, #302a3f, #23272d);
}
:root[data-theme=dark] .service-price strong { color: #c9b7f5; }
@media (max-width: 420px) {
  .bottom-nav { gap: 2px; padding-left: 8px; padding-right: 8px; }
  .bottom-nav button { flex-direction: column; gap: 3px; font-size: 8px; }
  .bottom-nav svg { width: 17px; height: 17px; }
}

/* World catalog: fast country/type flows with touch-friendly controls. */
.catalog-coverage { margin: -7px 0 14px; color: var(--muted); font-size: 10px; }
.browse-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: 14px; background: #e9ebef; }
.browse-mode button { min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 11px; }
.browse-mode button.active { background: var(--card); box-shadow: 0 2px 8px #20232a12; color: var(--ink); font-weight: 650; }
.catalog-selectors { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 10px 0; }
.catalog-selectors label { display: grid; gap: 5px; color: var(--muted); font-size: 9px; }
.catalog-selectors select { width: 100%; min-width: 0; height: 45px; padding: 0 31px 0 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font-size: 11px; }
.select-control { position: relative; display: block; }
.select-control .select-flag { position: absolute; z-index: 1; left: 11px; top: 50%; width: 24px; height: 18px; transform: translateY(-50%); overflow: hidden; border-radius: 4px; box-shadow: 0 0 0 1px #0001; }
.select-control .select-flag img { display: block; width: 100%; height: 100%; object-fit: cover; }
.select-control .select-flag:not([hidden]) + select { padding-left: 43px; }
.catalog-chips { overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
.catalog-chips::-webkit-scrollbar { display: none; }
.catalog-chips .chip { white-space: nowrap; flex-shrink: 0; }
.catalog-results { display: flex; align-items: center; justify-content: space-between; margin: 15px 2px 8px; }
.catalog-results strong { font-size: 11px; }
.catalog-results button { min-height: 36px; padding: 0; border: 0; background: transparent; color: var(--purple); font-size: 10px; }
.profile-group { display: flex; align-items: center; gap: 8px; margin: 17px 3px 2px; color: var(--muted); font-size: 11px; letter-spacing: .2px; }
.profile-group img { width: 24px; height: 18px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1px #0001; }
.flag { overflow: hidden; }
.flag img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-warning { display: block; width: max-content; max-width: 100%; margin-top: 6px; padding: 3px 6px; border-radius: 5px; background: #fff0d2; color: #7a5b27; font-size: 8px; }
.procedure-warning { margin: 11px 0; padding: 10px 11px; border-radius: 10px; background: #fff0d2; color: #705021; line-height: 1.55; }
.requirements-list { display: grid; gap: 0; margin: 14px 0 18px; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.requirement-item { display: grid; grid-template-columns: minmax(105px,.8fr) minmax(0,1.6fr); gap: 13px; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.requirement-item:last-child { border-bottom: 0; }
.requirement-item dt { color: var(--muted); font-size: 9px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.requirement-item dd { margin: 0; font-size: 11px; line-height: 1.5; }
.requirements-source-title { margin: 18px 0 6px; font-size: 11px; }
#document-info details > a { display: block; width: fit-content; margin-top: 8px; }
#studio-background-note.restricted { margin: 10px 0 0; color: #9a5b22; font-size: 10px; line-height: 1.5; }
.profile-row { color: inherit; text-decoration: none; }
.app-screen-heading { margin: 0 0 17px; font-size: clamp(32px,7.8vw,43px); font-weight: 650; line-height: 1.12; letter-spacing: -1.6px; }
.seo-entry-points { margin-top: 28px; padding-top: 3px; }
.seo-entry-points .section-heading { align-items: flex-end; }
.seo-entry-points .section-heading a { color: var(--purple); font-size: 10px; text-decoration: none; }
.seo-entry-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.seo-entry-grid a { display: grid; gap: 4px; min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); color: inherit; text-decoration: none; }
.seo-entry-grid strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.seo-entry-grid span { color: var(--muted); font-size: 9px; line-height: 1.4; }
:root[data-theme=dark] .browse-mode { background: #181b20; }
:root[data-theme=dark] .profile-warning,
:root[data-theme=dark] .procedure-warning { background: #3d3322; color: #ebd7b8; }
@media (max-width: 420px) {
  .catalog-selectors { grid-template-columns: 1fr; }
  .catalog-selectors select { height: 47px; }
  .profile-row { padding: 13px 12px; }
  .profile-group { position: sticky; top: 0; z-index: 2; padding: 8px 5px; margin: 9px 0 0; background: var(--bg); }
  .seo-entry-grid { grid-template-columns: 1fr; }
}
@media (hover: hover) and (pointer: fine) {
  .catalog-chips { flex-wrap: wrap; overflow: visible; padding-bottom: 0; }
}
