/* Living Plan - shared styles.
 * Ported from Ritsu's V2 mock-ups: a light console and phone screens, a dark
 * ceremony screen, and a paper certificate. Colours are fixed per screen on
 * purpose (each is a "document" with its own look), so there is no automatic
 * dark mode here. */

:root {
    --ink: #18222E;
    --ink-2: #334150;
    --ink-3: #556270;
    --page: #F3F4F1;
    --card: #fff;
    --line: #DDE2E6;
    --line-2: #E6E9EC;
    --chip: #EEF0F2;
    --link: #1F4E99;
    --link-hover: #163a73;
    --ok: #0E6B5C;
    --wait: #8A5300;
    --bad: #A2271B;

    --night: #141C26;
    --night-panel: #1C2633;
    --night-line: #2A3644;
    --night-step: #24303D;
    --night-text: #F3F4F1;
    --night-muted: #9FB0C0;
    --night-body: #AFBBC7;
    --night-soft: #C9D2DB;
    --gold: #E9D9A6;
    --gold-hover: #F3E7C2;
    --done: #2F5E52;
    --done-ink: #DFF3EC;

    --sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
    --serif: 'IBM Plex Serif', Georgia, serif;
    --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--page); -webkit-font-smoothing: antialiased; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }
.hidden { display: none !important; }
.muted { color: var(--ink-3); }
.err { color: var(--bad); }
button { font: inherit; }

/* ----------------------------------------------------------- buttons */
.lp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 52px; padding: 0 24px; border-radius: 10px; border: none;
    background: var(--ink); color: #fff; font-weight: 600; font-size: 16px;
    text-decoration: none; cursor: pointer;
}
.lp-btn:hover { color: #fff; background: #24303D; }
.lp-btn[disabled], .lp-btn.is-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.lp-btn.block { display: flex; width: 100%; }
.lp-btn.small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.lp-btn2 {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 18px; border-radius: 10px;
    background: #fff; color: var(--ink); border: 1px solid #9AA6B2;
    font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer;
}
.lp-btn2:hover { color: var(--ink); background: var(--page); }
.lp-btn2.small { min-height: 36px; padding: 0 12px; font-size: 13px; }
.lp-link-btn { background: none; border: none; padding: 0; color: var(--link); cursor: pointer; font-size: 13px; text-decoration: underline; }

/* ------------------------------------------------------------ console */
.lp-console { display: flex; min-height: 100vh; }
.lp-side {
    flex: 0 0 232px; background: var(--ink); padding: 24px 16px;
    display: flex; flex-direction: column; gap: 4px;
}
.lp-side .firm { color: #fff; font-weight: 600; font-size: 16px; padding: 0 12px; }
.lp-side .sub { color: var(--night-muted); font-size: 12px; padding: 2px 12px 20px; }
.lp-side a.nav { display: block; padding: 10px 12px; border-radius: 8px; color: var(--night-soft); text-decoration: none; font-size: 14px; }
.lp-side a.nav:hover { color: #fff; background: var(--night-step); }
.lp-side a.nav.active { background: var(--night-step); color: #fff; }
.lp-side .who { margin-top: auto; color: var(--night-muted); font-size: 12px; padding: 12px; line-height: 1.5; }
.lp-side .who a { color: var(--night-soft); }
.lp-main { flex: 1 1 auto; min-width: 0; padding: 32px 40px 64px; display: flex; flex-direction: column; gap: 20px; max-width: 1120px; }
.lp-kicker { font-size: 13px; color: var(--ink-3); }
.lp-h1 { font-size: 30px; font-weight: 600; margin: 4px 0 0; line-height: 1.2; }
.lp-lede { font-size: 14px; color: var(--ink-2); margin-top: 6px; line-height: 1.5; }
.lp-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.lp-card.strong { border: 2px solid var(--ink); }
.lp-step { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 6px; }
.lp-h2 { font-size: 19px; font-weight: 600; margin: 0; }
.lp-p { margin: 6px 0 16px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.lp-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ok); }
.lp-tag.wait { color: var(--wait); }
.lp-chip { display: inline-block; font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 999px; background: var(--chip); color: var(--ink-2); margin: 1px 2px 1px 0; }
.lp-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.lp-client { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.lp-client .qr { flex: none; width: 128px; height: 128px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; color: var(--ink-3); }
.lp-client .qr svg { width: 100%; height: 100%; display: block; }
.lp-client .info { flex: 1 1 160px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lp-client .name { font-weight: 600; font-size: 16px; }
.lp-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.lp-check input { width: 18px; height: 18px; margin: 0; flex: none; }

.lp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lp-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; padding: 0 12px 8px 0; }
.lp-table td { border-top: 1px solid var(--line-2); padding: 11px 12px 11px 0; vertical-align: top; }
.lp-table td.fp { font-family: var(--mono); font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.lp-scroll { overflow-x: auto; }

.lp-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.lp-form .full { grid-column: 1 / -1; }
.lp-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.lp-field input[type=text], .lp-field input[type=email], .lp-field input[type=password], .lp-field input[type=date], .lp-field select {
    font: inherit; font-size: 15px; font-weight: 400; color: var(--ink);
    min-height: 44px; padding: 8px 12px; border: 1px solid #B9C2CB; border-radius: 8px; background: #fff; width: 100%;
}
.lp-field input:focus, .lp-field select:focus { outline: 2px solid var(--link); outline-offset: 1px; }
.lp-field .hint { font-weight: 400; color: var(--ink-3); font-size: 12px; }
.lp-boxes { display: flex; flex-wrap: wrap; gap: 8px 16px; font-weight: 400; font-size: 14px; color: var(--ink); min-height: 44px; align-items: center; }
.lp-boxes label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.lp-msg { font-size: 14px; line-height: 1.5; padding: 10px 14px; border-radius: 8px; background: #FBEDEA; color: var(--bad); }
.lp-msg.ok { background: #E4F3EE; color: var(--ok); }
.lp-msg.info { background: var(--chip); color: var(--ink-2); }
.lp-list-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-2); }
.lp-list-row:first-child { border-top: none; }
.lp-list-row .t { font-weight: 600; }
.lp-list-row .s { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.lp-list-row .grow { flex: 1; min-width: 0; }
.lp-list-row .s .lp-chip { margin-left: 4px; }
.lp-list-sub { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line-2); }

/* A demonstration firm's practice panel: gold edge, like the seal it ends in. */
.lp-demo { border-left: 4px solid #C9A44F; }
.lp-demo-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lp-demo #demo-msg:not(:empty) { margin-top: 12px; }
.lp-demo-wallet { margin: 14px 0 0; font-size: 13px; color: var(--ink-3); }
.lp-demo-wallet.low { color: var(--wait); font-weight: 500; }
.lp-list-sub + .lp-list-row { border-top: none; }

/* The console's meetings: an open one is an empty dashed circle, waiting for
   its seal; an anchored one carries the gold of a completed seal. */
.lp-meeting { justify-content: flex-start; }
.lp-list-row .s:has(.lp-state, .lp-chip) { line-height: 1.9; }
.lp-meeting-mark {
    flex: none; width: 40px; height: 40px; border-radius: 50%;
    border: 2px dashed #9AA6B2; display: flex; align-items: center; justify-content: center;
}
.lp-meeting.is-anchored .lp-meeting-mark { border: 2px solid #A9842F; background: #C9A44F; color: #3A2C0C; }
.lp-meeting-mark svg { width: 22px; height: 22px; }
.lp-meeting.is-anchored .t a { color: var(--ink-2); }
.lp-state {
    display: inline-flex; align-items: center; gap: 4px; vertical-align: 1px;
    font-size: 12px; font-weight: 600; line-height: 1.6; padding: 0 8px; border-radius: 999px;
    background: var(--chip); color: var(--ink-2);
}
.lp-state.ready { background: #FBEBCB; color: var(--wait); }
.lp-state.done { background: #E4F3EE; color: var(--ok); }
.lp-state svg { width: 13px; height: 13px; }

@media (max-width: 760px) {
    .lp-console { flex-direction: column; }
    .lp-side { flex: none; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 16px; }
    .lp-side .sub { display: none; }
    .lp-side .who { margin: 0 0 0 auto; padding: 0; }
    .lp-main { padding: 20px 16px 48px; }
}

/* ------------------------------------------------------------- phone */
.lp-phone-page { min-height: 100vh; background: var(--page); display: flex; justify-content: center; }
.lp-phone { width: 100%; max-width: 480px; min-height: 100vh; display: flex; flex-direction: column; background: var(--page); }
.lp-phone header.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.lp-phone header.bar .firm { font-weight: 600; font-size: 15px; }
.lp-phone header.bar .ctx { font-size: 12px; color: var(--ink-3); text-align: right; }
.lp-phone main { flex: 1; padding: 24px 20px 28px; display: flex; flex-direction: column; gap: 16px; }
.lp-phone h1.big { font-family: var(--serif); font-size: 28px; line-height: 1.2; font-weight: 500; margin: 0; }
.lp-phone h1.plain { font-size: 28px; line-height: 1.2; font-weight: 600; margin: 0; }
.lp-phone .intro { font-size: 15px; line-height: 1.5; margin: 10px 0 0; color: var(--ink-2); }
.lp-qcard { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; gap: 14px; align-items: flex-start; }
.lp-qcard .ic { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--chip); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.lp-qcard .q { font-size: 16px; font-weight: 600; margin: 0; }
.lp-qcard .a { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 4px 0 0; }
.lp-outline { border: 1px solid #9AA6B2; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.lp-outline h2 { font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.lp-outline p { font-size: 14px; line-height: 1.5; margin: 0; color: var(--ink-2); }
.lp-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.lp-foot .note { font-size: 13px; line-height: 1.5; margin: 0; color: var(--ink-3); text-align: center; }
.lp-grp { font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; }
.lp-pcard { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
.lp-prow { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.lp-prow:first-child { border-top: none; }
.lp-prow .nm { font-weight: 600; font-size: 15px; }
.lp-prow .cap { font-size: 13px; color: var(--ink-3); margin-top: 2px; line-height: 1.45; }
.lp-prow .ok { font-size: 12px; font-weight: 500; color: var(--ok); white-space: nowrap; align-self: center; }
.lp-prow .wait { font-size: 12px; font-weight: 500; color: var(--wait); white-space: nowrap; align-self: center; }
.lp-prow .fp { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.lp-banner { border-radius: 12px; padding: 14px 16px; font-size: 14px; line-height: 1.5; background: #FFF4E0; color: #6B4100; border: 1px solid #F0D29A; }

/* -------------------------------------------------------- dark screens */
.lp-night { background: var(--night); color: var(--night-text); min-height: 100vh; }
.lp-night a { color: var(--gold); }
.lp-night a:hover { color: #fff; }
.lp-gold-btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px;
    border-radius: 10px; border: none; background: var(--gold); color: var(--night); font-weight: 600; font-size: 16px;
    text-decoration: none; cursor: pointer;
}
.lp-night a.lp-gold-btn, .lp-night a.lp-gold-btn:hover { color: var(--night); }
.lp-gold-btn:hover { background: var(--gold-hover); }
.lp-gold-btn.block { display: flex; width: 100%; }
.lp-ghost {
    display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px;
    border-radius: 10px; background: transparent; color: var(--night-soft); border: 1px solid #4A5866;
    font-size: 15px; cursor: pointer; text-decoration: none;
}
.lp-night a.lp-ghost { color: var(--night-soft); }
.lp-ghost:hover, .lp-night a.lp-ghost:hover { color: #fff; border-color: var(--night-muted); }
.lp-ghost.block { display: flex; width: 100%; }

/* Apple's "Add to Apple Wallet" badge, unaltered (their guidelines): shown at
   its own proportions, never stretched, with clear space around it. */
.lp-wallet-badge { display: flex; justify-content: center; align-self: center; padding: 6px; margin: 0; border: 0; background: none; cursor: pointer; }
.lp-wallet-badge img { display: block; height: 50px; width: auto; }
.lp-wallet-badge.inline { display: inline-flex; padding: 0; vertical-align: middle; }
.lp-wallet-badge.inline img { height: 40px; }
.lp-wallet-badge[aria-busy="true"] { opacity: .5; cursor: progress; }
.lp-wallet-card { border-radius: 14px; padding: 16px; background: var(--night); color: var(--night-text); display: flex; flex-direction: column; gap: 12px; }
.lp-wallet-card h2 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--gold); }
.lp-wallet-card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--night-soft); }
@media print { .lp-wallet-badge, .lp-wallet-card { display: none !important; } }
.lp-press {
    display: flex; align-items: center; justify-content: center; width: 100%; min-height: 72px; border: none; border-radius: 12px;
    background: var(--gold); color: var(--night); font-weight: 600; font-size: 22px; cursor: pointer;
    animation: lp-pulse 1.6s ease-in-out infinite;
}
.lp-press:hover { background: var(--gold-hover); }
.lp-press[disabled] { animation: none; opacity: .5; cursor: not-allowed; }
.lp-panel { background: var(--night-panel); border: 1px solid var(--night-line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.lp-panel .lbl { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--night-muted); }
.lp-panel .who { font-size: 13px; color: var(--night-soft); }
.lp-panel .fp { font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--gold); overflow-wrap: anywhere; }
.lp-panel .note { font-size: 13px; color: var(--night-muted); }
.lp-night-msg { font-size: 15px; line-height: 1.5; padding: 12px 14px; border-radius: 10px; background: #3A1E1A; color: #F5C9C0; border: 1px solid #6B3128; }

/* ceremony */
.lp-cer { padding: 40px 48px; display: flex; flex-direction: column; gap: 28px; min-height: 100vh; }
.lp-cer .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 14px; color: var(--night-muted); }
.lp-cer .cols { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.lp-cer .steps-col { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.lp-cer h1 { font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1.15; margin: 0 0 12px; }
.lp-cer .aside { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; padding-top: 16px; }
.lp-cer .seals { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; justify-items: center; }
.lp-cer .seals .seal { width: 100%; max-width: 220px; }
.lp-cer .foot { margin: auto 0 0; font-size: 13px; line-height: 1.5; color: var(--night-muted); max-width: 820px; }
.lp-st { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--night-line); }
.lp-st:first-child { border-top: none; }
.lp-st .ic { flex: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; background: var(--night-step); color: var(--night-muted); transition: background .3s, color .3s; }
.lp-st.active .ic { background: var(--gold); color: var(--night); }
.lp-st.done .ic { background: var(--done); color: var(--done-ink); }
.lp-st .body { opacity: .5; transition: opacity .3s; min-width: 0; }
.lp-st.active .body, .lp-st.done .body { opacity: 1; }
.lp-st .t { font-size: 19px; font-weight: 600; }
.lp-st .d { font-size: 15px; line-height: 1.55; color: var(--night-body); margin-top: 4px; }
.lp-st .live { font-family: var(--mono); font-size: 13px; color: var(--gold); margin-top: 8px; min-height: 1.4em; overflow-wrap: anywhere; }
@media (max-width: 760px) {
    .lp-cer { padding: 24px 16px; }
    .lp-cer h1 { font-size: 30px; }
}

/* watch (phone, dark) */
.lp-watch { width: 100%; max-width: 480px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; padding: 20px 24px 28px; gap: 20px; }
.lp-watch header { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--night-muted); gap: 12px; }
.lp-watch .seal { align-self: center; width: 250px; max-width: 70vw; }
.lp-watch .counter { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--night-muted); }
.lp-watch h1 { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.2; margin: 0; }
.lp-watch .text { margin: 0; font-size: 16px; line-height: 1.55; color: var(--night-soft); }

/* the seal */
.seal svg { display: block; width: 100%; height: auto; overflow: visible; }
.seal .ring { transition: stroke-dasharray .6s ease; }
.seal .body, .seal .edge, .seal .inner, .seal .line, .seal text { transition: fill .5s ease, stroke .5s ease; }
.seal.stamp { animation: lp-stamp .7s cubic-bezier(.2,.9,.3,1.2) both; }
.seal.stamp.later { animation-delay: .25s; }
@keyframes lp-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(233,217,166,.45); } 50% { box-shadow: 0 0 0 14px rgba(233,217,166,0); } }
@keyframes lp-stamp { 0% { transform: scale(1.8) rotate(-10deg); opacity: 0; } 55% { transform: scale(.93) rotate(0); opacity: 1; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lp-press, .seal.stamp { animation: none !important; } .seal .ring { transition: none; } }

/* -------------------------------------------------------- certificate */
.lp-cert-page { background: #E9E7E1; min-height: 100vh; padding: 28px 24px 48px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.lp-cert-tools { width: 100%; max-width: 860px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.lp-cert-tools .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.lp-cert { width: 100%; max-width: 816px; background: #FFFDF7; border: 1px solid #D9CFB4; box-shadow: 0 2px 12px rgba(40,30,10,.10); padding: 14px; color: #2B2417; }
.lp-cert .b1 { border: 2px solid #B89A4E; padding: 4px; }
.lp-cert .b2 { border: 1px solid #D9C48C; padding: 44px 52px 40px; display: flex; flex-direction: column; gap: 22px; }
.lp-cert .lbl { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6E6250; }
.lp-cert header { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.lp-cert h1 { font-family: var(--serif); font-size: 38px; font-weight: 500; line-height: 1.15; margin: 0; color: #2B2417; }
.lp-cert .prep { font-family: var(--serif); font-style: italic; font-size: 16px; color: #5B5040; }
.lp-cert .stmt { font-family: var(--serif); margin: 0; font-size: 17px; line-height: 1.6; text-align: center; }
.lp-cert .fpbox { font-family: var(--mono); font-size: 15px; line-height: 1.6; background: #F7F1E0; border: 1px solid #E4DCC6; padding: 10px 12px; overflow-wrap: anywhere; }
.lp-cert .small { font-size: 12.5px; color: #5B5040; overflow-wrap: anywhere; }
.lp-cert .small a { color: #5B4A1E; }
.lp-cert .dr { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr) minmax(0,.8fr); gap: 10px; padding: 8px 0; border-top: 1px solid #E4DCC6; font-size: 13px; align-items: baseline; }
.lp-cert .dr:first-child { border-top: none; }
.lp-cert .dr em { color: #5B5040; }
.lp-cert .two { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; font-size: 13px; line-height: 1.55; color: #3D3426; }
.lp-cert footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 16px; border-top: 1px solid #E4DCC6; flex-wrap: wrap; }
.lp-cert .who { flex: 1 1 220px; display: flex; flex-direction: column; gap: 14px; font-size: 13px; color: #3D3426; line-height: 1.5; }
.lp-cert .who .v { font-family: var(--serif); font-size: 17px; color: #2B2417; }
.lp-cert .qrcol { flex: 0 1 160px; min-width: 0; overflow-wrap: anywhere; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 13px; color: #5B5040; line-height: 1.5; }
.lp-cert .qrcol .qr { width: 96px; height: 96px; background: #fff; padding: 4px; border: 1px solid #E4DCC6; }
.lp-cert .qrcol .qr svg { width: 100%; height: 100%; display: block; }
.lp-cert .appendix { font-size: 11px; color: #5B5040; border-top: 1px solid #E4DCC6; padding-top: 14px; }
.lp-cert .appendix .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 3px 0; }
.lp-cert .appendix .mono { font-size: 10.5px; overflow-wrap: anywhere; }
.lp-cert .void { text-align: center; font-family: var(--serif); font-size: 15px; color: #8A3B12; border: 1px solid #E8B98F; background: #FFF1E2; padding: 10px 12px; }
@media (max-width: 640px) {
    .lp-cert .b2 { padding: 24px 18px; }
    .lp-cert h1 { font-size: 28px; }
    .lp-cert .dr { grid-template-columns: 1fr; gap: 2px; }
}
@media print {
    @page { margin: 12mm; }
    body, .lp-cert-page { background: #fff !important; padding: 0 !important; }
    .lp-cert-tools { display: none !important; }
    .lp-cert { box-shadow: none; border: none; max-width: none; }
    .seal.stamp { animation: none !important; }
}

/* ------------------------------------------------------------- check */
.lp-check-wrap { max-width: 820px; margin: 0 auto; padding: 32px 20px 64px; display: flex; flex-direction: column; gap: 20px; }
.lp-drop { border: 2px dashed #9AA6B2; border-radius: 12px; padding: 28px; text-align: center; background: #fff; cursor: pointer; }
.lp-drop.over { border-color: var(--link); background: #F2F6FC; }
.lp-result { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.lp-result.current { border-left: 6px solid var(--ok); }
.lp-result.replaced { border-left: 6px solid #C98A1B; }
.lp-result.none { border-left: 6px solid #9AA6B2; }
.lp-result h2 { font-size: 20px; margin: 0; font-weight: 600; line-height: 1.3; }
.lp-result .kv { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 6px 16px; font-size: 14px; }
.lp-result .kv .k { color: var(--ink-3); }
.lp-result .kv .v { overflow-wrap: anywhere; }
@media (max-width: 560px) { .lp-result .kv { grid-template-columns: 1fr; gap: 2px; } .lp-result .kv .k { margin-top: 8px; } }
