:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: #101418;
  color: #e8edf1;
  accent-color: #d3a84e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, #29333d 0, transparent 34rem),
    linear-gradient(150deg, #0c1013, #131a20 55%, #0d1114);
}

button,
input {
  font: inherit;
}

button {
  border: 1px solid #d3a84e;
  border-radius: 0.5rem;
  background: #d3a84e;
  color: #17120a;
  cursor: pointer;
  font-weight: 650;
  padding: 0.65rem 0.9rem;
}

button:hover {
  filter: brightness(1.08);
}

button.quiet {
  border-color: #45515b;
  background: #202a32;
  color: #e8edf1;
}

button.danger {
  border-color: #9b4c4c;
  background: #342124;
  color: #ffd5d5;
}

input {
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid #46535e;
  border-radius: 0.5rem;
  background: #0d1216;
  color: #f5f7f8;
  padding: 0.7rem 0.75rem;
}

input:focus {
  border-color: #d3a84e;
  outline: 2px solid rgb(211 168 78 / 25%);
}

.shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.masthead,
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.masthead {
  margin-bottom: 1.5rem;
}

.masthead h1,
.panel h2 {
  margin: 0;
}

.masthead h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.05em;
}

.kicker {
  margin: 0 0 0.25rem;
  color: #d3a84e;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.panel {
  margin-bottom: 1rem;
  border: 1px solid #303b44;
  border-radius: 1rem;
  background: rgb(19 26 32 / 85%);
  box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 18%);
  padding: 1.25rem;
}

.panel.compact {
  max-width: 32rem;
}

.columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

form {
  display: grid;
  gap: 0.9rem;
}

label {
  color: #c4cdd3;
  font-size: 0.9rem;
  font-weight: 600;
}

.muted {
  color: #9eabb4;
}

.small {
  font-size: 0.82rem;
}

.status {
  min-height: 3rem;
  margin: 1rem 0;
}

.actions,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

table {
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid #2d3841;
  padding: 0.75rem 0.5rem;
  text-align: left;
}

th {
  color: #9eabb4;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.browser-panel iframe {
  width: 100%;
  min-height: 70vh;
  margin-top: 1rem;
  border: 1px solid #3b4650;
  border-radius: 0.7rem;
  background: #050708;
}

.notice {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  max-width: min(30rem, calc(100% - 2rem));
  border: 1px solid #45685e;
  border-radius: 0.7rem;
  background: #14241f;
  box-shadow: 0 1rem 3rem rgb(0 0 0 / 50%);
  padding: 0.9rem 1rem;
}

.notice.error {
  border-color: #884a4a;
  background: #2d191b;
}

@media (max-width: 800px) {
  .columns {
    grid-template-columns: 1fr;
  }

  .masthead {
    align-items: flex-start;
  }
}
