/* tool.css: the instrument. .inst[data-state]: idle | selected | uploading | processing | done | error. Guide: guide.css; share: share.css */

/* title block */
.tl-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--cg); padding: 20px var(--g) 0; align-items: end; }
.crumbs { grid-column: 1 / -1; color: var(--ink-3); margin-bottom: 26px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--ink-3); }
.crumbs a { text-decoration: none; color: var(--ink-2); display: inline-block; padding-block: 8px; margin-block: -8px; }   /* 2026-09-26: ≥ 32 px tap height, same layout */
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }
.tl-h1 { grid-column: 1 / 9; font-family: var(--f-wide); font-size: var(--t-h1-tool, clamp(48px, 7.4vw, 118px)); line-height: .86; font-weight: 820; font-stretch: 122%; letter-spacing: -.045em; text-wrap: balance; }
.tl-h1--l { font-size: clamp(44px, 5.6vw, 92px); line-height: .9; }
.tl-h1--m { font-size: clamp(38px, 4.4vw, 70px); line-height: .94; font-stretch: 116%; }
.tl-h1__1 { display: block; }
.tl-h1__2 { display: block; margin-top: .22em; font-family: var(--f-sans); font-size: .3em; line-height: 1.1; font-weight: 520; font-stretch: 104%; letter-spacing: -.02em; color: var(--ink-2); }
/* 2026-09-26: room under the display line for Turkish descenders (ş ç cedillas, g y p) above the subtitle's Ü İ Ş,
   in H1 ems (the subtitle's own em shrinks on phones); the tight .86 display line-height itself is unchanged */
.tl-h1__1:has(+ .tl-h1__2) { padding-bottom: var(--tl-h1-gap, .09em); }
.tl-h1--l .tl-h1__2 { font-size: .36em; }
.tl-h1--m .tl-h1__2 { font-size: .44em; }
.tl-aside { grid-column: 9 / 13; padding-bottom: 6px; }
.tl-lead { font-size: var(--t-sm, 16px); line-height: 1.5; color: var(--ink-2); max-width: 36ch; }
.nobr { white-space: nowrap; }
/* the ▪ separator belongs to the next item; at a wrapped line start it falls outside the box and is clipped */
.tl-specs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; margin-top: 16px; color: var(--ink-2); font-size: var(--t-meta); overflow: hidden; }
.tl-specs li { position: relative; white-space: nowrap; }
.tl-specs li + li::before { content: ""; position: absolute; top: 50%; inset-inline-start: -18px; width: 4px; height: 4px; margin-top: -2.5px; background: var(--ink-3); }
.tl-specs .fx { font-size: 17px; }
html[lang="ja"] .tl-h1, html[lang="ar"] .tl-h1 { letter-spacing: 0; line-height: 1.12; }

/* instrument frame */
.inst { margin: 32px var(--g) 0; border: 1px solid var(--ink); background: var(--paper); position: relative; scroll-margin-top: calc(var(--hh) + 8px); }
.inst__head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 46px; padding: 0 16px; border-bottom: 1px solid var(--ink); }
.inst__id { font-size: var(--t-meta); font-weight: 600; display: inline-flex; align-items: baseline; gap: 10px; min-width: 0; }
.inst__id .mono { color: var(--ink-3); }
.inst__sec { justify-self: end; display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: var(--t-meta); text-align: end; }
.inst__led { width: 8px; height: 8px; flex: none; background: var(--ok); }
.motion .inst[data-state="processing"] .inst__led, .motion .inst[data-state="uploading"] .inst__led { animation: led .8s steps(2, jump-none) infinite; }
@keyframes led { 50% { opacity: .35; } }
.inst__steps { display: flex; gap: 4px; }
.inst__steps li { position: relative; padding: 7px 12px 7px 10px; color: var(--ink-2); display: inline-flex; gap: 8px; align-items: center; transition: color .4s var(--e-out), background-color .4s var(--e-out); }
.inst__sn { color: var(--ink-3); }
.inst__steps li[aria-current="step"] { background: var(--ink); color: var(--paper); }
.inst__steps li[aria-current="step"] .inst__sn { color: var(--on-ink-2); }
.inst__steps li.is-done { color: var(--ink); }
.inst__steps li.is-done::after { content: ""; width: 6px; height: 6px; background: var(--signal); }
.inst[data-state="error"] { border-color: var(--signal-strong); box-shadow: inset 0 0 0 1px var(--signal-strong); }

.inapp { display: flex; gap: 10px; align-items: flex-start; padding: 10px 16px; background: var(--ink); color: var(--paper); font-size: var(--t-meta); line-height: 1.45; }
.inapp .ico { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--signal-lt); }
.inapp b { color: #fff; }
.inst:not([data-state="idle"]) .inapp { display: none; }

.inst__body { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); min-height: 488px; }
.inst__stage { position: relative; border-inline-end: 1px solid var(--ink); display: flex; min-width: 0; }
.inst__side { padding: 24px; display: flex; flex-direction: column; min-width: 0; }

/* state switching */
.pane, .side { display: none; }
.inst[data-state="idle"] .pane--idle, .inst[data-state="selected"] .pane--sel,
.inst[data-state="uploading"] .pane--proc, .inst[data-state="processing"] .pane--proc,
.inst[data-state="done"] .pane--done, .inst[data-state="error"] .pane--err { display: flex; flex: 1; min-width: 0; }
.inst[data-state="idle"] .side--set, .inst[data-state="selected"] .side--set,
.inst[data-state="uploading"] .side--proc, .inst[data-state="processing"] .side--proc,
.inst[data-state="done"] .side--done, .inst[data-state="error"] .side--err { display: flex; flex-direction: column; flex: 1; }
.motion .pane, .motion .side { animation: paneIn .6s var(--e-out) both; }
.motion .inst[data-state="idle"] .pane--idle, .motion .inst[data-state="idle"] .side--set,
.motion .inst[data-state="processing"] .pane--proc, .motion .inst[data-state="processing"] .side--proc { animation: none; }
@keyframes paneIn { from { opacity: 0; transform: translate3d(0, 14px, 0); } }

.chip__k, .proc__k, .side__k, .res__k, .bars__k, .seg__lg, .limitc__k {
  font: 500 12.5px/1.4 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2);
}

/* 1 · drop zone: one big button */
.pane--idle { padding: 20px; flex-direction: column; }
.drop {
  position: relative; flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 32px 24px; cursor: pointer; background: var(--paper); color: var(--ink);
  background-image: linear-gradient(var(--rule-2) 1px, transparent 1px), linear-gradient(90deg, var(--rule-2) 1px, transparent 1px);
  background-size: 32px 32px; background-position: -1px -1px; transition: background-color .5s var(--e-out);
}
.drop:focus-visible { outline-offset: -4px; }
.drop__cm { position: absolute; width: 22px; height: 22px; border: 0 solid var(--ink); transition: transform .6s var(--e-out), border-color .4s; pointer-events: none; }
.drop__cm--a { inset-inline-start: 0; top: 0; border-inline-start-width: 2px; border-top-width: 2px; }
.drop__cm--b { inset-inline-end: 0; top: 0; border-inline-end-width: 2px; border-top-width: 2px; }
.drop__cm--c { inset-inline-start: 0; bottom: 0; border-inline-start-width: 2px; border-bottom-width: 2px; }
.drop__cm--d { inset-inline-end: 0; bottom: 0; border-inline-end-width: 2px; border-bottom-width: 2px; }
.drop:hover .drop__cm--a, .drop.is-over .drop__cm--a { transform: translate(6px, 6px); }
.drop:hover .drop__cm--b, .drop.is-over .drop__cm--b { transform: translate(-6px, 6px); }
.drop:hover .drop__cm--c, .drop.is-over .drop__cm--c { transform: translate(6px, -6px); }
.drop:hover .drop__cm--d, .drop.is-over .drop__cm--d { transform: translate(-6px, -6px); }
[dir="rtl"] .drop:hover .drop__cm, [dir="rtl"] .drop.is-over .drop__cm { transform: none; }
.drop.is-over { background-color: var(--paper-2); }
.drop.is-over .drop__cm { border-color: var(--signal); }
.drop__stack { position: relative; display: block; width: 120px; height: 104px; margin-bottom: 22px; }
.drop__stack .sheet { --s: 64px; position: absolute; left: 50%; bottom: 0; margin-left: -32px; transition: transform .7s var(--e-out); }
.drop__stack .sheet:nth-child(1) { transform: translate3d(-22px, -6px, 0) rotate(-9deg); opacity: .55; }
.drop__stack .sheet:nth-child(2) { transform: translate3d(20px, -10px, 0) rotate(7deg); background: var(--ink); opacity: .9; }
.drop:hover .drop__stack .sheet:nth-child(1), .drop.is-over .drop__stack .sheet:nth-child(1) { transform: translate3d(-40px, -4px, 0) rotate(-16deg); }
.drop:hover .drop__stack .sheet:nth-child(2), .drop.is-over .drop__stack .sheet:nth-child(2) { transform: translate3d(38px, -8px, 0) rotate(14deg); }
.drop:hover .drop__stack .sheet:nth-child(3), .drop.is-over .drop__stack .sheet:nth-child(3) { transform: translate3d(0, -14px, 0); }
.drop__t { display: block; font-family: var(--f-wide); font-size: clamp(30px, 3.6vw, 54px); line-height: .95; font-weight: 800; font-stretch: 120%; letter-spacing: -.04em; text-wrap: balance; }
html[lang="ja"] .drop__t, html[lang="ar"] .drop__t { letter-spacing: 0; line-height: 1.2; }
.drop__t-touch { display: none; }
.drop__or { display: block; margin: 14px 0 12px; font: 500 12.5px/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.drop__btn { min-width: 180px; pointer-events: none; }
.drop:hover .drop__btn::before, .drop:focus-visible .drop__btn::before { transform: none; }
.drop:hover .drop__btn, .drop:focus-visible .drop__btn { color: var(--ht); border-color: var(--hf); }
.drop:hover .drop__btn .btn__t > span, .drop:hover .drop__btn .btn__t::after,
.drop:focus-visible .drop__btn .btn__t > span, .drop:focus-visible .drop__btn .btn__t::after { transform: translate3d(0, -100%, 0); }
.drop__hint { display: block; margin-top: 16px; font-size: var(--t-meta); color: var(--ink-2); }
.drop__err { margin-top: 12px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 520; }
.drop__err::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--signal-lt); }
.sel__err { margin-top: 0; }
@media (hover: none) and (pointer: coarse) {
  .drop { border: 2px solid var(--ink); padding: 28px 18px 18px; }
  .drop__cm, .drop__t-fine, .drop__or { display: none; }
  .drop__t-touch { display: inline; }
  .drop__btn { width: 100%; justify-content: space-between; min-height: 56px; margin-top: 20px; }
  .drop:active { background-color: var(--paper-2); }
}

/* 2 · selected: chip (single) / file list (multi) */
.pane--sel { flex-direction: column; justify-content: center; padding: 40px clamp(20px, 4vw, 64px); gap: 24px; }
.chip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 22px 16px 22px 22px; border: 1px solid var(--ink); background: var(--paper); box-shadow: 8px 8px 0 var(--ink); }
[dir="rtl"] .chip { box-shadow: -8px 8px 0 var(--ink); }
.chip__sheet { --s: 76px; }
.chip__name { font-size: clamp(20px, 2vw, 30px); line-height: 1.15; font-weight: 680; letter-spacing: -.02em; margin: 6px 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip__size { color: var(--ink-2); font-size: 15px; }
.chip__ok { color: var(--ok); font-weight: 600; }
.chip__x { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: var(--r-1); transition: background .3s, color .3s, border-color .3s; }
.chip__x:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip__x .ico { width: 18px; height: 18px; }
.sel__hint { font-size: 18px; color: var(--ink-2); }
.sel__re { align-self: flex-start; font-size: 15px; }
.inst[data-multi] .pane--sel { justify-content: flex-start; padding-block: 28px; gap: 0; }
.flist { display: flex; flex-direction: column; gap: 12px; }
.flist__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; }
.flist__head .mono-n { white-space: nowrap; }
.flist__clear { font-size: 14px; white-space: nowrap; }
.flist__hint { font-size: var(--t-meta); color: var(--ink-2); }
.flist__l { border-top: 1px solid var(--ink); max-height: 360px; overflow: auto; }
.fi { display: grid; grid-template-columns: 28px auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); background: var(--paper); }
.fi__n { font: 500 13px/1 var(--f-mono); color: var(--ink-3); text-align: center; }
.fi .sheet { --s: 30px; }
.fi__th { width: 44px; height: 44px; object-fit: cover; background: var(--paper-3); box-shadow: inset 0 0 0 1px var(--rule); }
span.fi__th { display: grid; place-items: center; font: 600 10px/1 var(--f-mono); letter-spacing: .04em; color: var(--ink); background: var(--img-lt); } /* no preview (HEIC): the format name on amber */
.fi__main { min-width: 0; }
.fi__name { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fi__size { font-size: 13px; color: var(--ink-2); }
.fi__acts { display: flex; gap: 4px; }
.fi__acts button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: var(--r-1); }
.fi__acts button:hover:not([disabled]) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.fi__acts button[disabled] { opacity: .35; cursor: default; }
.fi__acts .ico { width: 16px; height: 16px; }
.fi__acts .ico--tri { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.fi[draggable="true"] { cursor: grab; }
.fi.is-drag { opacity: .45; }
.fi.is-before { box-shadow: inset 0 3px 0 var(--signal); }
.fi.is-after { box-shadow: inset 0 -3px 0 var(--signal); }
.flist__add { align-self: flex-start; min-height: 44px; }

/* options (side) */
.inst__opts { display: grid; gap: 16px; margin-bottom: 8px; }
.seg { border: 0; padding: 0; margin: 0; min-width: 0; }
.seg__lg { padding: 0; margin-bottom: 12px; }
.seg__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--ink); }
.seg__o { position: relative; display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 96px; padding: 12px 6px 10px; cursor: pointer; text-align: center; transition: background-color .35s var(--e-out), color .35s var(--e-out); }
.seg--txt .seg__o { min-height: 48px; padding: 8px 4px; }
.seg--2 .seg__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seg--5 .seg__row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
/* sayfa numarası konumu: 3 × 2 (üst satır üst kenar, alt satır alt kenar), ikinci satır da çizgili */
.seg--pos .seg__o:nth-child(n+4) { border-top: 1px solid var(--ink); }
.seg--pos .seg__o:nth-child(4) { border-inline-start: 0; }
/* filigran rengi örneği */
.wm-sw { display: inline-block; width: 12px; height: 12px; vertical-align: -1px; margin-inline-end: 4px; box-shadow: 0 0 0 1px var(--paper); }
.wm-sw--gray { background: #737373; } .wm-sw--red { background: #C71F1F; } .wm-sw--blue { background: #1F4DBF; }
.seg--5 .seg__n { font-size: 14px; }
.seg--fmt .seg__o { min-height: 72px; }
.seg--fmt .seg__n { font-family: var(--f-wide); font-size: 22px; font-weight: 800; font-stretch: 120%; letter-spacing: -.02em; }
.seg__o + .seg__o { border-inline-start: 1px solid var(--ink); }
.seg__o input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg__g { position: relative; display: block; width: 26px; height: 32px; margin-bottom: 4px; }
.seg__g i { position: absolute; inset-inline: 2px; bottom: 0; height: var(--gh, 100%); background: var(--ink-3); clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%); transition: height .5s var(--e-spring), background-color .35s; }
.seg__g::before { content: ""; position: absolute; inset-inline: 0; height: 3px; bottom: var(--gh, 100%); background: currentColor; transition: bottom .5s var(--e-spring); }
.seg__g--1 { --gh: 100%; } .seg__g--2 { --gh: 62%; } .seg__g--3 { --gh: 34%; }
.seg__n { font-size: 17px; line-height: 1.1; font-weight: 650; letter-spacing: -.01em; }
.seg--txt .seg__n { font-size: 15px; }
.seg__dpi { color: var(--ink-3); font-size: 12px; }
/* ar: Arabic marks sit below the line (عالٍ); "150 DPI" keeps its LTR order, Arabic subs stay RTL */
:lang(ar) .seg__n:not([dir="ltr"]) { line-height: 1.5; }
[dir="rtl"] .seg__dpi { unicode-bidi: plaintext; }
.seg__o:hover { background: var(--paper-2); }
.seg__o:has(input:checked) { background: var(--ink); color: var(--paper); }
.seg__o:has(input:checked) .seg__g i { background: var(--signal-lt); }
.seg__o:has(input:checked) .seg__dpi { color: var(--on-ink-2); }
.seg__o:has(input:checked)::after { content: ""; position: absolute; inset-inline: 0; top: -1px; height: 4px; background: var(--signal); }
.seg__o:has(input:focus-visible) { outline: 2px solid var(--signal-strong); outline-offset: 2px; z-index: 2; }
.seg__o:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.seg__d { margin-top: 10px; font-size: var(--t-meta); color: var(--ink-2); min-height: 1.45em; }
.know { margin: 6px 0 24px; border-top: 1px solid var(--rule); }
.know li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: var(--t-meta); line-height: 1.4; color: var(--ink-2); }
.know li::before { content: ""; width: 7px; height: 7px; flex: none; background: var(--c); box-shadow: inset 0 0 0 1px var(--key, transparent); transform: translateY(-1px); }
.maint { margin-bottom: 16px; padding: 10px 12px; border-inline-start: 3px solid var(--ink-3); background: var(--paper-2); font-size: var(--t-meta); color: var(--ink-2); }
.maint b { color: var(--ink); margin-inline-end: 6px; }
.maint--beta { border-inline-start-color: var(--signal-ink); }
.side__go { margin-top: auto; display: grid; gap: 10px; }
.side__note { font-size: var(--t-meta); color: var(--ink-2); }
.side__end { margin-top: auto; display: grid; gap: 6px; }
.side__end .link-arrow, .side--done > .link-arrow, .side--err .link-arrow { justify-self: start; align-self: flex-start; font-size: 15px; }

/* 3 · processing: the press (bound to real progress) */
.pane--proc { align-items: stretch; }
.press { position: relative; flex: 0 0 44%; min-height: 300px; border-inline-end: 1px solid var(--rule); overflow: hidden; }
.press__plate { position: absolute; left: 50%; width: 220px; height: 14px; margin-left: -110px; background: var(--ink); }
.press__plate::after { content: ""; position: absolute; left: 50%; width: 2px; height: 400px; margin-left: -1px; background: var(--ink); }
.press__plate--t { top: 58px; z-index: 2; }
.press__plate--t::after { bottom: 100%; }
.press__plate--b { bottom: 48px; }
.press__plate--b::after { display: none; }
.press__rail { position: absolute; top: 24px; bottom: 48px; width: 1px; background: var(--rule); }
.press__rail--l { left: calc(50% - 124px); }
.press__rail--r { left: calc(50% + 123px); }
.press__sheet { --s: 116px; position: absolute; left: 50%; bottom: 62px; margin-left: -58px; transform-origin: 50% 100%; }
.press__lines { position: absolute; left: 12px; right: 30px; top: 30px; bottom: 30px; background: repeating-linear-gradient(to bottom, rgba(15, 15, 14, .55) 0 3px, transparent 3px 11px); }
.doface { position: absolute; z-index: 1; left: 50%; bottom: 100%; width: 58px; height: 58px; margin-left: -29px; }
.doface svg { display: block; width: 100%; height: 100%; }
.doface__eyes rect { fill: var(--ink); transform-box: fill-box; transform-origin: 50% 60%; transition: transform .12s var(--e-out); }
.is-squint .doface__eyes rect { transform: scaleY(.28); }
.proc { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 32px clamp(20px, 3vw, 44px); min-width: 0; }
.proc__big { font-family: var(--f-mono); font-weight: 500; font-size: clamp(52px, 6vw, 96px); line-height: 1; letter-spacing: -.06em; margin: 10px 0 14px; white-space: nowrap; }
.proc__status { font-size: 19px; font-weight: 560; letter-spacing: -.01em; }
.proc__bar { position: relative; height: 4px; background: var(--paper-3); margin-top: 26px; overflow: hidden; }
.proc__bar i { position: absolute; inset: 0; background: var(--signal); transform-origin: 0 50%; transform: scaleX(0); }
[dir="rtl"] .proc__bar i { transform-origin: 100% 50%; }
.proc__net { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 15px; font-weight: 560; color: var(--ink); }
/* empty = rendered at 0 px: the live region exists before its first message */
.proc__net:empty { margin: 0; }
.proc__net:empty::before { content: none; }
.proc__net::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--ok); }
.proc__net.is-on::before { background: var(--signal); }
.motion .proc__net.is-on::before { animation: led .8s steps(2, jump-none) infinite; }
.stages { margin-top: 14px; border-top: 1px solid var(--rule); }
.stages li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--rule); font-size: 15px; color: var(--ink-3); transition: color .3s; }
.stages li i { width: 10px; height: 10px; border: 1.5px solid currentColor; flex: none; }
.stages li.is-on { color: var(--ink); font-weight: 560; }
.stages li.is-on i { background: var(--signal); border-color: var(--signal); }
.motion .stages li.is-on i { animation: led .8s steps(2, jump-none) infinite; }
.stages li.is-done { color: var(--ink-2); }
.stages li.is-done i { background: var(--ink); border-color: var(--ink); }

/* 4 · done: the result moment */
.pane--done { padding: 28px clamp(20px, 3.4vw, 48px) 30px; gap: clamp(24px, 3vw, 44px); align-items: flex-start; }
.res { position: relative; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(20px, 3vw, 48px); align-content: center; }
.res__k, .res__h, .res__quip, .res__ext, .res__card-slot { grid-column: 1 / -1; }
.res__card-slot:empty { display: none; }
.res__h { font-family: var(--f-wide); font-size: clamp(40px, 4.6vw, 72px); line-height: .95; font-weight: 820; font-stretch: 122%; letter-spacing: -.045em; margin: 10px 0 0; outline: none; }
html[lang="ja"] .res__h, html[lang="ar"] .res__h { letter-spacing: 0; line-height: 1.15; }
.res__word { display: inline-block; }
.res__pct, .res__num { grid-column: 1; grid-row: 3; display: flex; align-items: flex-start; margin-top: 8px; font-family: var(--f-wide); font-size: clamp(120px, 14vw, 216px); line-height: .8; font-weight: 880; font-stretch: 125%; letter-spacing: -.06em; color: var(--signal); }
.res__num { color: var(--c-d, var(--ink)); }
.res__v { font-family: inherit; }
.res__pc { font-size: .46em; margin-top: .08em; margin-inline-end: .04em; font-weight: 800; }
.res__pct--after .res__pc { order: 2; margin-inline: .04em 0; }
.res__pct--after .res__lbl { order: 3; }
/* no gain (tool.js): ink, and the lining zero (the tabular one is slashed and reads as "Ø" at this size) */
.res__pct--flat { color: var(--ink); }
.res__pct--flat .res__v { font-variant-numeric: normal; }
.res__lbl { font-family: var(--f-sans); font-size: 15px; line-height: 1.15; font-weight: 600; font-stretch: 100%; letter-spacing: 0; color: var(--ink); margin-block-start: .5em; margin-inline-start: 14px; max-width: 14ch; }
.res__ext { margin-top: 12px; font-family: var(--f-wide); font-size: clamp(72px, 9vw, 150px); line-height: .9; font-weight: 860; font-stretch: 125%; letter-spacing: -.05em; color: var(--c-d, var(--ink)); }
.res__flow { grid-column: 2; grid-row: 3; align-self: end; display: flex; align-items: flex-end; gap: 14px; padding-bottom: 8px; }
.res__arr .ico { width: 28px; height: 28px; margin-bottom: 30px; }
.bars { grid-column: 2; grid-row: 3; align-self: end; display: grid; gap: 12px; padding-bottom: 6px; }
.bars__row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.bars__t { position: relative; height: 26px; background: var(--rule-2); }
.bars__f { position: absolute; inset: 0; transform-origin: 0 50%; }
[dir="rtl"] .bars__f { transform-origin: 100% 50%; }
.bars__f--a { background: var(--ink); }
.bars__f--b { background: var(--signal); transform: scaleX(var(--w, 1)); }
.bars__v { font: 500 15px/1 var(--f-mono); font-variant-numeric: tabular-nums; min-width: 64px; text-align: end; white-space: nowrap; }
.bars__v--b { color: var(--signal-ink); font-weight: 600; }
.res__quip { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 18px; font-weight: 560; letter-spacing: -.01em; }
.res__quip:empty { display: none; }
.res__stamp { position: absolute; z-index: 3; top: 12px; inset-inline-end: 0; font-family: var(--f-wide); font-size: 30px; line-height: 1; font-weight: 880; font-stretch: 125%; letter-spacing: -.03em; background: var(--signal); color: var(--ink); padding: 10px 14px 9px; border-radius: var(--r-1); box-shadow: inset 0 0 0 3px var(--ink); transform: rotate(-4deg); pointer-events: none; }

/* side: done */
.side--done { gap: 10px; }
.side--done #dl[aria-disabled="true"] { pointer-events: auto; cursor: not-allowed; }
.shr-slot:empty { display: none; }
.cd { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--rule); }
.cd__t { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; font-weight: 600; }
.cd__n { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.cd__s { margin-top: 4px; font-size: var(--t-meta); line-height: 1.45; color: var(--ink-2); }
.cd__bar { height: 2px; background: var(--rule-2); margin-top: 12px; }
.cd__bar i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; }
[dir="rtl"] .cd__bar i { transform-origin: 100% 50%; }
.cd.is-over .cd__n, .cd.is-over .cd__s { color: var(--signal-ink); }
.next { margin-top: 14px; }
.next__a { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; padding: 12px 0; border-block: 1px solid var(--rule); text-decoration: none; font-size: 16px; font-weight: 580; letter-spacing: -.01em; transition: padding .5s var(--e-out); }
.next__a:hover { padding-inline: 8px; }
.next__a .fx { font-size: 15px; flex: none; }
/* 2026-09-26: "recommend this tool on WhatsApp" (the public tool URL only) */
.wa { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 15px; font-weight: 560; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 2px; transition: border-color .3s var(--e-out); }
.wa:hover { border-color: #1FA855; }
.wa:focus-visible { outline: 2px solid var(--signal-strong); outline-offset: 3px; }
.wa__i { width: 20px; height: 20px; flex: none; fill: #1FA855; }
.side--done > .link-arrow { margin-top: auto; }

/* 5 · error + guest-limit cards */
.pane--err { flex-direction: column; justify-content: center; padding: 40px clamp(20px, 4vw, 64px); }
.errc__k { display: flex; align-items: center; gap: 12px; font-family: var(--f-wide); font-size: clamp(36px, 4vw, 60px); line-height: 1; font-weight: 820; font-stretch: 120%; letter-spacing: -.04em; }
.errc__k .ico { width: .7em; height: .7em; color: var(--signal-ink); stroke-width: 2.5; }
.errc__m { margin-top: 18px; padding: 14px 16px; background: var(--ink); color: var(--paper); font-size: 17px; font-weight: 520; max-width: 56ch; }
.errc__m:empty { display: none; }
.errc.is-shake { animation: shake .42s var(--e-out); }
@keyframes shake { 20% { transform: translateX(-8px); } 45% { transform: translateX(6px); } 70% { transform: translateX(-3px); } }
.limitc__k { display: inline-flex; align-items: center; gap: 8px; }
.limitc__k .ico { width: 14px; height: 14px; }
.limitc__h { margin-top: 12px; font-family: var(--f-wide); font-size: clamp(30px, 3.4vw, 50px); line-height: 1; font-weight: 800; font-stretch: 118%; letter-spacing: -.04em; outline: none; max-width: 18ch; }
.limitc__m { margin-top: 16px; font-size: 15px; color: var(--ink-2); }
.limitc__p { margin-top: 8px; font-size: 18px; font-weight: 560; }
.limitc__b { margin-top: 18px; border-top: 1px solid var(--rule); max-width: 460px; }
.limitc__b li { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: var(--t-meta); }
.limitc__b .ico { width: 16px; height: 16px; color: var(--ok); }
.side__login { font-size: 15px; }
/* remaining uses today (tool.js, /api/quota): one quiet line + a 2 px meter; the guest line carries the sign-up link */
.quota { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: var(--t-meta); line-height: 1.45; color: var(--ink-2); }
.quota__up { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.quota__up:hover { color: var(--signal-ink); }
.quota__bar { flex-basis: 100%; height: 2px; margin-top: 4px; background: var(--rule-2); }
.quota__bar i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--q, 1)); transition: transform .6s var(--e-out); }
[dir="rtl"] .quota__bar i { transform-origin: 100% 50%; }
.quota.is-low .quota__bar i { background: var(--signal); }
.quota.is-out { color: var(--signal-ink); }
.side--done .quota { margin-top: 14px; }

/* editor (pdf_edit): the workspace takes the whole instrument once a PDF is open */
.inst[data-editor][data-state="selected"] .inst__body { display: none; }

/* trust row */
.trust { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 14px var(--g) 0; font-size: 14px; color: var(--ink-2); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .ico { width: 16px; height: 16px; color: var(--ink); }

/* responsive */
/* ≥ 1200 px with the live story card (SHARE .shc) beside the result: one column, as in c1 */
@media (min-width: 1200px) {
  .pane--done:has(.shc:not([hidden])) { align-items: center; }
  .pane--done:has(.shc:not([hidden])) .res { grid-template-columns: minmax(0, 1fr); }
  .pane--done:has(.shc:not([hidden])) .bars, .pane--done:has(.shc:not([hidden])) .res__flow { grid-column: 1; grid-row: auto; margin-top: 18px; max-width: 440px; }
}
@media (max-width: 1023.98px) and (min-width: 720px) { .res__pct, .res__num { font-size: clamp(110px, 16vw, 160px); } }
@media (max-width: 1023.98px) {
  .tl-h1, .tl-aside { grid-column: 1 / -1; }
  .tl-aside { margin-top: 20px; }
  .inst__body { grid-template-columns: 1fr; min-height: 0; }
  .inst__stage { border-inline-end: 0; border-bottom: 1px solid var(--ink); min-height: 360px; }
  .inst__sec { display: none; } /* would wrap; the trust row says the same */
}
@media (max-width: 719.98px) {
  html[data-page="tool"] { scroll-padding-bottom: 104px; }
  .tl-top { padding-top: 14px; }
  .crumbs { margin-bottom: 16px; }
  .tl-h1 { font-size: clamp(40px, 12.4vw, 60px); }
  .tl-h1--l { font-size: clamp(34px, 10vw, 48px); }
  .tl-h1--m { font-size: clamp(28px, 8.4vw, 40px); }
  .tl-h1__2 { font-size: .4em; }
  .tl-h1 { --tl-h1-gap: .12em; }   /* 2026-09-26: the bigger phone subtitle (.4em) reaches higher: ş no longer touches "Küçült" */
  .tl-lead { font-size: 15px; }
  /* the colour formula gets its own line; the plain specs share the next one ("Üyeliksiz" never wraps alone) */
  .tl-specs__fx { flex-basis: 100%; }
  .inst { margin: 22px 0 0; border-inline: 0; }
  .inst__head { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .inst__id, .inst__sec { display: none; }
  .inst__steps li { flex: 1; justify-content: center; padding: 12px 6px; }
  .inst__stage { min-height: 0; }
  .pane--idle { padding: 12px; }
  .drop { padding: 26px 16px 24px; }
  .drop__stack { transform: scale(.8); margin: -8px 0 12px; }
  .inst__side { padding: 16px var(--g) 20px; }
  .seg__o { min-height: 64px; padding: 8px 4px 7px; gap: 2px; }
  .seg--txt .seg__o { min-height: 44px; }
  .seg--5 .seg__o { padding-inline: 2px; }
  .seg--5 .seg__n { font-size: 12.5px; }
  .seg__g { width: 20px; height: 22px; margin-bottom: 2px; }
  .seg__lg { margin-bottom: 8px; }
  .seg__d { margin-top: 6px; }
  /* selected on a phone: the next action never hides below the fold, and never covers the level labels */
  .inst[data-state="selected"] .side__go { position: sticky; bottom: 0; z-index: 5; margin-inline: calc(var(--g) * -1); padding: 12px var(--g); background: var(--paper); border-top: 1px solid var(--ink); }
  .inst[data-state="selected"] .know, .inst[data-state="selected"] .side__note, .inst[data-state="selected"] .quota { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  /* nothing between the stage and the go bar (no options, no notice): one rule under the file, not two 16 px apart */
  .inst[data-state="selected"] .inst__body:not(:has([data-opts], .maint)) .inst__stage { border-bottom: 0; }
  .inst[data-state="selected"] .inst__body:not(:has([data-opts], .maint)) .inst__side { padding-top: 0; }
  .pane--sel { padding: 16px var(--g) 18px; gap: 12px; }
  .sel__hint, .sel__re { display: none; }
  .chip { gap: 14px; padding: 14px 10px 14px 14px; box-shadow: 5px 5px 0 var(--ink); }
  .chip__sheet { --s: 52px; }
  .chip__name { font-size: 19px; }
  .flist__l { max-height: 280px; }
  .fi { grid-template-columns: 22px auto minmax(0, 1fr) auto; gap: 8px; }
  .fi__acts button { width: 34px; height: 34px; }
  .pane--proc { flex-direction: column; }
  .press { flex: none; min-height: 230px; border-inline-end: 0; border-bottom: 1px solid var(--rule); }
  .press__plate--t { top: 22px; }
  .press__plate--b { bottom: 20px; }
  .press__sheet { bottom: 34px; --s: 100px; margin-left: -50px; }
  .proc { padding: 20px var(--g) 24px; }
  .pane--done { padding: 18px var(--g); }
  .res__h { font-size: 42px; }
  .res { grid-template-columns: minmax(0, 1fr); }
  .res__pct, .res__num { grid-row: auto; font-size: clamp(96px, 30vw, 136px); margin-top: 4px; }
  .res__ext { font-size: clamp(64px, 20vw, 96px); }
  .bars { grid-column: 1; grid-row: auto; margin-top: 14px; gap: 8px; max-width: none; }
  .bars__t { height: 20px; }
  .res__flow { display: none; }
  .res__quip { margin-top: 14px; padding-top: 12px; font-size: 16px; }
  .res__stamp { font-size: 24px; top: 4px; }
  .side--done { gap: 8px; }
  .pane--err { padding: 24px var(--g); }
  .trust { gap: 6px 18px; font-size: var(--t-meta); }
}
/* 320 px reflow: the de done bar fits */
@media (max-width: 359.98px) {
  .inst__steps li { gap: 4px; padding-inline: 4px; }
}
