/* image_to_text — tool-specific design (scanner: cool paper, viewfinder corners, cobalt + mint scan line). Shared: nav, footer, ad script only. */
body[data-tool="image_to_text"] {
  --it-bg: #EEF1F6; --it-card: #FFFFFF; --it-ink: #0F1B3D; --it-ink2: #45506B; --it-mute: #8590A8; --it-line: #DCE1EB;
  --it-blue: #2F5BFF; --it-blue2: #E7ECFF; --it-mint: #00D1B2; --it-red: #E5484D;
  --it-disp: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif; --it-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--it-bg); color: var(--it-ink); font-family: var(--it-sans);
}
body[data-tool="image_to_text"] .dt-nav { background: var(--it-ink); border-bottom: 0; }
body[data-tool="image_to_text"] .dt-nav .navbar-brand, body[data-tool="image_to_text"] .dt-nav .nav-link { color: #fff; }
body[data-tool="image_to_text"] .dt-nav .nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.dt-bare { display: block; width: 100%; flex: 1; }
.itx { max-width: 1120px; margin: 0 auto; padding: 38px 20px 64px; }
.it-hero h1 { margin: 0; font-family: var(--it-disp); font-size: 64px; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.it-hero h1 span { color: var(--it-blue); position: relative; padding: 0 .08em; }
.it-hero h1 span::before, .it-hero h1 span::after { content: ""; position: absolute; width: .22em; height: .22em; border: 4px solid var(--it-mint); }
.it-hero h1 span::before { left: -.04em; top: .02em; border-right: 0; border-bottom: 0; }
.it-hero h1 span::after { right: -.04em; bottom: -.06em; border-left: 0; border-top: 0; }
.it-hero p { margin: 14px 0 0; font-size: 18px; color: var(--it-ink2); max-width: 60ch; }

.it { margin-top: 28px; }
.it-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 260px; padding: 34px 20px; text-align: center; background: var(--it-card); border-radius: 18px; cursor: pointer; box-shadow: 0 1px 0 var(--it-line), 0 18px 40px rgba(15,27,61,.07); transition: background .15s, box-shadow .15s; }
.it-drop:hover, .it-drop.on { background: #F7F9FF; box-shadow: 0 0 0 2px var(--it-blue), 0 18px 40px rgba(47,91,255,.12); }
.it-c { position: absolute; width: 34px; height: 34px; border: 4px solid var(--it-blue); }
.it-c.tl { left: 16px; top: 16px; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.it-c.tr { right: 16px; top: 16px; border-left: 0; border-bottom: 0; border-top-right-radius: 10px; }
.it-c.bl { left: 16px; bottom: 16px; border-right: 0; border-top: 0; border-bottom-left-radius: 10px; }
.it-c.br { right: 16px; bottom: 16px; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }
.it-ico { width: 54px; height: 54px; color: var(--it-blue); }
.it-big { margin: 6px 0 0; font-family: var(--it-disp); font-size: 30px; font-weight: 800; letter-spacing: -.01em; }
.it-or { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; font-size: 16px; color: var(--it-ink2); }
.it-btn { display: inline-block; background: var(--it-blue); color: #fff; font-weight: 700; font-size: 16px; padding: 12px 22px; border-radius: 11px; cursor: pointer; }
.it-btn:hover { background: #1F47E6; }
kbd { display: inline-block; font: 600 13px/1 var(--it-sans); padding: 4px 7px; border: 1px solid var(--it-line); border-bottom-width: 2px; border-radius: 6px; background: #F6F8FB; color: var(--it-ink); }
.it-fmt { margin: 10px 0 0; font-size: 13px; letter-spacing: .06em; color: var(--it-mute); font-weight: 600; }

.it-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 14px; }
.it-lang { display: inline-flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 700; color: var(--it-ink2); }
.it-lang select { border: 1px solid var(--it-line); border-radius: 10px; background: #fff; font: inherit; font-size: 15px; font-weight: 500; padding: 9px 10px; color: var(--it-ink); }
.it-all { display: flex; gap: 8px; }
.it-all[hidden] { display: none; }
.it-all button, .it-acts button { border: 1px solid var(--it-ink); background: var(--it-ink); color: #fff; font: inherit; font-size: 14px; font-weight: 700; padding: 9px 14px; border-radius: 10px; cursor: pointer; }
.it-all button.ghost { background: transparent; color: var(--it-ink); border-color: var(--it-line); }
.it-all button:disabled { opacity: .4; cursor: default; }
.it-msg { margin: 10px 2px 0; font-size: 15px; color: var(--it-red); font-weight: 600; min-height: 1px; }

.it-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.it-item { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; background: var(--it-card); border-radius: 16px; padding: 14px; box-shadow: 0 1px 0 var(--it-line), 0 10px 26px rgba(15,27,61,.05); }
.it-fig { position: relative; align-self: start; margin: 0; border-radius: 11px; overflow: hidden; background: #E4E8F0; border: 1px solid var(--it-line); }
.it-fig img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: contain; background: #fff; }
.it-item.no-prev .it-fig { min-height: 150px; display: flex; align-items: center; justify-content: center; }
.it-item.no-prev img { display: none; }
.it-fig figcaption { font-family: var(--it-disp); font-weight: 800; font-size: 24px; color: var(--it-mute); }
.it-scan { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--it-mint); box-shadow: 0 0 14px 4px rgba(0,209,178,.55); opacity: 0; }
.it-item.is-run .it-scan { opacity: 1; animation: itscan 1.3s ease-in-out infinite alternate; }
.it-item.is-run .it-fig::after { content: ""; position: absolute; inset: 0; background: rgba(47,91,255,.08); }
@keyframes itscan { from { top: 0; } to { top: calc(100% - 3px); } }
.it-out { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.it-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; justify-content: space-between; }
.it-name { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.it-st { font-size: 13px; font-weight: 600; color: var(--it-mute); }
.it-item.is-run .it-st { color: var(--it-blue); }
.it-item.is-err .it-st { color: var(--it-red); }
.it-ta { width: 100%; min-height: 160px; resize: vertical; border: 1px solid var(--it-line); border-radius: 11px; padding: 12px 14px; font: 16px/1.6 var(--it-sans); color: var(--it-ink); background: #FBFCFE; tab-size: 8; outline: none; }
.it-ta:focus { border-color: var(--it-blue); background: #fff; }
.it-item.is-err .it-ta::placeholder { color: var(--it-red); opacity: 1; }
.it-acts { display: flex; gap: 8px; }
.it-acts .it-copy { background: var(--it-blue); border-color: var(--it-blue); min-width: 92px; }
.it-acts .it-dl { background: #fff; color: var(--it-ink); border-color: var(--it-line); }
.it-acts .it-x { margin-left: auto; background: transparent; color: var(--it-mute); border-color: transparent; font-size: 20px; line-height: 1; padding: 6px 10px; }
.it-acts .it-x:hover { color: var(--it-red); }
.it-item.is-wait .it-acts .it-copy, .it-item.is-run .it-acts .it-copy, .it-item.is-err .it-acts .it-copy,
.it-item.is-wait .it-acts .it-dl, .it-item.is-run .it-acts .it-dl, .it-item.is-err .it-acts .it-dl { opacity: .4; cursor: default; }

.it-adwrap { margin: 40px 0 8px; }
.it-article, .it-faq, .it-more { max-width: 780px; margin: 0 auto; }
.it-article { margin-top: 44px; font-size: 17.5px; line-height: 1.75; color: var(--it-ink2); }
.it-article h2, .it-faq h2, .it-more h2 { font-family: var(--it-disp); font-size: 32px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: var(--it-ink); margin: 50px 0 12px; }
.it-article h2:first-child { margin-top: 0; }
.it-article p { margin: 0 0 14px; } .it-article b { color: var(--it-ink); }
.it-article ul, .it-article ol { padding-left: 1.2em; } .it-article li { margin: 7px 0; }
.it-q { border-bottom: 1px solid var(--it-line); }
.it-q summary { list-style: none; cursor: pointer; padding: 16px 32px 16px 0; position: relative; font-size: 17.5px; font-weight: 700; color: var(--it-ink); }
.it-q summary::-webkit-details-marker { display: none; }
.it-q summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 24px; color: var(--it-blue); }
.it-q[open] summary::after { content: "\2212"; }
.it-q p { margin: 0 0 18px; font-size: 16.5px; line-height: 1.7; color: var(--it-ink2); }
.it-more > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.it-more a { display: block; text-decoration: none; padding: 14px 16px; border-radius: 12px; background: #fff; color: var(--it-ink); box-shadow: 0 1px 0 var(--it-line); }
.it-more a:hover { box-shadow: 0 0 0 2px var(--it-blue); }
.it-more b { display: block; font-size: 16px; } .it-more span { display: block; font-size: 14px; color: var(--it-mute); margin-top: 2px; }

@media (pointer: coarse) { .it-or span { display: none; } }
@media (max-width: 760px) {
  .itx { padding: 26px 12px 48px; }
  .it-hero h1 { font-size: 44px; } .it-hero p { font-size: 16px; }
  .it-drop { min-height: 220px; padding: 40px 30px; }
  .it-c { width: 24px; height: 24px; border-width: 3px; }
  .it-c.tl, .it-c.tr { top: 12px; } .it-c.bl, .it-c.br { bottom: 12px; } .it-c.tl, .it-c.bl { left: 12px; } .it-c.tr, .it-c.br { right: 12px; }
  .it-fmt { font-size: 12px; letter-spacing: .03em; }
  .it-big { font-size: 24px; }
  .it-item { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px; }
  .it-fig img { max-height: 240px; }
  .it-bar { align-items: stretch; } .it-lang { justify-content: space-between; width: 100%; } .it-lang select { flex: 1; }
  .it-all { width: 100%; } .it-all button { flex: 1; padding: 10px 8px; }
  .it-article { font-size: 16.5px; }
  .it-article h2, .it-faq h2, .it-more h2 { font-size: 26px; margin-top: 40px; }
  .it-more > div { grid-template-columns: minmax(0, 1fr); }
}
