@font-face { font-family: 'TT Turns Trial'; src: url('../fonts/TT_Turns_Regular.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'TT Turns Trial'; src: url('../fonts/TT_Turns_Medium.woff2') format('woff2'); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: 'TT Turns Trial'; src: url('../fonts/TT_Turns_DemiBold.woff2') format('woff2'); font-style: normal; font-weight: 600; font-display: swap; }
:root { color-scheme: light; font-family: 'TT Turns Trial', Arial, sans-serif; color: #414e65; background: #f0f2f4; font-synthesis: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
[hidden] { display: none !important; }
.brand { min-height: 84px; padding: 20px max(32px, calc((100% - 1120px) / 2)); display: flex; align-items: center; gap: 20px; background: #fff; border-bottom: 1px solid #e8ebef; }
.brand-logo { display: block; width: 160px; height: auto; flex-shrink: 0; }
.brand-divider { height: 26px; width: 1px; background: #d9dce2; }
.brand-academy { font-size: 16px; color: #66738a; }
main { flex: 1; width: 100%; padding: clamp(48px, 10vh, 120px) 24px 64px; }
.entry { max-width: 560px; margin: 0 auto; padding: 40px; background: #fff; border: 1px solid #e0e5ec; border-radius: 16px; }
h1 { font-size: 28px; line-height: 1.3; font-weight: 600; letter-spacing: 0; color: #27344b; margin: 0; }
.intro { color: #66738a; font-size: 16px; line-height: 1.6; margin: 16px 0 28px; }
label { display: block; font-size: 14px; margin-bottom: 8px; line-height: 20px; font-weight: 500; }
input { width: 100%; min-height: 50px; border: 1px solid #cbd0da; border-radius: 8px; padding: 13px 16px; background: #fff; color: #242529; font-family: ui-monospace, monospace; font-size: 16px; transition: border-color .15s; }
input::placeholder { color: #858b97; font-family: 'TT Turns Trial', Arial, sans-serif; }
input:focus { border-color: #2d7dff; }
input[aria-invalid="true"] { border-color: #b52f36; }
button { min-height: 48px; border: 0; border-radius: 8px; background: #2d7dff; color: #fff; padding: 13px 24px; font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; transition: background .15s; }
button:hover { background: #1769e8; }
button:disabled { cursor: wait; background: #507ec8; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid #94bbff; outline-offset: 4px; }
#open-button { width: 100%; margin-top: 18px; }
.hint { color: #676e7a; font-size: 14px; line-height: 1.65; text-align: center; margin: 20px 0 0; }
.error { color: #a32730; font-size: 14px; line-height: 1.6; margin: 12px 0 0; }
.result { max-width: 920px; margin: 0 auto; }
.result-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.result h1 { font-size: 28px; }
#download-button { flex-shrink: 0; }
.save-notice { color: #596575; font-size: 15px; line-height: 1.65; margin: 28px 0; padding: 16px 20px; background: #f0f5ff; border-left: 3px solid #2d7dff; border-radius: 0 6px 6px 0; }
.note { margin: 0; padding: 36px; border: 1px solid #e0e5ec; border-radius: 12px; background: #fff; white-space: pre-wrap; overflow-wrap: anywhere; font-family: 'TT Turns Trial', Arial, sans-serif; font-size: 16px; line-height: 1.75; }
footer { color: #66738a; font-size: 14px; line-height: 1.6; padding: 24px; }
footer nav { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; column-gap: 12px; row-gap: 8px; }
footer a { color: inherit; text-decoration: underline; text-decoration-color: #bac3d0; text-underline-offset: 4px; }
footer a:hover { color: #1769e8; text-decoration-color: currentColor; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
  .brand { min-height: 72px; padding: 18px 20px; gap: 14px; }
  .brand-logo { width: 136px; }
  .brand-academy { font-size: 15px; }
  main { padding: 40px 16px; }
  .entry { padding: 28px 24px; border-radius: 12px; }
  h1, .result h1 { font-size: 24px; }
  .intro { font-size: 16px; margin: 12px 0 24px; }
  .result-heading { align-items: stretch; flex-direction: column; }
  .note { padding: 24px; font-size: 16px; line-height: 1.75; }
  footer { padding: 20px 16px; }
}
@media (max-width: 380px) { footer nav { flex-direction: column; } footer nav span { display: none; } }
