/* /v2 on top of SMART BUILD's own look (app.css): only what the original has no part for — the
   demo written whole sits in a frame inside the original window, the ready-made samples on the
   start page, the QR code, the "made in" mark on the window bar. */
.v2-frame iframe { display: block; width: 100%; height: calc(100vh - 210px); min-height: 520px; border: 0; background: #fff; }
.appframe.v2-frame.as-phone iframe { height: min(780px, calc(100vh - 210px)); }
.v2-made { display: inline-flex; align-items: center; gap: .3rem; color: #1E6B45; font-weight: 700; }
.v2-tag { margin-left: .5rem; font-size: .72rem; font-weight: 700; color: #9A3F2C; background: var(--sb-coral-soft); border-radius: 999px; padding: .1rem .55rem; vertical-align: .1em; }
.v2-samples { width: min(820px, calc(100vw - 32px)); margin-top: 1.4rem; }
.v2-sample-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
@media (max-width: 640px) { .v2-sample-list { grid-template-columns: minmax(0, 1fr); } }
.v2-sample { display: grid; gap: .2rem; background: var(--sb-panel); border: 1px solid var(--sb-line); border-radius: var(--radius); padding: .75rem .9rem; text-decoration: none; color: var(--sb-ink); text-align: left; }
.v2-sample:hover { border-color: var(--sb-accent); background: var(--sb-hover); }
.v2-sample b { font-size: .95rem; }
.v2-sample small { color: var(--sb-sub); line-height: 1.5; }
.v2-qr { width: 240px; max-width: 100%; margin: .4rem auto; padding: 10px; background: #fff; border: 1px solid var(--sb-line); border-radius: var(--radius); }
.v2-qr svg { display: block; width: 100%; height: auto; }
.v2-url { margin: .2rem 0; text-align: center; font-size: .85rem; word-break: break-all; }
.v2-row-end { display: flex; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.v2-basis li { opacity: 0; animation: v2rise .5s ease forwards; }
@keyframes v2rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .v2-basis li { animation: none; opacity: 1; } }
@media (max-width: 820px) {
  .v2-frame iframe { height: calc(100vh - 190px); min-height: 480px; }
}
/* 見積もり: the way from the market price to ours, what is done, the payments in stages. */
.v2-pop h4 { margin: .2rem 0 .5rem; }
.v2-ladder { margin: .6rem 0 .9rem; border: 1px solid var(--sb-line); border-radius: 10px; overflow: hidden; }
.v2-row { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; padding: .5rem .75rem; border-top: 1px solid var(--sb-line-soft); font-size: .88rem; }
.v2-row:first-child { border-top: 0; }
.v2-row > span:first-child { display: grid; gap: .05rem; min-width: 0; }
.v2-row small { color: var(--sb-sub); font-size: .76rem; }
.v2-amt { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.v2-minus { color: var(--sb-sub); background: #FCFBFD; }
.v2-minus .v2-amt { color: var(--sb-accent); }
.v2-total { background: var(--sb-soft); font-weight: 700; }
.v2-total .v2-amt { font-size: 1.05rem; color: var(--sb-accent); }
/* At a glance: the usual price and ours as two bars, one line why. */
.v2-bars { display: grid; gap: .7rem; margin: .7rem 0 .5rem; }
.v2-bar-head { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; font-size: .86rem; color: var(--sb-sub); }
.v2-bar-head b { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.v2-bar.ours .v2-bar-head { color: var(--sb-ink); font-weight: 700; }
.v2-bar.ours .v2-bar-head b { font-size: 1.3rem; font-weight: 700; color: var(--sb-accent); }
.v2-bar-track { height: 10px; margin-top: .3rem; border-radius: 999px; background: var(--sb-line-soft); overflow: hidden; }
.v2-bar-track span { display: block; height: 100%; border-radius: 999px; background: var(--sb-line); }
.v2-bar.ours .v2-bar-track { background: transparent; }
.v2-bar.ours .v2-bar-track span { background: var(--sb-accent); }
.v2-why { margin: .5rem 0 .2rem; font-size: .86rem; color: var(--sb-sub); }
/* The rest, for those who open it. */
.v2-accs { margin-top: .9rem; border-top: 1px solid var(--sb-line-soft); }
.v2-acc { border-bottom: 1px solid var(--sb-line-soft); }
.v2-acc > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .65rem .1rem; cursor: pointer; font-size: .88rem; font-weight: 600; }
.v2-acc > summary::-webkit-details-marker { display: none; }
.v2-acc > summary::after { content: ""; flex: none; width: .5rem; height: .5rem; border-right: 2px solid var(--sb-sub); border-bottom: 2px solid var(--sb-sub); transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.v2-acc[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.v2-acc > summary:hover { color: var(--sb-accent); }
.v2-acc-body { padding: 0 0 .8rem; font-size: .86rem; }
.v2-acc .v2-ladder { margin: .2rem 0 .5rem; }
.v2-acc .ik-label { margin-top: .4rem; }
.v2-acc .ik-vs { margin: 0; }
.v2-calc-line { margin: 0 0 .3rem; }
.v2-sub { background: var(--sb-soft); font-weight: 600; }
.v2-calc-note { font-size: .78rem; margin: .3rem 0; }
.v2-done { margin: .2rem 0 .8rem; }
.v2-acc .v2-done, .v2-acc .v2-pay { margin: 0; }
.v2-done ul { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; gap: .25rem; font-size: .86rem; }
.v2-done li { display: flex; gap: .4rem; align-items: baseline; }
.v2-done li .ic { color: var(--sb-accent); flex: none; transform: translateY(2px); }
.v2-pay { margin: .9rem 0 .6rem; }
.v2-pay ol { margin: .3rem 0 0; padding-left: 1.2rem; display: grid; gap: .35rem; font-size: .84rem; }
.v2-pay li { display: grid; grid-template-columns: 1fr auto; gap: 0 .6rem; }
.v2-pay li .muted { grid-column: 1; font-size: .78rem; }
.v2-pay li .v2-amt { grid-column: 2; grid-row: 1; font-weight: 500; }
.v2-consult-btns { display: flex; gap: .45rem; flex-wrap: wrap; }
.demo-scroll .demo-consult { max-width: 1040px; margin: 1rem auto 0; }
.v2-acc .v2-calc-line { margin-top: .9rem; }
/* The function list inside the working: each group folds. */
.v2-fp { display: grid; gap: .3rem; margin: .3rem 0 .6rem; }
.v2-fp details { border: 1px solid var(--sb-line); border-radius: 10px; overflow: hidden; }
.v2-fp summary { list-style: none; display: flex; justify-content: space-between; gap: .6rem; padding: .45rem .7rem; cursor: pointer; font-size: .84rem; font-weight: 600; background: #FCFBFD; }
.v2-fp summary::-webkit-details-marker { display: none; }
.v2-fp summary::before { content: "▸"; color: var(--sb-sub); margin-right: .35rem; }
.v2-fp details[open] summary::before { content: "▾"; }
.v2-fp summary > span:first-child { flex: 1; }
.v2-fp .v2-ladder { margin: 0; border: 0; border-top: 1px solid var(--sb-line-soft); border-radius: 0; }
.v2-add { display: inline-block; margin-left: .35rem; padding: 0 .35rem; border-radius: 999px; background: var(--sb-soft); color: var(--sb-accent); font-size: .7rem; font-weight: 700; }
.v2-src ul { margin: .2rem 0 0; padding-left: 1.1rem; font-size: .76rem; }
.v2-src a { color: var(--sb-sub); }
.hbtn.order:disabled { opacity: .7; cursor: default; }
