:root {
  --sunset-1: #ff7a18;
  --sunset-2: #ffae3d;
  --sunset-3: #ffc371;
  --sunset-4: #ff7aa2;
  --sunset-5: #7a4cff;
  --sunset-6: #0a0033;
  --ink: #0b0b1a;
  --panel: #0f1025d0;
  --accent: #ffd867;
  --glow: #ffe9b8;
  --on-air: #e10600;
  --text: #fff;
  --text-dim: #ffe9b8b0;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--ink);
  color: var(--text);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: var(--glow); }

/* === landing === */
.scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
  touch-action: none;
  background: linear-gradient(180deg, #2a0a4a 0%, #6b1d5e 35%, #d97032 70%, #ffd867 100%);
}

.brand {
  position: fixed;
  top: 18px;
  left: 22px;
  z-index: 5;
  pointer-events: none;
}
.brand h1 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: .04em;
  background: linear-gradient(90deg, var(--accent), var(--sunset-1) 40%, var(--sunset-4) 70%, var(--sunset-5));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand .tag {
  margin: 0;
  font-size: .85rem;
  color: var(--text-dim);
  font-style: italic;
}

.nav {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 5;
  display: flex;
  gap: 12px;
}
.nav a {
  background: var(--panel);
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--accent);
  border: 1px solid #ffd86730;
  backdrop-filter: blur(6px);
  font-size: .9rem;
}
.nav a:hover { background: #1a1a3a; }

.lore-card {
  position: fixed;
  bottom: 18px;
  left: 22px;
  max-width: 360px;
  background: var(--panel);
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid #ffd86720;
  backdrop-filter: blur(8px);
  z-index: 5;
  font-size: .88rem;
  line-height: 1.45;
}
.lore-card p { margin: 0 0 6px; }
.lore-card .sig { color: var(--accent); font-style: italic; }

/* === suggest page === */
.suggest-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 0;
  height: 100vh;
  width: 100%;
}
@media (max-width: 900px) {
  .suggest-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 50vh 1fr;
    height: auto;
    min-height: 100vh;
  }
}

.suggest-canvas {
  position: relative;
  background: linear-gradient(180deg, #2a0a4a 0%, #6b1d5e 35%, #d97032 70%, #ffd867 100%);
}
.suggest-canvas canvas {
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
  touch-action: none;
}
.canvas-hint {
  position: absolute;
  top: 64px;
  left: 14px;
  max-width: 320px;
  background: var(--panel);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: .8rem;
  color: var(--text-dim);
  border: 1px solid #ffd86720;
  pointer-events: none;
}

.suggest-panel {
  background: var(--ink);
  border-left: 1px solid #ffd86715;
  padding: 22px 22px 60px;
  overflow-y: auto;
  max-height: 100vh;
}
.suggest-panel .back {
  font-size: .85rem;
  color: var(--text-dim);
  text-decoration: none;
}
.suggest-panel h1 {
  margin: 8px 0 18px;
  font-size: 1.3rem;
  background: linear-gradient(90deg, var(--accent), var(--sunset-1) 50%, var(--sunset-4));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #1a1a3a;
  border: 1px solid var(--sunset-2);
  font-size: .9rem;
  color: var(--glow);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.mode-pill .object-name { color: var(--accent); font-weight: 600; }
.mode-pill .clear {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: .9rem;
  padding: 0 4px;
}
.mode-pill .clear:hover { color: var(--sunset-4); }
.mode-pill .remove-pick {
  background: transparent;
  border: 1px solid var(--sunset-4);
  color: var(--sunset-4);
  cursor: pointer;
  font-size: .78rem;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: inherit;
  margin-left: 6px;
}
.mode-pill .remove-pick:hover { background: var(--sunset-4); color: var(--ink); }
.mode-pill .remove-pick:disabled { opacity: .4; cursor: wait; }

form.suggest-form { display: flex; flex-direction: column; gap: 12px; }
.suggest-form label {
  font-size: .8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.suggest-form input[type="text"],
.suggest-form textarea {
  background: #15152e;
  color: var(--text);
  border: 1px solid #ffd86725;
  border-radius: 6px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: .95rem;
  width: 100%;
  resize: vertical;
}
.suggest-form input[type="text"]:focus,
.suggest-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.suggest-form .hint {
  font-size: .78rem;
  color: var(--text-dim);
  font-style: italic;
  margin: -6px 0 0;
}

.upload-details {
  margin-top: 4px;
  background: #15152e80;
  border: 1px solid #ffd86715;
  border-radius: 8px;
  padding: 10px 14px;
}
.upload-details summary {
  cursor: pointer;
  font-size: .88rem;
  color: var(--sunset-2);
  list-style: none;
}
.upload-details summary::-webkit-details-marker { display: none; }
.upload-details summary::before { content: "▸ "; transition: transform .2s; display: inline-block; }
.upload-details[open] summary::before { content: "▾ "; }
.upload-details .upload-body {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.upload-details a.editor-link {
  display: inline-block;
  background: linear-gradient(90deg, var(--sunset-1), var(--sunset-4));
  color: var(--ink);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  width: fit-content;
}

.suggest-form button.submit {
  margin-top: 10px;
  background: linear-gradient(90deg, var(--sunset-1), var(--sunset-2));
  border: none;
  color: var(--ink);
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  letter-spacing: .04em;
}
.suggest-form button.submit:hover { filter: brightness(1.1); }
.suggest-form button.submit:disabled { opacity: .5; cursor: wait; }

.status-msg {
  font-size: .85rem;
  min-height: 1.2em;
}
.status-msg.ok { color: #36ff5d; }
.status-msg.err { color: var(--sunset-4); }

.feed { margin-top: 28px; border-top: 1px solid #ffd86715; padding-top: 18px; }
.feed h2 {
  font-size: .9rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 12px;
}
.feed-card {
  background: #15152e;
  border: 1px solid #ffd86712;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: .88rem;
}
.feed-card .meta {
  font-size: .72rem;
  color: var(--text-dim);
  margin-bottom: 4px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.feed-card .pills { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; align-items: center; }
.pill {
  font-size: .72rem;
  background: #1f1f4a;
  color: var(--accent);
  border: 1px solid #ffd86730;
  padding: 2px 8px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.pill:hover { background: #2a2a55; }
.pill.attachment { color: var(--sunset-3); }
.pill.edit-btn, .pill.delete-btn {
  background: transparent;
  border-color: #ffffff15;
  color: var(--text-dim);
  margin-left: auto;
}
.pill.edit-btn:hover { color: var(--accent); border-color: var(--accent); background: #1f1f4a; }
.pill.delete-btn:hover { color: var(--sunset-4); border-color: var(--sunset-4); background: #2a1a30; }
.pill.delete-btn { margin-left: 0; }

/* Status pill (left of timestamp) */
.status-pill {
  font-size: .68rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.status-pill.pending     { color: #c8c8d8; border-color: #c8c8d850; background: #2a2a4a; }
.status-pill.in-progress { color: #ffd867; border-color: #ffd86770; background: #3a2e10; }
.status-pill.implemented { color: #36ff8a; border-color: #36ff8a70; background: #0e2a1a; }
.status-pill.declined    { color: #ff7aa2; border-color: #ff7aa270; background: #2a1020; }
.status-pill.on-hold     { color: #ffc371; border-color: #ffc37170; background: #2a1a08; }

/* Card border tint per status */
.feed-card.status-implemented { border-left: 3px solid #36ff8a; }
.feed-card.status-pending     { border-left: 3px solid #c8c8d840; }
.feed-card.status-in-progress { border-left: 3px solid #ffd86770; }
.feed-card.status-declined    { border-left: 3px solid #ff7aa270; }

/* === Epoch chip === */
.epoch-chip {
  font-family: ui-monospace, "JetBrains Mono", "SF Mono", monospace;
  font-size: .65rem;
  letter-spacing: .04em;
  padding: 1px 7px;
  border-radius: 999px;
  background: #1a1a3a;
  color: var(--accent);
  border: 1px solid #ffd86730;
}
.epoch-chip.implemented { color: #36ff8a; border-color: #36ff8a40; background: #0e2a1a; }
.epoch-chip.subtle { background: transparent; border-color: #ffd86720; padding: 0 5px; font-size: .62rem; }

/* === Epoch strip (top of panel) === */
.epoch-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 6px;
  padding: 6px 10px;
  background: linear-gradient(90deg, #1a0c2a, #0f1025);
  border: 1px solid #ffd86720;
  border-radius: 6px;
  font-size: .75rem;
  color: var(--text-dim);
}
.epoch-strip .epoch-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  flex: 0 0 auto;
}
.epoch-strip .epoch-label { color: var(--glow); }
.epoch-strip .epoch-label strong {
  color: var(--accent);
  font-family: ui-monospace, "JetBrains Mono", "SF Mono", monospace;
}
.epoch-strip .epoch-note { font-style: italic; opacity: .8; }

/* === Reaction strip === */
.reaction-strip {
  display: flex;
  gap: 4px;
  margin: 6px 0 0;
  flex-wrap: wrap;
}
.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid #ffd86715;
  color: var(--text-dim);
  font-size: .82rem;
  cursor: pointer;
  font-family: inherit;
  transition: background .12s, border-color .12s;
}
.reaction-btn:hover { background: #1a1a3a; border-color: #ffd86730; }
.reaction-btn .reaction-count {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: .68rem;
  color: var(--text-dim);
}
.reaction-btn.mine {
  background: #2a1a40;
  border-color: var(--accent);
}
.reaction-btn.mine .reaction-count { color: var(--accent); }

/* === Comment thread === */
.comment-thread {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #ffd86715;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.comment-thread.nested {
  border-top: none;
  margin-top: 6px;
  padding-top: 0;
  padding-left: 10px;
  border-left: 1px solid #ffd86715;
}
.comment-card {
  background: #0e0e22;
  border: 1px solid #ffd8670f;
  border-radius: 6px;
  padding: 7px 9px;
  font-size: .85rem;
  position: relative;
}
.comment-card[data-depth="0"] { margin-left: 0; }
.comment-card[data-depth="1"] { margin-left: 8px; }
.comment-card[data-depth="2"] { margin-left: 14px; }
.comment-card[data-depth="3"] { margin-left: 20px; }
.comment-card[data-depth="4"] { margin-left: 24px; }
.comment-card[data-depth="5"] { margin-left: 28px; }

.comment-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  font-size: .7rem;
  color: var(--text-dim);
  margin-bottom: 3px;
}
.comment-meta .comment-author { color: var(--glow); font-weight: 600; }
.comment-body {
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 2px 0;
}
.comment-response {
  margin-top: 4px;
  padding: 4px 8px;
  font-size: .78rem;
}
.comment-actions {
  display: flex;
  gap: 4px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.comment-actions .pill { font-size: .67rem; padding: 1px 7px; }

/* Comment status pill */
.comment-status-pill {
  font-size: .62rem;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.comment-status-pill.acknowledged { color: #ffd867; border-color: #ffd86760; background: #2a2310; }
.comment-status-pill.addressed    { color: #36ff8a; border-color: #36ff8a60; background: #0e2a1a; }
.comment-status-pill.dismissed    { color: #999; border-color: #ffffff30; background: #15152e; }

/* Comment composer */
.comment-composer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  padding: 8px;
  background: #0a0a1e;
  border: 1px solid var(--accent);
  border-radius: 6px;
}
.comment-composer input.composer-name,
.comment-composer textarea.composer-text {
  background: #15152e;
  color: var(--text);
  border: 1px solid #ffd86725;
  border-radius: 4px;
  padding: 6px 8px;
  font-family: inherit;
  font-size: .85rem;
  width: 100%;
}
.comment-composer textarea.composer-text { resize: vertical; }
.comment-composer .composer-actions { display: flex; gap: 6px; }
.comment-composer .pill.send {
  background: linear-gradient(90deg, var(--sunset-1), var(--sunset-2));
  color: var(--ink);
  border: none;
  font-weight: 600;
}
.comment-composer .pill.send:hover { filter: brightness(1.1); }
.comment-composer .pill.cancel { color: var(--text-dim); }

/* Disabled / on-hold cards — dim and de-emphasize without hiding */
.feed-card.disabled {
  opacity: .55;
  filter: grayscale(.35);
}
.feed-card.disabled .body { text-decoration: line-through; text-decoration-color: #ffffff30; }
.feed-card.disabled .response { opacity: .7; }

/* Enable/on-hold toggle pill */
.pill.enable-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border-color: #ffffff15;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
}
.pill.enable-toggle:hover { color: var(--accent); border-color: var(--accent); }
.pill.enable-toggle input { accent-color: var(--accent); margin: 0; }
.feed-card.disabled .pill.enable-toggle .enable-label { color: var(--sunset-3); }

/* Tommy's response line */
.feed-card .response {
  margin-top: 6px;
  padding: 6px 10px;
  background: #0a1a2050;
  border-left: 2px solid var(--sunset-2);
  font-size: .82rem;
  color: var(--glow);
  font-style: italic;
  border-radius: 0 4px 4px 0;
}
.feed-card .response strong { color: var(--accent); font-style: normal; }

/* Inline edit block */
.edit-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0;
}
.edit-block input.edit-name,
.edit-block textarea.edit-text {
  background: #0a0a1e;
  color: var(--text);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 6px 8px;
  font-family: inherit;
  font-size: .88rem;
  width: 100%;
}
.edit-block textarea.edit-text { resize: vertical; }
.edit-block .edit-actions { display: flex; gap: 6px; }
.edit-block .save-edit { color: var(--accent); border-color: var(--accent); }
.edit-block .save-edit:hover { background: var(--accent); color: var(--ink); }
.edit-target-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--text-dim);
  padding: 4px 0;
}
.edit-target-label.will-clear {
  text-decoration: line-through;
  opacity: 0.6;
}
.edit-block .clear-target-btn { font-size: .75rem; padding: 2px 8px; }

/* Tracker bar */
.tracker { margin-bottom: 6px; }
.tracker-bar {
  width: 100%;
  height: 8px;
  background: #1a1a3a;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}
.tracker-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sunset-1), var(--accent), #36ff8a);
  transition: width .4s ease;
}
.tracker-text {
  font-size: .78rem;
  color: var(--text-dim);
}
.tracker-text strong { color: #36ff8a; }

/* Controls hint pill — bottom-center fade-out hint about WASD/V toggle. */
.controls-hint {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 16, 37, 0.78);
  color: var(--text-dim);
  border: 1px solid rgba(255, 232, 184, 0.18);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: .78rem;
  letter-spacing: .02em;
  pointer-events: none;
  user-select: none;
  z-index: 10;
}
.controls-hint .hint-key {
  display: inline-block;
  padding: 1px 6px;
  background: #1a1a3a;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 4px;
  font-family: ui-monospace, Menlo, monospace;
  margin: 0 3px;
}

/* Editor toolbar — Select / Move / Rotate / Scale / Goto, with kbd chips.
   Lives ABOVE the canvas (positioned by the .suggest-canvas parent) with
   pointer-events: auto so the buttons actually catch clicks. The old
   .edit-toolbar lived inside .canvas-hint which inherits pointer-events:none
   from its ancestor — that's why every click was being swallowed. */
.editor-bar {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 4px;
  background: rgba(15, 16, 37, 0.85);
  border: 1px solid rgba(255, 232, 184, 0.22);
  border-radius: 10px;
  padding: 5px;
  pointer-events: auto;
  z-index: 5;
  user-select: none;
  backdrop-filter: blur(6px);
}
.editor-bar button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 6px 12px 6px 10px;
  cursor: pointer;
  font-size: .85rem;
  font-family: inherit;
  line-height: 1;
}
.editor-bar button .t-icon { font-size: 1rem; line-height: 1; }
.editor-bar button .t-label { letter-spacing: .01em; }
.editor-bar button kbd {
  display: inline-block;
  background: #1a1a3a;
  border: 1px solid rgba(255, 216, 103, 0.35);
  color: var(--accent);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: .68rem;
  margin-left: 4px;
}
.editor-bar button.active {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 216, 103, 0.4) inset,
              0 2px 12px rgba(255, 122, 24, 0.35);
}
.editor-bar button.active kbd {
  background: rgba(11, 11, 26, 0.18);
  color: var(--ink);
  border-color: rgba(11, 11, 26, 0.25);
}
.editor-bar button:hover:not(.active):not(:disabled) {
  background: rgba(255, 216, 103, 0.09);
  color: var(--accent);
}
.editor-bar button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.editor-bar .editor-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(255, 232, 184, 0.18);
  margin: 4px 4px;
}
@media (max-width: 720px) {
  .editor-bar button .t-label,
  .editor-bar button kbd { display: none; }
  .editor-bar button { padding: 6px 8px; }
}

/* Editor status toast — bottom-center, fades in for ~2.5s on transform
   actions. Sticky on errors until clicked / retried. */
.editor-status {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(8px);
  background: rgba(15, 16, 37, 0.92);
  color: var(--text);
  border: 1px solid rgba(255, 232, 184, 0.22);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: .82rem;
  font-family: ui-monospace, Menlo, monospace;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 6;
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.editor-status.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.editor-status.pending { border-color: rgba(255, 216, 103, 0.45); color: var(--accent); }
.editor-status.ok      { border-color: rgba(54, 255, 138, 0.45); color: #36ff8a; }
.editor-status.err     { border-color: rgba(225, 6, 0, 0.5);    color: #ff7c7c; }
.editor-status button.retry {
  margin-left: 10px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 2px 10px;
  font-family: inherit;
  font-size: .78rem;
  cursor: pointer;
}
.editor-status button.retry:hover { background: var(--accent); color: var(--ink); }

/* Live-emit presence pill — top-right corner shows ws connection state. */
.live-pill {
  position: fixed;
  top: 16px;
  right: 16px;
  background: rgba(15, 16, 37, 0.78);
  color: #36ff8a;
  border: 1px solid rgba(54, 255, 138, 0.4);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: .75rem;
  letter-spacing: .03em;
  font-family: ui-monospace, Menlo, monospace;
  z-index: 10;
  pointer-events: none;
}
.live-pill.stale { color: var(--text-dim); border-color: rgba(255,232,184,0.2); }

/* Feed filter pills — sit above the notes list, click to toggle which
   statuses are visible. */
.feed-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.feed-filter button {
  background: rgba(15, 16, 37, 0.6);
  color: var(--text-dim);
  border: 1px solid rgba(255, 232, 184, 0.2);
  border-radius: 999px;
  padding: 4px 11px;
  cursor: pointer;
  font-size: .76rem;
  font-family: inherit;
}
.feed-filter button:hover:not(.active) {
  background: rgba(255, 216, 103, 0.08);
  color: var(--accent);
}
.feed-filter button.active {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}

/* === suggestion card redesign (epoch 10) ============================
   Replaces the old crowded meta-row + 6-pill action row with a Linear /
   GitHub-style compact layout:
   - Header line: status dot + author + timestamp + (on-hold tag) + epoch tag
   - Body: prominent
   - Tommy response: left-accent border, indented
   - Action row: target / comment visible; edit/delete/enable behind ⋯
==================================================================== */
.feed-card {
  background: #15152e;
  border: 1px solid rgba(255, 216, 103, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  font-size: .88rem;
  position: relative;
  transition: border-color .15s ease, background .15s ease;
}
.feed-card:hover { border-color: rgba(255, 216, 103, 0.18); }

/* Status-tinted left edge — a thin colored stripe instead of a full pill. */
.feed-card.status-pending     { border-left: 3px solid #ffae3d; }
.feed-card.status-in-progress { border-left: 3px solid #ff7a18; }
.feed-card.status-implemented { border-left: 3px solid #36ff8a; }
.feed-card.status-declined    { border-left: 3px solid #e10600; }
.feed-card.disabled           { opacity: .6; border-left-color: #6a6a8a; }

/* Header — single line: status dot · author · ts · (on-hold) · epoch chip */
.feed-card .card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.feed-card .status-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: .82rem;
  line-height: 1;
  flex-shrink: 0;
}
.feed-card .status-dot.pending     { background: rgba(255,174,61,0.18); }
.feed-card .status-dot.in-progress { background: rgba(255,122,24,0.22); }
.feed-card .status-dot.implemented { background: rgba(54,255,138,0.22); }
.feed-card .status-dot.declined    { background: rgba(225,6,0,0.22); }
.feed-card .author {
  color: var(--accent);
  font-weight: 600;
  font-size: .82rem;
}
.feed-card .ts {
  flex: 1;
}
.feed-card .on-hold-tag {
  background: #2a1a3a;
  color: #ffd867a0;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: .68rem;
  border: 1px solid rgba(255, 216, 103, 0.25);
}
.feed-card .epoch-tag {
  background: rgba(255, 216, 103, 0.08);
  color: var(--text-dim);
  padding: 2px 8px;
  border-radius: 999px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: .68rem;
}
.feed-card .epoch-tag.subtle {
  background: transparent;
  border: 1px dashed rgba(255, 216, 103, 0.18);
}

/* Body — bigger and more readable than before */
.feed-card .body {
  font-size: .95rem;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--text);
  word-wrap: break-word;
}

/* Tommy's response — left-accent panel (Linear card pattern) */
.feed-card .response {
  border-left: 3px solid var(--accent);
  background: rgba(255, 216, 103, 0.05);
  padding: 8px 12px;
  margin: 8px 0;
  border-radius: 0 6px 6px 0;
}
.feed-card .response-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.feed-card .response-from {
  color: var(--accent);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .02em;
}
.feed-card .response-body {
  font-size: .88rem;
  line-height: 1.4;
  color: var(--glow);
  white-space: pre-wrap;
}

/* Action row — primary buttons left, overflow ⋯ right */
.feed-card .actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.feed-card .actions-spacer { flex: 1 1 0; }

/* Overflow menu */
.feed-card .overflow { position: relative; }
.feed-card .overflow-trigger {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  cursor: pointer;
  padding: 2px 8px;
  font-size: 1.05rem;
  line-height: 1;
  border-radius: 6px;
  font-family: inherit;
}
.feed-card .overflow-trigger:hover {
  background: rgba(255, 216, 103, 0.08);
  color: var(--accent);
}
.feed-card .overflow-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: rgba(15, 16, 37, 0.98);
  border: 1px solid rgba(255, 216, 103, 0.2);
  border-radius: 6px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 160px;
  z-index: 10;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}
.feed-card .overflow-menu[hidden] { display: none; }
.feed-card .omenu-item {
  background: transparent;
  color: var(--text);
  border: none;
  text-align: left;
  padding: 6px 10px;
  font-size: .82rem;
  font-family: inherit;
  cursor: pointer;
  border-radius: 4px;
  white-space: nowrap;
}
.feed-card .omenu-item:hover { background: rgba(255, 216, 103, 0.1); color: var(--accent); }
.feed-card .omenu-item.delete { color: #ff7c7c; }
.feed-card .omenu-item.delete:hover { background: rgba(225,6,0,0.18); }

/* ============================================================
 * Login modal — shared-password gate (epoch 14)
 * Bottom-of-stylesheet so it overrides anything inherited from
 * the suggest panel. `body.login-locked` blocks page scrolling
 * while the modal is up.
 * ============================================================ */
body.login-locked { overflow: hidden; }

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 4, 22, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 16px;
}
.login-modal[hidden] { display: none; }

.login-card {
  background: var(--panel);
  border: 1px solid #ffd86740;
  border-radius: 14px;
  padding: 24px 26px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  color: var(--text);
}
.login-card h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  background: linear-gradient(90deg, var(--accent), var(--sunset-1) 60%, var(--sunset-4));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.login-blurb {
  color: var(--text-dim);
  font-size: .88rem;
  line-height: 1.45;
  margin: 0 0 16px;
}
.login-form { display: flex; flex-direction: column; gap: 10px; }
.login-form label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-dim);
}
.login-form input[type="text"],
.login-form input[type="password"] {
  background: #07071a;
  color: var(--text);
  border: 1px solid #ffd86730;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: .95rem;
  font-family: inherit;
  outline: none;
  transition: border-color .15s ease;
}
.login-form input:focus { border-color: var(--accent); }
.login-submit {
  margin-top: 6px;
  background: linear-gradient(90deg, var(--sunset-1), var(--sunset-4));
  border: none;
  color: var(--ink);
  font-weight: 600;
  font-family: inherit;
  font-size: .95rem;
  padding: 11px 16px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: .03em;
}
.login-submit:hover { filter: brightness(1.08); }
.login-status {
  min-height: 18px;
  font-size: .82rem;
  margin-top: 4px;
}
.login-status.pending { color: var(--accent); }
.login-status.err     { color: #ff7c7c; }
.login-status.ok      { color: #36ff8a; }

.hint-inline {
  font-size: .72rem;
  font-weight: 400;
  color: var(--text-dim);
  text-transform: none;
  letter-spacing: 0;
  margin-left: 6px;
  font-style: italic;
}

/* Name input is now session-prefilled + readonly — soften the disabled look
 * so it doesn't read as "broken". */
.suggest-form input#name[readonly] {
  opacity: .85;
  cursor: default;
}
.suggest-form input#name[readonly]:focus { outline: none; }
