* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; background: #f8fafc; color: #1e293b; line-height: 1.6; }
.watermark-page { max-width: 1120px; padding: 28px 16px 48px; margin: auto; }
h1 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 10px; } h2 { font-size: 19px; margin: 0; } h3 { font-size: 16px; }
.header { margin: 0 0 24px; } .privacy { color: #047857; font-size: 14px; }
.panel { background: white; border: 1px solid #e2e8f0; border-radius: 12px; padding: 24px; min-width: 0; }
.section-heading { display: flex; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.actions, .related { display: flex; flex-wrap: wrap; gap: 8px; }
button { border-radius: 6px; border: 1px solid #cbd5e1; padding: 10px 14px; min-height: 44px; font: inherit; font-size: 14px; background: white; color: #334155; cursor: pointer; transition: background-color .15s; }
button:hover { background: #f1f5f9; } .primary { background: #2563eb; border-color: #2563eb; color: white; } .primary:hover { background: #1d4ed8; }
button:disabled { opacity: .5; cursor: not-allowed; }
:focus-visible { outline: 3px solid #60a5fa; outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 2000; background: white; padding: 12px; } .skip-link:focus { top: 12px; }
label { display: block; font-size: 14px; font-weight: 500; }
input, select { border: 1px solid #cbd5e1; border-radius: 6px; padding: 10px 12px; background: white; font: inherit; font-size: 16px; width: 100%; min-width: 0; margin-top: 6px; color: #1e293b; }
input { min-height: 46px; }
.inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 20px 0 8px; }

.hint { font-size: 13px; color: #475569; margin: 8px 0; }
.status { background: #eff6ff; color: #1d4ed8; border-radius: 6px; padding: 12px 16px; overflow-wrap: anywhere; } .status.error { background: #fef2f2; color: #b91c1c; }
.result { margin: 24px 0; }
.guide { font-size: 14px; color: #475569; } .guide li { margin: 10px 0; } .guide ul { padding-left: 22px; }
.related { gap: 12px 24px; } a { color: #2563eb; } [aria-invalid="true"] { border-color: #b91c1c; }
@media (min-width: 921px) and (max-width: 1100px) { .tools-header-nav .nav-dropdown:first-child .dropdown-menu { right: 0; left: auto; } }
@media (max-width: 700px) { .panel { padding: 18px; } .watermark-page { padding-top: 20px; } .section-heading { flex-wrap: wrap; gap: 12px; } .inputs { grid-template-columns: 1fr; gap: 16px; } }
@media (prefers-reduced-motion: reduce) { button { transition: none; } }

.settings { margin-top: 24px; }
.grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
input[type="color"] { height: 46px; padding: 6px; cursor: pointer; }
input[type="file"] { border: 0; padding: 10px 0; font-size: 14px; }
input:disabled, select:disabled { background: #f1f5f9; color: #64748b; cursor: not-allowed; }
.drop-zone { border: 2px dashed #cbd5e1; padding: 18px; border-radius: 8px; }
.drop-zone.dragging { border-color: #2563eb; background: #eff6ff; }
.button { display: inline-block; padding: 10px 16px; border-radius: 6px; min-height: 44px; font-size: 14px; }
[hidden] { display: none !important; }
.preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
figure { min-width: 0; margin: 0; } figcaption { margin-bottom: 8px; font-weight: 500; font-size: 14px; }
.preview-box { background-color: #f8fafc; background-image: conic-gradient(#e2e8f0 25%, transparent 0 50%, #e2e8f0 0 75%, transparent 0); background-size: 20px 20px; border: 1px solid #cbd5e1; min-height: 200px; display: flex; align-items: center; justify-content: center; padding: 10px; border-radius: 6px; }
.preview-box img { display: block; max-width: 100%; max-height: 450px; object-fit: contain; }
.preview-box p { background: #f8fafc; padding: 8px; color: #475569; font-size: 14px; }
#sourceInfo, #resultInfo { overflow-wrap: anywhere; }
.guide ol { padding-left: 22px; }
@media (max-width: 700px) { .grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); } .preview-grid { grid-template-columns: 1fr; } .drop-zone { padding: 12px; } }
@media (max-width: 400px) { .grid-three { grid-template-columns: 1fr; } }
