* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1d1d1f;
  background: #f5f5f7;
  line-height: 1.4;
}
.top {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: #fff; border-bottom: 1px solid #ddd;
  position: sticky; top: 0; z-index: 10;
}
.top h1 { font-size: 18px; margin: 0; }
.top { flex-wrap: wrap; justify-content: space-between; padding-top: 4px; padding-bottom: 4px; }
.nav { display: flex; flex-wrap: wrap; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  color: #0a58ca; text-decoration: none; font-weight: 600; white-space: nowrap;
}
.nav a[aria-current="page"] { color: #1d1d1f; box-shadow: inset 0 -3px 0 #0a58ca; }
@media (max-width: 480px) {
  .nav { width: 100%; justify-content: space-between; }
  .nav a { padding: 0 6px; }
}
@media print { .nav { display: none !important; } }
main { max-width: 720px; margin: 0 auto; padding: 16px; }
.status { font-size: 15px; color: #555; margin: 0 0 8px; }
.status:empty { display: none; }
.error { color: #b00020; background: #fdecee; padding: 10px; border-radius: 8px; }
.card {
  background: #fff; border: 1px solid #e0e0e5; border-radius: 10px;
  padding: 12px; margin-bottom: 16px;
}
.card h2 { font-size: 16px; margin: 0 0 4px; }
.hint { font-size: 14px; color: #555; margin: 0 0 10px; }
.hint a { color: #0a58ca; }
textarea {
  width: 100%; min-height: 50vh; padding: 10px;
  font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  border: 1px solid #ccc; border-radius: 8px; background: #fafafa; resize: vertical;
}
.actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
button {
  min-height: 44px; padding: 0 18px; font: inherit; font-weight: 600;
  border: 0; border-radius: 10px; background: #0a58ca; color: #fff; cursor: pointer;
}
button:disabled { opacity: 0.5; cursor: default; }
.copy-status { font-size: 14px; color: #1a7f37; }
@media (max-width: 480px) {
  .actions button { flex: 1 1 100%; }
}
