/* ---- 設定抽屜的分區、關於、意見回饋（about-feedback.js、room-view.js）---- */
.settings-section { display: flex; flex-direction: column; gap: 14px; }
.settings-section + .settings-section { padding-top: 16px; border-top: 1px solid var(--line); }
.settings-section-title { margin: 0; font-size: 15px; font-weight: 600; }
.setting-current { color: var(--fg); }
.settings-links { display: flex; flex-direction: column; gap: 8px; }

.about { display: flex; flex-direction: column; gap: 12px; user-select: text; -webkit-user-select: text; }
.about-name { font-size: 20px; font-weight: 700; }
.about-desc { color: var(--fg-2); }
.about-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; margin: 0; }
.about-meta dt { color: var(--fg-2); font-size: 14px; }
.about-meta dd { margin: 0; overflow-wrap: anywhere; }
.about-links { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.about-link { display: inline-flex; align-items: center; min-height: var(--tap); min-width: var(--tap); color: var(--accent); }

/* 關於內的分區：語音通話用量、使用說明與免責聲明 */
.about-section { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.about-section-title { margin: 0; font-size: 15px; font-weight: 600; }
.about-usage-value { font-variant-numeric: tabular-nums; }
.about-usage-bar { height: 6px; border-radius: 3px; background: var(--bg-3); overflow: hidden; }
.about-usage-bar[hidden] { display: none; }
.about-usage-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); }
.about-usage-bar.warn .about-usage-fill { background: var(--draw); }
.about-usage-note { color: var(--fg-2); font-size: 13px; line-height: 1.5; }
.about-usage-link {
  align-self: flex-start; justify-content: center; margin-top: 4px; padding: 4px 16px;
  border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-size: 14px;
}
.about-usage-link[hidden] { display: none; }

.about-legal { gap: 0; }
.about-legal-summary {
  display: flex; align-items: center; gap: 8px; min-height: var(--tap); cursor: pointer;
  font-size: 15px; font-weight: 600; list-style: none;
}
.about-legal-summary::-webkit-details-marker { display: none; }
.about-legal-summary::after { content: ''; width: 8px; height: 8px; margin-left: auto; margin-right: 4px;
  border-right: 2px solid var(--fg-2); border-bottom: 2px solid var(--fg-2); transform: rotate(45deg); transition: transform .15s; }
.about-legal[open] > .about-legal-summary::after { transform: rotate(-135deg); }
.about-legal-body { line-height: 1.65; font-size: 14px; padding-bottom: 4px; }
.about-legal-body h4 { margin: 14px 0 4px; font-size: 15px; }
.about-legal-body p { margin: 6px 0; }
.about-legal-body ul { margin: 4px 0; padding-left: 1.3em; }
.about-legal-body li + li { margin-top: 2px; }
.about-legal-body .muted { color: var(--fg-2); }
.about-legal-body .warn {
  padding: 10px 12px; border-radius: 12px; border: 1px solid #a3762a; background: rgba(255, 176, 32, .1);
  font-weight: 700; color: #ffcf66;
}

.feedback { display: flex; flex-direction: column; gap: 14px; }
.feedback .field-label { display: flex; justify-content: space-between; gap: 8px; }
.feedback-count { font-variant-numeric: tabular-nums; }
.feedback-text { resize: vertical; min-height: 120px; font-family: inherit; color: inherit; user-select: text; -webkit-user-select: text; }
.feedback-check { display: flex; align-items: center; gap: 10px; min-height: var(--tap); cursor: pointer; }
.feedback-check input { width: 20px; height: 20px; flex: none; }
.feedback-diag {
  margin: 0; padding: 10px 12px; max-height: 9.5em; overflow: auto; border-radius: 10px; background: var(--bg);
  color: var(--fg-2); font-size: 12px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere;
  user-select: text; -webkit-user-select: text;
}
.feedback-done { padding: 12px 0; font-size: 17px; text-align: center; }

.home-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 8px; }
/* 首頁頁尾的「語言 Language」切換：一整行置中 */
.home-footer .setting { flex-basis: 100%; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 10px; margin-top: 4px; }
.home-footer .setting .field-label { margin: 0; }
.home-footer .setting .seg { min-width: var(--tap, 44px); min-height: var(--tap, 44px); }
.home-footer .link-btn {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 8px;
  border: 0; background: transparent; color: var(--fg-2); text-decoration: underline; cursor: pointer; font-size: 13px;
}
