* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #0b1220;
  color: #e7ecf5;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.title {
  font-size: 20px;
  font-weight: 700;
}

.session {
  font-size: 13px;
  color: #b7c2d9;
}

.card {
  background: #121b2e;
  border: 1px solid #223055;
  border-radius: 12px;
  padding: 16px;
}

.subcard {
  background: #0f172a;
  border: 1px solid #223055;
  border-radius: 10px;
  padding: 12px;
  margin-top: 12px;
}

h2 {
  margin: 0 0 12px 0;
  font-size: 18px;
}

h3 {
  margin: 0 0 10px 0;
  font-size: 15px;
  color: #d6def0;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #b7c2d9;
}

input,
textarea {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #223055;
  background: #0b1220;
  color: #e7ecf5;
  outline: none;
}

.row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  align-items: center;
}

button {
  background: #2563eb;
  color: white;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
  cursor: pointer;
}

button.danger {
  background: #dc2626;
}

.error {
  margin-top: 10px;
  color: #ff8a8a;
  font-size: 13px;
}

.result {
  margin-top: 10px;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  color: #c6d1ea;
}

.hidden {
  display: none;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.tab {
  background: #0b1220;
  border: 1px solid #223055;
  color: #b7c2d9;
}

.tab.active {
  background: #1f2a44;
  color: #e7ecf5;
}

.list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.listItem {
  border: 1px solid #223055;
  border-radius: 10px;
  padding: 10px;
  background: #0b1220;
  cursor: pointer;
}

.listItemTitle {
  font-size: 13px;
  font-weight: 700;
  color: #e7ecf5;
}

.listItemMeta {
  font-size: 12px;
  color: #b7c2d9;
  margin-top: 4px;
}

.cards {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.postCard {
  border: 1px solid #223055;
  border-radius: 12px;
  padding: 12px;
  background: #0b1220;
}

.postTitle {
  font-weight: 700;
  margin-bottom: 6px;
}

.postMeta {
  color: #b7c2d9;
  font-size: 12px;
  margin-bottom: 10px;
}

.postContent {
  font-size: 13px;
  color: #dbe4f7;
  white-space: pre-wrap;
}

.postActions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.postImages {
  margin: 10px 0 10px 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}

.postImages img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #223055;
  background: #121b2e;
  cursor: pointer;
}

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