.resize-main { padding-block: 30px 54px; }
.resize-heading { margin: 30px 0; }
.resize-heading h1 { font-size: 36px; letter-spacing: -1.5px; margin: 12px 0; }
.resize-heading > p:last-of-type { color: var(--muted); font-size: 15px; line-height: 1.8; }
.resize-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.resize-tags span { padding: 6px 10px; background: #edf3ef; color: #4e7666; border-radius: 5px; font-size: 11px; }
.resize-workspace { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.resize-panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; min-width: 0; }
.resize-panel h2 { font-size: 21px; margin-bottom: 20px; }
.resize-label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.image-picker { padding: 22px 16px; border: 1px dashed #aabeb5; background: #f7faf8; border-radius: 10px; }
.image-picker > .icon { display: block; color: #719c89; margin: 0 auto 15px; width: 32px; height: 32px; }
#image-file { display: block; max-width: 100%; width: 100%; font-size: 12px; color: var(--muted); }
#image-file::file-selector-button { background: var(--ink); color: white; border: 0; border-radius: 6px; padding: 11px 12px; margin-right: 10px; cursor: pointer; }
#image-file-hint { margin-top: 15px; font-size: 11px; line-height: 1.8; color: var(--muted); }
.original-panel { margin-top: 24px; }
.original-panel h3, .size-input-title { font-size: 14px; margin-bottom: 12px; }
.size-input-title { margin-top: 27px; }
.resize-image-frame { background-color: #f4f7f5; background-image: conic-gradient(#e9eeeb 25%,transparent 0 50%,#e9eeeb 0 75%,transparent 0); background-size: 20px 20px; border: 1px solid var(--line); border-radius: 10px; min-height: 100px; padding: 12px; display: grid; place-items: center; }
.resize-image-frame img { display: block; max-width: 100%; max-height: 360px; width: auto; height: auto; object-fit: contain; }
.original-panel .resize-image-frame img { max-height: 220px; }
.resize-dimensions { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.resize-dimensions > div { min-width: 0; }
.resize-dimensions label { display: block; font-size: 13px; margin-bottom: 9px; }
.resize-dimensions input { width: 100%; min-width: 0; font: inherit; font-size: 17px; color: var(--ink); border: 1px solid #cddad6; border-radius: 8px; padding: 13px; }
.ratio-control { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-top: 18px; cursor: pointer; }
.ratio-control input { accent-color: var(--accent); width: 17px; height: 17px; }
.resize-hint { font-size: 12px; color: var(--muted); line-height: 1.8; margin-top: 9px; overflow-wrap: anywhere; }
.resize-primary { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 16px; margin-top: 24px; border-radius: 8px; color: white; background: var(--ink); font-weight: 700; font-size: 14px; }
.resize-primary:hover { background: #24485e; }
.resize-primary:disabled { opacity: .5; }
.resize-primary .icon { width: 18px; height: 18px; }
.resize-error { color: #aa382f; font-size: 13px; line-height: 1.8; margin-top: 18px; }
.resize-local-note { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.resize-placeholder { min-height: 330px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px; text-align: center; }
.resize-placeholder .icon { width: 64px; height: 64px; color: #81aa98; }
.resize-placeholder h3 { font-size: 18px; }
.resize-placeholder p { font-size: 13px; color: var(--muted); line-height: 1.9; }
.resize-notice { background: #f3f6f4; color: #5d7167; border-radius: 8px; padding: 15px; font-size: 12px; line-height: 1.9; margin-top: 22px; }
.resize-result-details { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 14px; padding: 8px 0; }
.resize-result-details dt { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.resize-result-details dd { font-size: 15px; margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.resize-explanation { margin-top: 35px; }
.resize-explanation .info-body section:first-child { margin-top: 0; }
.resize-faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.resize-faq summary { cursor: pointer; color: var(--ink); font-weight: 600; }
.resize-faq details p { padding-top: 12px; }
@media(max-width:800px) { .resize-workspace { grid-template-columns: 1fr; } .resize-placeholder { min-height: 220px; } }
@media(max-width:600px) {
  .resize-main { padding-top: 24px; }
  .resize-heading h1 { font-size: 30px; }
  .resize-heading > p:last-of-type { font-size: 13px; }
  .resize-panel { padding: 22px 18px; }
  .resize-workspace { gap: 18px; }
  .resize-image-frame { padding: 8px; }
  .resize-result-details { grid-template-columns: 1fr; gap: 18px; }
}
