/* Cyberry Ops — dashboard styles. Builds on kit.css tokens so the internal
   tool looks like the family rather than a bolt-on. */

.ops-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 40;
}

.ops-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 62px;
  padding-block: 0.7rem;
}

.ops-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.83rem;
  color: var(--muted);
}

.ops-user button {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}

.ops-user button:hover {
  color: var(--purple);
  border-color: var(--purple);
}

/* --- Summary tiles --------------------------------------------------------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}

.tile dt {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.tile dd {
  margin-top: 0.35rem;
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink-strong);
  line-height: 1.1;
}

.tile dd small {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0;
}

/* --- Project rows ---------------------------------------------------------- */

.section-label {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.rows {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.row {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1.25rem;
}

.row + .row {
  border-top: 1px solid var(--line);
}

.row-name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-strong);
}

.row-domain {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  word-break: break-all;
}

.row-domain:hover {
  color: var(--purple);
}

.row-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.badges {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.badge {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.22rem 0.5rem;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--muted);
  white-space: nowrap;
}

.badge--up { background: var(--ok-soft); color: var(--ok); }
.badge--down { background: var(--err-soft); color: var(--err); }
.badge--on { background: var(--purple-soft); color: var(--purple); }

.dot-state {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: inline-block;
  margin-right: 0.5rem;
}

.dot-up { background: var(--ok); }
.dot-down { background: var(--err); }

/* --- Auth screens ---------------------------------------------------------- */

.auth-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.25rem);
  box-shadow: var(--shadow-lg);
}

.auth-card h1 {
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}

.auth-card p.sub {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.field-block {
  margin-bottom: 1rem;
}

.field-block label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.field-block input {
  width: 100%;
  min-height: 44px;
}

.auth-msg {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  min-height: 1.3em;
}

.auth-msg.err { color: var(--err); }
.auth-msg.ok { color: var(--ok); }

.hint {
  margin-top: 1.1rem;
  font-size: 0.76rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.5;
}

/* --- States ---------------------------------------------------------------- */

.empty {
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.note {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-size: 0.83rem;
  font-weight: 300;
  color: var(--muted);
}

.note strong {
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 720px) {
  .row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .badges { justify-content: flex-start; }
}
