* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0f1220;
  color: #f2f2f2;
}

a {
  color: inherit;
}

.auth-wrap,
.page {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 16px;
}

.topbar,
.screen-header {
  padding: 16px;
  border-bottom: 1px solid #2f3350;
  background: #151a2d;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.card {
  background: #171c30;
  border: 1px solid #2f3350;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"] {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #3e4566;
  background: #0f1220;
  color: #f2f2f2;
}

.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

button,
.btn {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  background: #2a7dff;
  color: white;
}

.btn.secondary {
  background: #394166;
}

.social-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.error {
  color: #ff8f8f;
  font-weight: 700;
}

.feed,
.screen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.post {
  background: #0f1220;
  border: 1px solid #2f3350;
  border-radius: 10px;
  overflow: hidden;
}

.post img,
.post video {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  display: block;
  background: black;
}

.meta {
  padding: 10px;
}

.screen-body {
  background: #080a13;
}

.screen-layout {
  padding: 16px;
  display: grid;
  gap: 16px;
}

.two-panel {
  grid-template-columns: minmax(300px, 1fr) minmax(500px, 2fr);
  align-items: start;
}

.screen-window {
  margin: 0;
}

.screen-recent {
  margin: 0;
}

.viewer-media {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #05070e;
  border-radius: 10px;
  overflow: hidden;
}

.viewer-media img,
.viewer-media video {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  background: black;
}

.viewer-meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.screen-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-height: 76vh;
  overflow-y: auto;
  padding-right: 6px;
}

.screen-recent .post img,
.screen-recent .post video {
  max-height: 180px;
}

.screen-strip .post.active {
  border-color: #2a7dff;
  box-shadow: 0 0 0 2px rgba(42, 125, 255, 0.4);
}

.camera-preview {
  width: 100%;
  max-width: 460px;
  border-radius: 10px;
  border: 1px solid #3e4566;
  background: black;
}

@media (max-width: 980px) {
  .two-panel {
    grid-template-columns: 1fr;
  }

  .screen-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 42vh;
  }
}
