:root { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: #172033; background: #f6f8fc; font-size: 18px; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; }
.shell { width: min(100%, 840px); margin: 0 auto; padding: 24px 20px; }
.app-header { display: grid; grid-template-columns: 1fr 1.3fr; align-items: center; gap: 16px; min-height: 116px; }
h1 { font-size: clamp(24px, 5vw, 32px); letter-spacing: -.04em; margin: 0; white-space: nowrap; }
h2 { font-size: 25px; margin-top: 0; }
p { line-height: 1.65; overflow-wrap: anywhere; }
.subtle, .madeby { color: #4b5563; font-size: 15px; }
.quote-slot { height: 116px; min-width: 0; }
.quote-card { background: #eaf0ff; border-left: 3px solid #1d4ed8; border-radius: 12px; padding: 12px 16px; height: 100%; }
.quote-card p { margin: 7px 0 0; font-size: 16px; }
.quote-card strong { color: #1d4ed8; font-size: 13px; }
main { max-width: 460px; margin: 12px auto 0; padding: 28px; background: white; border: 1px solid #dce2ed; border-radius: 18px; }
label, legend { font-size: 17px; font-weight: 600; }
input[type="email"], input[type="text"] { display: block; width: 100%; min-width: 0; min-height: 52px; margin: 10px 0 20px; padding: 12px; border: 1px solid #8c99ae; border-radius: 8px; font: inherit; }
#code { font-size: 28px; letter-spacing: .24em; }
fieldset { margin: 0 0 24px; padding: 0; border: 0; }
legend { padding: 0; margin-bottom: 8px; }
.device-option { display: flex; gap: 10px; align-items: center; min-height: 48px; font-size: 16px; font-weight: 400; }
input[type="radio"] { width: 20px; height: 20px; accent-color: #1d4ed8; flex-shrink: 0; }
button { width: 100%; min-height: 52px; border: 0; padding: 12px 16px; border-radius: 9px; color: white; background: #1d4ed8; font: inherit; font-weight: 600; cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
button.secondary { margin-top: 10px; background: #edf1f8; color: #35425a; font-size: 16px; font-weight: 400; }
:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 3px; }
.message { font-size: 16px; color: #4b5563; white-space: pre-line; }
.message.error { color: #b91c1c; }
.message.success { color: #15803d; }
.madeby { text-align: center; margin: 28px 0; font-size: 13px; }
.online-note { margin-bottom: 0; }
@media (max-width: 600px) {
  .shell { padding: 12px 16px; }
  .app-header { grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: 10px; min-height: 108px; }
  .quote-slot { height: 108px; }
  .app-header h1 { font-size: clamp(20px, 5.8vw, 24px); }
  .app-header .subtle { font-size: 13px; margin: 6px 0 0; }
  .quote-card { padding: 8px 10px; overflow: auto; }
  .quote-card p { margin-top: 4px; font-size: 12.5px; line-height: 1.4; }
  .quote-card strong { font-size: 12px; }
  main { margin-top: 8px; padding: 16px; }
  h2 { font-size: 22px; margin-bottom: 12px; }
  main .subtle { font-size: 13px; line-height: 1.5; margin: 8px 0; }
  input[type="email"], input[type="text"] { min-height: 48px; margin: 6px 0 12px; padding: 10px; }
  fieldset { margin-bottom: 8px; }
  legend { margin-bottom: 4px; }
  .device-option { min-height: 44px; font-size: 15px; }
  button { min-height: 48px; padding: 10px 14px; }
  .message:empty { display: none; }
  main .online-note { margin-bottom: 0; }
  .madeby { margin: 14px 0 4px; }
}
@media (max-width: 600px) and (max-height: 740px) {
  .shell { padding-top: 8px; padding-bottom: 8px; }
  main { padding-top: 14px; padding-bottom: 14px; }
  h2 { margin-bottom: 8px; }
  input[type="email"], input[type="text"] { margin-bottom: 8px; }
  fieldset { margin-bottom: 4px; }
  main .subtle { margin-top: 6px; margin-bottom: 6px; }
  main .online-note { margin-bottom: 0; }
  .madeby { margin: 10px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
