.tadaoto-tif-converter-page .tifjpg-app { margin: 40px auto 0; max-width:960px; }
.tadaoto-tif-converter-page [hidden] { display: none !important; }
.tadaoto-tif-converter-page .tool-panel + .tool-panel { margin-top: 20px; }
.tadaoto-tif-converter-page .tifjpg-drop { background: var(--tool-panel); border: 2px dashed #aeb5bc; border-radius: 12px; cursor: pointer; margin-top: 24px; padding: 34px 20px 32px; text-align: center; transition: background-color .2s ease, border-color .2s ease; }
.tadaoto-tif-converter-page .tifjpg-drop:hover,
.tadaoto-tif-converter-page .tifjpg-drop.is-over { background: #edf4fc; border-color: var(--tool-accent); }
.tadaoto-tif-converter-page .tifjpg-drop.is-disabled { cursor: wait; opacity: .55; pointer-events: none; }
.tadaoto-tif-converter-page .tifjpg-drop__icon { color: var(--tool-accent); display: inline-block; height: 46px; margin-bottom: 10px; width: 46px; }
.tadaoto-tif-converter-page .tifjpg-drop__icon svg { fill: none; height: 100%; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; width: 100%; }
.tadaoto-tif-converter-page .tifjpg-drop__main { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.tadaoto-tif-converter-page .tifjpg-drop__sub,
.tadaoto-tif-converter-page .tifjpg-status { color: var(--tool-muted); font-size: 13px; line-height: 1.65; }
.tadaoto-tif-converter-page .tifjpg-quality { border: 0; display: grid; gap: 10px; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 24px 0 0; padding: 0; }
.tadaoto-tif-converter-page .tifjpg-quality label { background: #fff; border: 1px solid #b8bec5; border-radius: 10px; cursor: pointer; min-width: 0; padding: 15px; }
.tadaoto-tif-converter-page .tifjpg-quality label:has(input:checked) { background: #edf4fc; border-color: var(--tool-accent); box-shadow: inset 0 0 0 1px var(--tool-accent); }
.tadaoto-tif-converter-page .tifjpg-quality input { accent-color: var(--tool-accent); margin-right: 7px; }
.tadaoto-tif-converter-page .tifjpg-quality strong { font-size: 14px; }
.tadaoto-tif-converter-page .tifjpg-quality small { color: var(--tool-muted); display: block; font-size: 11px; line-height: 1.55; margin: 6px 0 0 23px; }
.tadaoto-tif-converter-page .tifjpg-results { background: #fff; border: 1px solid var(--tool-line); border-radius: 14px; margin-top: 20px; padding: 28px; }
.tadaoto-tif-converter-page .tifjpg-results__head { align-items: flex-start; display: flex; gap: 20px; justify-content: space-between; }
.tadaoto-tif-converter-page .tifjpg-results__head h2 { font-size: 22px; line-height: 1.35; margin: 0 0 5px; }
.tadaoto-tif-converter-page .tifjpg-results__head p { color: var(--tool-muted); font-size: 14px; line-height: 1.6; margin: 0; }
.tadaoto-tif-converter-page .tifjpg-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 8px; }
.tadaoto-tif-converter-page .tifjpg-button { border: 1px solid #b8bec5; border-radius: 999px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; min-height: 42px; padding: 9px 17px; }
.tadaoto-tif-converter-page .tifjpg-button--primary { background: var(--tool-accent); border-color: var(--tool-accent); color: #fff; }
.tadaoto-tif-converter-page .tifjpg-button--secondary { background: #fff; color: var(--tool-ink); }
.tadaoto-tif-converter-page .tifjpg-button:disabled { cursor: wait; opacity: .5; }
.tadaoto-tif-converter-page .tifjpg-gallery { display: grid; gap: 14px; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 24px; }
.tadaoto-tif-converter-page .tifjpg-card { border: 1px solid var(--tool-line); border-radius: 12px; min-width: 0; overflow: hidden; }
.tadaoto-tif-converter-page .tifjpg-card.has-error { border-color: #d7aaa7; }
.tadaoto-tif-converter-page .tifjpg-card__preview { align-items: center; aspect-ratio: 4 / 3; background: repeating-conic-gradient(#eef0f2 0 25%,#fff 0 50%) 50% / 18px 18px; display: flex; justify-content: center; overflow: hidden; position: relative; }
.tadaoto-tif-converter-page .tifjpg-card__preview canvas,
.tadaoto-tif-converter-page .tifjpg-card__preview img { height: 100%; object-fit: contain; width: 100%; }
.tadaoto-tif-converter-page .tifjpg-card__state { align-items: center; background: rgba(255,255,255,.88); display: flex; font-size: 12px; font-weight: 700; inset: 0; justify-content: center; position: absolute; }
.tadaoto-tif-converter-page .tifjpg-card__body { padding: 14px; }
.tadaoto-tif-converter-page .tifjpg-card__name { font-size: 13px; font-weight: 700; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tadaoto-tif-converter-page .tifjpg-card__detail { color: var(--tool-muted); font-size: 11px; line-height: 1.55; margin: 5px 0 0; min-height: 3.1em; }
.tadaoto-tif-converter-page .tifjpg-card__buttons { display: flex; gap: 8px; margin-top: 12px; }
.tadaoto-tif-converter-page .tifjpg-card__download,
.tadaoto-tif-converter-page .tifjpg-card__remove { align-items: center; background: #fff; border: 1px solid #b8bec5; border-radius: 999px; color: var(--tool-ink); cursor: pointer; display: inline-flex; flex: 1; font: inherit; font-size: 12px; font-weight: 700; justify-content: center; min-height: 36px; padding: 7px 11px; text-decoration: none; }
.tadaoto-tif-converter-page .tifjpg-card__download { background: var(--tool-accent); border-color: var(--tool-accent); color: #fff; }
.tadaoto-tif-converter-page .tifjpg-card__download[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.tadaoto-tif-converter-page .tifjpg-status { margin: 14px 0 -.3em; }
.tadaoto-tif-converter-page .tifjpg-status.is-error { color: #a33a34; font-weight: 700; }
.tadaoto-tif-converter-page .tifjpg-note { background: var(--tool-panel); border-radius: 12px; margin-top: 22px; padding: 22px 24px; }
.tadaoto-tif-converter-page .tifjpg-note h2 { font-size: 16px; margin: 0 0 10px; }
.tadaoto-tif-converter-page .tifjpg-note ul { color: var(--tool-muted); font-size: 13px; line-height: 1.75; margin: 0; padding-left: 1.3em; }
.tadaoto-tif-converter-page :focus-visible { outline: 3px solid rgba(6,147,205,.3); outline-offset: 3px; }
@media (max-width: 760px) {
  .tadaoto-tif-converter-page .tifjpg-quality { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tadaoto-tif-converter-page .tifjpg-results__head { display: block; }
  .tadaoto-tif-converter-page .tifjpg-actions { margin-top: 18px; }
  .tadaoto-tif-converter-page .tifjpg-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 480px) {
  .tadaoto-tif-converter-page .tifjpg-gallery { grid-template-columns: 1fr; }
  .tadaoto-tif-converter-page .tifjpg-actions { display: grid; }
  .tadaoto-tif-converter-page .tifjpg-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .tadaoto-tif-converter-page .tifjpg-drop { transition: none; }
}
