:root {
  font-family: system-ui, -apple-system, sans-serif;
  color: #15272c;
  background: #f4f7f7;
  font-synthesis: none;
  --muted: #506369;
  --line: #d9e4e4;
  --teal: #07675e;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.shell { width: min(100% - 2rem, 52rem); margin-inline: auto; }
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top-inner { display: flex; justify-content: space-between; align-items: center; min-height: 3.6rem; }
.brand { color: #20373c; font-size: .96rem; font-weight: 750; text-decoration: none; }
.local { padding: .34rem .65rem; border: 1px solid #b6dad2; border-radius: 99rem; background: #e9f6f2; color: #14594f; font-size: .77rem; font-weight: 700; }
.title { display: flex; align-items: center; gap: 1rem; padding: 2rem 0 1.3rem; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.45rem, 4vw, 2.15rem); letter-spacing: -.035em; }
.title p { margin-top: .36rem; color: var(--muted); font-size: .94rem; }
.app-mark { flex: 0 0 3.35rem; height: 3.35rem; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: .22rem; padding: .69rem; border-radius: .82rem; background: var(--teal); }
.app-mark i { border: 2px solid #effffa; border-radius: 2px; }
.app-mark i:last-child { border: none; background: #8ee3ce; width: 60%; height: 60%; align-self: center; justify-self: center; }
.tool { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 1.1rem; box-shadow: 0 .35rem 1.2rem #1534380b; }
.view { position: relative; isolation: isolate; display: grid; place-items: center; height: clamp(15.5rem, 42vw, 24rem); background: radial-gradient(ellipse at 50% 44%, #20363b, #14262c 72%); overflow: hidden; }
video { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; visibility: hidden; }
.view[data-active] video { visibility: visible; }
.frame { position: absolute; width: clamp(7rem, 24vw, 12rem); aspect-ratio: 1; top: 46%; left: 50%; transform: translate(-50%, -50%); border-radius: 1.1rem; box-shadow: 0 0 0 90rem #0a181e42; }
.frame i { position: absolute; width: 24%; height: 24%; border: 0 solid #8ae2cc; }
.frame i:nth-child(1) { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 1.1rem; }
.frame i:nth-child(2) { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 1.1rem; }
.frame i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 1.1rem; }
.frame i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 1.1rem; }
.view-footer { position: absolute; inset: auto .75rem .9rem; text-align: center; }
#status { display: inline-block; padding: .38rem .75rem; border-radius: .45rem; color: white; background: #102127e8; font-size: .9rem; line-height: 1.45; }
.panel { padding: 1rem; display: grid; gap: .9rem; }
.control-row, .camera-actions, .drop { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.control-row { justify-content: space-between; }
.toggle { display: flex; align-items: center; gap: .55rem; font-size: .92rem; font-weight: 650; cursor: pointer; }
.toggle input { appearance: none; flex: 0 0 37px; height: 22px; border: 1px solid #7c9295; border-radius: 15px; background: #dbe3e5; margin: 0; cursor: pointer; }
.toggle input::before { display: block; width: 14px; height: 14px; margin: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #34484850; content: ""; }
.toggle input:checked { background: var(--teal); border-color: var(--teal); }
.toggle input:checked::before { transform: translateX(15px); }
.setting p { padding-top: .24rem; color: var(--muted); font-size: .8rem; }
button, select, .open { background: #fff; color: #1c3b40; border: 1px solid #c6d7d9; border-radius: .52rem; padding: .48rem .72rem; font: inherit; font-size: .84rem; cursor: pointer; }
button:hover, .open:hover { background: #edf5f4; }
:focus-visible { outline: 3px solid #0a7c70; outline-offset: 3px; }
select { max-width: 15rem; }
.drop { padding: .7rem; border: 1px dashed #adcbcc; border-radius: .65rem; color: var(--muted); background: #f8fbfb; font-size: .85rem; }
.drop[data-drag] { border-color: var(--teal); background: #e1f5ef; }
#choose { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 650; }
#choose:hover { background: #07534d; }
.result { min-width: 0; border-top: 1px solid var(--line); padding-top: .85rem; }
.result h2 { font-size: 1rem; }
.result ul { list-style: none; padding: 0; margin: 0; }
.result li { display: flex; align-items: center; justify-content: space-between; gap: .55rem; flex-wrap: wrap; padding: .6rem 0; }
.result li + li { border-top: 1px solid var(--line); }
.result .value { flex: 1 1 14rem; font-size: .9rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.open { text-decoration: none; }
.privacy { margin-top: 1.05rem; font-size: .84rem; line-height: 1.65; color: var(--muted); }
.privacy strong { color: #23564e; }
.footer { padding-block: 1.4rem; display: flex; gap: .7rem; justify-content: space-between; color: var(--muted); font-size: .8rem; }
.footer a { color: var(--teal); }
@media (max-width: 500px) {
  .title { padding-top: 1.35rem; align-items: flex-start; gap: .65rem; }
  .app-mark { flex-basis: 2.75rem; height: 2.75rem; padding: .55rem; }
  .panel { padding: .8rem; }
}

.top-actions { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: .4rem .55rem; }
.top-inner { gap: .65rem; padding-block: .48rem; }
#install-app { padding: .32rem .58rem; font-weight: 650; white-space: nowrap; }
#install-help { margin-top: .75rem; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: .52rem; background: white; font-size: .9rem; line-height: 1.5; }

.install-steps { margin: 0; padding-inline-start: 1.4rem; }
.install-steps li + li { margin-top: .35rem; }

.install-copy { display: grid; gap: .45rem; margin-top: .75rem; }
.install-copy button { justify-self: start; }
.install-copy input { width: 100%; padding: .4rem .55rem; border: 1px solid #c6d7d9; border-radius: .45rem; font: inherit; }
.install-copy p:empty { display: none; }

.share-symbol { position: relative; display: inline-block; width: 1.15em; height: 1.25em; margin-inline: .12em .18em; vertical-align: -.23em; color: var(--teal); }
.share-symbol::before, .share-symbol::after { content: ""; position: absolute; }
.share-symbol::before {
  inset: .43em .1em .05em;
  border: .09em solid currentColor;
  border-radius: .13em;
  clip-path: polygon(0 0, 34% 0, 34% 25%, 66% 25%, 66% 0, 100% 0, 100% 100%, 0 100%);
}
.share-symbol::after { width: .09em; height: .7em; inset: .12em auto auto 50%; transform: translateX(-50%); background: currentColor; }
.share-symbol i { position: absolute; top: .1em; left: 50%; width: .39em; height: .39em; border-top: .09em solid; border-left: .09em solid; transform: translateX(-50%) rotate(45deg); }

#language { max-width: 9.25rem; }
.trademark { color: var(--muted); font-size: .75rem; margin-block: 0 1rem; }
[dir="rtl"] .install-copy button { justify-self: start; }
.install-copy input { direction: ltr; }

/* Keep the language and install controls in the same header row. */
.top .brand {
  display: inline-flex; align-items: center; gap: .45rem;
  min-inline-size: 0; white-space: nowrap;
}
.top .brand img { flex: none; border-radius: .5rem; }
.top-actions { flex-wrap: nowrap; }
.top-actions :is(#language, #install-app) { min-block-size: 2.75rem; }
@media (max-width: 700px) {
  .top-inner {
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto;
    gap: .35rem; align-items: center;
  }
  .top-actions { display: contents; }
  .top .brand { grid-area: 1 / 1; overflow: hidden; }
  .top .brand span { overflow: hidden; text-overflow: ellipsis; }
  .top-actions #language { grid-area: 1 / 2; inline-size: clamp(5.5rem, 27vw, 9rem); }
  .top-actions #install-app { grid-area: 1 / 3; inline-size: 2.75rem; padding: 0; font-size: 0; }
  .top-actions #install-app::after { content: '+'; font-size: 1.4rem; }
  .top-actions .local { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
}
