  *{box-sizing:border-box}
  [hidden]{display:none!important}
  body{margin:0;background:#f2f6fa;color:#142b40;font:17px/1.6 system-ui}
  main,header,footer{max-width:850px;margin:auto;padding:24px}
  header{font-weight:800}
  h1{font-size:clamp(36px,7vw,65px);line-height:1.08}
  section{background:white;border:1px solid #dbe5ed;border-radius:18px;padding:24px;margin:24px 0}
  button{display:block;width:100%;text-align:left;padding:12px;margin:8px 0;border:1px solid #b9cbd9;border-radius:8px;background:white;font:inherit;color:inherit;cursor:pointer}
  button:hover{background:#e5f4ff}
  small{color:#456}
  a{color:#12669a}
  .tag{color:#12669a;font-weight:bold}
  footer{font-size:14px}
  img,video{max-width:100%;height:auto}
  iframe,embed,object{max-width:100%}
  .mobile-menu{display:none}
  .account-link{float:right}
  #study-status{font-size:16px;color:#456}
  #study-status a{display:inline-flex;align-items:center;min-height:44px}
  #save-retry{width:auto}
  button:disabled{cursor:default}
  button:disabled:hover{background:white}

  @media (max-width:640px){
    body{overflow-wrap:anywhere}
    main,header,footer{padding:16px}
    header{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px}
    h1{font-size:clamp(32px,8vw,44px)}
    section{padding:16px}
    footer{font-size:16px}
    button,.mobile-menu summary,.mobile-menu a,footer a{min-width:44px;min-height:44px}
    .mobile-menu{display:block;flex:none}
    .account-link{display:none}
    .mobile-menu summary,.mobile-menu a,footer a{display:inline-flex;align-items:center;max-width:100%}
    .mobile-menu summary{gap:8px;padding:6px 12px;border:1px solid #b9cbd9;border-radius:8px;background:white;cursor:pointer}
    .mobile-menu summary::-webkit-details-marker{display:none}
    .mobile-menu summary::after{content:"";width:7px;height:7px;border:solid currentColor;border-width:0 2px 2px 0;transform:translateY(-2px) rotate(45deg)}
    .mobile-menu[open] summary::after{transform:translateY(2px) rotate(225deg)}
    .mobile-menu nav{position:absolute;z-index:1;top:calc(100% - 8px);inset-inline:16px;max-width:280px;margin-inline-start:auto;padding:6px;background:white;border:1px solid #dbe5ed;border-radius:12px;box-shadow:0 6px 20px #142b401a}
    .mobile-menu a{display:flex;padding:6px 12px;border-radius:6px}
    .mobile-menu a:hover,.mobile-menu a:focus-visible{background:#e5f4ff}
  }
