/* Homepage-only online feed and administrator theme editor. */
#view-home .hf-actions {display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end;}
#view-home .home-date {margin-left:auto;margin-right:16px;}
#view-home .hf-statusbar {display:flex;gap:12px 20px;align-items:center;flex-wrap:wrap;padding:11px 15px;border:1px solid var(--line);border-radius:8px;background:var(--panel);font-size:12px;color:var(--ink2);margin:0 0 18px;}
#view-home .hf-connection {display:flex;gap:7px;align-items:center;color:var(--brand-d);font-weight:600;}
#view-home .hf-dot {width:7px;height:7px;border-radius:50%;background:var(--ink2);flex:none;}
#view-home .hf-statusbar[data-state="connected"] .hf-dot {background:var(--down);}
#view-home .hf-statusbar[data-state="error"] .hf-dot {background:var(--warn);}
#view-home .hf-statusbar[data-state="busy"] .hf-dot {background:var(--brand);}
#view-home .hf-status-detail {flex:1;min-width:180px;}
#view-home .hf-current-topic {display:flex;gap:16px;align-items:center;padding:10px 20px;font-size:12px;color:var(--ink2);line-height:1.7;background:var(--home-soft);border-bottom:1px solid var(--line);}
#view-home .hf-topic-text {display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;flex:1;min-width:0;}
#view-home #homeFeedCount {font-size:11px;white-space:nowrap;color:var(--brand);}
#view-home .hf-summary {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
#view-home .hf-summary-label {font-size:11px;color:var(--brand);margin-right:8px;}
#view-home .hf-saved-panel {display:flex;flex-direction:column;min-height:0;}
#view-home .hf-saved-tabs {display:flex;gap:6px;padding:0 20px 12px;border-bottom:1px solid var(--line);}
#view-home .hf-saved-tabs button {border:0;border-radius:6px;background:none;font:inherit;font-size:13px;min-height:32px;padding:6px 12px;color:var(--ink2);cursor:pointer;}
#view-home .hf-saved-tabs button[aria-selected="true"] {background:var(--brand-l);color:var(--brand);font-weight:600;}
#view-home .hf-saved-panel .home-topics {flex:1;min-height:0;max-height:590px;overflow:auto;scrollbar-width:thin;}
#view-home .hf-saved-panel .home-source {margin-top:auto;}
#view-home .hf-saved-item {border-bottom:1px solid var(--line);padding-bottom:12px;}
#view-home .hf-saved-item .home-topic {border-bottom:0;padding-bottom:8px;}
#view-home .hf-item-actions,#homeFeedDetail .hf-item-actions {display:flex;gap:8px;flex-wrap:wrap;margin-top:7px;align-items:center;font-size:11px;color:var(--ink2);}
#view-home .hf-item-actions button,#homeFeedDetail .hf-item-actions button {font:inherit;font-size:12px;border:1px solid var(--line);border-radius:5px;background:var(--panel);color:var(--brand);padding:4px 9px;cursor:pointer;}
#view-home .hf-item-actions button:disabled,#homeFeedDetail .hf-item-actions button:disabled {opacity:.6;cursor:wait;}
#homeFeedDetail {box-sizing:border-box;width:min(560px,calc(100vw - 24px));height:100dvh;max-height:100dvh;margin:0 0 0 auto;padding:0;border:0;border-left:1px solid var(--line);background:var(--panel);color:var(--ink);overflow:auto;}
#homeFeedDetail::backdrop {background:rgba(0,27,53,.35);}
#homeFeedDetail .hf-detail-head {position:sticky;top:0;z-index:1;display:flex;gap:16px;align-items:start;justify-content:space-between;padding:22px 24px;background:var(--panel);border-bottom:1px solid var(--line);}
#homeFeedDetail h3 {font-size:18px;line-height:1.65;color:var(--brand-d);margin:0;}
#homeFeedDetail .hf-detail-head button {flex:none;}
#homeFeedDetail .hf-detail-content {padding:24px;}
#homeFeedDetail .hf-detail-meta {font-size:12px;line-height:1.9;color:var(--ink2);margin:0 0 26px;}
#homeFeedDetail h4 {font-size:14px;color:var(--brand-d);margin:0 0 10px;}
#homeFeedDetail .hf-detail-summary {font-size:14px;line-height:1.95;margin:0 0 20px;white-space:pre-wrap;}
#homeFeedDetail .hf-detail-note {font-size:12px;line-height:1.9;padding:12px;background:var(--panel2);color:var(--ink2);border-radius:6px;}
#homeFeedDetail .hf-item-actions {margin:20px 0;}
#homeFeedDetail .hf-detail-url {font-size:11px;overflow-wrap:anywhere;color:var(--ink2);margin-top:18px;}
#homeFeedDetail .hf-detail-feedback {font-size:12px;color:var(--warn);}
#homeFeedDetail :is(button,a):focus-visible {outline:2px solid var(--brand);outline-offset:3px;}
#homeFeedSettings [hidden] {display:none!important;}
#homeFeedSettings input[type="date"] {display:block;box-sizing:border-box;width:100%;margin-top:6px;padding:8px 10px;border:1px solid var(--line);border-radius:6px;color:var(--ink);background:var(--panel);font:inherit;}
#view-home .hf-news-link {font-weight:600;font-size:14px;color:var(--brand-d);line-height:1.6;display:inline-block;}
#view-home .hf-news-link:hover {text-decoration:underline;}
#view-home .hf-empty {padding:24px 14px;line-height:1.9;color:var(--ink2);font-size:13px;}
#view-home .home-feed-status {flex-wrap:wrap;}
#view-home .hf-date {white-space:nowrap;}
#homeFeedSettings {width:min(920px,calc(100vw - 32px));max-height:88vh;padding:0;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);}
#homeFeedSettings::backdrop {background:rgba(0,27,53,.44);}
#homeFeedSettings .hf-dialog-head {display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px;border-bottom:1px solid var(--line);}
#homeFeedSettings h3 {font-size:18px;color:var(--brand-d);margin:0;}
#homeFeedSettings .hf-dialog-head > .badge {position:static;flex:none;}
#homeFeedSettings .hf-dialog-body {padding:18px 24px;}
#homeFeedSettings .hf-intro {font-size:12px;color:var(--ink2);line-height:1.8;margin:0 0 14px;}
#homeFeedSettings .hf-global {display:flex;gap:8px;align-items:center;font-size:13px;color:var(--brand-d);margin-bottom:16px;}
#homeFeedSettings .hf-editor-tabs {display:flex;gap:4px;flex-wrap:wrap;padding:4px;background:var(--brand-l);border-radius:8px;margin-bottom:18px;}
#homeFeedSettings .hf-editor-tabs button {border:0;background:transparent;color:var(--ink2);padding:8px 14px;border-radius:6px;font:inherit;font-size:13px;cursor:pointer;}
#homeFeedSettings .hf-editor-tabs button[aria-selected="true"] {background:var(--panel);color:var(--brand);font-weight:600;}
#homeFeedSettings .hf-editor-pane {display:grid;grid-template-columns:1fr 1fr;gap:14px 18px;}
#homeFeedSettings .hf-field {display:block;font-size:12px;color:var(--ink2);min-width:0;}
#homeFeedSettings .hf-field-wide {grid-column:1/-1;}
#homeFeedSettings :is(input[type="text"],textarea,select) {display:block;width:100%;min-width:0;margin-top:6px;padding:8px 10px;border:1px solid var(--line);border-radius:6px;color:var(--ink);background:var(--panel);font:inherit;font-size:13px;}
#homeFeedSettings textarea {resize:vertical;min-height:92px;line-height:1.7;}
#homeFeedSettings .hf-field small {display:block;line-height:1.7;margin-top:5px;}
#homeFeedSettings .hf-check {display:flex;align-items:center;gap:8px;font-size:13px;color:var(--ink2);}
#homeFeedSettings .hf-save-status {font-size:12px;color:var(--brand-d);margin:14px 0 0;line-height:1.7;}
#homeFeedSettings .hf-save-status[data-state="error"] {color:var(--warn);padding:10px;border:1px solid currentColor;border-radius:6px;}
#homeFeedSettings .hf-dialog-footer {display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 24px;background:var(--panel2);border-top:1px solid var(--line);}
#homeFeedSettings .hf-dialog-footer > div {display:flex;gap:8px;}
#homeFeedSettings .btn {font-size:13px;border-radius:7px;min-height:34px;}
#homeFeedSettings :is(button,input,textarea,select):focus-visible {outline:2px solid var(--brand);outline-offset:3px;}
@media(max-width:700px){#homeFeedSettings .hf-editor-pane{grid-template-columns:1fr;}#homeFeedSettings .hf-dialog-body,#homeFeedSettings .hf-dialog-head{padding:16px;}#view-home .hf-actions{justify-content:flex-start;}#view-home .hf-status-detail{min-width:100%;}}

/* Standard directory controls remain local to the homepage feed. */
.hf-standard-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 20px;border-top:1px solid var(--line);background:var(--panel)}
.hf-standard-tools[hidden],.hf-standard-tools label[hidden]{display:none}
.hf-standard-tools button{border:0;background:transparent;color:var(--ink2);padding:8px 12px;border-radius:6px;cursor:pointer}
.hf-standard-tools button[aria-pressed=true]{background:var(--bg);color:var(--brand);font-weight:600}
.hf-standard-tools label{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--ink2)}
.hf-standard-tools input,.hf-standard-tools select{height:34px;border:1px solid var(--line);border-radius:7px;padding:4px 8px;background:var(--panel);color:var(--ink)}
.hf-standard-tools input{width:250px;max-width:65vw}.hf-standard-item .hf-summary{margin:5px 0}
