﻿:root {
  --bg: #f6f9ff;
  --surface: #ffffff;
  --ink: #102149;
  --muted: #5d6f97;
  --line: #dbe5ff;
  --brand: #1f5bd8;
  --brand-strong: #1848ae;
  --danger: #c7385c;
  --radius: 14px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 500px at 5% -10%, #e9f1ff, transparent),
              radial-gradient(1000px 450px at 90% 0%, #edf7ff, transparent),
              var(--bg);
}

.shell {
  width: min(1400px, calc(100% - 2rem));
  margin: 1.2rem auto;
  position: relative;
  z-index: 2;
}

.bg-glow {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  z-index: 0;
}
.bg-glow-a { width: 380px; height: 380px; left: -90px; top: -70px; background: #91b7ff; }
.bg-glow-b { width: 320px; height: 320px; right: -120px; top: 40px; background: #8fd8e4; }

.card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(22, 52, 118, 0.08);
  backdrop-filter: blur(6px);
}

.login-card {
  max-width: 420px;
  margin: 7vh auto;
  padding: 1.2rem;
}
.login-card h1 { margin: 0 0 .2rem; font-family: "Plus Jakarta Sans", Inter, sans-serif; }
.login-card p { color: var(--muted); margin: 0 0 1rem; }

.stack { display: grid; gap: .8rem; }
.allowed-email { margin: 0 0 .9rem; color: #33558f; font-size: .9rem; }
.google-btn-wrap { display: flex; justify-content: center; margin-top: .5rem; min-height: 44px; }

label {
  display: grid;
  gap: .4rem;
  font-size: .9rem;
  font-weight: 600;
  color: #334b7d;
}

input, textarea, select {
  width: 100%;
  border: 1px solid #ccd9fc;
  border-radius: 10px;
  padding: .66rem .72rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #80a5ff;
  box-shadow: 0 0 0 4px rgba(31, 91, 216, .12);
}

.app {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1rem;
}

.panel-left, .panel-right { padding: 1rem; }
.panel-left { max-height: calc(100vh - 2.6rem); overflow: auto; }
.panel-right { max-height: calc(100vh - 2.6rem); overflow: auto; }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  margin-bottom: .8rem;
}
.panel-head h2 { margin: 0; font-family: "Plus Jakarta Sans", Inter, sans-serif; }

.toolbar { display: flex; gap: .45rem; flex-wrap: wrap; }

.article-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .45rem;
}
.article-list button {
  width: 100%;
  text-align: left;
  border: 1px solid #dce6ff;
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: .65rem .7rem;
  cursor: pointer;
}
.article-list button.active {
  border-color: #7da5ff;
  background: #f0f6ff;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  margin-bottom: 1rem;
}
.span-2 { grid-column: 1 / -1; }
.checkline { display: flex; align-items: center; gap: .55rem; }
.checkline input { width: auto; }
.upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.sections-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: .8rem 0;
}

.sections { display: grid; gap: .7rem; }
.section-item {
  border: 1px solid #d9e4ff;
  background: #fbfdff;
  border-radius: 12px;
  padding: .7rem;
  display: grid;
  gap: .55rem;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: .55rem .8rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); }
.btn-soft { background: #eef4ff; color: #294a90; border-color: #d4e1ff; }
.btn-danger { background: #ffeef2; color: var(--danger); border-color: #ffd2de; }

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  padding: .7rem .9rem;
  border-radius: 10px;
  background: #102149;
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
  transition: .22s ease;
  z-index: 10;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.hidden { display: none; }

@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; }
  .panel-left, .panel-right { max-height: none; }
  .form-grid { grid-template-columns: 1fr; }
}
