/* ============ THE 88 INDEX · ADMIN ============ */
body.admin { background: var(--bg); min-height: 100vh; }

/* ---------- top bar ---------- */
.abar {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 16px 28px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.abar-brand { font-weight: 700; letter-spacing: .04em; font-size: 17px; }
.abar-tag {
  font-size: 10px; font-weight: 600; letter-spacing: .18em;
  color: var(--up);
  border: 1px solid rgba(0, 168, 102, .4);
  background: var(--up-glow);
  border-radius: 4px; padding: 3px 8px;
  margin-left: 10px; vertical-align: middle;
}
.abar-season { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--dim); letter-spacing: .1em; }
.abar-season input {
  font-family: var(--font-m); font-size: 12px;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 6px 10px; outline: none;
}
.abar-season input:focus { border-color: var(--up); }
.abar-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.abtn {
  font-size: 10.5px; font-weight: 600; letter-spacing: .12em;
  color: #ffffff; background: var(--up);
  border: 1px solid var(--up); border-radius: 6px;
  padding: 8px 14px; cursor: pointer; text-decoration: none;
  transition: all .15s;
}
.abtn:hover { filter: brightness(1.06); }
.abtn.ghost {
  color: var(--muted); background: var(--panel); border-color: var(--line);
}
.abtn.ghost:hover { color: var(--text); border-color: var(--dim); filter: none; }

/* ---------- status counts ---------- */
.astats {
  display: flex; gap: 18px; flex-wrap: wrap;
  padding: 12px 28px;
  font-size: 11px; letter-spacing: .1em; color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
}
.astats b { color: var(--text); font-weight: 600; margin-right: 5px; }

/* ---------- tabs ---------- */
.atabs {
  display: flex; gap: 4px;
  padding: 12px 28px 0;
}
.atabs button {
  font-family: var(--font-m); font-size: 11px; letter-spacing: .14em;
  color: var(--muted); background: none;
  border: none; border-bottom: 2px solid transparent;
  padding: 8px 14px; cursor: pointer;
  transition: all .15s;
}
.atabs button:hover { color: var(--text); }
.atabs button.on { color: var(--up); border-bottom-color: var(--up); font-weight: 600; }

/* ---------- projects view ---------- */
.aview { display: flex; min-height: calc(100vh - 160px); }
.aview[hidden] { display: none !important; }
.alist {
  width: 340px; flex-shrink: 0;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  max-height: calc(100vh - 160px);
  position: sticky; top: 132px;
}
.alist-tools { padding: 16px; border-bottom: 1px solid var(--line-soft); }
#aSearch {
  width: 100%;
  font-family: var(--font-m); font-size: 12.5px;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 8px 12px; outline: none;
}
#aSearch:focus { border-color: var(--up); }
.achips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.achip {
  font-family: var(--font-m); font-size: 9.5px; letter-spacing: .12em;
  color: var(--muted); background: var(--panel);
  border: 1px solid var(--line); border-radius: 99px;
  padding: 4px 10px; cursor: pointer; transition: all .15s;
}
.achip.on { color: #fff; background: var(--text); border-color: var(--text); }
.aitems { overflow-y: auto; flex: 1; }

.aitem {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  transition: background .15s;
}
.aitem:hover { background: var(--panel-2); }
.aitem.sel { background: var(--panel); box-shadow: inset 3px 0 0 var(--up); }
.aitem .d { font-family: var(--font-m); font-size: 10px; color: var(--dim); width: 26px; flex-shrink: 0; }
.aitem .n { font-size: 13.5px; font-weight: 500; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aitem .t { font-family: var(--font-m); font-size: 9.5px; color: var(--cyan); flex-shrink: 0; }
.sdot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sdot.idea { background: var(--dim); }
.sdot.planned { background: var(--amber); }
.sdot.building { background: var(--cyan); }
.sdot.launched { background: var(--up); }

/* ---------- editor ---------- */
.aeditor { flex: 1; padding: 26px 32px 60px; max-width: 780px; }
.aempty { color: var(--dim); font-size: 12px; letter-spacing: .14em; padding: 60px 0; text-align: center; }

.ae-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.ae-day { font-size: 12px; letter-spacing: .16em; color: var(--dim); }
.ae-head select { margin-left: auto; }
.saved { font-size: 10.5px; color: var(--up); letter-spacing: .1em; opacity: 0; transition: opacity .3s; }
.saved.show { opacity: 1; }

.aeditor label {
  display: block;
  font-family: var(--font-m); font-size: 9.5px; letter-spacing: .18em;
  color: var(--dim);
  margin: 16px 0 6px;
}
.aeditor input[type="text"], .aeditor input[type="url"], .aeditor textarea, .aeditor select {
  width: 100%;
  font-family: var(--font-d); font-size: 14px;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 13px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.aeditor input:focus, .aeditor textarea:focus, .aeditor select:focus {
  border-color: var(--up); box-shadow: 0 0 0 3px var(--up-glow);
}
.aeditor textarea { min-height: 90px; resize: vertical; line-height: 1.55; }
.aeditor select { width: auto; font-family: var(--font-m); font-size: 12px; }
.ae-row { display: flex; gap: 16px; }
.ae-row > div { flex: 1; }
.afeat-row { display: flex; gap: 10px; margin-bottom: 8px; }
.afeat-row input { flex: 1; }

/* ---------- posts ---------- */
.aposts { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 20px; }
.aposts-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-m); font-size: 10px; letter-spacing: .2em; color: var(--dim);
  margin-bottom: 14px;
}
.aposts-head button {
  font-family: var(--font-m); font-size: 10px; letter-spacing: .1em;
  color: var(--up); background: none;
  border: 1px solid rgba(0, 168, 102, .4); border-radius: 6px;
  padding: 5px 11px; cursor: pointer; transition: all .15s;
}
.aposts-head button:hover { background: var(--up-glow); }
.apost {
  display: grid;
  grid-template-columns: 140px 130px 1fr 120px 30px;
  gap: 8px; align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}
.apost input, .apost select {
  font-family: var(--font-m); font-size: 11.5px;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 7px 9px; outline: none; width: 100%;
}
.apost input:focus, .apost select:focus { border-color: var(--up); }
.apost .del {
  background: none; border: none; color: var(--dim);
  font-size: 14px; cursor: pointer; padding: 4px;
  transition: color .15s;
}
.apost .del:hover { color: var(--down); }
.anoposts { font-family: var(--font-m); font-size: 11px; color: var(--dim); letter-spacing: .1em; padding: 12px 0; }

/* ---------- content plan ---------- */
.aplan { flex: 1; padding: 22px 32px 60px; max-width: 1100px; }
.aplan table { width: 100%; border-collapse: collapse; min-width: 0; }
.aplan th {
  font-family: var(--font-m); font-size: 9.5px; letter-spacing: .18em;
  color: var(--dim); text-align: left;
  padding: 10px 12px; border-bottom: 1px solid var(--line);
}
.aplan td {
  padding: 10px 12px; font-size: 13px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.aplan td.mono { font-size: 11.5px; }
.aplan tr.today td { background: var(--up-glow); }
.aplan tr.past td { opacity: .45; }
.kind {
  font-family: var(--font-m); font-size: 9px; letter-spacing: .14em;
  border-radius: 4px; padding: 2px 7px; white-space: nowrap;
}
.kind.launch { color: var(--up); border: 1px solid rgba(0, 168, 102, .4); background: var(--up-glow); }
.kind.post { color: var(--cyan); border: 1px solid rgba(8, 153, 196, .35); background: rgba(8, 153, 196, .08); }
.pstatus { font-family: var(--font-m); font-size: 10px; letter-spacing: .1em; }
.pstatus.draft { color: var(--dim); }
.pstatus.scheduled { color: var(--amber); }
.pstatus.posted { color: var(--up); }
.aplan-empty { font-family: var(--font-m); font-size: 11.5px; color: var(--dim); letter-spacing: .12em; padding: 50px 0; text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .aview { flex-direction: column; }
  .alist { width: 100%; max-height: none; position: static; border-right: none; border-bottom: 1px solid var(--line); }
  .apost { grid-template-columns: 1fr 1fr; }
}
