/* extracted from 07-management-panels-a.css during pass182; load immediately after 07-management-panels-a.css to preserve cascade order */

/* ============================================================
   Owner shift from legacy — quest/journal polish contract
   ============================================================ */
#journal-panel > .panel-body.journal-panel-body,
#changelog-panel > .panel-body {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 11%, rgba(255,255,255,0.00) 22%),
    linear-gradient(180deg, rgba(7,12,20,0.16) 0%, rgba(7,12,20,0.04) 100%);
}

.quest-board-topbar,
.journal-chao-header,
.achievement,
.achievement-list,
#changelog-list,
#changelog-content {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.quest-board-topbar {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(130, 178, 228, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.015) 100%),
    rgba(8, 14, 24, 0.56);
}

.quest-board-actions {
  margin-left: auto;
}

.quest-board-topbar #quest-board-tabs,
.quest-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.quest-tab,
.journal-tabs button {
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid rgba(143, 186, 232, 0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%),
    rgba(18, 28, 42, 0.72);
  color: #dbe9f8;
  font-weight: 800;
  letter-spacing: 0.2px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.quest-tab:hover,
.journal-tabs button:hover {
  transform: translateY(-1px);
  border-color: rgba(159, 208, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.03) 100%),
    rgba(24, 40, 60, 0.84);
}

.quest-tab.active,
.journal-tabs button.active {
  color: #f6fbff;
  border-color: rgba(133, 193, 255, 0.56);
  background:
    linear-gradient(180deg, rgba(132, 193, 255, 0.22) 0%, rgba(94, 148, 208, 0.10) 100%),
    rgba(24, 42, 62, 0.94);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 0 1px rgba(120,165,214,0.12);
}

.quest-board-open-log,
.quest-track-toggle,
.quest-accept,
.quest-log-expand-btn {
  border-radius: 12px;
  border: 1px solid rgba(143, 186, 232, 0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%),
    rgba(18, 28, 42, 0.78);
  color: #f4f8fc;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.quest-board-open-log:hover,
.quest-track-toggle:hover:not([disabled]),
.quest-accept:hover,
.quest-log-expand-btn:hover {
  border-color: rgba(159, 208, 255, 0.40);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.03) 100%),
    rgba(28, 44, 66, 0.88);
}

.quest-content,
.records-card,
.quest-log-entry,
.quest-entry,
.achievement,
.journal-chao-header {
  border-radius: 16px;
}

.quest-content {
  min-height: 0;
  padding: 12px;
  border: 1px solid rgba(130, 178, 228, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%),
    rgba(7, 12, 20, 0.38);
}

.quest-list {
  gap: 14px;
  padding-right: 4px;
}

.quest-entry {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 100%),
    rgba(12, 20, 31, 0.82);
  border: 1px solid rgba(128, 174, 220, 0.20);
  padding: 16px 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.quest-entry:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.02) 100%),
    rgba(18, 31, 48, 0.92);
  border-color: rgba(125, 185, 244, 0.46);
  transform: translateY(-1px);
}

.quest-entry.completed {
  border-color: rgba(109, 192, 124, 0.38);
  background:
    linear-gradient(180deg, rgba(148, 220, 162, 0.08) 0%, rgba(148, 220, 162, 0.02) 100%),
    rgba(17, 35, 24, 0.82);
}

.quest-title {
  color: #ebf5ff;
  font-size: 18px;
  line-height: 1.15;
  margin-bottom: 8px;
}

.quest-desc,
.quest-log-entry-objective,
.quest-log-entry-reward,
.quest-log-entry-progress,
.records-history-meta,
.records-empty {
  color: #c4d3e6;
}

.quest-steps {
  padding: 12px 14px;
  margin: 10px 0 6px;
  border: 1px solid rgba(130, 178, 228, 0.14);
  border-radius: 14px;
  background: rgba(6, 11, 18, 0.36);
}

.quest-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: start;
  margin-bottom: 10px;
}

.quest-step:last-child {
  margin-bottom: 0;
}

.quest-step-status {
  margin-right: 0;
}

.quest-step-title {
  color: #edf5ff;
}

.quest-step-desc {
  grid-column: 2 / 4;
  margin-left: 0;
  margin-top: -2px;
}

.quest-status,
.quest-progress,
.quest-reward {
  text-align: left;
}

.journal-tabs {
}

.journal-chao-details {
  font-size: 13px;
  line-height: 1.5;
}

#quest-board-panel {
  border-radius: 24px;
  border-color: rgba(95, 138, 186, 0.88);
  background:
    radial-gradient(circle at top center, rgba(125, 179, 241, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(15, 22, 35, 0.96), rgba(10, 16, 26, 0.96));
  box-shadow:
    0 18px 40px rgba(0,0,0,0.42),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

#quest-board-panel > .panel-header {
  min-height: 66px;
  padding: 12px 16px 13px;
}

#quest-board-panel > .panel-header > .panel-title {
  color: #f1f6ff;
  text-shadow: 0 1px 0 rgba(0,0,0,0.42);
}

#quest-board-panel > .panel-body.panel-body,
#quest-board-panel > .panel-body {
  padding: 12px;
  gap: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015) 18%, rgba(0,0,0,0.02) 100%),
    linear-gradient(180deg, rgba(12, 20, 32, 0.92), rgba(9, 14, 24, 0.94));
}

#quest-board-panel .quest-board-topbar {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(116, 154, 196, 0.24);
  background: linear-gradient(180deg, rgba(20, 30, 46, 0.94), rgba(12, 19, 31, 0.94));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

#quest-board-panel #quest-board-tabs {
  gap: 10px;
  flex-wrap: wrap;
}

#quest-board-panel .quest-tab {
  min-width: 102px;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border-color: rgba(107, 142, 180, 0.34);
  background: linear-gradient(180deg, rgba(32, 46, 69, 0.88), rgba(18, 28, 43, 0.88));
  color: #d8e8fb;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

#quest-board-panel .quest-tab:hover {
  border-color: rgba(156, 198, 242, 0.5);
  background: linear-gradient(180deg, rgba(42, 60, 88, 0.94), rgba(24, 37, 57, 0.94));
}

#quest-board-panel .quest-tab.active {
  color: #f4f8ff;
  border-color: rgba(157, 206, 255, 0.74);
  background: linear-gradient(180deg, rgba(70, 108, 152, 0.92), rgba(31, 53, 79, 0.94));
  box-shadow: 0 6px 18px rgba(70, 108, 152, 0.26), inset 0 1px 0 rgba(255,255,255,0.15);
}

#quest-board-panel .quest-content {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(105, 141, 181, 0.2);
  background:
    linear-gradient(180deg, rgba(13, 20, 32, 0.92), rgba(8, 13, 22, 0.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

#quest-board-panel .quest-entry {
  border-radius: 16px;
  border: 1px solid rgba(108, 144, 183, 0.24);
  background: linear-gradient(180deg, rgba(26, 38, 58, 0.96), rgba(17, 26, 40, 0.96));
  box-shadow: 0 8px 18px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.04);
}

#quest-board-panel .quest-entry:hover {
  transform: translateY(-1px);
  border-color: rgba(152, 199, 247, 0.52);
  background: linear-gradient(180deg, rgba(35, 53, 80, 0.96), rgba(20, 31, 48, 0.97));
}

#quest-board-panel .quest-title { color: #eef5ff; }
#quest-board-panel .quest-desc,
#quest-board-panel .quest-reward,
#quest-board-panel .quest-progress,
#quest-board-panel .quest-log-summary { color: #ccdef3; }

#quest-board-panel .quest-step-list,
#quest-board-panel .quest-log-step-list {
  gap: 6px;
}

#quest-board-panel .quest-step,
#quest-board-panel .quest-log-step {
  border-radius: 10px;
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,0.04);
  background: rgba(255,255,255,0.05);
}

#quest-board-panel .quest-track-toggle,
#quest-board-panel .quest-board-open-log,
#quest-board-panel .quest-entry-actions .quest-accept,
#quest-board-panel .quest-log-untrack-btn {
  min-height: 38px;
  border-radius: 11px;
  border: 1px solid rgba(123, 168, 213, 0.34);
  background: linear-gradient(180deg, rgba(51, 75, 107, 0.95), rgba(28, 44, 66, 0.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

#quest-board-panel .quest-track-toggle.tracked {
  border-color: rgba(138, 210, 164, 0.62);
  background: linear-gradient(180deg, rgba(53, 104, 82, 0.94), rgba(25, 61, 47, 0.96));
}


/* ============================================================
   Pass 134 — Quest Board / River header shell ownership
   Migrated from 99-legacy-overrides-b.css
   ============================================================ */

/* River Crossing + Quest Board */
#river-panel > .panel-header,
#quest-board-panel > .panel-header {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  min-height: 56px !important;
  padding: 12px 16px !important;
  border-radius: 22px 22px 0 0 !important;
  border-bottom: 1px solid rgba(121, 164, 209, 0.28) !important;
  background:
    linear-gradient(180deg, rgba(57, 87, 122, 0.96), rgba(24, 40, 62, 0.98)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.16) !important;
}

#river-panel > .panel-header .panel-title,
#river-panel > .panel-header h2,
#river-panel > .panel-header h3,
#quest-board-panel > .panel-header .panel-title,
#quest-board-panel > .panel-header h2,
#quest-board-panel > .panel-header h3 {
  margin: 0 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  color: #f3f8ff !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  text-align: left !important;
  text-shadow: 0 1px 0 rgba(0,0,0,0.35) !important;
}

#river-panel > .panel-header .panel-header-controls,
#river-panel > .panel-header .panel-controls,
#river-panel > .panel-header .window-controls,
#quest-board-panel > .panel-header .panel-header-controls,
#quest-board-panel > .panel-header .panel-controls,
#quest-board-panel > .panel-header .window-controls {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-left: auto !important;
  flex: 0 0 auto !important;
}

#quest-board-panel > .panel-header button.panel-pin-btn,
#quest-board-panel > .panel-header button.panel-close-x,
#quest-board-panel > .panel-header .pin-btn,
#quest-board-panel > .panel-header .close-btn {
  min-width: 36px !important;
  height: 36px !important;
}


/* Changelog split scroll-fit and stats subscription ownership */
#changelog-panel:not(.hidden) {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
#changelog-panel.hidden {
  display: none !important;
}
#changelog-panel > .panel-body {
  display: flex !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  align-items: stretch !important;
  padding: 0 !important;
  overflow: hidden !important;
}
#changelog-panel .panel-content,
#changelog-panel .changelog-split {
  display: flex !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
#changelog-panel .changelog-left,
#changelog-panel .changelog-right {
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-gutter: stable !important;
}
#changelog-panel .changelog-left {
  flex: 0 0 33% !important;
  width: 33% !important;
}
#changelog-panel .changelog-right {
  flex: 1 1 auto !important;
  width: auto !important;
}
#stats-panel .stats-alignment-subscription-block {
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(0,0,0,0.18);
}
#stats-panel .stats-alignment-subscription-label {
  font-weight: 700;
  margin-bottom: 6px;
}
#stats-panel #chao-alignment-subscription {
  width: 100%;
  min-height: 32px;
  border-radius: 6px;
}
#stats-panel .stats-alignment-subscription-note {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
  opacity: 0.92;
}
