* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, sans-serif; margin: 0;
       background: #f5f7fb; color: #1f2937; }
.view { max-width: 640px; margin: 0 auto; padding: 16px; display: flex;
        flex-direction: column; gap: 12px; }
.hidden { display: none !important; }
h1 { color: #1E40AF; text-align: center; }
h2 { font-size: 1rem; margin: 8px 0 0; }
header { display: flex; justify-content: space-between; align-items: center; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
input, textarea { padding: 10px; border: 1px solid #cbd5e1; border-radius: 8px;
                  font-size: 16px; background: #fff; }
textarea { min-height: 180px; }
button, .button { padding: 12px; border-radius: 8px; border: 0; font-size: 16px;
                  background: #e2e8f0; text-align: center; text-decoration: none; }
button.primary { background: #1E40AF; color: #fff; }
button.ghost { background: transparent; color: #64748b; }
button:disabled { opacity: .5; }
.err { color: #991B1B; font-size: 14px; }
.banner { background: #FEF3C7; border: 1px solid #B45309; color: #854D0E;
          padding: 10px; border-radius: 8px; font-size: 14px; }
.banner.fatal { background: #FEE2E2; border-color: #991B1B; color: #991B1B; }
ul#history { list-style: none; padding: 0; display: flex; flex-direction: column;
             gap: 8px; }
ul#history li { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
                padding: 10px; display: flex; justify-content: space-between;
                align-items: center; font-size: 14px; }
li .meta { cursor: pointer; flex: 1; }
li button { color: #991B1B; background: transparent; padding: 4px 8px; }
details { border-top: 1px solid #e2e8f0; padding-top: 8px; }
