@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600&display=swap');

:root {
  --bg: #0d1218;
  --panel: #131b24;
  --text: #edf2f7;
  --muted: #a8b5c3;
  --accent: #61dafb;
  --accent-2: #7ad8ff;
  --accent-warm: #ffd166;
  --line: #243244;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  background: radial-gradient(circle at top right, #1c2734, #0d1218 55%);
  color: var(--text);
  overflow: hidden;
}

.wrap {
  width: min(1800px, calc(100vw - 20px));
  margin: 0 auto;
  padding: 16px 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@supports not (height: 100dvh) {
  .wrap { height: 100vh; }
}

h1 { margin: 0 0 8px; }
p { margin: 0; color: var(--muted); }

.page-header {
  padding: 0 4px;
}

.now-line {
  margin-top: 8px;
  font-size: 14px;
  color: var(--accent-warm);
}

.notify-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(19, 27, 36, 0.92);
  padding: 10px 12px;
}

.notify-panel.locked .notify-chat {
  display: none;
}

.notify-form {
  display: grid;
  gap: 8px;
}

.notify-chat {
  display: grid;
  gap: 8px;
}

.notify-auth {
  display: grid;
  grid-template-columns: 190px 220px auto;
  gap: 8px;
}

.notify-auth input {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(8, 13, 18, 0.8);
  color: var(--text);
  padding: 8px 10px;
  font: inherit;
}

.notify-auth input:focus {
  outline: 2px solid rgba(97, 218, 251, 0.35);
  outline-offset: 1px;
}

.notify-auth button {
  height: 40px;
  border: 1px solid #2c5668;
  border-radius: 8px;
  background: linear-gradient(180deg, #1f3f4e 0%, #17333f 100%);
  color: #eaf7ff;
  font: inherit;
  font-weight: 600;
  padding: 0 14px;
  cursor: pointer;
}

.notify-form label {
  font-weight: 600;
  color: var(--accent-2);
}

.notify-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

#notify-message {
  width: 100%;
  resize: vertical;
  min-height: 46px;
  max-height: 140px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(8, 13, 18, 0.8);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

#notify-message:focus {
  outline: 2px solid rgba(97, 218, 251, 0.35);
  outline-offset: 1px;
}

#notify-message:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#notify-send {
  border: 1px solid #2c5668;
  border-radius: 8px;
  background: linear-gradient(180deg, #1f3f4e 0%, #17333f 100%);
  color: #eaf7ff;
  font: inherit;
  font-weight: 600;
  padding: 0 16px;
  cursor: pointer;
}

#notify-send:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.notify-status {
  min-height: 20px;
  font-size: 14px;
}

.notify-status.ok {
  color: #9ef3a8;
}

.notify-status.err {
  color: #ff9b9b;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: auto;
  background: var(--panel);
  flex: 1;
  min-height: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 960px;
}

th, td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  background: #111822;
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: inset 0 -1px 0 var(--line);
}

tbody tr:hover {
  background: rgba(255,255,255,0.02);
}

tbody tr.row-today td {
  background: rgba(255, 209, 102, 0.08);
}

tbody tr.row-now td {
  background: rgba(255, 179, 71, 0.22);
  color: #fff4d6;
  border-top: 2px solid #ffb347;
  border-bottom: 2px solid #ffb347;
  font-weight: 600;
}

@media (max-width: 900px) {
  .wrap {
    width: calc(100vw - 12px);
    padding: 8px 0;
    gap: 8px;
  }

  .notify-row {
    grid-template-columns: 1fr;
  }

  .notify-auth {
    grid-template-columns: 1fr;
  }

  #notify-send {
    height: 42px;
  }
}
