/* James-Produktoberfläche: gemeinsame Ergänzung zu p7.css. Keine Inline-Stile, keine externen Quellen. */
html { overflow-wrap: anywhere; }
body, main, nav { min-width: 0; }
img, textarea, input, select { max-width: 100%; }
.shell-nav { border-bottom: 1px solid var(--line); background: var(--card); max-width: none; margin: 0; padding: .5rem 1rem; }
.shell-nav .shell-who { margin: 0; flex: 1 1 100%; color: #4b5563; font-size: .9rem; }
.shell-nav ul { flex: 1 1 auto; }
.shell-nav a { border-bottom: 3px solid transparent; }
.shell-nav a:hover { text-decoration: underline; }
.shell-nav a[aria-current=page] { border-bottom-color: var(--accent); color: var(--fg); }
.shell-flash { background: #e6f4ea; border: 1px solid #0b6b2e; border-radius: 6px; padding: .6rem 1rem; margin: .5rem 0 1rem; }
.notice { background: var(--warn); border: 1px solid #8a6d00; border-radius: 6px; padding: .6rem 1rem; }
.locked { background: #eef0f3; border: 1px dashed #6b7280; border-radius: 6px; padding: .5rem .8rem; font-size: .9rem; }
.rooms, .plain { list-style: none; margin: 0; padding: 0; }
.rooms li + li, .plain li + li { margin-top: .4rem; }
.room-link { display: block; padding: .6rem .8rem; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--accent); font-weight: 600; text-decoration: none; }
.room-link[aria-current=page] { border: 2px solid var(--accent); color: var(--fg); }
.plain a { display: inline-block; min-height: 44px; padding: .5rem 0; color: var(--accent); }
.msgs { margin: 0; padding: 0; }
.msg[data-role=du] { border-left: 6px solid #6b7280; }
.msg[data-role=james] { border-left: 6px solid var(--accent); }
label.choice span { min-width: 0; overflow-wrap: anywhere; }
blockquote.note-text { margin: .5rem 0; padding: .5rem .8rem; border-left: 4px solid var(--accent); background: #eef3fd; }
input[type=text] { min-height: 44px; }
a.button.secondary { border: 2px solid var(--accent); }
.archive { margin-top: .75rem; }
.archive summary { min-height: 44px; padding: .6rem 0; cursor: pointer; font-weight: 600; }
.archive .room-link { background: #f3f4f6; }
.empty { padding: .6rem .8rem; border: 1px dashed #6b7280; border-radius: 8px; color: #374151; }
details summary { min-height: 44px; }
#sendestatus { margin: .5rem 0; }
.room-link:focus-visible, .archive summary:focus-visible, details summary:focus-visible,
button:focus-visible, textarea:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* Arbeitsplatz-Einstieg: Gruppen, Weiterarbeit, Tastaturfokus. Keine Inline-Stile. */
.plain li > .meta { margin: 0 0 .25rem; }
.plain a:focus-visible, .room-link:focus-visible, a.button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.card .room-link { overflow-wrap: anywhere; }
@media (max-width: 40rem) {
  .shell-nav { padding: .5rem .75rem; }
  .shell-nav a, .plain a, a.button { min-height: 44px; }
  .card { padding: .75rem; }
  button { width: 100%; min-height: 44px; }
  .actions > * { width: 100%; }
}
