:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --line: #dce5f0;
  --text: #17202a;
  --muted: #607080;
  --primary: #1677ff;
  --danger: #db3434;
  --shadow: 0 8px 24px rgba(13, 31, 54, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Noto Sans JP", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 20% -20%, #e6f0ff 0%, transparent 65%),
    radial-gradient(900px 600px at 110% 120%, #dff8ff 0%, transparent 60%),
    var(--bg);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(244, 247, 251, 0.85);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
}

.brand h1 {
  margin: 0;
  font-size: 1.15rem;
}

.brand p {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
  gap: 1rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.composer {
  padding: 0.8rem;
  display: grid;
  gap: 0.6rem;
}

textarea,
input,
select,
button {
  font: inherit;
}

textarea,
input[type="text"],
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 92px;
}

input[type="file"] {
  font-size: 0.82rem;
}

.composer-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  background: #fff;
  color: var(--text);
  font-weight: 600;
}

.btn:hover {
  filter: brightness(0.98);
}

.btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn.ghost {
  background: #f7faff;
}

.btn.danger {
  background: #fff2f2;
  border-color: #ffc6c6;
  color: var(--danger);
}

.toggle {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.84rem;
}

.toggle.mini {
  margin-left: auto;
}

.feed-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.8rem;
}

.feed-item {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 0.7rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.feed-item:hover {
  border-color: #b8d3ff;
}

.feed-item.active {
  border-color: #8fc3ff;
  background: #f4f9ff;
}

.feed-title {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.35;
}

.feed-meta {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.detail-column {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.detail-head {
  padding: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.detail-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.detail-body {
  padding: 0.8rem;
}

.thread-title {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.thread-sub {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.post-list {
  display: grid;
  gap: 0.6rem;
}

.post {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.65rem;
  background: #fff;
}

.post-meta {
  color: var(--muted);
  font-size: 0.76rem;
  margin-bottom: 0.3rem;
}

.post-body {
  margin: 0 0 0.35rem;
  white-space: pre-wrap;
  line-height: 1.4;
}

.media-wrap {
  margin: 0.35rem 0;
}

.media-wrap img,
.media-wrap video {
  width: min(100%, 540px);
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #000;
}

.post-actions {
  margin-top: 0.4rem;
}

.muted,
.empty {
  color: var(--muted);
}

.report-actions {
  display: flex;
  gap: 0.45rem;
}

.turnstile-slot {
  min-height: 66px;
}

.hidden {
  display: none;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 247, 251, 0.88);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
}

.layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

.panel {
  display: grid;
  gap: 0.75rem;
}
