:root {
  color-scheme: dark;
  --bg: #0b1017;
  --panel: #121a25;
  --panel-2: #172231;
  --text: #eef4fb;
  --muted: #9aa8b7;
  --line: #263547;
  --blue: #4ea3ff;
  --green: #41d19d;
  --pink: #f06292;
  --focus: #f7c948;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(rgba(11, 16, 23, 0.86), rgba(11, 16, 23, 0.94)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='800' viewBox='0 0 1200 800'%3E%3Crect width='1200' height='800' fill='%23172531'/%3E%3Cg fill='none' stroke='%234ea3ff' stroke-opacity='.18' stroke-width='2'%3E%3Cpath d='M120 520 C260 380 390 610 560 430 S860 270 1080 390'/%3E%3Cpath d='M90 260 C260 190 330 360 520 300 S830 150 1090 230'/%3E%3C/g%3E%3Cg fill='%2341d19d' fill-opacity='.22'%3E%3Ccircle cx='260' cy='250' r='80'/%3E%3Ccircle cx='950' cy='440' r='120'/%3E%3C/g%3E%3Cg fill='%23f06292' fill-opacity='.2'%3E%3Ccircle cx='760' cy='230' r='90'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  color: var(--text);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.login-view {
  min-height: calc(100vh - 64px);
  display: grid;
  align-content: center;
  gap: 28px;
}

.brand-lockup,
.topbar,
.hero,
.notifications-panel,
.login-panel,
.dialog-card {
  border: 1px solid var(--line);
  background: rgba(18, 26, 37, 0.92);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: 8px;
}

.brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #31506f;
  border-radius: 8px;
  background: linear-gradient(145deg, #182c42, #0e1824);
}

.brand-mark span {
  width: 28px;
  height: 28px;
  border: 4px solid var(--blue);
  border-left-color: var(--green);
  border-bottom-color: var(--pink);
  border-radius: 50%;
}

.brand-mark.small {
  width: 42px;
  height: 42px;
}

.brand-mark.small span {
  width: 20px;
  height: 20px;
  border-width: 3px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1;
}

h2 {
  max-width: 720px;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1;
}

h3 {
  font-size: 1.35rem;
}

.brand-lockup p,
.hero p,
.action-tile small,
.brand-mini span,
.form-message {
  color: var(--muted);
}

.login-panel,
.dialog-card {
  display: grid;
  gap: 16px;
  max-width: 520px;
  padding: 22px;
  border-radius: 8px;
}

label {
  display: grid;
  gap: 8px;
  color: #d7e0ea;
  font-weight: 650;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #34465b;
  border-radius: 6px;
  background: #0d1420;
  color: var(--text);
  padding: 0 13px;
}

input:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

button,
.action-tile {
  border: 0;
  border-radius: 6px;
  font-weight: 750;
}

button {
  min-height: 46px;
  padding: 0 16px;
  color: #08111c;
  background: var(--green);
}

.ghost-button {
  min-height: 38px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
}

.is-hidden {
  display: none !important;
}

.app-view {
  display: grid;
  gap: 18px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 8px;
}

.brand-mini,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mini div:last-child {
  display: grid;
}

.topbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hero {
  min-height: 280px;
  display: grid;
  grid-template-columns: 1fr minmax(220px, 360px);
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: 8px;
  overflow: hidden;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.server-art {
  display: grid;
  gap: 14px;
}

.server-art div {
  height: 74px;
  border: 1px solid #31506f;
  border-radius: 8px;
  background: linear-gradient(90deg, #111a26, #1f3348);
  position: relative;
}

.server-art div::before,
.server-art div::after {
  content: "";
  position: absolute;
  top: 24px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.server-art div::before {
  right: 56px;
  background: var(--green);
}

.server-art div::after {
  right: 28px;
  background: var(--blue);
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.action-tile {
  min-height: 168px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 22px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(18, 26, 37, 0.94);
}

.action-tile strong {
  font-size: 1.7rem;
}

.tile-icon {
  justify-self: start;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: #0d1420;
}

.watch {
  border-color: rgba(78, 163, 255, 0.45);
}

.request {
  border-color: rgba(65, 209, 157, 0.45);
}

.notifications-panel {
  padding: 20px;
  border-radius: 8px;
}

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

.notification-list {
  display: grid;
  gap: 10px;
}

.notification-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.notification-item.is-unread {
  border-color: rgba(65, 209, 157, 0.7);
}

.notification-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

dialog {
  width: min(520px, calc(100% - 32px));
  padding: 0;
  border: 0;
  background: transparent;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

.dialog-card {
  max-width: none;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 20px, 1120px);
    padding: 10px 0;
  }

  .topbar,
  .brand-lockup,
  .hero {
    align-items: stretch;
  }

  .topbar,
  .hero {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .actions-grid {
    grid-template-columns: 1fr;
  }

  .server-art {
    display: none;
  }
}
