:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f6f8;
  color: #161a1f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f5f6f8;
}

.page {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.top {
  margin-bottom: 24px;
}

h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: 0;
}

p {
  margin: 6px 0 0;
  color: #59616d;
  line-height: 1.45;
}

.section {
  margin-top: 26px;
}

.list {
  display: grid;
  gap: 12px;
}

.item {
  background: #ffffff;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  padding: 16px;
}

.item-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.meta {
  min-width: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 112px;
  padding: 0 14px;
  border: 1px solid #1d4f8f;
  border-radius: 6px;
  background: #245fa8;
  color: #ffffff;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.button.secondary {
  border-color: #b8c0cc;
  background: #ffffff;
  color: #1f2937;
}

.button:focus-visible,
textarea:focus-visible {
  outline: 3px solid #89b4f8;
  outline-offset: 2px;
}

.panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e6e9ee;
}

textarea {
  display: block;
  width: 100%;
  min-height: 190px;
  padding: 12px;
  border: 1px solid #c8d0dc;
  border-radius: 6px;
  background: #fbfcfe;
  color: #111827;
  font: 0.95rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  resize: vertical;
  white-space: pre;
  overflow: auto;
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.status {
  min-height: 1.4em;
  color: #245fa8;
}

.empty {
  padding: 16px;
  border: 1px dashed #c8d0dc;
  border-radius: 8px;
  color: #59616d;
}

@media (max-width: 640px) {
  .page {
    width: calc(100% - 24px);
    padding-top: 22px;
  }

  h1 {
    font-size: 1.65rem;
  }

  .item-main,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
