.feature-tabs { display:flex; flex-wrap:wrap; gap:6px; padding-bottom:14px; margin-bottom:18px; border-bottom:1px solid var(--line); }
.feature-tabs button { min-height:40px; }
.feature-tabs button[aria-pressed="true"] { background:var(--accent); color:#fff; border-color:var(--accent); }
.feature-results,.feature-list { background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:0 16px; margin-top:18px; }
.feature-list:empty { display:none; }
.favorite-sections .action-menu-toggle { background:var(--panel); color:var(--ink); border-color:var(--line); }
.feature-line,.feature-result { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); }
.feature-line:last-child,.feature-result:last-of-type { border-bottom:0; }
.feature-result-main { min-width:0; flex:1; display:grid; gap:5px; }
.feature-record-link { justify-content:flex-start; text-align:start; padding:0; border:0; border-radius:0; background:transparent!important; color:var(--ink); font-weight:600; overflow-wrap:anywhere; }
.feature-record-link:hover { color:var(--accent); }
.feature-meta { font-size:13px; color:var(--muted); margin:0; overflow-wrap:anywhere; }
.feature-result > button,.feature-line > button,.feature-line > .actions { flex-shrink:0; margin-inline-start:auto; }
.feature-empty { margin:0; padding:24px 0; color:var(--muted); }
.feature-pagination { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 0; border-top:1px solid var(--line); }
.feature-filter-form { grid-template-columns:repeat(4,minmax(0,1fr)); align-items:end; }
.feature-filter-form label:first-child { grid-column:span 2; }
.feature-filter-form > button { grid-column:4; grid-row:2; min-height:42px; }
.feature-filter-form label,.feature-form label { min-width:0; }
.feature-form { background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:20px; }
.feature-panel { min-width:0; }
.feature-panel > p { color:var(--muted); }
#featureRevokeOthers { margin:0 0 14px; }
.feature-form .actions { margin-top:4px; }
.feature-member-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
.feature-permissions,.feature-member-form > .actions { grid-column:1/-1; display:flex; flex-wrap:wrap; gap:12px; }
.feature-security-status { display:flex; gap:8px; align-items:center; font-weight:600; }
.account-security .feature-form { border:0; padding:0; background:transparent; }
.account-security .feature-security-qr { display:block; width:280px; max-width:100%; height:auto; justify-self:start; background:#fff; border:1px solid var(--line); border-radius:4px; }
.account-security #featureSecurityCode[hidden] { display:none; }
.account-security #featureSecurityResult input { font-family:monospace; }
.feature-status-icon { color:var(--accent); }
.feature-line span { min-width:0; overflow-wrap:anywhere; }
.feature-check { display:grid; grid-template-columns:24px minmax(0,1fr) 44px; gap:8px; align-items:center; margin-bottom:8px; }
.feature-check input[type=checkbox] { width:20px; height:20px; }
.feature-task-details { border-top:1px solid var(--line); padding-top:16px; display:grid; gap:14px; }
.feature-task-details h3 { margin:0; font-size:16px; }
.feature-task-details > button { justify-self:start; }
.feature-task-details select[multiple] { min-height:100px; background:var(--panel); color:var(--ink); border-color:var(--line); }
.feature-task-details option:checked { background:var(--accent); color:#fff; }
body.theme-dark .feature-task-details input,
body.theme-dark #taskForm input[type=date],
body.theme-dark .feature-form input { color-scheme:dark; }
.feature-history { max-height:65vh; overflow:auto; }
#featureSecurityResult { display:grid; gap:12px; margin-top:16px; }
#featureSecurityResult:empty { display:none; }
#featureSecurityResult pre { white-space:pre-wrap; overflow-wrap:anywhere; user-select:all; padding:16px; border:1px solid var(--line); border-radius:6px; background:var(--panel); color:var(--ink); line-height:1.7; }
.feature-import-map { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.feature-import-map label { min-width:0; }
.feature-import-preview { overflow:auto; max-height:45vh; }
.feature-import-preview table { border-collapse:collapse; width:100%; }
.feature-import-preview td,.feature-import-preview th { padding:10px; border:1px solid var(--line); text-align:start; color:var(--ink); background:var(--panel); }
.feature-import-preview th { position:sticky; top:0; background:var(--bg); font-weight:600; }
.feature-import-preview td { max-width:260px; overflow-wrap:anywhere; }
#featureImportReport { color:var(--muted); overflow-wrap:anywhere; line-height:1.5; }
.feature-connectivity { font-size:12px; color:var(--muted,#63746d); }
@media(max-width:1000px) {
  .feature-filter-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .feature-filter-form > button { grid-column:2; grid-row:4; }
}
@media(max-width:600px) {
  .feature-line,.feature-result { gap:8px; }
  .feature-line > span { flex:1; }
  .feature-line > button:not(.icon-btn) { max-width:46%; white-space:normal; }
  .feature-tabs { flex-wrap:nowrap; overflow-x:auto; padding-bottom:12px; }
  .feature-tabs button { flex:0 0 auto; white-space:nowrap; }
  .feature-tabs button { min-height:44px; }
  .feature-results,.feature-list { padding:0 12px; }
  .feature-form { padding:14px; }
  .feature-filter-form,.feature-member-form,.feature-import-map { grid-template-columns:minmax(0,1fr); }
  .feature-filter-form label:first-child,.feature-filter-form > button { grid-column:auto; grid-row:auto; }
  .feature-task-details .form-grid-2 { grid-template-columns:minmax(0,1fr); }
  #mainNav .searchable-select,#mainNav .searchable-select-button { min-width:0; max-width:100%; width:100%; }
  #modal { max-height:calc(100dvh - 24px); width:calc(100% - 24px); margin:12px; }
}
