* { box-sizing: border-box; }
body { margin: 0; background: #f5f7fb; color: #1a2230; font: 17px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
main { max-width: 480px; margin: 0 auto; padding: calc(24px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom)); display: grid; gap: 28px; }
h1 { font-size: 26px; line-height: 1.2; margin: 0 0 4px; }
h2 { font-size: 21px; line-height: 1.3; margin: 0 0 8px; }
p { margin: 0; }
header p { font-size: 15px; color: #3d4757; }
#result { background: #fff; border-left: 5px solid #8793a5; border-radius: 8px; padding: 16px; }
#result[data-tone="good"] { border-left-color: #1c7c46; }
#result[data-tone="warn"] { border-left-color: #b26a00; }
#result[data-tone="bad"] { border-left-color: #b3261e; }
button { width: 100%; min-height: 48px; font: inherit; font-weight: 600; border-radius: 8px; border: 1px solid #aeb7c4; background: #fff; color: #1a2230; padding: 10px 14px; cursor: pointer; }
button.primary { background: #1f5fbf; border-color: #1f5fbf; color: #fff; }
.hint { margin-top: 12px; font-size: 15px; color: #3d4757; }
.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tools button { font-size: 15px; font-weight: 500; }
summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-size: 15px; }
pre { background: #fff; border-radius: 8px; padding: 12px; margin: 8px 0 0; font-size: 12px; white-space: pre-wrap; word-break: break-word; }
.foot { font-size: 13px; color: #3d4757; }
