[hidden] { display: none !important; }

.topics-main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 76px;
  flex: 1;
}

.topics-back {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--dash-gold-light);
  font-size: 15px;
  text-decoration: none;
}

.topics-back:hover { color: #fff; }

.topics-heading { margin-bottom: 34px; }
.topics-heading .eyebrow { margin-bottom: 14px; }
.topics-heading h1 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(42px, 5vw, 60px);
  font-weight: 400;
  line-height: 1.05;
}
.topics-heading > p:last-child {
  margin: 0;
  color: var(--dash-muted);
  font-size: 18px;
  line-height: 1.55;
}

.topics-status,
.empty-topics {
  padding: 28px;
  color: var(--dash-muted);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: rgba(1,17,37,.64);
}

.topics-status.error {
  color: #ffd0d0;
  border-color: rgba(220,80,80,.45);
}

.topics-list {
  display: grid;
  gap: 18px;
}

.empty-topics strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 20px;
}

.empty-topics div {
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.55;
}

.empty-topics a {
  color: var(--dash-gold-light);
  text-decoration: none;
}

.empty-topics a:hover { color: #fff; }

@media (max-width: 560px) {
  .topics-main {
    width: min(100% - 28px, 1180px);
    padding-top: 34px;
  }
  .topics-heading h1 { font-size: 42px; }
}

.topic-card{padding:22px 24px;border:1px solid rgba(231,169,51,.42);border-radius:14px;background:rgba(10,42,77,.86);box-shadow:0 10px 28px rgba(0,0,0,.12)}
.topic-card-title{font-size:20px;font-weight:700;color:#fff;line-height:1.35;margin-bottom:10px}
.topic-card-meta{font-size:14px;color:#ffd56f;line-height:1.45}
.topic-card{cursor:pointer;transition:transform .16s ease,border-color .16s ease,background .16s ease}
.topic-card:hover,.topic-card:focus-visible{transform:translateY(-1px);border-color:#ffd56f;background:rgba(13,52,92,.94);outline:none}
.topic-detail-meta{color:#ffd56f;font-size:15px}.topic-current{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:24px;border:1px solid rgba(231,169,51,.48);border-radius:16px;background:rgba(10,42,77,.86);margin-bottom:34px}.topic-current h2,.topic-history h2{margin:4px 0 8px;color:#fff}.topic-current p{margin:0;color:var(--dash-muted);line-height:1.55}.topic-continue{min-width:210px;padding:16px 22px;border:1px solid #e7a933;border-radius:12px;background:#123b68;color:#ffd56f;font-weight:700;opacity:.55}.topic-history>h2{margin-bottom:16px}.topic-step{border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(5,28,55,.88);margin-bottom:14px;overflow:hidden}.topic-step-head{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 20px;cursor:pointer}.topic-step-head>div{display:flex;flex-direction:column;gap:5px}.topic-step-date{color:#ffd56f;font-size:13px}.topic-step-head strong{color:#fff;font-size:18px}.topic-step-toggle{color:#ffd56f;font-size:14px}.topic-step-body{padding:0 20px 22px;border-top:1px solid rgba(255,255,255,.09)}.topic-step-input{white-space:pre-wrap;font:inherit;color:#b9c6d8;background:rgba(255,255,255,.035);padding:16px;border-radius:10px;margin:18px 0}.topic-step-response{white-space:pre-wrap;color:#fff;line-height:1.65}@media(max-width:700px){.topic-current{align-items:stretch;flex-direction:column}.topic-continue{width:100%}.topic-step-head{align-items:flex-start}}
.topic-continue{opacity:1;cursor:pointer}.topic-continue:disabled{opacity:.45;cursor:not-allowed}.topic-modal{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;padding:24px;background:rgba(0,8,20,.78);backdrop-filter:blur(2px)}.topic-modal-card{width:min(620px,100%);padding:28px;border:1px solid #ffd56f;border-radius:16px;background:#071f3b;box-shadow:0 24px 70px rgba(0,0,0,.5)}.topic-modal-card h2{margin:0 0 10px;color:#fff}.topic-modal-card>p{color:#c8d2df;line-height:1.5}.topic-modal-card textarea{box-sizing:border-box;width:100%;resize:vertical;min-height:150px;padding:15px;border:1px solid rgba(255,213,111,.55);border-radius:11px;background:#0b2c50;color:#fff;font:inherit;line-height:1.5;outline:none}.topic-modal-card textarea:focus{border-color:#ffd56f}.topic-modal-note{font-size:14px;color:#ffd56f!important}.topic-modal-error{margin-top:12px;color:#ffd0d0}.topic-modal-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}.topic-modal-actions button{padding:13px 18px;border-radius:10px;font-weight:700;cursor:pointer}.topic-modal-cancel{border:1px solid #3b648d;background:#123b68;color:#fff}.topic-modal-submit{border:1px solid #ffd56f;background:#ffd56f;color:#07182d}.topic-modal-actions button:disabled{opacity:.55;cursor:wait}@media(max-width:560px){.topic-modal-actions{flex-direction:column-reverse}.topic-modal-actions button{width:100%}}

.topic-delete-row{display:flex;justify-content:flex-start;margin:-16px 0 30px}
.topic-delete-button{padding:12px 18px;border:1px solid rgba(200,93,93,.75);border-radius:10px;background:rgba(74,24,36,.28);color:#f0a7a7;font-weight:700;cursor:pointer;transition:background .16s ease,border-color .16s ease,color .16s ease}
.topic-delete-button:hover,.topic-delete-button:focus-visible{background:rgba(139,47,47,.42);border-color:#d66c6c;color:#ffd0d0;outline:none}
.topic-delete-modal-card{border-color:rgba(224,103,103,.72)}
.topic-delete-submit{border:1px solid #c85d5d;background:#8b2f2f;color:#fff}
.topic-delete-submit:hover{background:#a43838}

/* 046H – sichtbares Arbeitsfeedback bei Themen-Fortsetzung */
.topic-working{margin:18px 0 4px;padding:18px;border:1px solid rgba(255,213,111,.55);border-radius:12px;background:rgba(18,59,104,.62);text-align:center}
.topic-working[hidden]{display:none!important}.topic-working strong{display:block;margin-top:9px;color:#ffd56f;font-size:16px}.topic-working p{margin:5px 0 0;color:#c8d2df;font-size:14px}
.topic-working-dots{display:flex;justify-content:center;align-items:center;gap:7px;height:18px}.topic-working-dots span{width:8px;height:8px;border-radius:50%;background:#ffd56f;animation:topicWorkingPulse 1.05s infinite ease-in-out}.topic-working-dots span:nth-child(2){animation-delay:.14s}.topic-working-dots span:nth-child(3){animation-delay:.28s}@keyframes topicWorkingPulse{0%,70%,100%{transform:scale(.7);opacity:.38}35%{transform:scale(1.15);opacity:1}}
.topic-modal-card textarea:disabled{opacity:.6;cursor:wait}

/* 047A – Fortsetzung: 600 Zeichen + Spracheingabe */
.topic-continuation-input-head,.topic-continuation-below{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0}
.topic-continuation-limit,.topic-char-count,.topic-speech-status{font-size:13px;color:#aebed0}
.topic-char-count{margin-left:auto;white-space:nowrap}
.topic-speech-controls{display:flex;align-items:center;gap:9px}
.topic-speech-timer{min-width:46px;text-align:right;color:#ffd56f;font-size:14px;font-weight:700}
.topic-speech-button{width:40px;height:40px;display:grid;place-items:center;padding:0;border:1px solid rgba(231,169,51,.7);border-radius:11px;color:#02152d;background:linear-gradient(90deg,#e7a933,#ffd56f);cursor:pointer}
.topic-speech-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.topic-speech-button.recording{background:#a93434;color:#fff}
.topic-speech-button:disabled{opacity:.55;cursor:not-allowed}
.topic-speech-status{line-height:1.35}
@media(max-width:600px){.topic-continuation-input-head{align-items:flex-end}.topic-continuation-below{align-items:flex-start}.topic-speech-status{max-width:75%}}
/* 047C – copy action inside topic timeline */
.topic-copy-button{margin-top:16px;padding:10px 15px;border:1px solid rgba(231,169,51,.78);border-radius:9px;background:#123b68;color:#ffd56f;font:inherit;font-size:14px;font-weight:700;cursor:pointer;transition:background .18s ease,border-color .18s ease,transform .18s ease}
.topic-copy-button:hover{background:#174a80;border-color:#ffd56f}
.topic-copy-button:active{transform:translateY(1px)}
.topic-copy-button.is-copied{border-color:#ffd56f}

