/* Status Board - admin / phone UI */

:root {
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #14161c;
  color: #e8eaf0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 16px 48px;
}

.wrap.narrow { max-width: 460px; }

.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

h1 { font-size: 22px; margin: 0; font-weight: 650; }
h2 { font-size: 15px; margin: 0 0 12px; text-transform: uppercase;
     letter-spacing: 0.08em; opacity: 0.6; font-weight: 600; }

a { color: #8fb6ff; }

.flash {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 15px;
}
.flash.ok    { background: #17331f; color: #b7f0c4; }
.flash.error { background: #3a1a1f; color: #ffc0c8; }

/* ---------- current status ---------- */

.current {
  display: block;
  border: 2px solid #333;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
  background: #1b1e26;
}
.current span, .current strong { display: block; }
.current-label { font-size: 12px; text-transform: uppercase;
                 letter-spacing: 0.1em; opacity: 0.55; }
.current-text  { font-size: 21px; margin-top: 4px; line-height: 1.25; }
.current-note  { font-size: 16px; margin-top: 6px; opacity: 0.85; }
.current-time  { font-size: 13px; margin-top: 8px; opacity: 0.55; }

/* ---------- status tiles ---------- */

.notefield { display: block; margin-bottom: 16px; }
.notefield span, label > span {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  opacity: 0.6;
  margin-bottom: 6px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

.tile {
  appearance: none;
  -webkit-appearance: none;
  border: 3px solid transparent;
  border-radius: 16px;
  color: #fff;
  padding: 18px 10px;
  font-size: 17px;
  font-weight: 600;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  min-height: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

.tile:active { transform: scale(0.97); }
.tile.active { border-color: #ffffff; box-shadow: 0 0 0 3px rgba(255,255,255,0.18); }

.tile-icon { font-size: 30px; line-height: 1; }
.tile-icon img { max-height: 40px; max-width: 70%; display: block; margin: 0 auto; }
.tile-label { line-height: 1.2; }

/* ---------- forms ---------- */

input[type="text"], input[type="password"], select {
  width: 100%;
  padding: 12px 14px;
  font-size: 17px;
  font-family: inherit;
  color: #e8eaf0;
  background: #0f1116;
  border: 1px solid #333845;
  border-radius: 10px;
}

input[type="file"] { width: 100%; font-size: 14px; margin-top: 6px; }
input[type="color"] { width: 100%; height: 44px; padding: 2px;
                      background: #0f1116; border: 1px solid #333845;
                      border-radius: 10px; }

label { display: block; margin-bottom: 14px; }

label.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.8;
  margin: 8px 0 0;
}
label.check input { width: auto; }

.row { display: flex; gap: 10px; align-items: flex-end; }
.row .grow { flex: 1; }
.row input[type="text"] { flex: 1; }

button, .button {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.primary { background: #2f6df0; color: #fff; }
.danger  { background: #3a1a1f; color: #ffb2bd; border-color: #5a2630; }
.ghost   { background: transparent; color: #9fb0cc; border-color: #333845; }
.small   { font-size: 14px; padding: 8px 12px; }
.wide    { width: 100%; margin-top: 10px; }

.inline { margin-top: 14px; }

/* ---------- cards / lists ---------- */

.card {
  background: #1b1e26;
  border: 1px solid #272b36;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}

.sitelist { list-style: none; margin: 0 0 12px; padding: 0; }
.sitelist li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #272b36;
}
.sitelist li:last-child { border-bottom: none; }

.links { margin-top: 26px; }
.links ul { list-style: none; margin: 0; padding: 0; }
.links li { padding: 6px 0; }

code {
  font-size: 13px;
  opacity: 0.6;
  background: #0f1116;
  padding: 2px 6px;
  border-radius: 6px;
}

.thumb { display: block; max-height: 72px; margin: 6px 0; border-radius: 8px; }
.wide-thumb { max-height: 110px; max-width: 100%; }

.hint { font-size: 14px; opacity: 0.6; margin: 10px 0 0; }

.credit {
  margin-top: 28px;
  font-size: 13px;
  opacity: 0.5;
  text-align: center;
  line-height: 1.6;
}
