:root { --accent: #1a5fb4; --ink: #1c1c1c; --muted: #666; --line: #ddd; }
* { box-sizing: border-box; }
body {
  margin: 0 auto; max-width: 860px; padding: 0 1rem 4rem;
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
}
header { padding: 2.5rem 0 1rem; }
h1 { font-size: 1.9rem; margin: 0 0 .5rem; }
h2 { font-size: 1.3rem; margin: 1.5rem 0 .5rem; }
h3 { font-size: 1.1rem; margin: 0 0 .5rem; }

#tool { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end;
        padding: 1rem; border: 1px solid var(--line); border-radius: 8px; }
#tool label { display: flex; flex-direction: column; gap: .25rem;
              font-size: .85rem; color: var(--muted); flex: 1 1 200px; }
input, select, textarea {
  font: inherit; padding: .55rem .7rem; border: 1px solid var(--line);
  border-radius: 6px; width: 100%;
}
input:focus, select:focus, textarea:focus, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
button {
  font: inherit; font-weight: 600; color: #fff; background: var(--accent);
  border: 0; border-radius: 6px; padding: .6rem 1.2rem; cursor: pointer;
}
button:hover { filter: brightness(1.1); }

#status { margin: 1rem 0; padding: .8rem 1rem; background: #f5f7fa;
          border-radius: 6px; }
#results { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
th, td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line);
         white-space: nowrap; }
tbody tr:nth-child(odd) { background: #fafafa; }
th { font-size: .8rem; text-transform: uppercase; color: var(--muted); }

.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1rem 0; }
.actions button { background: #fff; color: var(--accent);
                  border: 1px solid var(--accent); }

#memo-cta { margin: 2rem 0; padding: 1.25rem; border: 2px solid var(--accent);
            border-radius: 8px; }
#memo-cta textarea { min-height: 90px; margin: .5rem 0; }
#memo-cta input { margin: .5rem 0; }

dialog { border: 1px solid var(--line); border-radius: 8px; padding: 1.5rem;
         max-width: 360px; }
dialog::backdrop { background: rgba(0,0,0,.35); }
dialog input { margin: .75rem 0; }

.fine { font-size: .8rem; color: var(--muted); }
footer { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 1rem; }
@media (max-width: 600px) { #tool { flex-direction: column; align-items: stretch; } }
