/* =====================================================================
   IntrasBuild - ehitus ja projekteerimine. Laeb pärast v3.css-i ja sub.css-i.
   Betoonhall paber, süsimust ja ohutuskollane. Joonestusvõrk, sinine kalka joonise jaoks,
   nurgatempel, revisioonipilv ja mõõdulint. Teravad nurgad, kollane markerijoon pealkirjades.
   ===================================================================== */
html.theme-build {
  --teal-rgb: 38, 40, 44;
  --hi-rgb: 246, 201, 69;
  --bg-rgb: 240, 237, 230;
  --acc-rgb: 214, 69, 31;
  --bg: #f0ede6;
  --white: #fffdf9;
  --ink: #1b1c1e;
  --ink-2: #4a4b4e;
  --ink-3: #6b6b71;                /* väike tekst vähemalt 4,5:1 valgel, --bg ja --mint taustal */
  --ink-4: #a8a6a0;
  --line: #ddd8cd;
  --line-2: #ebe7de;
  --teal: #26282c;
  --teal-d: #111214;
  --teal-hi: #f6c945;
  --mint: #faefc6;
  --mint-2: #f3df92;
  --navy: #1b1c1e;
  --navy-d: #111214;
  --acc: #d6451f;
  --acc-d: #b3361a;
  --acc-t: #fbe8e1;
  --brand: #26282c;
  --av2: #8a7a5c;
  --yel: #f2b705;
  --bp: #16305a;
  --ok: #1e7d47;                   /* roheline tekst valgel ja #e7f4ec taustal vähemalt 4,5:1 */
  --r: 6px;
  --r-lg: 10px;
}
html.theme-build .h1, html.theme-build .h2, html.theme-build .final__title { font-weight: 870; letter-spacing: -.042em; }
/* teine rida: kollane markerijoon teksti taga (allajoonimine joonistub teksti alla) */
html.theme-build .h1 .t, html.theme-build .h2 .t, html.theme-build .final__title .t { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(242, 183, 5, .9); text-decoration-thickness: .27em; text-underline-offset: -.13em; text-decoration-skip-ink: none; }
html.theme-build .btn { border-radius: 4px; }
html.theme-build .btn--lg { border-radius: 6px; }
html.theme-build .btn--teal { background: var(--yel); color: var(--ink); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .14), 0 10px 22px -10px rgba(242, 183, 5, .85); }
html.theme-build .btn--teal:hover { background: #ffc417; }
html.theme-build .label::before, html.theme-build .eyebrow::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 1px; background: var(--yel); box-shadow: none; vertical-align: 1px; }
html.theme-build .eyebrow::before { margin-right: 0; }
html.theme-build .brand__sub { color: var(--ink); background: linear-gradient(transparent 60%, rgba(242, 183, 5, .9) 60%, rgba(242, 183, 5, .9) 92%, transparent 92%); }
html.theme-build .pbadge { border-radius: 6px; }
html.theme-build .pbadge em { color: var(--ink); background: linear-gradient(transparent 58%, rgba(242, 183, 5, .9) 58%, rgba(242, 183, 5, .9) 92%, transparent 92%); }
html.theme-build .chip { border-radius: 6px; }
html.theme-build .ticks svg { color: #b38600; }

/* ---------------- avavaade: joonestusvõrk, foto, nurgatempel, mõõdulint ---------------- */
.bxh::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(27, 28, 30, .055) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(27, 28, 30, .055) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(rgba(27, 28, 30, .08) 1px, transparent 1px) 0 0 / 120px 120px, linear-gradient(90deg, rgba(27, 28, 30, .08) 1px, transparent 1px) 0 0 / 120px 120px; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 92%); mask-image: linear-gradient(180deg, #000 30%, transparent 92%); }
.bstage { width: min(100%, 460px); margin: 2% auto 6%; aspect-ratio: 4 / 5; }
.bstage__photo { position: absolute; z-index: 1; inset: 0; border-radius: 4px; box-shadow: var(--sh-3); }
.bstage__photo img { object-position: 45% 78%; }
/* lõikemärgid nagu joonise nurkades */
.bstage::before, .bstage::after { content: ''; position: absolute; z-index: 2; width: 26px; height: 26px; border: 0 solid var(--ink); pointer-events: none; }
.bstage::before { left: -12px; top: -12px; border-width: 2px 0 0 2px; }
.bstage::after { right: -12px; bottom: -12px; border-width: 0 2px 2px 0; }
.tape { position: absolute; z-index: 3; left: -20%; top: 5%; width: 64%; height: 30px; display: flex; justify-content: space-around; align-items: flex-end; padding: 0 0 3px 18px; border-radius: 2px; background: repeating-linear-gradient(90deg, rgba(27, 28, 30, .85) 0 1.5px, transparent 1.5px 40px) 0 0 / 100% 55% no-repeat, repeating-linear-gradient(90deg, rgba(27, 28, 30, .6) 0 1px, transparent 1px 8px) 0 0 / 100% 30% no-repeat, linear-gradient(#f7c51e, #e7ab00); transform: rotate(-9deg); transform-origin: 0 50%; box-shadow: 0 12px 20px -12px rgba(0, 0, 0, .5); }
.tape b { font: 700 9px/1 var(--mono); font-style: normal; color: rgba(27, 28, 30, .85); }
.tblock { position: absolute; z-index: 3; left: -16%; top: 40%; width: min(300px, 68%); border: 2px solid var(--ink); border-radius: 3px; background: var(--white); color: var(--ink); box-shadow: 0 24px 40px -18px rgba(27, 28, 30, .55); }
.tblock__r { display: grid; grid-template-columns: 66px minmax(0, 1fr); border-bottom: 1px solid var(--ink); }
.tblock__r small, .tblock__g small { font: 600 9px/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.tblock__r small { padding: 8px 9px; border-right: 1px solid var(--ink); }
.tblock__r b { padding: 7px 9px; font-size: 13px; font-weight: 800; line-height: 1.3; }
.tblock__g { display: grid; grid-template-columns: .8fr 1.4fr .9fr; }
.tblock__g > div { padding: 6px 9px 7px; }
.tblock__g > div + div { border-left: 1px solid var(--ink); }
.tblock__g small { display: block; }
.tblock__g b { display: block; margin-top: 3px; font: 700 15px/1 var(--mono); }
.tblock__st { position: absolute; right: -14px; top: -16px; padding: 5px 10px; border: 2.5px solid var(--ok); border-radius: 4px; background: rgba(255, 253, 249, .92); color: var(--ok); font: 700 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; transform: rotate(8deg); }
.bchip { right: -9%; top: 9%; }
.js .sxh__stage.is-in .tblock { animation: cardIn 1s var(--ease) .6s both; }
.js .sxh__stage.is-in .tape { animation: tapeIn 1.1s var(--ease) .25s both; }
@keyframes tapeIn { from { opacity: 0; transform: rotate(-9deg) scaleX(.15); } to { opacity: 1; transform: rotate(-9deg); } }
.js .sxh__stage.is-in .tblock__st { animation: stampIn .5s var(--ease) 1.5s both; }
@keyframes stampIn { from { opacity: 0; transform: rotate(8deg) scale(1.7); } to { opacity: 1; transform: rotate(8deg); } }

/* ---------------- enne ja nüüd ---------------- */
html.theme-build .scope__col--off { border-color: #cbc4b5; }
html.theme-build .scope__col--on li::before { border-radius: 1px; background: var(--yel); }
html.theme-build .scope__plus { border-radius: 6px; background: var(--yel); color: var(--ink); box-shadow: 0 10px 20px -8px rgba(242, 183, 5, .7); }
html.theme-build .scope__col--on .scope__h { color: var(--ink); }

/* ---------------- 01 joonised: sinine kalka ---------------- */
/* fookusrõngas: teema --teal on süsihall (heledale paberile), sinisel kalkal oleks see nähtamatu: siin kollane (vähemalt 3:1) */
.bprint { --focus: var(--teal-hi); background: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 20px 20px, linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 20px 20px, var(--bp); color: #fff; }
.bprint .h2 { color: #fff; }
/* teema reegel html.theme-build .h2 .t (tume tekst kollase joonega) oli tugevam kui .bprint .h2 .t: tume rida jäi sinisele peaaegu nähtamatuks */
html.theme-build .bprint .h2 .t { color: var(--yel); text-decoration: none; }
.bprint .lead { color: rgba(255, 255, 255, .74); }
.bprint .label { color: var(--teal-hi); }
.bprint .label b { color: rgba(255, 255, 255, .55); }   /* „01 /“ sinisel vähemalt 4,5:1 */
.draw { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.draw__plan { position: relative; padding: clamp(12px, 2vw, 22px); border: 1px solid rgba(255, 255, 255, .22); border-radius: 4px; background: rgba(255, 255, 255, .035); }
.plan { display: block; width: 100%; height: auto; overflow: visible; }
.plan .pl-w0 { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: square; }
.plan .pl-w { fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: square; }
.plan .pl-thin { fill: none; stroke: rgba(255, 255, 255, .62); stroke-width: 1; }
.plan .pl-dim { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 1; }
.plan .pl-t { font: 600 8px var(--mono); letter-spacing: .07em; fill: rgba(255, 255, 255, .88); text-anchor: middle; }
.plan .pl-s { font: 500 7.5px var(--mono); fill: rgba(255, 255, 255, .6); text-anchor: middle; }
.plan .pl-cloud { fill: none; stroke: var(--yel); stroke-width: 1.7; stroke-linejoin: round; }
.plan .pl-delta path { fill: var(--yel); }
.plan .pl-delta text { font: 700 8px var(--mono); fill: var(--bp); text-anchor: middle; }
.plan .pl-rev.is-anim { animation: revIn .7s var(--ease) both; }
@keyframes revIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.plan .pl-rev { transform-box: fill-box; transform-origin: center; }
.plan__stamp { position: absolute; right: 7%; top: 11%; padding: 7px 14px; border: 3px solid #ff7a66; border-radius: 6px; color: #ff7a66; font: 700 clamp(13px, 1.6vw, 19px)/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; opacity: 0; transform: rotate(-10deg) scale(1.4); transition: opacity .25s, transform .45s var(--ease); pointer-events: none; }
#draw:not([data-rev="D"]):not([data-rev="-"]) .plan__stamp { opacity: .95; transform: rotate(-10deg); }
/* enne esimest revisjoni: joonist veel ei olnud */
.plan { transition: opacity .4s; }
#draw[data-rev="-"] .plan { opacity: .14; }
.draw__side { display: grid; gap: 12px; }
.tb { overflow: hidden; border: 2px solid #fff; border-radius: 3px; background: var(--white); color: var(--ink); }
.tb__r { display: grid; grid-template-columns: 72px minmax(0, 1fr); border-bottom: 1px solid var(--ink); }
.tb__r small, .tb__g small { font: 600 9.5px/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.tb__r small { padding: 9px 10px; border-right: 1px solid var(--ink); }
.tb__r b { padding: 8px 10px; font-size: 14px; font-weight: 800; }
.tb__g { display: grid; grid-template-columns: .8fr 1.5fr .9fr; border-bottom: 1px solid var(--ink); }
.tb__g > div { padding: 7px 10px 8px; }
.tb__g > div + div { border-left: 1px solid var(--ink); }
.tb__g small { display: block; }
.tb__g b { display: block; margin-top: 4px; font: 700 17px/1 var(--mono); font-variant-numeric: tabular-nums; }
.tb__st { padding: 10px; background: #e7f4ec; color: var(--ok); text-align: center; font: 700 12.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; transition: background-color .3s, color .3s; }
.tb__st[data-state="old"] { background: var(--acc-t); color: var(--acc-d); }
.tb__st[data-state="none"] { background: var(--line-2); color: var(--ink-3); }
.revs { display: grid; gap: 6px; }
.revs button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 12px 9px 9px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 4px; background: rgba(255, 255, 255, .04); color: #fff; text-align: left; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.revs button:hover { border-color: rgba(255, 255, 255, .5); }
.revs button b { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 3px; font: 700 15px/1 var(--mono); }
.revs button span { font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.revs button small { display: block; font: 500 11px/1.3 var(--mono); color: rgba(255, 255, 255, .55); }
.revs button[aria-checked="true"] { border-color: #fff; background: #fff; color: var(--ink); }
.revs button[aria-checked="true"] b { border-color: var(--yel); background: var(--yel); color: var(--ink); }
.revs button[aria-checked="true"] small { color: var(--ink-3); }
.tl { padding: 14px 14px 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 4px; }
.tl__lbl { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font: 600 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.tl__lbl output { font: 700 14px/1 var(--mono); letter-spacing: 0; color: #fff; font-variant-numeric: tabular-nums; }
.tl input[type="range"] { width: 100%; margin: 12px 0 2px; accent-color: var(--yel); cursor: pointer; }
.tl__ticks { position: relative; height: 14px; margin: 0 8px; }
.tl__ticks i { position: absolute; top: 0; transform: translateX(-50%); font: 700 10px/1 var(--mono); font-style: normal; color: var(--yel); }
.tl__note { margin-top: 8px; font-size: 13.5px; font-weight: 650; color: rgba(255, 255, 255, .82); }

/* ---------------- 02 osapooled ja jaotuskast ---------------- */
.acc__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 20px; align-items: start; }
.acc { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--sh-2); }
.acc__who { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 6px; background: var(--bg); }
.acc__who button { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 14px; border: 0; border-radius: 4px; background: none; font-size: 14px; font-weight: 800; color: var(--ink-2); cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; }
.acc__who .av { width: 24px; height: 24px; font-size: 11px; }
/* valitud vaade: tume rõngas ja kollane alajoon (kollane valgel on 1,8:1, valge betoonil 1,2:1, WCAG 1.4.11) */
.acc__who button[aria-checked="true"] { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink), inset 0 -4.5px 0 var(--yel), var(--sh-1); }
.tree { margin-top: 14px; }
.tree li { display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px calc(10px + var(--l, 0) * 22px); font-size: 14.5px; font-weight: 700; transition: opacity .3s, background-color .3s; }
.tree li + li { border-top: 1px solid var(--line-2); }
.tree li > svg { width: 18px; height: 18px; flex: none; color: #b38600; transition: color .3s; }
.tree__root b { font-weight: 850; }
.tree__lock { display: none; align-items: center; gap: 6px; margin-left: auto; font-style: normal; font-size: 12px; font-weight: 750; color: var(--ink-4); white-space: nowrap; }
.tree__lock svg { width: 14px; height: 14px; }
.tree li.is-off { opacity: .42; }
.tree li.is-off > svg { color: var(--ink-4); }
.tree li.is-off .tree__lock { display: inline-flex; }
.tree li.is-flash { animation: treeIn .5s var(--ease); }
@keyframes treeIn { from { background: var(--mint); } }
.acc__sum { margin-top: 12px; padding: 11px 13px; border-radius: 4px; background: var(--mint); font-size: 14px; font-weight: 700; line-height: 1.45; color: var(--ink); }
.share { padding: 20px; border-radius: var(--r-lg); background: var(--ink); color: #fff; box-shadow: var(--sh-3); }
.share__h { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; }
.share__ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 4px; background: var(--yel); color: var(--ink); }
.share__ic svg { width: 20px; height: 20px; }
.share__h b { display: block; font-size: 16px; font-weight: 850; }
.share__h small { display: block; font-size: 12.5px; font-weight: 650; color: rgba(255, 255, 255, .6); }
.share .doc, .files .doc { width: 32px; height: 38px; border-radius: 4px; font-size: 9.5px; }
.doc--3d { background: #ece6fb; color: #5b46b5; }
.share__files li { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.share__files b { display: block; font-size: 14px; font-weight: 800; }
.share__files small { display: block; font-size: 12px; font-weight: 650; color: rgba(255, 255, 255, .55); }
.share__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.share__meta > div { padding: 10px 12px; border-radius: 4px; background: rgba(255, 255, 255, .07); }
.share__meta small { display: block; font: 600 10px/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.share__meta b { display: block; margin-top: 4px; font-size: 16px; font-weight: 850; }
.share__log { margin-top: 14px; }
.share__log li { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px dashed rgba(255, 255, 255, .14); font-size: 13px; font-weight: 650; color: rgba(255, 255, 255, .82); }
.share__log time { font: 500 11.5px/1.5 var(--mono); color: rgba(255, 255, 255, .5); }

/* ---------------- 03 kontrollakt objektil ---------------- */
.insp__grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.insp__try { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 10px 16px 10px 12px; border-radius: 4px; background: var(--mint); color: var(--ink); font-size: 14.5px; font-weight: 750; }
.insp__try svg { width: 18px; height: 18px; flex: none; color: #b38600; }
.insp__demo { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: center; }
.insp__phone { width: 250px; }
.ip { position: absolute; z-index: 2; inset: .55em; display: flex; flex-direction: column; padding: 3.5em 1em 1.1em; border-radius: 2.3em; }
.ip__h small { display: block; font: 600 .62em/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.ip__h b { display: block; margin-top: .2em; font-size: 1.04em; font-weight: 900; letter-spacing: -.01em; }
.ip__h span { display: block; font-size: .78em; font-weight: 650; color: var(--ink-3); }
.ip__list { display: grid; gap: .35em; margin-top: .9em; }
.ip__it { width: 100%; display: flex; align-items: center; gap: .6em; padding: .58em .65em; border: 1px solid var(--line); border-radius: .55em; background: #fff; font-size: .78em; font-weight: 750; line-height: 1.25; text-align: left; color: var(--ink); cursor: pointer; transition: border-color .2s, background-color .2s; }
.ip__it em { width: 1.65em; height: 1.65em; flex: none; margin-left: auto; border-radius: .35em; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4.5 10.5 3.5 3.5 7.5-8' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 72% no-repeat; transition: background-color .2s; }
.ip__it[aria-pressed="false"] { border-color: rgba(var(--acc-rgb), .55); background: var(--acc-t); }
.ip__it[aria-pressed="false"] em { background: var(--acc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 6l8 8M14 6l-8 8' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 64% no-repeat; }
.ip__sum { margin-top: auto; padding-top: .6em; text-align: center; font-size: .78em; font-weight: 800; color: var(--ink-2); }
.ip__save { height: 2.7em; margin-top: .5em; border: 0; border-radius: .55em; background: var(--yel); color: var(--ink); font-size: .86em; font-weight: 900; cursor: pointer; }
.ip__save[disabled] { opacity: .55; cursor: default; }
.files { padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--sh-2); }
.files__path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); font: 500 12.5px/1.3 var(--mono); color: var(--ink-3); }
.files__path svg { width: 16px; height: 16px; color: #b38600; }
.files__path i { font-style: normal; opacity: .5; }
.files__path b { color: var(--ink); }
.files__list li { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.files__list b { display: block; font-size: 14px; font-weight: 800; }
.files__list small { display: block; font-size: 12px; font-weight: 650; color: var(--ink-3); }
.files__list em { flex: none; margin-left: auto; padding: 4px 9px; border-radius: 3px; background: #e7f4ec; color: var(--ok); font-style: normal; font-size: 12px; font-weight: 850; white-space: nowrap; }
.files__list em.is-warn { background: var(--acc-t); color: var(--acc-d); }
.files__list li.is-new { animation: fileIn .7s var(--ease) both; background: linear-gradient(90deg, var(--mint), transparent 80%); }
@keyframes fileIn { from { opacity: 0; transform: translateY(-12px); } }
.files__note { margin-top: 12px; font-size: 13px; font-weight: 650; line-height: 1.5; color: var(--ink-3); }
.files__note b { color: var(--ink); }

/* ---------------- 04 riigihanked ---------------- */
.tend__grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.tend { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--sh-3); }
.tend__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; }   /* kitsal telefonil läheb loendur pealkirja alla */
.tend__head b { font-size: 16px; font-weight: 850; }
.tend__head span { padding: 5px 10px; border-radius: 3px; background: var(--mint); font-size: 12.5px; font-weight: 850; white-space: nowrap; }
.tend__kw { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tend__kw button { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); font-size: 13px; font-weight: 750; color: var(--ink-2); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.tend__kw button::before { content: ''; width: 7px; height: 7px; border-radius: 1px; background: var(--ink-4); transition: background-color .2s; }
.tend__kw button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.tend__kw button[aria-pressed="true"]::before { background: var(--yel); }
.tend__list { margin-top: 10px; }
.tend__list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); animation: chipIn .4s var(--ease) backwards; }
.tend__list li[hidden] { display: none; }
.tend__list small { display: block; font: 600 10.5px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.tend__list b { display: block; margin-top: 2px; font-size: 15px; font-weight: 850; line-height: 1.3; }
.tend__list span { display: block; font-size: 12.5px; font-weight: 650; color: var(--ink-3); }
.tend__own { flex: none; margin-left: auto; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); font-size: 13px; font-weight: 800; white-space: nowrap; cursor: pointer; transition: border-color .2s, background-color .2s; }
.tend__own:hover { border-color: var(--ink); }
.tend__own.is-set { border-color: transparent; background: var(--mint); cursor: default; }
.tend__empty { padding: 16px 0 4px; font-size: 14px; font-weight: 650; color: var(--ink-3); }

/* ---------------- kohandumine ---------------- */
@media (max-width: 1180px) {
  .draw { grid-template-columns: minmax(0, 1fr); }
  .draw__side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .draw__side .tl { grid-column: 1 / -1; }
}
@media (max-width: 1060px) {
  .acc__grid, .insp__grid, .tend__grid { grid-template-columns: minmax(0, 1fr); }
  .tend__copy { order: -1; }
  .bstage { width: min(100%, 420px); }
}
@media (max-width: 760px) {
  .insp__demo { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .files { width: 100%; }
  .draw__side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .bstage { width: 78%; margin: 6% auto 10%; }
  .tblock { left: -8%; top: 44%; width: 80%; }
  .tblock__r b { font-size: 12px; }
  .tblock__st { right: -6px; }
  .bchip { display: none; }
  .tape { left: -10%; top: 3%; width: 70%; height: 24px; }
  .acc, .share, .files, .tend { padding: 16px 14px; }
  .acc__who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .acc__who button { padding: 0 4px; font-size: 12.5px; }
  .acc__who .av { display: none; }
  .tree li { font-size: 13.5px; padding-left: calc(6px + var(--l, 0) * 16px); }
  .tend__list li { flex-wrap: wrap; }
  .tend__own { margin-left: 0; }
  .plan .pl-t { font-size: 10.5px; letter-spacing: .03em; }
  .plan .pl-s { font-size: 9.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .plan__stamp { transition: none; }
}
.insp__photo { margin-top: 30px; aspect-ratio: 16 / 10; border-radius: var(--r-lg); }
.insp__photo img { object-position: 50% 58%; }

/* ---- kontakt lõpus: Peteri kaart joonise nurgatempli kujul (inc/pages/build.php .bcard) ---- */
.bcard { position: relative; display: grid; grid-template-columns: 210px minmax(0, 1fr); width: min(680px, 100%); margin: 40px auto 0; border: 2px solid var(--ink); border-radius: 3px; background: var(--white); text-align: left; box-shadow: 10px 10px 0 rgba(27, 28, 30, .12); }
.bcard__ph { position: relative; margin: 0; border-right: 2px solid var(--ink); background: #e2ded5; overflow: hidden; }
.bcard__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: grayscale(1) contrast(1.05); }
.bcard__ini { position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; font-weight: 900; color: var(--ink-3); }
.bcard__ph img + .bcard__ini { z-index: -1; }
.bcard__tb { position: relative; display: flex; flex-direction: column; }
.bcard__r { display: grid; grid-template-columns: 92px minmax(0, 1fr); border-bottom: 1px solid var(--ink); }
.bcard__r small, .bcard__g small { font: 600 10px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.bcard__r small { display: flex; align-items: center; padding: 12px; border-right: 1px solid var(--ink); }
.bcard__r b, .bcard__name { padding: 12px 14px; font-size: 16px; font-weight: 800; line-height: 1.3; }
.bcard__name { margin: 0; font-size: 22px; font-weight: 880; letter-spacing: -.02em; }
.bcard__g { display: grid; grid-template-columns: 92px minmax(0, 1fr); border-bottom: 1px solid var(--ink); }
.bcard__g > div { display: flex; flex-direction: column; gap: 7px; padding: 10px 12px 12px; min-width: 0; }
.bcard__g > div + div { border-left: 1px solid var(--ink); }
.bcard__g b { font-size: 15px; font-weight: 750; overflow: hidden; }
.bcard .langs { position: static; padding: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.bcard .lang { width: 22px; height: 22px; }
.bcard__act { display: flex; gap: 8px; margin-top: auto; padding: 16px 14px; }
.bcard__act .btn { flex: 1; justify-content: center; }
.bcard__act .person__copy { width: 48px; height: auto; border-radius: 4px; border-color: var(--ink); color: var(--ink); background: var(--white); }
.bcard__act .person__copy:hover { background: var(--mint); }
/* tempel nagu nurgatemplil avavaates: „Kehtiv“ -> „Vastab otse“ */
.bcard__st { position: absolute; right: -14px; top: -16px; padding: 5px 10px; border: 2.5px solid var(--ok); border-radius: 4px; background: rgba(255, 253, 249, .94); color: var(--ok); font: 700 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; transform: rotate(8deg); }
.js .bcard.is-in .bcard__st { animation: stampIn .5s var(--ease) .5s both; }
.bcard__alt { margin-top: 28px; font-size: 15px; color: var(--ink-2); }
.bcard__alt a { color: var(--ink); font-weight: 800; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .bcard { grid-template-columns: minmax(0, 1fr); box-shadow: 6px 6px 0 rgba(27, 28, 30, .12); }
  .bcard__ph { aspect-ratio: 4 / 3; border-right: 0; border-bottom: 2px solid var(--ink); }
  .bcard__r, .bcard__g { grid-template-columns: 78px minmax(0, 1fr); }
  .bcard__st { right: -6px; }
}
@media (prefers-reduced-motion: reduce) { .js .bcard.is-in .bcard__st { animation: none; } }
