/* Banko: warm paper, soft green, and space for the conversation. */
.connection-card[data-theme="banko"], dialog[data-theme="banko"] {
  color-scheme: light;
  color: #243c34;
  border-color: #c4d1c4;
  background: #f6f4ec;
  box-shadow: 0 12px 32px #14291e1a;
}
.connection-card[data-theme="banko"] { grid-column: 1 / -1; max-width: 920px; width: 100%; margin-inline: auto; }
[data-theme="banko"] .banko-label { display: inline-block; margin-bottom: 6px; color: #47624f; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
[data-theme="banko"] .profile-title { font-size: 24px; line-height: 1.2; }
[data-theme="banko"] .server-address, [data-theme="banko"] .connection-nav { display: none; }
[data-theme="banko"] .status-row { flex-wrap: wrap; margin: 12px 0; color: #536457; }
[data-theme="banko"] .status-row .channel { min-width: 0; max-width: 100%; color: #284e3d; overflow-wrap: anywhere; }
[data-theme="banko"] .status-dot.online { background: #3b7353; box-shadow: none; }
[data-theme="banko"] .edit { color: #365b45; min-width: 44px; min-height: 44px; }
.connection-card[data-theme="banko"][data-layout] .mumble-workspace { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
[data-theme="banko"] .channel-pane { gap: 10px; }
[data-theme="banko"] .banko-toolbar { display: grid; grid-template-columns: minmax(0,1fr) minmax(100px,.28fr); align-items: start; gap: 10px; }
.connection-card[data-theme="banko"] .channel-ptt { position: static; padding: 0; border: 0; background: transparent; }
.connection-card[data-theme="banko"] .ptt { min-height: 50px; padding: 12px; font-size: 16px; color: #fff; background: #38654d; box-shadow: inset 0 -3px #264b37; border-radius: 12px; }
[data-theme="banko"] .ptt small { display: none; }
.connection-card[data-theme="banko"] .ptt.transmitting { color: #382b11; background: #eed7a6; box-shadow: inset 0 -3px #b49a63; }
.connection-card[data-theme="banko"] .ptt:disabled { color: #4d5f50; background: #dde3d8; box-shadow: none; opacity: 1; }
[data-theme="banko"] .level { height: 3px; margin: 5px 0 0; background: #dbe3d8; }
[data-theme="banko"] .level div { background: #467257; }
[data-theme="banko"] .ptt-reason:empty { display: none; }
[data-theme="banko"] .ptt-reason { color: #8b382b; font-size: 13px; }
[data-theme="banko"] .audio-smeter, [data-theme="banko"] .smeter-option { display: none; }
[data-theme="banko"] :is(.banko-channels,.banko-audio) { min-width: 0; border: 1px solid #bbcbbd; border-radius: 12px; background: #edf1e8; }
[data-theme="banko"] :is(.banko-channels,.banko-audio) > summary { min-height: 48px; padding: 13px 16px; cursor: pointer; font-size: 14px; font-weight: 750; color: #304f3c; }
[data-theme="banko"] .banko-audio > summary { text-align: center; }
[data-theme="banko"] .banko-audio[open] { grid-column: auto; }
[data-theme="banko"] .audio-controls { grid-template-columns: 1fr; padding: 8px; margin: 0; gap: 10px; }
[data-theme="banko"] .audio-controls button { min-height: 44px; }
[data-theme="banko"] .audio-controls :is(label,output,span) { color: inherit; }
[data-theme="banko"] .audio-controls input[type="range"] { accent-color: #38654d; }
.connection-card[data-theme="banko"][data-layout] .channel-browser { min-height: 0; max-height: min(36svh,260px); border: 0; border-top: 1px solid #bbcbbd; border-radius: 0 0 12px 12px; background: #fffdf7; }
[data-theme="banko"] .pane-title { color: #405c49; background: #edf1e8; border-color: #cbd6c9; }
[data-theme="banko"] .channel-browser .pane-title { position: static; }
[data-theme="banko"] .channel-row, [data-theme="banko"] .tree-user { color: #3d5547; font-size: 14px; }
[data-theme="banko"] .channel-line { min-height: 44px; }
[data-theme="banko"] .channel-join { min-height: 44px; min-width: 44px; color: #2d583f; background: #e4eadd; border: 1px solid #b4c5b2; }
[data-theme="banko"] .details-button { color: #496853; min-width: 44px; min-height: 44px; }
[data-theme="banko"] .channel-row.selected-target, [data-theme="banko"] .tree-user.selected-target { color: #294b37; background: #e4eddf; box-shadow: inset 3px 0 #4e7758; }
.connection-card[data-theme="banko"] .channel-row[aria-current="location"] { color: #284b36; background: #dce8d4; box-shadow: inset 4px 0 #557b50; }
.connection-card[data-theme="banko"] .tree-user.self-user { color: #2f523d; background: #e4ecdc; border-color: #728956; }
[data-theme="banko"] .tree-user.talking { color: #285c3d; text-shadow: none; }
.connection-card[data-theme="banko"][data-layout] .voice-pane { min-height: 0; display: flex; flex-direction: column; }
.connection-card[data-theme="banko"][data-layout] .chat-pane { display: flex; flex-direction: column; min-height: 0; margin: 0 0 10px; border: 1px solid #bfcebe; border-radius: 14px; background: #fffdf7; }
.connection-card[data-theme="banko"][data-layout] .chat-log { flex: none; height: clamp(180px,calc(46svh - 120px),390px); min-height: 0; padding: 16px; background: #fffdf7; overscroll-behavior: contain; }
[data-theme="banko"] .chat-message { gap: 5px; margin-bottom: 16px; font-size: 20px; line-height: 1.5; }
[data-theme="banko"] .chat-message strong { color: #45614e; font-size: 16px; }
[data-theme="banko"] .chat-body a { color: #285d45; }
[data-theme="banko"] .chat-form { padding: 12px; background: #edf1e8; border-top: 1px solid #cbd6c9; }
[data-theme="banko"] .chat-target-display { color: #49614e; font-size: 12px; }
[data-theme="banko"] .chat-input-label { color: #405743; }
[data-theme="banko"] :is(input:not([type="range"]),select,textarea) { color: #263d30; background: #fffef9; border-color: #9aad9b; font-size: 18px; }
[data-theme="banko"] .chat-compose { gap: 8px; }
[data-theme="banko"] .chat-compose :is(input,button,.image-picker) { min-height: 46px; }
[data-theme="banko"] .chat-compose button, [data-theme="banko"] .connect { color: #fff; background: #38654d; }
[data-theme="banko"] .image-picker, [data-theme="banko"] .secondary { color: #36503e; background: #e4eadd; border: 1px solid #b4c5b2; }
[data-theme="banko"] .audio-controls button.enabled { color: #73382e; background: #f1dcd1; }
[data-theme="banko"] .disconnect { align-self: flex-end; width: auto; min-height: 44px; font-size: 13px; }
[data-theme="banko"] .connection-diagnostics { color: #536457; font-size: 12px; }
[data-theme="banko"] .connection-diagnostics summary { padding-block: 8px; }
[data-theme="banko"] .error { color: #953e30; }
[data-theme="banko"] .error:empty { display: none; }
[data-theme="banko"] :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible { outline: 3px solid #345e48; outline-offset: 3px; box-shadow: 0 0 0 5px #fffdf7; }
.connection-card[data-theme="banko"].keyboard-active { outline-color: #88a17a; }
.connection-card[data-theme="banko"].keyboard-active .profile-title::after { display: none; }
[data-theme="banko"] .target-details { color: #344d3c; background: #fffdf7; border-color: #c4d1c4; }
@media(max-width:600px) {
  .connection-card[data-theme="banko"] { padding: 14px; border-radius: 16px; }
  [data-theme="banko"] .profile-title { font-size: 21px; }
  [data-theme="banko"] .banko-toolbar { grid-template-columns: minmax(0,1fr) 88px; }
  .connection-card[data-theme="banko"][data-layout] .chat-log { height: clamp(160px,calc(40svh - 120px),260px); padding: 12px; }
  [data-theme="banko"] .banko-audio[open] { grid-column: 1 / -1; }
  [data-theme="banko"] .banko-audio[open] .audio-controls { grid-template-columns: 1fr 1fr; }
  [data-theme="banko"] .status-row .channel { margin-left: 0; flex-basis: 100%; }
}

[data-theme="banko"] .channel-join.current:disabled { color: #3f5d35; background: #edf1e8; border-color: transparent; }
[data-theme="banko"] .audio-controls { min-width: 0; }
[data-theme="banko"] .audio-controls label { min-width: 0; }
[data-theme="banko"] .audio-controls input[type="range"] { max-width: 100%; }
[data-theme="banko"] .audio-controls button { font-size: 13px; line-height: 1.4; }
/* Keep editor and information dialogs readable in the same light palette. */
[data-theme="banko"] .grid label, [data-theme="banko"] .grid label span,
[data-theme="banko"] .privacy, [data-theme="banko"] .ptt-config > span,
[data-theme="banko"] .ptt-config > small { color: #536457; }
[data-theme="banko"] .cert-actions span, [data-theme="banko"] .details-heading { color: #365b45; }
dialog[data-theme="banko"] button[type="submit"] { color: #fff; background: #38654d; }

.join-landing[data-theme="banko"] { padding: 0; }
.join-landing[data-theme="banko"] .join-cta { color: #fff; background: #38654d; }

/* Keep technical access settings out of the Banko theme editor. */
#profile-dialog[data-theme="banko"] .profile-token-settings { display: none; }

/* A compact, read-only history; channel navigation stays hidden. */
[data-theme="banko"] .banko-speakers { border: 1px solid #bbcbbd; border-radius: 12px; padding: 10px 12px; background: #fffdf7; min-width: 0; }
[data-theme="banko"] .banko-speakers h3 { margin: 0 0 8px; font-size: 16px; color: #405c49; }
[data-theme="banko"] .banko-speaker-list { display: grid; grid-template-columns: 1fr; gap: 6px; list-style: none; margin: 0; padding: 0; }
[data-theme="banko"] :is(.banko-speaker,.banko-active-speaker) { min-width: 0; display: flex; align-items: center; gap: 8px; border-radius: 7px; padding: 6px 8px; background: #edf1e8; }
[data-theme="banko"] :is(.banko-speaker,.banko-active-speaker) strong { min-width: 0; overflow-wrap: anywhere; font-size: 18px; flex: 1; }
[data-theme="banko"] :is(.banko-speaker,.banko-active-speaker) span { font-size: 14px; white-space: nowrap; color: #536457; }
[data-theme="banko"] .banko-speaker.is-talking { background: #dcecd8; box-shadow: inset 3px 0 #38654d; }
[data-theme="banko"] .banko-speaker.is-talking span { color: #284e3d; font-weight: 700; }
[data-theme="banko"] .banko-speakers-empty { grid-column: 1 / -1; color: #536457; font-size: 13px; }
@media(max-width:480px) { [data-theme="banko"] .banko-speaker-list { grid-template-columns: 1fr; } }

[data-theme="banko"] :is(.banko-speaker,.banko-active-speaker) time { font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; color: #304f3c; }
[data-theme="banko"] :is(.banko-speaker,.banko-active-speaker) .speaker-number { flex: 0 0 1.1em; font-weight: 700; font-size: 16px; }
[data-theme="banko"] .banko-speaker-placeholder { opacity: .7; min-height: 38px; }
@media(max-width:480px) { [data-theme="banko"] :is(.banko-speaker,.banko-active-speaker) { flex-wrap: wrap; } [data-theme="banko"] :is(.banko-speaker,.banko-active-speaker) strong { flex-basis: calc(100% - 2em); } [data-theme="banko"] :is(.banko-speaker,.banko-active-speaker) time { margin-left: 1.6em; } }

[data-theme="banko"] .banko-speaker-hint { margin: -2px 0 8px; font-size: 14px; color: #536457; }

[data-theme="banko"] .banko-active-speakers { display: grid; gap: 6px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid #bbcbbd; }
[data-theme="banko"] .banko-active-speaker.is-talking { background: #dcecd8; box-shadow: inset 3px 0 #38654d; }
