:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #1c2434;
  background: #f4f6fb;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 32px 18px;
  background: radial-gradient(ellipse at 50% 0%, #e8efff 0, #f4f6fb 55%);
}
.app { width: min(100%, 620px); }
.brand { display: flex; align-items: center; gap: 11px; margin: 0 0 18px 4px; color: #34415a; font-size: 15px; font-weight: 750; letter-spacing: -.02em; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: #315edb; color: white; box-shadow: 0 5px 12px #315edb33; }
.brand-mark span { font-size: 20px; line-height: 1; }
main { padding: clamp(23px, 5vw, 42px); border: 1px solid #e3e8f1; border-radius: 22px; background: #fff; box-shadow: 0 24px 70px #26365712, 0 3px 10px #26365708; }
.eyebrow { margin: 0 0 9px; color: #4168d7; font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(27px, 5vw, 34px); letter-spacing: -.045em; line-height: 1.12; }
.intro { max-width: 460px; margin: 12px 0 28px; color: #667187; font-size: 15px; line-height: 1.6; }
.section-label { display: block; margin: 0 0 10px; color: #303a4f; font-size: 13px; font-weight: 700; }
.rotation-fieldset { border: 0; padding: 0; margin: 0; }
.muted-label { color: #8a94a5; font-weight: 500; }
.angle-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 23px; }
.angle-option { position: relative; }
.angle-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.angle-option label { display: flex; min-height: 76px; align-items: center; justify-content: center; gap: 10px; padding: 10px; border: 1px solid #e0e5ee; border-radius: 12px; background: #fff; color: #58647a; cursor: pointer; transition: border-color .15s, background .15s, color .15s, box-shadow .15s; }
.angle-option label:hover { border-color: #aabbe9; background: #fafbff; }
.angle-option input:checked + label { border-color: #5275dd; background: #f3f6ff; color: #2349bd; box-shadow: inset 0 0 0 1px #5275dd; }
.angle-option input:focus-visible + label { outline: 3px solid #9db4ff; outline-offset: 3px; }
.turn-icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 9px; background: #eef2f8; font-size: 20px; transition: transform .2s; }
input[value="90"]:checked + label .turn-icon { transform: rotate(90deg); }
input[value="180"]:checked + label .turn-icon { transform: rotate(180deg); }
input[value="270"]:checked + label .turn-icon { transform: rotate(270deg); }
.angle-text { font-size: 14px; font-weight: 700; }
.angle-text small { display: block; margin-top: 3px; color: #8590a3; font-size: 11px; font-weight: 500; }
.dropzone { display: grid; min-height: 174px; place-items: center; padding: 20px; border: 1.5px dashed #c8d1e1; border-radius: 15px; background: #fafbfe; text-align: center; cursor: pointer; transition: .15s ease; }
.dropzone:hover, .dropzone:focus-visible, .dropzone.dragging { border-color: #5275dd; background: #f4f7ff; outline: none; }
.upload-icon { display: grid; width: 44px; height: 44px; margin: 0 auto 10px; place-items: center; border-radius: 14px; background: #eaf0ff; color: #3761d1; font-size: 22px; }
.drop-title { display: block; color: #303a4f; font-size: 14px; font-weight: 700; }
.drop-hint { display: block; margin-top: 5px; color: #858fa1; font-size: 12px; }
#file { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.file-info { display: none; align-items: center; gap: 11px; margin-top: 14px; padding: 12px 14px; border: 1px solid #e5e9f0; border-radius: 11px; background: #fff; text-align: left; }
.file-info.visible { display: flex; }
.pdf-badge { display: grid; width: 36px; height: 40px; flex: 0 0 auto; place-items: center; border-radius: 8px; background: #fff0ed; color: #cb4a36; font-size: 10px; font-weight: 800; }
.file-copy { min-width: 0; flex: 1; }
.file-name { overflow: hidden; color: #374258; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.file-size { margin-top: 3px; color: #8791a2; font-size: 11px; }
.remove-file { border: 0; padding: 5px; background: transparent; color: #7c879a; font-size: 19px; cursor: pointer; }
.remove-file:hover { color: #c14335; }
.primary { width: 100%; min-height: 48px; margin-top: 17px; border: 0; border-radius: 11px; background: #315edb; color: white; font: inherit; font-size: 14px; font-weight: 720; cursor: pointer; transition: background .15s, transform .15s; }
.primary:hover:not(:disabled) { transform: translateY(-1px); background: #244fc8; }
.primary:disabled { background: #bac6df; cursor: not-allowed; }
#status { min-height: 20px; margin: 12px 0 0; color: #68758b; font-size: 12px; text-align: center; }
#status.error { color: #b43c31; }
.privacy { display: flex; justify-content: center; align-items: center; gap: 7px; margin: 18px 0 0; color: #8993a4; font-size: 11px; }
.privacy span { color: #4c8b6a; }
.foot { margin: 15px 8px 0; color: #939cad; font-size: 11px; line-height: 1.55; text-align: center; }
@media (max-width: 440px) {
  body { padding: 22px 12px; }
  .angle-options { gap: 7px; }
  .angle-option label { min-height: 70px; gap: 6px; padding: 7px 4px; }
  .turn-icon { width: 27px; height: 27px; }
  .angle-text { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
