* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #17212b;
  background: #eef2f5;
  font-family: Arial, Helvetica, sans-serif;
}

.shell {
  width: min(960px, calc(100vw - 32px));
  margin: 32px auto;
}

.topbar,
.panel {
  background: #ffffff;
  border: 1px solid #d8e0e7;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 16px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

h1,
h2,
p {
  margin-top: 0;
}

label {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  font-weight: 700;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #b9c6d1;
  border-radius: 4px;
  padding: 10px;
}

textarea,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

pre {
  min-height: 160px;
  overflow: auto;
  background: #101820;
  color: #e8f0f7;
  border-radius: 4px;
  padding: 14px;
}

button {
  border: 0;
  border-radius: 4px;
  background: #1967d2;
  color: #ffffff;
  padding: 10px 14px;
  cursor: pointer;
}

button:disabled {
  background: #8fa4ba;
  cursor: not-allowed;
}

.actions,
.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.row > label {
  flex: 1 1 220px;
}

@media (max-width: 640px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }
}

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.hint { color: #51606f; font-size: .9rem; font-weight: 400; }
.danger { background: #a32929; }
#attachmentStatus { margin: 16px 0; overflow-wrap: anywhere; }
#attachmentPreview { display: block; max-width: 100%; max-height: 320px; object-fit: contain; margin: 16px 0; }
#attachmentDetails { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
#attachmentDetails dt { font-weight: 700; }
#attachmentDetails dd { margin: 0; overflow-wrap: anywhere; }
.link-card { margin: 16px 0; padding: 16px; border: 1px solid #d8e0e7; border-radius: 6px; overflow-wrap: anywhere; }
.link-card .actions { align-items: center; margin-top: 12px; }
.link-card input { margin-bottom: 8px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.shell { width: min(1120px, calc(100vw - 32px)); }
.eyebrow { color: #51606f; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.secondary { background: #e8eef5; color: #17416e; }
.feature-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.feature-tabs button { background: #dde6ef; color: #233e59; }
.feature-tabs button[aria-selected="true"] { background: #1967d2; color: white; }
button:focus-visible, a:focus-visible { outline: 3px solid #be7c00; outline-offset: 3px; }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.summary-grid > div { padding: 16px; background: white; border: 1px solid #d8e0e7; border-radius: 6px; }
.summary-grid span, .summary-grid strong { display: block; }
.summary-grid span { margin-bottom: 8px; color: #51606f; font-size: .85rem; }
.details-grid { display: grid; grid-template-columns: minmax(100px, auto) 1fr; gap: 10px 20px; }
.details-grid dt { font-weight: bold; }
.details-grid dd { margin: 0; overflow-wrap: anywhere; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.badge { padding: 6px 10px; border-radius: 16px; background: #e5effd; color: #17416e; }
.sibling-list { display: grid; gap: 10px; }
.feature p { line-height: 1.5; }
#output { max-height: 400px; }
@media (max-width: 480px) { .details-grid { grid-template-columns: 1fr; } }
