/* ==========================================================================
   BREAD & BROADSWORD - MESSAGES & COMBAT REPORTS STYLES
   The Royal Scriptorium Codex (Split Master-Detail Scriptorium Reading Desk)
   ========================================================================== */

/* Main Container */
.messages-window {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

.messages-main-window {
  position: relative;
  background: #fbf5e8;
  border: 2px solid #5a3d1b;
  border-radius: 4px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  font-family: var(--font-primary, 'Marcellus', serif);
}

.messages-window-body {
  padding: 0;
  background: #f4ebd9;
}

/* --------------------------------------------------------------------------

-------------------------------------------------------------------------- */
.messages-hero-banner {
  position: relative;
  min-height: 180px;
  background-image: url('assets/banner_messages.jpg');
  background-size: cover;
  background-position: center 35%;
  border-bottom: 2px solid #8e6d3a;
  box-shadow: inset 0 -30px 40px rgba(0, 0, 0, 0.7);
}

.messages-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 9, 3, 0.88) 0%, rgba(20, 11, 4, 0.65) 55%, rgba(16, 9, 3, 0.85) 100%);
}

.messages-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 24px 30px;
}

.msg-identity {
  flex: 1;
}

.msg-super {
  font-family: 'Cinzel', serif;
  font-size: 12.5px;
  font-weight: 900;
  color: #ffd984;
  letter-spacing: 1.5px;
}

.msg-title {
  margin: 3px 0 6px;
  font-family: 'Cinzel', serif;
  font-size: 28px;
  font-weight: 900;
  color: #fff6e0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
}

.msg-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mmp-pill {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid #7c5c2d;
  color: #f7e8ce;
  font-size: 13.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 3px;
}

.mmp-pill.unread {
  background: linear-gradient(180deg, #533614 0%, #2f1d07 100%);
  border-color: #d4a753;
  color: #ffd984;
}

.mmp-pill.battles {
  border-color: #9c3b28;
  color: #ffc4ba;
}

.mmp-pill.scouts {
  border-color: #2b78c9;
  color: #c9e3fc;
}

/* --------------------------------------------------------------------------
   SHARED BUTTONS & CHIPS
   -------------------------------------------------------------------------- */
.btn-royal-action {
  padding: 9px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: linear-gradient(180deg, #3d2310 0%, #1f1107 100%);
  border: 1.5px solid #8e6d3a;
  color: #e8d0a8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-royal-action:hover {
  background: linear-gradient(180deg, #523118 0%, #2e1a0b 100%);
  border-color: #d4a753;
  color: #fff;
}

.btn-royal-action.btn-gold-tithe {
  background: linear-gradient(180deg, #f7d27e 0%, #c48c26 100%);
  border: 1.5px solid #8a5a0f;
  color: #2b1704;
}

.btn-royal-action.btn-gold-tithe:hover {
  background: linear-gradient(180deg, #ffe094 0%, #db9e2e 100%);
  box-shadow: 0 2px 8px rgba(196, 140, 38, 0.5);
}

.btn-royal-action.btn-sm {
  padding: 5px 12px;
  font-size: 12.5px;
}

/* ==========================================================================
   DESIGN #1: THE ROYAL SCRIPTORIUM CODEX
   ========================================================================== */
.d1-scriptorium-root {
  padding: 18px 22px;
}

.d1-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  background: #ede0c7;
  border: 1.5px solid #bba37a;
  padding: 8px 14px;
  border-radius: 4px;
}

.d1-folder-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.d1-folder-chip {
  background: #fbf5e8;
  border: 1px solid #a8895b;
  color: #4a2c0f;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.d1-folder-chip:hover {
  background: #edd9b9;
  border-color: #8c5b1e;
}

.d1-folder-chip.active {
  background: linear-gradient(180deg, #381f0d 0%, #201005 100%);
  border-color: #d4a753;
  color: #ffd984;
}

.d1-bulk-actions {
  display: flex;
  gap: 6px;
}

.d1-bulk-btn {
  background: #fbf5e8;
  border: 1px solid #9c8053;
  color: #4a2c0f;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 3px;
  cursor: pointer;
}

.d1-bulk-btn:hover {
  background: #e5d1ae;
}

/* Master-Detail 2-Column Deck */
.d1-deck-layout {
  display: grid;
  grid-template-columns: 38% 62%;
  gap: 16px;
  min-height: 580px;
}

.d1-scroll-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 680px;
  overflow-y: auto;
  padding-right: 4px;
}

.d1-msg-item {
  position: relative;
  background: #fbf5e8;
  border: 2px solid #d8c4a4;
  border-radius: 4px;
  padding: 9px 12px;
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.d1-msg-item:hover {
  background: #f4e9d5;
  border-color: #9d7b4b;
  z-index: 1;
}

.d1-msg-item.active {
  background: #fffbee;
  border-color: #b87c18;
  box-shadow: 0 0 0 1px #b87c18, 0 3px 8px rgba(184, 124, 24, 0.22);
  z-index: 2;
}

.d1-msg-item.unread {
  border-left: 5px solid #b87c18;
  background: #fdf7ec;
}

.d1-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.d1-item-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.d1-svg-icon {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}

.d1-item-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #2b1706;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}

.d1-time {
  font-size: 11px;
  color: #7b6348;
  flex-shrink: 0;
  white-space: nowrap;
  padding-right: 14px;
}

.d1-item-snippet {
  font-size: 12px;
  color: #6d5234;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 4px;
  padding-left: 26px;
}

.d1-wax-dot {
  position: absolute;
  top: 13px;
  right: 10px;
  width: 8px;
  height: 8px;
  background: #c62828;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(198, 40, 40, 0.8);
}

/* Right Column Reader */
.d1-parchment-reader {
  background: #fbf5e8;
  border: 2px solid #8e6d3a;
  border-radius: 4px;
  padding: 22px 24px;
  box-shadow: inset 0 0 35px rgba(184, 124, 24, 0.08);
  max-height: 680px;
  overflow-y: auto;
}

/* Combat Report Layout inside D1 */
.d1-report-header {
  border-bottom: 1.5px solid #d4be9b;
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.dr-header-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 8px;
}

.d1-report-header.victory .dr-header-badge { background: #e8f5e9; color: #2e7d32; border: 1px solid #81c784; }
.d1-report-header.defeat .dr-header-badge { background: #ffebee; color: #c62828; border: 1px solid #e57373; }
.d1-report-header.scout .dr-header-badge { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }
.d1-report-header.draw .dr-header-badge { background: #fff8e1; color: #855800; border: 1px solid #ffd54f; }

.dr-battle-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 900;
  color: #2b1706;
}

.dr-battle-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: #6d4f2c;
}

.dr-battle-meta strong {
  color: #211105;
}

.dr-xp-pill {
  background: linear-gradient(180deg, #533614 0%, #2f1d07 100%);
  border: 1px solid #d4a753;
  color: #ffd984;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dr-xp-pill strong {
  color: #fff2c7 !important;
}

/* Clash Grid */
.d1-clash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.d1-combatant-card {
  background: #f4ebd9;
  border: 1.5px solid #bba37a;
  border-radius: 4px;
  padding: 12px 14px;
}

.d1-combatant-card.you {
  border-color: #d4a753;
  background: #fbf5e8;
}

.cc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #d4be9b;
  padding-bottom: 8px;
}

.cc-crest {
  font-size: 26px;
}

.cc-side {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #8c5b1e;
  letter-spacing: 0.5px;
}

.cc-name {
  font-size: 15px;
  font-weight: 900;
  color: #211105;
}

.cc-alliance {
  display: block;
  font-size: 11.5px;
  color: #664929;
}

.cc-units-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.cc-units-table th {
  font-size: 11px;
  font-weight: 800;
  color: #553a1f;
  text-align: right;
  padding: 4px 6px;
  border-bottom: 1px solid #d1b894;
}

.cc-units-table th:first-child { text-align: left; }

.cc-units-table td {
  padding: 5px 6px;
  text-align: right;
  border-bottom: 1px solid #e3d2b6;
  font-weight: 700;
}

.u-name-col {
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left !important;
}

.u-thumb {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  border: 1px solid #8e6d3a;
  object-fit: cover;
}

.u-lost { color: #b22222; }
.u-remain { color: #1e7039; }

/* Plunder Section */
.d1-plunder-section {
  margin-bottom: 16px;
}

.d1-plunder-box {
  background: #ede0c7;
  border: 1.5px solid #bba37a;
  border-radius: 4px;
  padding: 12px 14px;
  width: 100%;
  box-sizing: border-box;
}

.dpb-title {
  margin: 0 0 8px;
  font-size: 13.5px;
  font-weight: 900;
  color: #381f0b;
}

.dpb-looted-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.loot-chip {
  background: #fbf5e8;
  border: 1px solid #a8895b;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 13px;
  color: #331a06;
}

.loot-chip strong { color: #1e7039; }

.dpb-defended .shield-tag {
  display: inline-block;
  background: #e8f5e9;
  border: 1px solid #81c784;
  color: #2e7d32;
  font-size: 11.5px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 4px;
}

.dpb-defended .shield-tag.draw {
  background: #fff8e1;
  border-color: #ffd54f;
  color: #855800;
}

.dpb-defended p {
  margin: 0;
  font-size: 12.5px;
  color: #4a2d10;
  line-height: 1.35;
}

/* --- Expandable Rounds (Rolled Tabs: Regiments Totals Only, No Phases) --- */
.d1-rounds-container {
  margin-bottom: 16px;
  background: #ede0c7;
  border: 1.5px solid #bba37a;
  border-radius: 4px;
  padding: 12px 14px;
}

.d1-rounds-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid #d4be9b;
  padding-bottom: 8px;
}

.drh-title h4 {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 900;
  color: #2b1706;
}

.d1-btn-round-toggle {
  background: #fbf5e8;
  border: 1px solid #9c8053;
  color: #4a2c0f;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.d1-btn-round-toggle:hover {
  background: #fff;
  border-color: #8c5b1e;
}

.d1-rounds-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.d1-round-card {
  background: #fffdf8;
  border: 1.5px solid #d4be9b;
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.d1-round-card[open] {
  border-color: #b87c18;
  box-shadow: 0 2px 8px rgba(184, 124, 24, 0.12);
}

.d1-round-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  cursor: pointer;
  background: #f7eedb;
  user-select: none;
  list-style: none;
}

.d1-round-summary::-webkit-details-marker {
  display: none;
}

.d1-round-summary:hover {
  background: #f0e3cc;
}

.drs-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drs-chevron {
  display: inline-block;
  font-size: 10px;
  color: #8c5b1e;
  transition: transform 0.15s ease;
}

.d1-round-card[open] .drs-chevron {
  transform: rotate(90deg);
}

.drs-num {
  font-family: 'Cinzel', serif;
  font-size: 13.5px;
  font-weight: 900;
  color: #211105;
}

.drs-casualties {
  display: flex;
  gap: 6px;
}

.drs-cas-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 2px;
}

.drs-cas-tag.att {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

.drs-cas-tag.def {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.d1-round-body {
  padding: 10px 12px;
  background: #fffdf9;
  border-top: 1px solid #e8dbcb;
}

.d1-clash-grid.round-level {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}

.d1-round-tally {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #f7eedb;
  border: 1px solid #d4be9b;
  border-radius: 3px;
  padding: 6px 12px;
  margin-top: 6px;
  font-size: 12px;
  color: #4a2c0f;
}

.drt-stat {
  display: flex;
  align-items: center;
}

.drt-stat strong {
  color: #1e7039;
  font-weight: 900;
  font-size: 13px;
  margin-left: 4px;
}

.drt-divider {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  color: #8c5b1e;
  font-size: 11px;
}

@media (max-width: 600px) {
  .d1-clash-grid.round-level {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 560px) {
  .clash-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .vs-col {
    display: none;
  }
  .combatant-panel.def {
    text-align: left;
    border-right: none;
    border-left: 3px solid #1b5e20;
  }
  .combatant-panel.def .c-header-row {
    flex-direction: row;
  }
  .combatant-panel.def .c-action-row,
  .combatant-panel.def .c-loss-row {
    justify-content: flex-start;
  }
}

.d1-round-tally {
  margin-top: 4px;
  background: #ede0c7;
  border: 1px solid #c9b189;
  border-radius: 3px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  font-size: 12px;
  color: #4a2d0f;
}

.drt-stat strong {
  color: #211105;
  margin-left: 4px;
}

.drt-divider {
  font-size: 11px;
  font-weight: 900;
  color: #8c5b1e;
  text-transform: uppercase;
}

/* Scout Narrative / Reconnaissance Infiltration Box */
.d1-narrative-box {
  background: #fffdf7;
  border: 1px solid #d4be9b;
  border-left: 4px solid #b87c18;
  border-radius: 3px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.dnb-title {
  margin: 0 0 6px;
  font-size: 13.5px;
  font-weight: 900;
  color: #381f0b;
}

.d1-narrative-box p {
  margin: 0;
  font-size: 13.5px;
  color: #442a13;
  line-height: 1.45;
}

.d1-reader-actions {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap; /* Strictly single-line button row */
  align-items: stretch;
  width: 100%;
  margin-top: 14px;
}

.d1-reader-actions .btn-royal-action {
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
  justify-content: center;
  text-align: center;
  gap: 6px;
}

.d1-reader-actions .btn-royal-action span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
}

@media (max-width: 560px) {
  .d1-reader-actions {
    flex-wrap: wrap;
  }
}

/* Scout Intel Grid */
.d1-scout-intel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.d1-intel-box {
  background: #ede0c7;
  border: 1.5px solid #bba37a;
  border-radius: 4px;
  padding: 12px 14px;
}

.d1-intel-box.full {
  grid-column: 1 / -1;
}

.dib-title {
  margin: 0 0 8px;
  font-size: 13.5px;
  font-weight: 900;
  color: #381f0b;
}

.dib-resources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.res-chip {
  background: #fbf5e8;
  border: 1px solid #c9b189;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 12.5px;
  font-weight: 700;
  color: #331a06;
}

.dib-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12.5px;
}

.dib-list li {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  border-bottom: 1px dashed #d1b894;
}

.dib-bldgs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bldg-intel-chip {
  background: #fbf5e8;
  border: 1px solid #bba37a;
  padding: 5px 10px;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  font-size: 12px;
}

.bldg-intel-chip strong { color: #211105; }
.bldg-intel-chip span { color: #1e7039; font-weight: 800; font-size: 11px; }

/* Letter Presentation in D1 */
.d1-letter-header {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1.5px solid #d4be9b;
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.lh-avatar-wrap {
  position: relative;
  width: 58px;
  height: 58px;
}

.lh-avatar {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  border: 2px solid #8e6d3a;
  object-fit: cover;
}

.lh-crest-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #fff;
  border: 1px solid #8e6d3a;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.lh-info { flex: 1; }

.lh-sender-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.lh-sender-name {
  font-size: 16px;
  font-weight: 900;
  color: #211105;
}

.lh-title-badge {
  background: #ffeaae;
  border: 1px solid #d4a753;
  color: #5a3809;
  font-size: 11.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 2px;
}

.lh-status-pill {
  font-size: 11.5px;
  color: #2e7d32;
  font-weight: 700;
}

.lh-subject {
  margin: 2px 0 3px;
  font-size: 18px;
  font-weight: 900;
  color: #381f0b;
}

.lh-timestamp {
  font-size: 12px;
  color: #7b5932;
}

.d1-letter-scroll {
  background: #fffdf8;
  border: 1px solid #ded0ba;
  padding: 18px 20px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.d1-letter-text {
  font-size: 14.5px;
  color: #2b1706;
  line-height: 1.55;
}

.d1-letter-text p {
  margin: 0 0 12px;
}

.d1-dropcap {
  float: left;
  font-family: 'Cinzel', serif;
  font-size: 42px;
  line-height: 34px;
  padding-top: 4px;
  padding-right: 8px;
  padding-bottom: 2px;
  color: #8c5b1e;
  font-weight: 900;
}

/* Replies Thread */
.d1-replies-thread {
  margin-bottom: 16px;
}

.rt-title {
  margin: 0 0 8px;
  font-size: 13.5px;
  font-weight: 900;
  color: #381f0b;
}

.rt-bubble {
  background: #ede0c7;
  border-left: 3.5px solid #d4a753;
  padding: 10px 14px;
  border-radius: 3px;
  margin-bottom: 8px;
}

.rt-author {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  margin-bottom: 3px;
}

.rt-author strong { color: #211105; }
.rt-author span { color: #777; font-size: 11px; }

.rt-text {
  font-size: 13.5px;
  color: #3f2510;
  line-height: 1.4;
}

/* Reply Station */
.d1-reply-station {
  background: #ede0c7;
  border: 1.5px solid #bba37a;
  border-radius: 4px;
  padding: 12px 14px;
}

.d1-reply-templates {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.drt-label {
  font-size: 12px;
  font-weight: 800;
  color: #553a1f;
}

.drt-btn {
  background: #fbf5e8;
  border: 1px solid #9c8053;
  color: #3b200b;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.1s ease;
}

.drt-btn:hover {
  background: #fff;
  border-color: #d4a753;
}

.d1-reply-input-row {
  display: flex;
  gap: 10px;
}

.d1-reply-textarea {
  flex: 1;
  height: 60px;
  background: #fff;
  border: 1px solid #8e6d3a;
  border-radius: 3px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13.5px;
  resize: vertical;
}

/* Search Box & Inputs */
.d1-search-box {
  display: flex;
  align-items: center;
}

.d1-search-input {
  background: #fbf5e8;
  border: 1.5px solid #a8895b;
  border-radius: 3px;
  padding: 5px 10px;
  font-family: inherit;
  font-size: 13px;
  color: #2b1706;
  width: 190px;
  transition: all 0.15s ease;
}

.d1-search-input:focus {
  outline: none;
  border-color: #8c5b1e;
  background: #fff;
  box-shadow: 0 0 6px rgba(140, 91, 30, 0.35);
}

/* Empty States */
.d1-empty-list {
  padding: 30px 16px;
  text-align: center;
  color: #7b5932;
  font-size: 13.5px;
  font-style: italic;
  background: #fbf5e8;
  border: 1px dashed #bba37a;
  border-radius: 4px;
}

.d1-empty-reader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  text-align: center;
  color: #7b5932;
}

.d1-empty-reader span {
  font-size: 42px;
  margin-bottom: 12px;
  opacity: 0.7;
}

.d1-empty-reader p {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 980px) {
  .d1-deck-layout {
    grid-template-columns: 1fr;
  }
  .d1-scroll-list {
    max-height: 340px;
  }
  .d1-clash-grid,
  .d1-aftermath-row,
  .d1-scout-intel-grid {
    grid-template-columns: 1fr;
  }
}
