:root {
  --sand: #f6f0e6;
  --mist: #edf3ee;
  --ink: #102542;
  --tide: #2c7a7b;
  --ember: #c96c50;
}

* {
  box-sizing: border-box;
}

body {
  background:
    radial-gradient(circle at 10% 10%, rgba(44, 122, 123, 0.16), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(201, 108, 80, 0.14), transparent 28%),
    linear-gradient(180deg, #fffcf7 0%, var(--sand) 55%, var(--mist) 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(16, 37, 66, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 37, 66, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
}

.page-shell {
  position: relative;
}

.panel {
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(16, 37, 66, 0.12);
}

.kicker {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

.config-pre {
  margin: 0;
  max-height: 31rem;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.logs-pre {
  margin: 0;
  max-height: 26rem;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.client-dialog {
  width: min(960px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
}

.client-dialog::backdrop {
  background: rgba(16, 37, 66, 0.56);
  backdrop-filter: blur(8px);
}

.client-dialog__panel {
  max-height: calc(100vh - 2rem);
  overflow: hidden;
}

.client-dialog__textarea {
  min-height: min(62vh, 38rem);
  max-height: min(62vh, 38rem);
  resize: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
    monospace;
}

.config-pre::-webkit-scrollbar,
.logs-pre::-webkit-scrollbar,
.client-dialog__textarea::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.config-pre::-webkit-scrollbar-thumb,
.logs-pre::-webkit-scrollbar-thumb,
.client-dialog__textarea::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

::selection {
  background: rgba(44, 122, 123, 0.24);
  color: var(--ink);
}
