/* ══════════════════════════════════════════════
   CREATOR DASHBOARD (host.css)
   Loaded after the main styles in the "(1)" file.
   ══════════════════════════════════════════════ */

/* Extra colours from the Oct 6 dashboard mockup (easier to read on the dark green). */
:root {
  --gold-text:  #b3a27a;   /* brighter gold: section labels, icons, progress fill */
  --gold-light: #c9b98f;   /* light gold: links, Creator pill, All ages pill, Featured */
  --cream-soft: #e6dcc3;   /* Edit button text */
  --text-2:     #9aa0a4;   /* secondary text: meta, stats */
  --text-dim:   #7d8387;   /* dimmed labels: FUTURE */
  --text-off:   #6b7175;   /* greyed-out items */
  --ember-text: #e08a55;   /* Mature pill text, "No file" warning */
}

.host-layout {
  display: flex;
  margin: -32px -28px -60px;          /* cancel .main-col padding so the sidebar sits flush */
  min-height: calc(100vh - 58px);
}

.host-sidebar {
  flex: 0 0 220px;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 58px;
  align-self: flex-start;
  height: calc(100vh - 58px - var(--bar-h));
  overflow-y: auto;
}

.host-nav-group { display: flex; flex-direction: column; gap: 2px; }
.host-nav-label { font-size: 10px; letter-spacing: 0.14em; color: var(--gold-text); padding: 0 12px 6px; }

.host-nav-item {
  text-align: left;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
button.host-nav-item:hover { color: var(--cream); background: var(--cream-dim); }
.host-nav-item.active { color: var(--cream); background: rgba(138,122,90,0.22); }

.host-nav-future { border-top: 1px solid var(--border); padding-top: 20px; }
.host-nav-future .host-nav-label { color: var(--text-dim); }
.host-nav-future .host-nav-item { color: var(--text-off); cursor: default; }

.host-main { flex: 1; min-width: 0; padding: 32px 32px 40px; }
.host-title { font-family: var(--serif); font-size: 34px; font-weight: 300; margin-bottom: 6px; }
.host-sub { font-size: 12px; color: var(--text-2); }

/* ── LIBRARY ── */
.hl-wrap { max-width: 1120px; }
.hl-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.hl-stat {
  font-size: 12px; color: var(--gold-light);
  text-decoration: underline dotted; text-underline-offset: 3px;
}
.hl-stat:hover { color: var(--cream); }
.hl-upload {
  padding: 11px 22px; border-radius: var(--r-pill);
  background: var(--cream); color: var(--bg2);
  font-size: 13px; font-weight: 500;
}
.hl-upload:hover { background: var(--gold-light); }

.hl-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.hl-search {
  flex: 1 1 260px; display: flex; align-items: center; gap: 8px;
  background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--r-pill);
  padding: 0 16px; min-height: 42px; color: var(--gold-text);
}
.hl-search:focus-within { border-color: var(--gold); }
.hl-search input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--cream); font: inherit; font-size: 13px; }
.hl-select {
  min-height: 42px; background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--r-pill); padding: 0 16px; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer;
}
.hl-select:focus { outline: none; border-color: var(--gold); }

.hl-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.hl-chip {
  padding: 7px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--border2); color: var(--muted); font-size: 12px;
}
.hl-chip:hover { color: var(--cream); }
.hl-chip[aria-pressed="true"] { border-color: var(--gold); color: var(--cream); background: rgba(138,122,90,0.22); }
.hl-order { margin-left: auto; font-size: 11px; color: var(--text-2); }

.hl-list {
  display: flex; flex-direction: column;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden;
}
.hl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 18px 22px; border-top: 1px solid var(--border); }
.hl-row:first-child { border-top: none; }
.hl-info { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.hl-title-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.hl-title { font-family: var(--serif); font-size: 20px; font-weight: 400; }
.hl-featured { font-size: 11px; color: var(--gold-light); }
.hl-desc { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-labels { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11px; }
.hl-pill { padding: 2px 10px; border-radius: var(--r-pill); border: 1px solid var(--border2); color: var(--muted); }
.hl-pill.mature { border-color: var(--ember); color: var(--ember-text); }
.hl-pill.all-ages { border-color: var(--gold); color: var(--gold-light); }
.hl-tags { color: var(--text-2); }

.hl-facts {
  flex: 0 1 300px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 16px; font-size: 11px; color: var(--text-2);
}
.hl-ok { color: var(--muted); }
.hl-warn { color: var(--ember-text); font-weight: 500; }
.hl-na { color: var(--text-off); }

.hl-actions { display: flex; gap: 8px; margin-left: auto; }
.hl-play, .hl-more {
  width: 44px; height: 44px; border-radius: var(--r-pill); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; overflow: hidden; white-space: nowrap;
}
.hl-play { color: var(--cream); }
.hl-more { color: var(--muted); }
.hl-play:hover:not(:disabled), .hl-more:hover { border-color: var(--gold); }
.hl-play:disabled { opacity: 0.35; cursor: default; }
.hl-edit {
  height: 44px; padding: 0 18px; border-radius: var(--r-pill);
  border: 1px solid var(--gold); background: var(--gold-dim); color: var(--cream-soft); font-size: 12px;
}
.hl-edit:hover { background: var(--gold-mid); }
.hl-empty { padding: 24px 22px; font-size: 13px; color: var(--text-2); }

/* ── UPLOAD / EDIT FORM ── */
.hf-wrap { max-width: 720px; }
.hf-back { font-size: 12px; color: var(--gold-light); margin-bottom: 14px; }
.hf-back:hover { color: var(--cream); }
.hf-form { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.hf-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hf-fieldset { border: none; padding: 0; margin: 0; }
.hf-label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); padding: 0; }
.hf-hint { text-transform: none; letter-spacing: 0; color: var(--text-2); margin-left: 6px; }
.hf-input {
  background: var(--bg2); border: 1px solid var(--border2); border-radius: 12px;
  padding: 11px 14px; color: var(--cream); font: inherit; font-size: 14px; outline: none; width: 100%;
}
.hf-input:focus { border-color: var(--gold); }
.hf-input:disabled { opacity: 0.6; cursor: not-allowed; }
textarea.hf-input { resize: vertical; line-height: 1.5; }
select.hf-input { cursor: pointer; }
.hf-row { display: grid; grid-template-columns: 1fr 1fr 140px; gap: 14px; }
.hf-note { font-size: 12px; color: var(--text-2); }
.hf-note:empty { display: none; }
.hf-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.hf-tag {
  padding: 7px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--border2); color: var(--muted); font-size: 12px;
}
.hf-tag:hover { color: var(--cream); }
.hf-tag[aria-pressed="true"] { border-color: var(--gold); color: var(--cream); background: rgba(138,122,90,0.22); }
.hf-newtag { display: flex; gap: 8px; margin-top: 8px; max-width: 360px; }
.hf-secondary {
  padding: 10px 18px; border-radius: var(--r-pill);
  border: 1px solid var(--border2); color: var(--muted); font-size: 12px; white-space: nowrap;
}
.hf-secondary:hover:not(:disabled) { border-color: var(--gold); color: var(--cream); }
.hf-secondary:disabled { opacity: 0.5; cursor: default; }
.hf-file {
  display: grid; grid-template-columns: 150px 130px 1fr; align-items: center; gap: 12px;
  padding: 10px 14px; background: var(--bg2); border: 1px solid var(--border2); border-radius: 12px;
}
.hf-file + .hf-file { margin-top: 2px; }
.hf-file-name { font-size: 13px; color: var(--cream); }
.hf-file-now { font-size: 12px; color: var(--text-2); }
.hf-file input[type="file"] { font: inherit; font-size: 12px; color: var(--muted); min-width: 0; }
.hf-file input[type="file"]::file-selector-button {
  margin-right: 10px; padding: 7px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--border2); background: none; color: var(--cream); font: inherit; font-size: 12px; cursor: pointer;
}
.hf-file input[type="file"]::file-selector-button:hover { border-color: var(--gold); }
.hf-progress { font-size: 12px; color: var(--gold-light); min-height: 1em; }
.hf-progress:empty { display: none; }

.hf-actions { display: flex; gap: 10px; align-items: center; padding-top: 6px; }
.hl-upload:disabled { opacity: 0.6; cursor: default; }

/* ── REMOVE: menu, form buttons, dialog ── */
.hf-danger { color: var(--ember-text) !important; }
.hf-danger:hover { border-color: var(--ember) !important; }
.hf-remove { margin-top: 18px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.hf-remove-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hl-menu {
  position: fixed; z-index: 70; min-width: 200px;
  display: flex; flex-direction: column; padding: 6px;
  background: var(--bg3); border: 1px solid var(--border2); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
}
.hl-menu button { text-align: left; padding: 9px 12px; border-radius: 8px; font-size: 13px; color: var(--muted); }
.hl-menu button:hover, .hl-menu button:focus-visible { background: var(--cream-dim); color: var(--cream); outline: none; }

.hd-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(3,8,6,0.72); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.hd-box {
  width: 100%; max-width: 480px;
  background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--r-card);
  padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 12px;
}
.hd-title { font-family: var(--serif); font-size: 26px; font-weight: 300; }
.hd-piece { font-family: var(--serif); font-size: 18px; color: var(--gold-light); }
.hd-text { font-size: 13px; color: var(--muted); }
.hd-list { margin: 0 0 4px 18px; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.hd-check {
  display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--cream);
  padding: 12px 14px; border: 1px solid var(--border2); border-radius: 12px; cursor: pointer;
}
.hd-check input { margin-top: 3px; accent-color: var(--gold); }
.hd-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.hd-go {
  padding: 10px 20px; border-radius: var(--r-pill);
  background: var(--cream); color: var(--bg2); font-size: 13px; font-weight: 500;
}
.hd-go-danger { background: var(--ember); color: var(--cream); }
.hd-go:disabled { opacity: 0.4; cursor: not-allowed; }

/* The dashboard is for the computer, but don't break if the window is narrow. */
@media (max-width: 700px) {
  .host-layout { flex-direction: column; }
  .host-sidebar { position: static; height: auto; flex-basis: auto; border-right: none; border-bottom: 1px solid var(--border); }
}

/* ── TAGS ── */
.ht-wrap { max-width: 720px; }
.ht-new { margin: 22px 0 18px; }
.ht-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  padding: 14px 22px; border-top: 1px solid var(--border);
}
.ht-row:first-child { border-top: none; }
.ht-name { font-family: var(--serif); font-size: 19px; min-width: 0; overflow-wrap: anywhere; }
.ht-unused { font-size: 12px; color: var(--text-off); }
.ht-actions { display: flex; gap: 8px; margin-left: auto; }
.ht-actions .hl-edit, .ht-actions .hf-secondary { height: 38px; padding: 0 16px; }
.ht-rename { flex: 1 1 240px; max-width: 360px; }
.hf-danger:disabled:hover { border-color: var(--border2) !important; }

/* ── FEATURED ── */
.hfe-wrap { max-width: 720px; }
.hfe-section { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.hfe-list { margin: 0; }
.hfe-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  padding: 12px 20px; border-top: 1px solid var(--border);
}
.hfe-row:first-child { border-top: none; }
.hfe-slot {
  flex: 0 0 28px; height: 28px; border-radius: var(--r-pill);
  border: 1px solid var(--border2); color: var(--gold-text);
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.hfe-title { font-family: var(--serif); font-size: 18px; min-width: 0; overflow-wrap: anywhere; }
.hfe-notes { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; font-size: 11px; }
.hfe-newest { color: var(--gold-light); }
.hfe-dim { color: var(--text-off); font-size: 12px; }
.hfe-sublabel { font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 8px; }
.hfe-more { align-self: flex-start; }

/* ── MODERATION ── */
.hm-wrap { max-width: 860px; }
.hm-chips { margin-top: 20px; }
.hm-row { display: flex; flex-direction: column; gap: 10px; padding: 18px 22px; border-top: 1px solid var(--border); }
.hm-row:first-child { border-top: none; }
.hm-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; font-size: 12px; }
.hm-author { color: var(--cream); font-weight: 500; }
.hm-meta { font-size: 12px; color: var(--text-2); }
.hm-body {
  font-size: 14px; line-height: 1.55; color: var(--cream-soft);
  white-space: pre-wrap; overflow-wrap: anywhere;
  padding: 10px 14px; border-left: 2px solid var(--border2); background: rgba(0,0,0,0.12); border-radius: 0 8px 8px 0;
}
.hm-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.hm-actions { display: flex; gap: 8px; margin-left: auto; }
.hm-actions .hl-edit, .hm-actions .hf-secondary { height: 38px; padding: 0 16px; }
/* ── INBOX & DMs (3E) ── (message bubbles reuse .dm-* from styles.css) */
.host-nav-item { display: flex; align-items: center; gap: 8px; }
.host-nav-count {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: var(--r-pill); background: var(--ember); color: var(--cream);
  font-size: 11px; font-weight: 500; line-height: 20px; text-align: center;
}
.host-nav-count[hidden] { display: none; }
.hi-wrap { max-width: 1120px; }
.hi-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; margin-top: 22px; align-items: start; }
.hi-list { max-height: calc(100vh - 220px - var(--bar-h)); overflow-y: auto; }
.hi-row {
  display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left;
  padding: 14px 18px; border-top: 1px solid var(--border);
}
.hi-row:first-child { border-top: none; }
.hi-row:hover { background: var(--cream-dim); }
.hi-row.active { background: rgba(138,122,90,0.22); }
.hi-row-head { display: flex; align-items: center; gap: 8px; }
.hi-name { font-size: 13px; color: var(--cream); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hi-row.unread .hi-name { font-weight: 500; }
.hi-row-head .host-nav-count { margin-left: 0; }
.hi-time { margin-left: auto; font-size: 11px; color: var(--text-2); white-space: nowrap; }
.hi-preview { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hi-row.unread .hi-preview { color: var(--muted); }
.hi-thread {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 20px 22px; display: flex; flex-direction: column; min-height: 320px;
}
.hi-thread > .hl-empty { margin: auto; }
.hi-thread-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.hi-thread-name { font-family: var(--serif); font-size: 24px; font-weight: 300; }
.hi-thread-head .hf-secondary { margin-left: auto; }
.hi-msgs { max-height: calc(100vh - 380px - var(--bar-h)); min-height: 200px; }
.hi-thread .dm-compose .hl-upload { padding: 9px 20px; }
@media (max-width: 900px) {
  .hi-layout { grid-template-columns: 1fr; }
  .hi-list, .hi-msgs { max-height: none; }
}

/* ── MEMBERS (Phase 4) ── (dialogs reuse .hd-*, pills reuse .hl-pill) */
.hmb-wrap { max-width: 960px; }
.hmb-filters { margin-top: 22px; margin-bottom: 18px; align-items: center; }
.hmb-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding: 16px 22px; border-top: 1px solid var(--border);
}
.hmb-row:first-child { border-top: none; }
.hmb-info { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.hmb-name { font-family: var(--serif); font-size: 20px; overflow-wrap: anywhere; }
.hmb-info .hm-meta { overflow-wrap: anywhere; }
.hmb-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.hmb-actions .hl-edit, .hmb-actions .hf-secondary { height: 38px; padding: 0 16px; }
.hd-box .dm-count { align-self: flex-end; }
.hmb-preview { color: var(--gold-light); }
.hmb-note { display: flex; flex-direction: column; gap: 6px; }
.hmb-note .dm-count { align-self: flex-end; }

/* ── ACTIVITY (Oct 15) ── (the "✦ Activity" row and its list in the Inbox's right-hand panel) */
.hi-activity-row .hi-name { color: var(--gold-light); }
.ha-list {
  list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column;
  overflow-y: auto; min-height: 200px; max-height: calc(100vh - 340px - var(--bar-h));
}
.ha-item { display: flex; gap: 12px; padding: 12px 8px; border-top: 1px solid var(--border); }
.ha-item:first-child { border-top: none; }
.ha-item.new { background: rgba(138,122,90,0.12); border-radius: 8px; }
.ha-icon { flex: 0 0 22px; text-align: center; color: var(--gold-text); font-size: 14px; line-height: 1.5; }
.ha-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ha-line { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.ha-who { color: var(--cream); font-weight: 500; }
.ha-piece { color: var(--gold-light); }
.ha-new {
  margin-left: 8px; padding: 1px 8px; border-radius: var(--r-pill);
  background: var(--ember); color: var(--cream); font-size: 10px; vertical-align: 1px;
}
.ha-preview { font-size: 12px; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.ha-dim { color: var(--text-off); }
.ha-time { font-size: 11px; color: var(--text-off); }
@media (max-width: 900px) { .ha-list { max-height: none; } }
