:root {
  color-scheme: light dark;
  --bg: #f5f5f0; --ink: #1c2520; --muted: #56635a; --line: #dbe0d6; --surface: #ffffff;
  --tint: #e6ede2; --accent: #2f5a42; --accent-ink: #ffffff; --accent-soft: #d5e5d4; --focus: #3d7bd9;
  --shadow: 0 1px 2px rgb(20 40 28 / .06), 0 24px 60px -24px rgb(20 40 28 / .35);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1311; --ink: #ecf0e9; --muted: #a2afa5; --line: #29322c; --surface: #171d19;
    --tint: #1a231d; --accent: #a8d3b1; --accent-ink: #0f2418; --accent-soft: #23382a; --focus: #8ab4ff;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 30px 70px -30px rgb(0 0 0 / .8);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
:lang(ja) body, body:lang(ja) { line-height: 1.8; word-break: auto-phrase; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; text-wrap: pretty; }
[hidden] { display: none !important; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; text-decoration: none; font-size: 18px; }
.brand img { width: 28px; height: 28px; }
.nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.nav a, .lang { text-decoration: none; color: var(--muted); }
.nav a:hover, .lang:hover { color: var(--ink); }
.lang { font-size: 15px; display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 760px) { .nav { display: none; } .top .wrap { gap: 16px; } .lang { margin-left: auto; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; transition: transform .15s, background-color .15s; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { border-color: var(--line); background: var(--surface); }
.btn.sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
@media (max-width: 760px) { .top .btn.sm { display: none; } }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-size: 14px; font-weight: 600; }
.chip .i { color: var(--accent); width: 16px; height: 16px; }
.hero h1 { font-size: clamp(2.3rem, 4.2vw + 1rem, 4.3rem); margin: 20px auto 18px; max-width: 15ch; font-weight: 750; }
:lang(ja) .hero h1 { font-size: clamp(1.75rem, 3.4vw + .9rem, 3.5rem); max-width: 18em; word-break: keep-all; overflow-wrap: anywhere; }
.lede { font-size: clamp(1.05rem, .5vw + 1rem, 1.25rem); color: var(--muted); max-width: 40em; margin: 0 auto; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.req { margin-top: 14px; font-size: 14px; color: var(--muted); }
.hero .frame { margin-top: 52px; }

/* Mock frames */
.frame { aspect-ratio: 72 / 44; container-type: inline-size; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: #0b0d0c; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; padding: 0; list-style: none; }
.facts li { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; font-size: 15px; color: var(--muted); }
.facts .i { color: var(--accent); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } .facts li { justify-content: flex-start; padding: 8px 4px; } }

/* Sections */
section { padding: 88px 0; }
.kicker { font-size: 14px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
:lang(ja) .kicker { letter-spacing: .04em; }
.sec-h { font-size: clamp(1.9rem, 2.4vw + 1rem, 2.9rem); margin-top: 10px; font-weight: 720; }
.sec-p { color: var(--muted); margin-top: 14px; max-width: 40em; font-size: 18px; }
.tinted { background: var(--tint); }

/* Tour */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 36px 0 26px; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); width: fit-content; }
.tabs button { font: inherit; font-size: 15px; font-weight: 600; color: var(--muted); background: none; border: 0; border-radius: 999px; min-height: 40px; padding: 0 16px; cursor: pointer; }
.tabs button span { font-variant-numeric: tabular-nums; opacity: .6; margin-right: 6px; }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.tabs button:hover:not([aria-selected="true"]) { color: var(--ink); }
@media (max-width: 760px) { .tabs { border-radius: 16px; width: 100%; } .tabs button { flex: 1 1 45%; } }
.panel { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.panel h3 { font-size: 28px; font-weight: 700; }
.panel p { color: var(--muted); margin-top: 12px; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.ticks .i { color: var(--accent); margin-top: .2em; }
.beta { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); vertical-align: .15em; margin-left: 6px; letter-spacing: .02em; }
@media (max-width: 900px) { .panel { grid-template-columns: 1fr; gap: 28px; } }

/* Feature grid */
.grid { display: grid; gap: 16px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.feat .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.feat .ic .i { width: 21px; height: 21px; }
.feat p { color: var(--muted); font-size: 15.5px; margin-top: 6px; }

.fgroup { margin-top: 64px; scroll-margin-top: 80px; }
.fgroup:first-of-type { margin-top: 44px; }
.fhead { display: flex; gap: 16px; align-items: flex-start; max-width: 46em; }
.fhead h3 { font-size: 24px; font-weight: 700; }
.fhead p { color: var(--muted); margin-top: 4px; }
.ic.lg { width: 48px; height: 48px; border-radius: 13px; flex: none; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.ic.lg .i { width: 24px; height: 24px; }
.fgroup .grid { margin-top: 22px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.feat h4 { font-size: 18px; margin: 16px 0 0; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; }
:lang(ja) .feat h4 { letter-spacing: 0; }
.feat code, .sec-p code { font: .92em var(--mono); white-space: nowrap; }
.cf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; margin-top: 22px; }
.flow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 28px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.node { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-weight: 650; font-size: 15px; line-height: 1.3; }
.node .i { color: var(--accent); width: 20px; height: 20px; }
.node small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.cfn { border-color: #f38020; }
.cfdot { width: 12px; height: 12px; border-radius: 50%; background: #f38020; }
.arrow { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.arrow .i { rotate: 90deg; }
.fork { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
@media (max-width: 1000px) { .grid.c4 { grid-template-columns: repeat(2, 1fr); } .cf { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid.c3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; } .fork { grid-template-columns: 1fr; } }

/* Privacy */
.privacy { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 40px; }
.priv { display: flex; gap: 16px; padding: 24px; background: var(--surface); border-radius: 16px; border: 1px solid var(--line); }
.priv .i { width: 26px; height: 26px; color: var(--accent); margin-top: 2px; }
.priv h3 { font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.priv p { color: var(--muted); font-size: 15.5px; margin-top: 4px; }
@media (max-width: 760px) { .privacy { grid-template-columns: 1fr; } }

/* Automation */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.code { margin: 0; background: #111614; color: #dfe8e1; border-radius: 16px; padding: 24px; font: 14.5px/1.9 var(--mono); overflow-x: auto; border: 1px solid #26302a; }
.code .c { color: #7f9486; }
.code .k { color: #a8d3b1; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 16px; margin-top: 40px; }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.price.now { border: 2px solid var(--accent); }
.price .tier { font-weight: 650; color: var(--muted); }
.price .amt { font-size: 44px; font-weight: 750; letter-spacing: -.03em; line-height: 1; }
.price p { color: var(--muted); font-size: 15.5px; }
.price .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 760px) { .prices { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 52em; margin-top: 32px; }
.faq details { padding: 0 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; gap: 16px; min-height: 56px; font-weight: 650; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-left: auto; border: solid var(--muted); border-width: 0 2px 2px 0; rotate: 45deg; translate: 0 -2px; transition: rotate .2s; }
.faq details[open] summary::after { rotate: 225deg; translate: 0 2px; }
.faq details p { padding-bottom: 18px; color: var(--muted); }
.faq code { font: .9em var(--mono); overflow-wrap: anywhere; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer .sp { flex: 1; }
footer a { text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
footer a:hover { color: var(--ink); }

/* ===== Product mockups (sized in em; 1em = 1/72 of the frame width) ===== */
.mock { --mb: 2.4em; --spring: linear(0, 0.029, 0.104, 0.205, 0.32, 0.438, 0.552, 0.655, 0.747, 0.825, 0.889, 0.94, 0.978, 1.006, 1.026, 1.038, 1.044, 1.046, 1.045, 1.041, 1.037, 1.032, 1.026, 1.021, 1.016, 1.012, 1.008, 1.005, 1.003, 1.001, 1, 1); --ease-close: cubic-bezier(.32, .72, 0, 1);
  text-align: left; font-size: calc(100cqw / 72); font-family: var(--font); line-height: 1.3; color: #f2f2f2; word-break: normal; user-select: none; }
.mock .i { width: 1.25em; height: 1.25em; }
.mock .sp { flex: 1; }
.frame[data-mock="tray"] { aspect-ratio: 72 / 34; }
.m-desk { position: relative; width: 72em; height: 44em; overflow: hidden; }
/* Phones: draw the 72em mock at 40em per frame width and show its focus area, so text stays readable. */
@media (max-width: 600px) {
  .frame { aspect-ratio: 40 / 44; }
  .frame[data-mock="tray"] { aspect-ratio: 40 / 34; }
  .mock { --crop: 16em; font-size: calc(100cqw / 40); }
  [data-mock="capture"] .mock { --crop: 29em; }
  [data-mock="ocr"] .mock { --crop: 7em; }
  .m-desk { margin-left: calc(-1 * var(--crop)); }
}
.m-hero { height: 34em; }
.m-wall { background: linear-gradient(#bfd2ca, #e9e9d1 60%, #dfe4c9); }
.m-wall::before, .m-wall::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.m-wall::before { background: #6e978a; clip-path: polygon(0 62%, 14% 52%, 27% 60%, 43% 46%, 58% 58%, 74% 48%, 88% 57%, 100% 50%, 100% 100%, 0 100%); }
.m-wall::after { background: #24503f; clip-path: polygon(0 80%, 18% 70%, 33% 78%, 50% 66%, 66% 77%, 82% 68%, 100% 76%, 100% 100%, 0 100%); }
.m-desk > * { position: absolute; z-index: 1; }
.m-menubar { top: 0; left: 0; right: 0; height: var(--mb); display: flex; align-items: center; gap: 1.2em; padding: 0 1.2em; color: #182a20; background: rgb(255 255 255 / .38); backdrop-filter: blur(8px); }
.m-menubar > * { font-size: .85em; }
.m-notch { top: 0; left: 50%; translate: -50% 0; width: 15em; height: var(--mb); background: #000; border-radius: 0 0 .8em .8em; z-index: 2; }

.m-zone { top: 0; left: 50%; translate: -50% 0; padding: 0 1em 1em; z-index: 3; }
.m-island { position: relative; width: 21em; height: var(--mb); margin: 0 auto; background: #000; border-radius: 0 0 1.2em 1.2em;
  transition: width .38s var(--ease-close), height .38s var(--ease-close), border-radius .38s var(--ease-close), box-shadow .3s; }
.m-island.open { width: 60em; height: var(--open-h, 26em); border-radius: 0 0 2em 2em; box-shadow: 0 1.5em 3em -1em rgb(0 0 0 / .5);
  transition: width .62s var(--spring), height .62s var(--spring), border-radius .5s, box-shadow .4s; }
.m-island::before, .m-island::after { content: ""; position: absolute; top: 0; width: .8em; height: .8em; pointer-events: none; }
.m-island::before { right: 100%; background: radial-gradient(circle at 0 100%, transparent .8em, #000 calc(.8em + .5px)); }
.m-island::after { left: 100%; background: radial-gradient(circle at 100% 100%, transparent .8em, #000 calc(.8em + .5px)); }
.m-clip { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.m-in { position: absolute; top: 0; left: 50%; width: 60em; padding: 1.3em 1.5em 1.1em; translate: -50% 0; transform-origin: 50% 0; pointer-events: none;
  opacity: 0; filter: blur(.35em); transform: scale(.96) translateY(-.8em); transition: opacity .14s, filter .14s, transform .2s; }
.open .m-in { opacity: 1; filter: none; transform: none;
  transition: opacity .28s .1s, filter .32s .1s, transform .55s .06s var(--spring); }
.m-in .m-card { opacity: 0; transform: translateY(1em) scale(.97); transition: opacity .1s, transform .1s; }
.open .m-in .m-card { opacity: 1; transform: none;
  transition: opacity .3s calc(.14s + var(--i) * .045s), transform .6s calc(.14s + var(--i) * .045s) var(--spring); }
.m-mini { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 1.6em; border: 0; border-radius: inherit; background: none; color: rgb(255 255 255 / .8);
  font: 500 1em var(--font); font-variant-numeric: tabular-nums; cursor: pointer; transition: opacity .22s .16s; }
.open .m-mini { opacity: 0; pointer-events: none; transition: opacity .08s; }
/* The collapsed notch is short; extend the hit area to 44 px for touch. */
.m-mini::after { content: ""; position: absolute; inset: 0 -8px; min-height: 44px; }
.m-x::after { content: ""; position: absolute; inset: -6px; }
.m-mini:focus-visible, .m-x:focus-visible { outline: .15em solid var(--focus); outline-offset: -.15em; }
.m-x { position: absolute; top: .85em; right: 1.05em; width: 2.1em; height: 2.1em; border: 0; border-radius: .6em; background: none; cursor: pointer; }
.m-x:hover { background: rgb(255 255 255 / .1); }
.m-hint { top: calc(var(--mb) + 1.3em); left: 50%; translate: -50% 0; display: flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; border-radius: 999px;
  background: rgb(10 20 14 / .62); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: opacity .3s, translate .3s; }
.m-hint .i { width: 15px; height: 15px; }
.m-hint.gone { opacity: 0; translate: -50% -.6em; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .m-hint:not(.gone) .i { animation: nudge 1.6s ease-in-out infinite; } }
@keyframes nudge { 50% { transform: translateY(-3px); } }
@media (max-width: 560px) { .m-hint { font-size: 12px; } }
.m-ph { display: flex; align-items: center; height: 2.3em; color: #d1d1d6; }
.m-l, .m-r { flex: 1; display: flex; align-items: center; gap: .75em; }
.m-r { justify-content: flex-end; }
.m-gap { width: 15em; flex: none; }
.m-ph b { color: #f5f5f7; font-weight: 600; font-size: 1.05em; }
.m-dim { color: #8e8e93; font-size: .9em; }
.m-row { display: flex; gap: .9em; margin-top: 1.1em; }
.m-search { flex: 1; display: flex; align-items: center; gap: .6em; height: 2.6em; padding: 0 .9em; border-radius: .8em; background: #1c1c1e; color: #8e8e93; }
.m-seg { display: flex; padding: .2em; border-radius: .8em; background: #1c1c1e; color: #e5e5ea; }
.m-seg span { padding: 0 1.1em; line-height: 2.2em; border-radius: .6em; }
.m-seg .on { background: #0a84ff; color: #fff; }
.m-cards { display: flex; gap: .9em; margin-top: 1.1em; overflow: hidden; mask-image: linear-gradient(90deg, #000 90%, transparent); }
.m-card { flex: none; width: 12.6em; height: 14.2em; display: flex; flex-direction: column; padding: .8em .9em; border-radius: 1em; background: #1c1c1e; border: 1px solid #38383a; }
.m-card.sel { background: #1c261c; border-color: #a7cf9f; }
.m-ch { display: flex; align-items: center; gap: .45em; font-size: .85em; color: #a1a1a6; white-space: nowrap; overflow: hidden; }
.m-check { margin-left: auto; width: 1.4em; height: 1.4em; flex: none; border-radius: .35em; background: #3a3a3c; }
.m-cb { flex: 1; margin: .6em 0; min-height: 0; overflow: hidden; }
.m-cb p { font-size: 1.02em; line-height: 1.35; overflow-wrap: anywhere; }
.m-cb .mono { font-family: var(--mono); font-size: .9em; }
.m-cm { display: flex; justify-content: space-between; font-size: .85em; color: #a1a1a6; }
.m-ca { display: flex; gap: .7em; margin-top: .55em; color: #c7c7cc; }
.m-foot { display: flex; align-items: center; gap: .5em; margin-top: 1em; color: #8e8e93; font-size: .82em; }

.m-thumb { height: 6.4em; border-radius: .4em; position: relative; overflow: hidden; }
.t-forest { background: linear-gradient(#bfd2ca, #e9e9d1); }
.t-forest::before, .t-forest::after { content: ""; position: absolute; inset: 0; }
.t-forest::before { background: #6e978a; clip-path: polygon(0 60%, 25% 45%, 50% 58%, 75% 42%, 100% 55%, 100% 100%, 0 100%); }
.t-forest::after { background: #24503f; clip-path: polygon(0 80%, 30% 66%, 55% 78%, 80% 64%, 100% 74%, 100% 100%, 0 100%); }
.t-ui { background:
  linear-gradient(#2f5a42 0 0) 10% 14% / 34% 11% no-repeat,
  linear-gradient(#d6ddd3 0 0) 10% 40% / 80% 8% no-repeat,
  linear-gradient(#d6ddd3 0 0) 10% 56% / 62% 8% no-repeat,
  linear-gradient(#d6ddd3 0 0) 10% 72% / 70% 8% no-repeat,
  linear-gradient(#e7a04a 0 0) 90% 88% / 22% 12% no-repeat, #fbfbf8; }

.m-win { background: #fbfbf8; border-radius: .9em; box-shadow: 0 1em 3em -1em rgb(0 0 0 / .45); overflow: hidden; color: #1c2520; }
.m-tb { display: flex; align-items: center; gap: .45em; height: 2.3em; padding: 0 .9em; background: #ecece8; border-bottom: 1px solid #dcdcd6; }
.m-tb > i { width: .8em; height: .8em; border-radius: 50%; background: #ff5f57; }
.m-tb > i + i { background: #febc2e; }
.m-tb > i + i + i { background: #28c840; }
.m-url { margin: 0 auto; padding: .2em 3em; border-radius: .5em; background: #fff; font-size: .8em; color: #56635a; }
.m-browser { left: 5em; top: 4em; width: 44em; height: 34em; }
.m-page { padding: 1.6em; }
.m-page .wide { height: 15em; }
.m-lines { display: grid; gap: .8em; margin-top: 1.4em; }
.m-lines i { height: .8em; border-radius: .4em; background: #dfe4dc; }
.m-lines .s { width: 60%; }
.m-sel { left: 8.5em; top: 8.6em; width: 32em; height: 18em; border: 1.5px solid #fff; box-shadow: 0 0 0 100em rgb(0 0 0 / .32); }
.m-sel span { position: absolute; right: .4em; bottom: .4em; font-size: .75em; padding: .2em .6em; border-radius: .4em; background: rgb(0 0 0 / .72); color: #fff; font-variant-numeric: tabular-nums; }
.m-cursor { left: 40em; top: 26.2em; width: 2em; height: 2em; fill: #111; stroke: #fff; stroke-width: 1.4; z-index: 2; }
.m-prev { left: 44em; top: 14em; width: 23em; padding: .9em 1em 1em; border-radius: 1.6em; background: #2a2a2c; color: #d1d1d6; z-index: 3; box-shadow: 0 1.2em 3em -1em rgb(0 0 0 / .6); }
.m-prev-h { display: flex; align-items: center; }
.m-prev-h .w1 { width: 1.25em; }
.m-prev-img { margin-top: .8em; padding: .6em; border-radius: 1em; background: #3a3a3c; }
.m-prev-img .m-thumb { height: 11em; }
.m-prev-a { display: flex; justify-content: space-between; padding: 1em .4em 0; }
.m-prev-a .i { width: 1.55em; height: 1.55em; }
.m-toast { position: absolute; right: 1em; top: -1.4em; display: flex; align-items: center; gap: .35em; padding: .35em .85em; border-radius: 99em; background: #1f3b2a; color: #c4e8cb; font-size: .82em; font-weight: 600; }
.m-toast .i { width: 1.1em; height: 1.1em; }

.m-backdrop { padding: 2.4em; border-radius: .8em; background: linear-gradient(135deg, #14382e, #a6cc8c); }
.m-shot { position: relative; color: #1c2520; width: 22em; padding: 1.1em 1.3em 1.2em; background: #fff; border-radius: .6em; box-shadow: 0 1em 2em -.6em rgb(0 0 0 / .5); font-size: .95em; }
.m-shot-h { font-weight: 700; margin-bottom: .7em; }
.m-field { display: flex; align-items: center; gap: 1em; padding: .4em 0; border-bottom: 1px solid #eceee9; font-size: .9em; }
.m-field span { width: 4.5em; color: #6b766e; }
.m-field b { font-weight: 500; }
.m-redact { width: 10em; height: 1em; background: #111; border-radius: .15em; }
.m-pixel { width: 11em; height: 1.1em; background: repeating-conic-gradient(#b8bdb6 0 25%, #8f978e 0 50%) 0 0 / .55em .55em; }
.m-btnrow { display: flex; justify-content: flex-end; gap: .5em; margin-top: .9em; font-size: .85em; }
.m-btn1, .m-btn2 { padding: .3em 1em; border-radius: .4em; background: #e4e6e1; }
.m-btn1 { background: #2f5a42; color: #fff; }
.m-ring { position: absolute; right: .7em; bottom: .65em; width: 4.6em; height: 2.3em; border: .18em solid #ff3b30; border-radius: .4em; }
.m-arrow { position: absolute; left: 5em; bottom: -2.4em; width: 9.6em; height: 4.4em; fill: none; stroke: #ff3b30; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; overflow: visible; transform: scaleY(-1); }

/* Already-open notch for the tour: editor and OCR live inside it, like the app. */
.m-island.static { height: auto; transition: none; }
.static .m-clip, .static .m-in { position: relative; inset: auto; left: auto; translate: none; width: auto; }
.m-island.ed { width: 68em; }
.m-edn { display: flex; flex-direction: column; height: 33em; margin-top: .9em; border-radius: .8em; overflow: hidden; background: #1f1f21; }
.m-etb { display: flex; align-items: center; gap: .1em; height: 4.2em; padding: 0 .8em; border-bottom: 1px solid #333; color: #e5e5ea; white-space: nowrap; }
.m-ib { display: grid; place-items: center; width: 2.3em; height: 2.2em; border-radius: .45em; }
.m-ib .i { width: 1.2em; height: 1.2em; }
.m-ib.on { background: rgb(255 255 255 / .14); }
.m-ib.off { opacity: .35; }
.m-vd { width: 1px; height: 1.8em; margin: 0 .4em; background: #3a3a3c; }
.m-chip { display: flex; flex-direction: column; line-height: 1.2; }
.m-chip b { font-size: .92em; font-weight: 600; font-variant-numeric: tabular-nums; }
.m-chip small { font-size: .74em; color: #8e8e93; }
.m-chip.c { flex-direction: row; align-items: center; gap: .5em; }
.m-chip.c > span { display: flex; flex-direction: column; }
.m-dot { width: 1.5em; height: 1.5em; border-radius: 50%; background: #2f5a42; box-shadow: 0 0 0 1px rgb(255 255 255 / .25); }
.m-dot.red { width: 1.2em; height: 1.2em; background: #ff3b30; }
.m-done { margin-left: .4em; padding: .25em .8em; border-radius: .4em; background: #3a3a3c; font-size: .9em; }
.m-edc { position: relative; flex: 1; display: grid; place-items: center; background: #141415; }
.m-ctx { position: absolute; top: .9em; right: .9em; display: flex; align-items: center; gap: .7em; padding: .45em .8em; border-radius: .7em; background: #2c2c2e; color: #e5e5ea; box-shadow: 0 .5em 1.2em rgb(0 0 0 / .4); }
.m-slider { position: relative; width: 7em; height: .25em; border-radius: 1em; background: #48484a; }
.m-slider i { position: absolute; inset: 0 55% 0 0; border-radius: inherit; background: #0a84ff; }
.m-slider i::after { content: ""; position: absolute; right: -.5em; top: 50%; width: 1em; height: 1em; margin-top: -.5em; border-radius: 50%; background: #fff; }
.m-eds { padding: .5em 1em; border-top: 1px solid #333; font-size: .78em; color: #8e8e93; }
.m-num { position: absolute; display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: #ff3b30; color: #fff; font-style: normal; font-weight: 700; font-size: .85em; }
.m-num.n1 { left: -.85em; top: 3.1em; }
.m-num.n2 { right: -.85em; bottom: -.85em; }

.t-board { display: grid; align-content: center; gap: .45em; padding: .6em; background: #22382b; border: .3em solid #8a6a46; }
.t-board i { width: 80%; height: .42em; border-radius: .2em; background: #f4f1e6; }
.t-board i:first-child { width: 55%; background: #f7d98b; }
.m-hd { display: block; height: 1px; margin: .9em 0; background: #2c2c2e; }
.m-pvh { display: block; margin-bottom: .7em; font-size: 1.02em; font-weight: 600; }
.m-pvb { display: flex; gap: 1em; height: 11.5em; padding: 1em; border-radius: 1em; background: rgb(255 255 255 / .07); }
.m-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .7em; }
.m-vdl { width: 1px; background: #3a3a3c; }
.m-obar { display: flex; align-items: center; gap: .9em; font-size: .88em; color: #d1d1d6; white-space: nowrap; }
.m-obar .i { width: 1.1em; height: 1.1em; }
.m-pick { display: flex; align-items: center; gap: .3em; padding: .15em .45em .15em .7em; border-radius: .4em; background: #3a3a3c; color: #f2f2f2; }
.m-tbtn { display: flex; align-items: center; gap: .3em; }
.m-mono { font-family: var(--mono); font-size: .88em; line-height: 1.65; color: #f2f2f2; }
.m-tr { font-size: .98em; line-height: 1.55; color: #f2f2f2; }
