.resizeimg-page [hidden] { display: none !important; }
.resizeimg-page, .resizeimg-page button, .resizeimg-page input, .resizeimg-page select { letter-spacing: 0; }
.resizeimg-heading { margin-bottom: 1.6rem; }
.resizeimg-heading h1 { margin: 0 0 .7rem; color: #14233a; font-size: 2.35rem; line-height: 1.25; }
.resizeimg-heading > p:not(.resizeimg-eyebrow) { max-width: 780px; margin: 0; color: #52657d; font-size: 1rem; line-height: 1.75; }
.resizeimg-eyebrow { margin: 0 0 .55rem; color: #087f72; font-size: .82rem; font-weight: 900; }
.resizeimg-local { display: inline-flex; margin-top: .8rem; border: 1px solid #acd5ca; border-radius: 6px; padding: .38rem .62rem; background: #eef8f5; color: #176b5c; font-size: .78rem; font-weight: 800; }
.resizeimg-tool { overflow: visible; border: 1px solid #d7e1ee; border-radius: 8px; background: #fff; box-shadow: none; }
.resizeimg-tool-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; padding: 1.25rem 1.3rem 0; }
.resizeimg-tool-head h2, .resizeimg-preview h2, .resizeimg-result h2, .resizeimg-guide h2 { margin: 0; color: #172c45; }
.resizeimg-tool-head h2 { font-size: 1.25rem; }
.resizeimg-tool-head p { margin: .32rem 0 0; color: #687b92; font-size: .86rem; }
.resizeimg-choose, .resizeimg-actions button, .resizeimg-file-actions button, .resizeimg-compressor-note a { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; border: 1px solid #c9d7e6; border-radius: 7px; padding: .68rem .9rem; background: #fff; color: #29415b; font-weight: 800; cursor: pointer; }
.resizeimg-choose, .resizeimg-actions button:first-child { border-color: #087f72; background: #087f72; color: #fff; }
#resizeImageFile { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.resizeimg-dropzone { display: flex; min-height: 165px; margin: 1rem 1.3rem 0; align-items: center; justify-content: center; gap: 1rem; border: 1px dashed #a8bdd5; border-radius: 8px; padding: 1.2rem; background: #f7fafc; cursor: pointer; text-align: left; }
.resizeimg-dropzone.is-dragover { border-color: #087f72; background: #eef9f6; box-shadow: inset 0 0 0 1px #087f72; }
.resizeimg-file-mark { display: grid; width: 62px; height: 62px; flex: 0 0 auto; place-items: center; border-radius: 7px; background: #e2f2ee; color: #087f72; font-size: .86rem; font-weight: 900; }
.resizeimg-dropzone strong, .resizeimg-dropzone span { display: block; }
.resizeimg-dropzone strong { color: #1e344e; font-size: 1rem; }
.resizeimg-dropzone div span { margin-top: .3rem; color: #6d8096; font-size: .83rem; }
.resizeimg-batch-intro { margin: .8rem 1.3rem 0; color: #6d8096; font-size: .84rem; }
.resizeimg-batch { margin: 1rem 1.3rem 0; }
.resizeimg-batch-head { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: .55rem; }
.resizeimg-batch-head strong { color: #213953; }
.resizeimg-batch-head button { min-height: 38px; border: 0; background: transparent; color: #8d4540; font-size: .82rem; font-weight: 800; cursor: pointer; }
.resizeimg-file-list { display: grid; gap: .45rem; max-height: 420px; overflow: auto; padding-right: .2rem; }
.resizeimg-file-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .7rem; align-items: center; border: 1px solid #d9e3ee; border-radius: 7px; padding: .72rem .8rem; background: #fff; }
.resizeimg-file-row[data-status="complete"] { border-color: #acd5ca; background: #f4fbf8; }
.resizeimg-file-row[data-status="failed"] { border-color: #e2b5b1; background: #fff7f6; }
.resizeimg-file-copy { min-width: 0; }
.resizeimg-file-copy strong, .resizeimg-file-copy span, .resizeimg-file-copy small { display: block; overflow-wrap: anywhere; }
.resizeimg-file-copy strong { color: #213953; font-size: .88rem; }
.resizeimg-file-copy span { margin-top: .16rem; color: #6b7d93; font-size: .76rem; }
.resizeimg-file-copy small { margin-top: .2rem; color: #087f72; font-size: .75rem; }
.resizeimg-file-actions { display: flex; gap: .35rem; align-items: center; }
.resizeimg-file-actions button { min-height: 34px; padding: .38rem .55rem; font-size: .75rem; }
.resizeimg-state { min-width: 48px; color: #52677e; font-size: .75rem; font-weight: 900; text-align: center; }
.resizeimg-file-row[data-status="complete"] .resizeimg-state { color: #087f72; }
.resizeimg-file-row[data-status="failed"] .resizeimg-state { color: #a0443e; }
.resizeimg-settings { margin-top: 1.15rem; border-top: 1px solid #dce5ef; padding: 1.2rem 1.3rem 1.3rem; background: #f8fafc; }
.resizeimg-settings fieldset { min-width: 0; margin: 0; border: 0; padding: 0; }
.resizeimg-settings legend { margin-bottom: .45rem; color: #29415b; font-size: .88rem; font-weight: 900; }
.resizeimg-mode-segments { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid #c8d6e5; border-radius: 7px; background: #fff; }
.resizeimg-mode-segments label { position: relative; margin: 0; cursor: pointer; }
.resizeimg-mode-segments label + label { border-left: 1px solid #c8d6e5; }
.resizeimg-mode-segments input, .resizeimg-fit-grid input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.resizeimg-mode-segments span { display: grid; min-height: 48px; place-items: center; padding: .5rem .2rem; color: #41566e; font-size: .86rem; font-weight: 900; text-align: center; }
.resizeimg-mode-segments input:checked + span { background: #087f72; color: #fff; }
.resizeimg-mode-panel, .resizeimg-fit, .resizeimg-output { margin-top: 1rem !important; border-top: 1px solid #d7e1ec !important; padding-top: 1rem !important; }
.resizeimg-mode-panel > p, .resizeimg-fit > p, .resizeimg-output > p { margin: .55rem 0 0; color: #687b91; font-size: .82rem; line-height: 1.55; }
.resizeimg-input-grid, .resizeimg-output-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.resizeimg-input-grid label, .resizeimg-output-grid label, .resizeimg-wide-field { min-width: 0; color: #334a63; font-size: .82rem; font-weight: 800; }
.resizeimg-input-grid label > span:first-child, .resizeimg-output-grid label > span:first-child, .resizeimg-wide-field > span:first-child { display: block; margin-bottom: .35rem; }
.resizeimg-input-unit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem; align-items: center; color: #60748a; font-weight: 700; }
.resizeimg-input-unit input, .resizeimg-output-grid select, .resizeimg-output-grid input[type="color"] { width: 100%; min-height: 46px; margin: 0 !important; border: 1px solid #c8d6e5; border-radius: 7px; padding: .55rem .7rem; background: #fff; color: #1b324c; }
.resizeimg-output-grid input[type="range"] { width: 100%; margin-top: .65rem; accent-color: #087f72; }
.resizeimg-output-grid output { color: #087f72; font-weight: 900; }
.resizeimg-wide-field { display: block; max-width: 330px; }
.resizeimg-quick { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .65rem; }
.resizeimg-quick button, .resizeimg-preset-groups button { min-height: 40px; border: 1px solid #c8d6e5; border-radius: 7px; padding: .45rem .7rem; background: #fff; color: #334a63; font-size: .8rem; font-weight: 800; cursor: pointer; }
.resizeimg-quick button.is-active, .resizeimg-preset-groups button.is-active { border-color: #087f72; background: #eaf7f3; color: #087568; box-shadow: inset 0 0 0 1px #087f72; }
.resizeimg-preset-groups { display: grid; gap: .75rem; }
.resizeimg-preset-groups > div > strong { display: block; margin-bottom: .42rem; color: #40566e; font-size: .8rem; }
.resizeimg-preset-groups > div > div { display: flex; flex-wrap: wrap; gap: .45rem; }
.resizeimg-fit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.resizeimg-fit-grid label { position: relative; min-width: 0; margin: 0; cursor: pointer; }
.resizeimg-fit-grid label > span { display: block; min-height: 72px; border: 1px solid #ccd9e6; border-radius: 7px; padding: .7rem .45rem; background: #fff; text-align: center; }
.resizeimg-fit-grid strong, .resizeimg-fit-grid small { display: block; }
.resizeimg-fit-grid strong { color: #2b425c; font-size: .82rem; }
.resizeimg-fit-grid small { margin-top: .18rem; color: #718299; font-size: .7rem; }
.resizeimg-fit-grid input:checked + span { border-color: #087f72; background: #edf8f5; box-shadow: inset 0 0 0 1px #087f72; }
.resizeimg-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin-top: .75rem; }
.resizeimg-checks label { display: flex; min-height: 44px; align-items: center; gap: .5rem; border: 1px solid #d4dfeb; border-radius: 7px; padding: .55rem .7rem; background: #fff; color: #40566e; font-size: .82rem; font-weight: 800; }
.resizeimg-checks input { position: static !important; width: 19px !important; height: 19px !important; margin: 0 !important; opacity: 1 !important; appearance: auto !important; accent-color: #087f72; }
.resizeimg-warning { margin-top: .8rem; border: 1px solid #e3c77d; border-left-width: 4px; border-radius: 7px; padding: .8rem .9rem; background: #fff8e4; color: #725512; font-size: .83rem; line-height: 1.55; }
.resizeimg-actions { display: grid; grid-template-columns: minmax(0, 1.2fr) auto auto auto; gap: .5rem; margin-top: 1rem; }
.resizeimg-actions button { min-width: 0; white-space: normal; }
.resizeimg-actions #resizeImageCancel { border-color: #b85b55; color: #93433d; }
.resizeimg-actions button:disabled, .resizeimg-file-actions button:disabled { cursor: not-allowed; opacity: .48; }
.resizeimg-progress { margin-top: .8rem; }
.resizeimg-progress label { display: block; margin-bottom: .35rem; color: #40566e; font-size: .8rem; font-weight: 800; }
.resizeimg-progress progress { width: 100%; height: 11px; border: 0; border-radius: 6px; accent-color: #087f72; }
.resizeimg-status { margin: .85rem 0 0; border-radius: 7px; padding: .85rem .9rem; background: #edf2f7; color: #50647b; font-size: .84rem; line-height: 1.55; }
.resizeimg-status[data-type="success"] { background: #eaf7f2; color: #176a55; }
.resizeimg-status[data-type="warning"] { background: #fff7df; color: #75570e; }
.resizeimg-status[data-type="error"] { background: #fff0ef; color: #a13f39; }
.resizeimg-preview, .resizeimg-result { border-top: 1px solid #dce5ef; padding: 1.25rem 1.3rem; }
.resizeimg-preview > header, .resizeimg-result > header { display: flex; justify-content: space-between; gap: 1rem; align-items: end; }
.resizeimg-preview h2, .resizeimg-result h2 { font-size: 1.28rem; }
.resizeimg-preview > header > span, .resizeimg-result > header > strong { color: #60748a; font-size: .82rem; }
.resizeimg-preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: .75rem; }
.resizeimg-preview figure { min-width: 0; margin: 0; }
.resizeimg-preview figcaption { margin-bottom: .4rem; color: #40566e; font-size: .8rem; font-weight: 900; }
.resizeimg-preview figure > div { position: relative; display: grid; min-height: 270px; max-height: 480px; overflow: auto; place-items: center; border: 1px solid #d4dfeb; border-radius: 7px; padding: .65rem; background-color: #f5f7f9; background-image: linear-gradient(45deg, #e1e7ed 25%, transparent 25%), linear-gradient(-45deg, #e1e7ed 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e1e7ed 75%), linear-gradient(-45deg, transparent 75%, #e1e7ed 75%); background-position: 0 0, 0 8px, 8px -8px, -8px 0; background-size: 16px 16px; }
.resizeimg-preview img { display: block; max-width: 100%; max-height: 450px; object-fit: contain; box-shadow: 0 2px 10px rgba(20,35,58,.14); }
.resizeimg-preview figure > div > span { border-radius: 6px; padding: .45rem .6rem; background: rgba(255,255,255,.92); color: #62758c; font-size: .8rem; }
.resizeimg-preview figure > p { margin: .42rem 0 0; color: #5e7188; font-size: .78rem; line-height: 1.5; }
.resizeimg-result-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .55rem; margin-top: .8rem; }
.resizeimg-result-summary div { min-width: 0; border: 1px solid #d9e3ed; border-radius: 7px; padding: .72rem; background: #f8fafc; }
.resizeimg-result-summary span, .resizeimg-result-summary strong { display: block; overflow-wrap: anywhere; }
.resizeimg-result-summary span { color: #74869a; font-size: .72rem; }
.resizeimg-result-summary strong { margin-top: .2rem; color: #213953; font-size: .92rem; }
.resizeimg-compressor-note { display: flex; margin-top: 1rem; justify-content: space-between; gap: 1rem; align-items: center; border-left: 4px solid #087f72; padding: 1rem 1.1rem; background: #eef8f5; }
.resizeimg-compressor-note strong { color: #176a5b; }
.resizeimg-compressor-note p { margin: .25rem 0 0; color: #526b71; font-size: .85rem; line-height: 1.55; }
.resizeimg-compressor-note a { flex: 0 0 auto; border-color: #087f72; color: #087f72; text-decoration: none; }
.resizeimg-guide { margin-top: 1.2rem; overflow: visible; border: 1px solid #d7e1ee; border-radius: 8px; padding: 1.35rem; background: #fff; box-shadow: none; }
.resizeimg-guide > header > h2 { font-size: 1.45rem; }
.resizeimg-guide > header > p:not(.resizeimg-eyebrow), .resizeimg-guide > section > p { margin: .5rem 0 0; color: #5d7087; font-size: .93rem; line-height: 1.75; }
.resizeimg-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin: 1.15rem 0 1.5rem; padding: 0; list-style: none; counter-reset: resize-step; }
.resizeimg-steps li { position: relative; border-top: 3px solid #92cabb; padding: .65rem .3rem .1rem 1.8rem; color: #40566e; font-size: .82rem; counter-increment: resize-step; }
.resizeimg-steps li::before { position: absolute; top: .6rem; left: .2rem; color: #087f72; font-weight: 900; content: counter(resize-step); }
.resizeimg-guide > section { margin-top: 1.35rem; }
.resizeimg-guide > section > h2 { font-size: 1.15rem; }
.resizeimg-guide a { color: #087f72; font-weight: 800; }
.resizeimg-size-table { margin-top: .7rem; overflow-x: auto; }
.resizeimg-size-table table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.resizeimg-size-table th, .resizeimg-size-table td { border-bottom: 1px solid #dbe4ed; padding: .62rem; text-align: left; }
.resizeimg-size-table th { background: #f3f7f9; color: #304861; }
.resizeimg-size-table td { color: #5a6e85; }
.resizeimg-metadata-note { border-left: 4px solid #c18a32; padding: .9rem 1rem; background: #fff8e8; }
.resizeimg-guide .faq-section { margin-top: 1.6rem; border-top: 1px solid #d7e1eb; padding-top: 1.2rem; }
.resizeimg-guide details { border-bottom: 1px solid #dce5ee; }
.resizeimg-guide summary { padding: .85rem .15rem; color: #253c56; font-size: .9rem; font-weight: 800; cursor: pointer; }
.resizeimg-guide details p { margin: 0; padding: 0 .15rem .85rem; color: #5d7087; font-size: .87rem; line-height: 1.65; }
.resizeimg-choose:focus-visible, .resizeimg-dropzone:focus-visible, .resizeimg-page button:focus-visible, .resizeimg-page input:focus-visible, .resizeimg-page select:focus-visible, .resizeimg-mode-segments input:focus-visible + span, .resizeimg-fit-grid input:focus-visible + span, .resizeimg-guide summary:focus-visible { outline: 3px solid rgba(8,127,114,.24); outline-offset: 2px; }
@media screen and (max-width: 760px) {
  .resizeimg-heading h1 { font-size: 1.9rem; }
  .resizeimg-tool-head { align-items: stretch; flex-direction: column; }
  .resizeimg-choose { width: 100%; }
  .resizeimg-fit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resizeimg-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resizeimg-preview-grid { grid-template-columns: 1fr; }
  .resizeimg-result-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resizeimg-compressor-note { align-items: stretch; flex-direction: column; }
  .resizeimg-compressor-note a { width: 100%; }
}
@media screen and (max-width: 520px) {
  .resizeimg-heading h1 { font-size: 1.75rem; }
  .resizeimg-tool-head, .resizeimg-settings, .resizeimg-preview, .resizeimg-result { padding-right: 1rem; padding-left: 1rem; }
  .resizeimg-dropzone { margin-right: 1rem; margin-left: 1rem; align-items: center; flex-direction: column; text-align: center; }
  .resizeimg-batch { margin-right: 1rem; margin-left: 1rem; }
  .resizeimg-mode-segments span { min-height: 52px; padding: .4rem .08rem; font-size: .76rem; }
  .resizeimg-input-grid, .resizeimg-output-grid, .resizeimg-checks, .resizeimg-actions, .resizeimg-result-summary, .resizeimg-steps { grid-template-columns: 1fr; }
  .resizeimg-file-row { grid-template-columns: 1fr; }
  .resizeimg-file-actions { justify-content: flex-end; }
  .resizeimg-wide-field { max-width: none; }
  .resizeimg-preview figure > div { min-height: 210px; max-height: 340px; }
  .resizeimg-guide { padding: 1rem; }
}
