* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f7fb;
  color: #102033;
}

input {
  width: 100%;
  border: 1px solid #ccd7e5;
  border-radius: 10px;
  padding: 12px;
  font: inherit;
}

a {
  color: #0b57d0;
  text-decoration: none;
}

code,
pre {
  font-family: Consolas, Monaco, monospace;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.detail-layout {
  max-width: 960px;
}

.wide-layout {
  max-width: 1180px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: #4f6b8a;
}

h1,
h2 {
  margin: 0 0 12px;
}

.muted {
  color: #5f738e;
}

.success-banner {
  background: #e5fff2;
  color: #007a43;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 20px;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 32px rgba(16, 32, 51, 0.08);
  margin-bottom: 20px;
}

.table-card {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid #e3ebf5;
  vertical-align: top;
}

th {
  font-size: 13px;
  color: #5f738e;
}

.empty {
  text-align: center;
  color: #5f738e;
}

.status {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.status-new { background: #e8f0fe; color: #174ea6; }
.status-under_review { background: #fff4d6; color: #8a5a00; }
.status-invited { background: #e8f0fe; color: #0b57d0; }
.status-accepted { background: #e5fff2; color: #007a43; }
.status-rejected { background: #fde8e8; color: #a61b1b; }

.grid-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.grid-card div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compact-stack {
  gap: 10px;
}

label span {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

select,
textarea,
button {
  width: 100%;
  border: 1px solid #ccd7e5;
  border-radius: 10px;
  padding: 12px;
  font: inherit;
}

button {
  width: auto;
  background: #102033;
  color: #fff;
  cursor: pointer;
}

.secondary-button {
  background: #eef3f9;
  color: #102033;
}

.danger-button {
  background: #a61b1b;
  color: #fff;
}

.button-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.wrap-row {
  flex-wrap: wrap;
}

.scope-row {
  margin-bottom: 20px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #ccd7e5;
  background: #102033;
  color: #fff;
  text-decoration: none;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.checkbox-row input {
  width: auto;
}

.inline-editor {
  min-width: 240px;
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #eef4ff 0%, #f7fafc 100%);
}

.login-shell {
  width: 100%;
  max-width: 460px;
  padding: 24px;
}

.login-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(16, 32, 51, 0.12);
}

.alert {
  background: #fde8e8;
  color: #a61b1b;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 16px 0;
}

.mail-copy p {
  margin-top: 0;
}

.top-gap {
  margin-top: 16px;
}

pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  background: #0f1722;
  color: #e2e8f0;
  padding: 16px;
  border-radius: 12px;
  overflow-x: auto;
}

@media (max-width: 700px) {
  .container {
    padding: 20px 14px 40px;
  }

  .page-header,
  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  th,
  td {
    padding: 10px 8px;
  }
}
