* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: #d4d0c8;
  color: #000;
  font-family: "Tahoma", "MS Sans Serif", "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  min-height: 100%;
}

body {
  background:
    repeating-linear-gradient(
      0deg,
      #d4d0c8 0 2px,
      #d0ccc4 2px 4px
    );
  padding: 18px 0;
}

.page {
  width: 960px;
  margin: 0 auto;
  background: #ece9d8;
  border: 1px solid #aca899;
  border-top-color: #fff;
  border-left-color: #fff;
  border-right-color: #555;
  border-bottom-color: #555;
  box-shadow: 2px 2px 0 #716f64;
}

/* ===================== HEADER ===================== */

.site-header {
  background: linear-gradient(180deg, #3a4e6b 0%, #2b3b53 100%);
  color: #f0f0f0;
  border-bottom: 2px solid #1a2436;
  padding: 10px 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 10px;
}

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: rgba(255,255,255,0.08);
  border: 1px solid #1a2436;
  padding: 4px;
  border-radius: 2px;
  filter: drop-shadow(0 0 3px rgba(20, 255, 150, 0.35));
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #e8f1ff;
  text-shadow: 1px 1px 0 #000;
  line-height: 1.25;
}

.brand-sub {
  margin-top: 3px;
  font-size: 11px;
  color: #b6c4d9;
}

.site-nav {
  list-style: none;
  display: flex;
  gap: 2px;
  background: #ece9d8;
  border-top: 1px solid #aca899;
  border-left: 1px solid #aca899;
  border-right: 1px solid #716f64;
  margin: 0 -14px;
  padding: 2px 2px 0 2px;
}

.site-nav li { display: block; }

.site-nav a {
  display: block;
  padding: 6px 16px;
  background: #d4d0c8;
  color: #000;
  text-decoration: none;
  border: 1px solid #d4d0c8;
  border-bottom: none;
  font-size: 12px;
}

.site-nav a:hover,
.site-nav a:focus {
  background: #fff;
  border-color: #aca899 #716f64 #ece9d8;
  color: #1c3150;
}

/* ===================== LAYOUT ===================== */

.layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 14px;
  padding: 14px;
}

/* ===================== SIDEBAR PANELS ===================== */

.panel {
  background: #ece9d8;
  border: 1px solid #aca899;
  border-top-color: #fff;
  border-left-color: #fff;
  border-right-color: #555;
  border-bottom-color: #555;
  margin-bottom: 14px;
}

.panel-title {
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(180deg, #42608c 0%, #2a4064 100%);
  color: #fff;
  padding: 4px 8px;
  letter-spacing: 0.3px;
  border-bottom: 1px solid #1a2436;
}

.panel > p,
.panel > ul,
.panel > div {
  padding: 10px 10px;
}

.server-box {
  background: #fff;
  border: 1px solid #aca899;
  border-top-color: #716f64;
  border-left-color: #716f64;
  margin: 10px 10px 6px;
  padding: 4px;
}

.server-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 4px;
  border-bottom: 1px dotted #c0bcaf;
  font-size: 11px;
}
.server-row:last-child { border-bottom: none; }

.server-label {
  color: #455a7e;
  font-weight: 700;
}

.server-value {
  color: #000;
  font-family: "Consolas", "Lucida Console", monospace;
}

.server-note {
  font-size: 11px;
  color: #3a3a3a;
  padding-top: 4px;
  line-height: 1.45;
}

.house-rules {
  background: #fff9e0;
  border: 1px solid #d7c887;
  padding: 6px 8px;
  margin: 0 10px 10px;
  font-size: 11px;
  line-height: 1.45;
  color: #534418;
}

.panel-muted p { font-size: 11px; color: #2d2d2d; }

.plain-list {
  list-style: disc inside;
  font-size: 11px;
  line-height: 1.65;
  color: #1f1f1f;
}

kbd {
  display: inline-block;
  padding: 0 5px;
  font-size: 10px;
  font-family: "Consolas", "Courier New", monospace;
  background: #f5f4ec;
  border: 1px solid #aca899;
  border-top-color: #fff;
  border-left-color: #fff;
  border-radius: 2px;
  box-shadow: 1px 1px 0 #716f64;
}

/* ===================== BUTTONS ===================== */

.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 12px;
  padding: 4px 16px;
  background: #ece9d8;
  color: #000;
  border: 1px solid #fff;
  border-top-color: #fff;
  border-left-color: #fff;
  border-right-color: #555;
  border-bottom-color: #555;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.5;
  user-select: none;
}
.btn:hover,
.btn:focus {
  background: #f7f5ec;
  outline: 1px dotted #000;
  outline-offset: -4px;
}
.btn:active {
  border-top-color: #555;
  border-left-color: #555;
  border-right-color: #fff;
  border-bottom-color: #fff;
  background: #d4d0c8;
}
.btn:disabled {
  color: #94918a;
  text-shadow: 1px 1px 0 #fff;
  cursor: not-allowed;
  background: #ece9d8;
}
.btn:disabled:hover { outline: none; background: #ece9d8; }

.btn-primary {
  background: linear-gradient(180deg, #0d6842 0%, #084a2e 100%);
  color: #fff;
  border-top-color: #14FF96;
  border-left-color: #14FF96;
  border-right-color: #032013;
  border-bottom-color: #032013;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #108353 0%, #0b5c3a 100%);
}
.btn-primary:active:not(:disabled) {
  border-top-color: #032013;
  border-left-color: #032013;
  border-right-color: #14FF96;
  border-bottom-color: #14FF96;
  background: linear-gradient(0deg, #0d6842 0%, #084a2e 100%);
}

.btn-big {
  display: block;
  margin: 8px 10px 4px;
  padding: 9px 10px;
  font-size: 13px;
  text-align: center;
  letter-spacing: 0.3px;
}

/* ===================== FORM ===================== */

.form-section {
  background: #ece9d8;
  border: 1px solid #aca899;
  border-top-color: #fff;
  border-left-color: #fff;
  border-right-color: #555;
  border-bottom-color: #555;
  padding: 8px 16px 16px;
}

.form-section > legend {
  font-weight: 700;
  padding: 0 8px;
  color: #2a4064;
  font-size: 13px;
  background: #ece9d8;
}

.section-intro {
  margin: 4px 0 14px;
  font-size: 11px;
  color: #333;
  padding: 6px 8px;
  background: #fff9e0;
  border: 1px solid #d7c887;
}

.field {
  margin-bottom: 12px;
}

.field label,
.subsection h3,
.checkbox-group h3 {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #1c3150;
  margin-bottom: 4px;
}

.req { color: #a30000; font-weight: 700; }
.opt { color: #555; font-weight: 400; font-size: 11px; }

.field input[type="url"],
.field input[type="text"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 12px;
  padding: 4px 5px;
  background: #fff;
  color: #000;
  border: 1px solid #716f64;
  border-top-color: #aca899;
  border-left-color: #aca899;
  border-right-color: #fff;
  border-bottom-color: #fff;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 1px solid #1c3150;
  background: #fffdf2;
}

.field select {
  cursor: pointer;
  padding: 3px 4px;
}

.field textarea {
  resize: vertical;
  min-height: 72px;
  font-family: inherit;
  line-height: 1.5;
}

.field-inline input[type="number"] {
  width: 110px;
}

.hint {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: #4f4f4f;
}

.field.has-error input[type="url"],
.field.has-error input[type="text"],
.field.has-error input[type="number"],
.field.has-error select,
.field.has-error textarea {
  border: 1px solid #a30000 !important;
  box-shadow: 0 0 0 1px #fce5e5 inset;
  background: #fff8f8;
}
.field.has-error select {
  box-shadow: none;
  outline: 1px solid #a30000;
  outline-offset: -1px;
}

.field .err {
  display: none;
  margin-top: 3px;
  font-size: 10.5px;
  font-weight: 700;
  color: #8f0b0b;
  line-height: 1.4;
}
.field.has-error .err { display: block; }

.checkbox-group.has-error {
  border-color: #a30000 !important;
  background: #fff8f8;
  box-shadow: 0 0 0 1px #fce5e5 inset;
}
.checkbox-group.has-error .err {
  display: block;
  padding: 4px 2px 0;
}

.subsection {
  margin: 18px -8px;
  padding: 10px 8px 2px;
  border-top: 1px dashed #aca899;
  border-bottom: 1px dashed #aca899;
}

.subsection-intro {
  font-size: 11px;
  color: #333;
  margin-bottom: 10px;
}

.checkbox-group {
  margin-top: 16px;
  padding: 10px;
  background: #fff;
  border: 1px solid #aca899;
  border-top-color: #716f64;
  border-left-color: #716f64;
}

.cb {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400;
  font-size: 11.5px;
  color: #1f1f1f;
  padding: 4px 0;
  cursor: pointer;
  line-height: 1.45;
}
.cb input {
  margin-top: 2px;
  accent-color: #0d6842;
  flex: 0 0 auto;
}

.form-actions {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #aca899;
  margin-top: 8px;
}

/* ===================== STATUS BANNER ===================== */

.status {
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid;
}
.status.success {
  background: #e4f6ea;
  color: #0b5a32;
  border-color: #0d6842;
}
.status.success p { margin: 6px 0 0; font-weight: 400; font-size: 11.5px; color: #0b5a32; line-height: 1.5; }
.status.success p:first-child { margin-top: 0; }
.status.success .ref {
  display: inline-block;
  background: #fff;
  border: 1px solid #0d6842;
  padding: 2px 8px;
  font-family: "Consolas", "Lucida Console", monospace;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin: 0 3px;
}
.status.error {
  background: #fce5e5;
  color: #8f0b0b;
  border-color: #a30000;
}
.status.error ul,
.status.info ul    { margin: 6px 0 0 18px; }
.status.error li,
.status.info li    { margin-top: 4px; font-weight: 400; font-size: 11.5px; line-height: 1.45; }
.status.error p,
.status.info p     { margin: 6px 0 0; font-weight: 400; font-size: 11.5px; line-height: 1.5; }
.status.error p:first-child,
.status.info p:first-child { margin-top: 0; }
.status.error p strong,
.status.info p strong      { font-weight: 700; }
.status.info {
  background: #e3ecf9;
  color: #1c3150;
  border-color: #2a4064;
}

/* ===================== FOOTER ===================== */

.site-footer {
  clear: both;
  background: #2b3b53;
  color: #b6c4d9;
  padding: 8px 14px;
  border-top: 2px solid #1a2436;
  font-size: 11px;
  text-align: center;
}

.site-footer a {
  color: #14FF96;
  text-decoration: underline;
}
.site-footer a:hover { color: #fff; }

a {
  color: #184a84;
}
a:hover { color: #0d6842; }
