:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Noto Sans JP",
    sans-serif;
  color: #172d4b;
  background: #f3f6fb;
  font-synthesis: none;
  --accent: #245fba;
  --line: #dbe3ef;
  --muted: #61738c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header,
footer {
  max-width: 1360px;
  margin: auto;
  padding: 28px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header {
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.brand {
  font-size: 26px;
  text-decoration: none;
  color: #172d4b;
  display: flex;
  align-items: center;
  gap: 13px;
}
#identity {
  font-size: 12px;
  color: var(--muted);
}
main {
  max-width: 1248px;
  margin: auto;
  padding: 24px 32px;
}
.request-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.command-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px;
  margin-bottom: 24px;
  border-radius: 4px;
}
.section-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}
.section-heading h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}
.section-heading .quiet {
  margin-left: auto;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin: 20px 0 8px;
}
input:not([type="radio"]),
textarea {
  width: 100%;
  background: #f9fbfe;
  border: 1px solid #c6d3e4;
  border-radius: 3px;
  padding: 12px;
  font: inherit;
  font-size: 13px;
  color: #172d4b;
}
input:focus,
textarea:focus {
  outline: 2px solid #72a5ed;
  outline-offset: 2px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
legend {
  font-size: 13px;
}
label.level {
  border: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  margin: 10px 0;
  cursor: pointer;
  border-radius: 3px;
}
.level:has(input:checked) {
  border-color: var(--accent);
  background: #edf4ff;
}
.level input {
  accent-color: var(--accent);
}
.level strong {
  font-size: 13px;
  font-weight: 600;
}
.level small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  margin-top: 5px;
}
button {
  border: 1px solid var(--accent);
  background: var(--accent);
  border-radius: 3px;
  color: #fff;
  padding: 12px 20px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
button:hover {
  filter: brightness(0.94);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.submit-area {
  max-width: 540px;
  margin-left: auto;
  text-align: right;
}
.submit-area .message {
  text-align: left;
}
.submit-area > button {
  min-width: 160px;
  margin-top: 18px;
}
.quiet {
  background: transparent;
  color: var(--accent);
  padding: 7px 10px;
  border: 1px solid var(--line);
  font-size: 12px;
}
.danger {
  color: #9b3e35;
}
.muted {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}
.badge {
  background: #eaf2ff;
  color: #265da5;
  border-radius: 3px;
  font-size: 11px;
  padding: 5px 8px;
  white-space: nowrap;
}
.badge.pending {
  background: #f7f0db;
  color: #8e7026;
}
.badge.rejected,
.badge.revoked {
  background: #f6e9e6;
  color: #9b3e35;
}
.request-actions {
  min-width: 180px;
}
.panel > p {
  font-size: 13px;
  line-height: 1.8;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 620px;
  font-size: 12px;
}
th {
  white-space: nowrap;
  text-align: left;
  font-weight: 500;
  color: var(--muted);
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 18px 12px;
  border-bottom: 1px solid #edf1f7;
  vertical-align: middle;
}
td small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}
td .quiet {
  margin: 3px;
}
footer {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.notice,
.message,
#message {
  padding: 15px 20px;
  background: #f4ebd0;
  border: 1px solid #e2cf91;
  font-size: 13px;
  line-height: 1.7;
  margin-top: 24px;
}
.notice[hidden],
.message[hidden],
#message[hidden] {
  display: none;
}
main > .notice,
main > #message {
  margin: 0 0 24px;
}
.message,
#message {
  background: #eaf2ff;
  border-color: #a8c5ed;
}
.message.error,
#message.error {
  background: #faeae5;
  border-color: #d6aaa1;
}
@media (max-width: 850px) {
  header,
  footer {
    padding: 22px 24px;
  }
  main {
    padding: 20px;
  }
  .request-options,
  .command-grid {
    grid-template-columns: 1fr;
  }
  .submit-area > button {
    width: 100%;
  }
  .panel {
    padding: 22px;
  }
  header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

[hidden] {
  display: none !important;
}
nav {
  display: flex;
  gap: 24px;
  flex: 1;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  padding: 8px 0;
}
nav a[aria-current="page"] {
  color: var(--accent);
  box-shadow: 0 2px var(--accent);
}
.brand {
  font-weight: 700;
  letter-spacing: 0.06em;
}
.badge.expired {
  background: #edf0f5;
  color: #52637c;
}
.badge.issuing,
.badge.approved {
  background: #fff4dc;
  color: #806125;
}
details {
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
}
summary {
  cursor: pointer;
}
code {
  overflow-wrap: anywhere;
  font-size: 11px;
}
pre {
  white-space: pre-wrap;
  background: #f3f6fb;
  padding: 12px;
  border-radius: 4px;
}
.command {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px;
  margin: 12px 0;
}
.command-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.command h3 {
  font-size: 13px;
  margin: 0;
}
.copy-command {
  flex-shrink: 0;
}
.command pre {
  margin-bottom: 0;
}
.copy-feedback {
  margin-bottom: 0;
}
#file-summary {
  overflow-wrap: anywhere;
}
#hardware-fields {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 16px;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #72a5ed;
  outline-offset: 3px;
}
