#dugout-card-page {
  color: #141414;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

#dugout-card-page .dc-command {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
  min-height: 58px;
  padding: 8px 10px 8px 16px;
  background: #14181f;
  color: #fff;
  border: 1px solid #14181f;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(16, 20, 27, 0.12);
}

#dugout-card-page .dc-command-brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

#dugout-card-page .dc-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c0f280;
}

#dugout-card-page .dc-command h1 {
  margin: 0;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
}

#dugout-card-page .dc-command .dc-ack {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: #d5dbe3;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

#dugout-card-page .dc-shell {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  height: calc(100dvh - 190px);
  min-height: 0;
}

#dugout-card-page .dc-tools {
  height: 100%;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

#dugout-card-page .dc-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#dugout-card-page .dc-toolbar-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

#dugout-card-page .dc-toolbar-out,
#dugout-card-page .dc-toolbar-end {
  grid-template-columns: 1.3fr 0.8fr 0.8fr;
}

#dugout-card-page .dc-toolbar-end {
  grid-template-columns: 1fr 1fr;
}

#dugout-card-page .dc-toolbar button,
#dugout-card-page .dc-panel button,
#dugout-card-page .dc-file {
  border: 1px solid #000;
  background: #000;
  color: #a8ec66;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 800;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
  min-height: 36px;
}

#dugout-card-page button.dc-btn-quiet,
#dugout-card-page .dc-file {
  background: #fff;
  color: #141414;
}

#dugout-card-page .dc-paper {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #141414;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

#dugout-card-page .dc-paper select {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
}

#dugout-card-page .dc-ack,
#dugout-card-page .dc-warn {
  margin: 8px 2px 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: #3d3d3d;
}

#dugout-card-page .dc-mark {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e4e4e4;
}

#dugout-card-page .dc-mark:first-child {
  margin-top: 8px;
  padding-top: 0;
  border-top: 0;
}

#dugout-card-page .dc-mark-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 800;
}

#dugout-card-page .dc-show {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}

#dugout-card-page .dc-show input {
  accent-color: #5f9429;
}

#dugout-card-page .dc-slider {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
}

#dugout-card-page .dc-slider input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: #5f9429;
}

#dugout-card-page .dc-mark-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

#dugout-card-page .dc-file {
  position: relative;
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#dugout-card-page .dc-file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

#dugout-card-page .dc-ack:empty,
#dugout-card-page .dc-warn:empty { display: none; }
#dugout-card-page .dc-warn { color: #8a2b12; }

#dugout-card-page .dc-panel {
  margin-top: 8px;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  background: #fff;
  padding: 12px 12px 14px;
}

#dugout-card-page .dc-panel summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

#dugout-card-page .dc-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3f3f46;
}

#dugout-card-page .dc-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

#dugout-card-page .dc-form .dc-field {
  margin-top: 0;
}

#dugout-card-page .dc-sizes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#dugout-card-page .dc-colors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

#dugout-card-page .dc-sizes .dc-field,
#dugout-card-page .dc-colors .dc-field {
  margin-top: 0;
}

#dugout-card-page .dc-field input,
#dugout-card-page .dc-field select,
#dugout-card-page .dc-field textarea,
#dugout-card-page .dc-row input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  background: #fff;
  color: #141414;
  padding: 7px 8px;
  font: 600 13px/1.2 "DM Sans", "Segoe UI", sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

#dugout-card-page .dc-field input[type="color"] {
  height: 36px;
  padding: 3px;
  cursor: pointer;
}

#dugout-card-page .dc-row {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

#dugout-card-page .dc-row input { min-width: 0; flex: 1; }

#dugout-card-page .dc-line-head,
#dugout-card-page .dc-slot {
  display: grid;
  align-items: center;
  column-gap: 6px;
}

#dugout-card-page .dc-line-our,
#dugout-card-page .dc-line-our + .dc-line-rows .dc-slot {
  grid-template-columns: 22px 46px minmax(0, 1fr) 58px;
}

#dugout-card-page .dc-line-bench,
#dugout-card-page .dc-line-bench + .dc-line-rows .dc-slot {
  grid-template-columns: 46px minmax(0, 1fr) 58px 22px;
}

#dugout-card-page .dc-line-head {
  margin-top: 8px;
  padding: 0 4px 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b6b6b;
}

#dugout-card-page .dc-line-scroll {
  max-height: 320px;
  overflow: auto;
}

#dugout-card-page .dc-slot {
  min-height: 34px;
  padding: 0 4px;
  border-top: 1px solid #ececec;
}

#dugout-card-page .dc-slot:hover {
  background: #f4f7ef;
}

#dugout-card-page .dc-slot-ord {
  font-size: 12px;
  font-weight: 800;
  color: #5f9429;
  text-align: center;
}

#dugout-card-page .dc-slot select {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #141414;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 0;
}

#dugout-card-page .dc-slot-name {
  text-transform: uppercase;
}

#dugout-card-page .dc-slot.is-open .dc-slot-name {
  color: #8a8a8a;
  font-weight: 600;
}

#dugout-card-page .dc-slot button.dc-x {
  width: 22px;
  height: 22px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6b6b6b;
  font-size: 16px;
  line-height: 1;
}

#dugout-card-page .dc-slot button.dc-x:hover {
  background: #141414;
  color: #a8ec66;
}

#dugout-card-page #dc-add-bench {
  width: 100%;
  margin-top: 8px;
  background: #fff;
  color: #141414;
}

#dugout-card-page .dc-sections { list-style: none; margin: 8px 0 0; padding: 0; }
#dugout-card-page .dc-sec {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid #e6e6e6;
}
#dugout-card-page .dc-sec-actions { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
#dugout-card-page .dc-sec-actions button,
#dugout-card-page .dc-add-custom button { padding: 4px 8px; font-size: 11px; }
#dugout-card-page .dc-sec input,
#dugout-card-page .dc-add-custom input {
  width: 100%;
  border: 1px solid #141414;
  border-radius: 6px;
  padding: 6px 8px;
  font: inherit;
}
#dugout-card-page .dc-sec-note { font-size: 11px; font-weight: 700; color: #5f9429; }
#dugout-card-page .dc-add-custom { display: flex; gap: 8px; margin-top: 10px; }

#dugout-card-page .dc-stage {
  overflow: auto;
  background: #e7e7e7;
  border-radius: 12px;
  height: 100%;
  min-height: 0;
  padding: 12px;
}

#dugout-card-page .dc-sheet,
.dc-sheet {
  position: relative;
  margin: 0 auto;
  background: #fff;
  color: var(--dc-text, #141414);
  border: 2.5px solid var(--dc-secondary, #5f9429);
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px var(--dc-secondary, #5f9429);
  font-family: var(--dc-font, "Barlow Condensed", "Arial Narrow", sans-serif);
  font-style: var(--dc-font-style, normal);
  font-weight: var(--dc-font-weight, 700);
  font-synthesis: none;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.dc-abs { position: absolute; box-sizing: border-box; }

.dc-sheet .dc-top {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1px;
  border-bottom: 1.5px solid var(--dc-secondary, #5f9429);
  text-align: center;
  overflow: hidden;
  z-index: 3;
  min-height: 0;
}

.dc-sheet .dc-logo {
  position: absolute;
  z-index: 4;
  width: auto;
  object-fit: contain;
  pointer-events: none;
}

.dc-sheet .dc-match {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.14in;
  width: 100%;
  max-width: 100%;
  padding: 0 0.7in;
  box-sizing: border-box;
}
.dc-sheet .dc-school,
.dc-sheet .dc-opponent {
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 0.9;
  color: var(--dc-header, #000);
  white-space: nowrap;
  overflow: hidden;
  max-width: 42%;
}
.dc-sheet .dc-vs {
  font-size: 8pt;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: var(--dc-text, #141414);
}

.dc-sheet .dc-facts {
  max-width: calc(100% - 0.9in);
  font-size: 8pt;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
}

.dc-sheet .dc-block {
  overflow: hidden;
  border: 1.5px solid var(--dc-border, #000);
  background: #fff;
  display: flex;
  flex-direction: column;
}
.dc-sheet .dc-body {
  position: relative;
  flex: 1;
  min-height: 0;
}

.dc-sheet .dc-block h2 {
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  color: var(--dc-header, #000);
  font-size: var(--dc-section-size, 11pt);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.1;
  padding: 3px 8px 2px;
  border-bottom: 1px solid var(--dc-border, #000);
  overflow: hidden;
  white-space: nowrap;
}

.dc-sheet .dc-lineup,
.dc-sheet .dc-mini,
.dc-sheet .dc-score {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: var(--dc-player-size, 15pt);
}

.dc-sheet .dc-lineup th { font-size: 7pt; letter-spacing: 0.04em; text-transform: uppercase; color: #444; text-align: center; }

.dc-sheet .dc-lineup th,
.dc-sheet .dc-lineup td,
.dc-sheet .dc-mini td,
.dc-sheet .dc-score th,
.dc-sheet .dc-score td {
  border-bottom: 1px solid #1a1a1a;
  text-align: center;
  padding: 0;
  vertical-align: middle;
  overflow: hidden;
}
.dc-sheet .dc-lineup th + th,
.dc-sheet .dc-lineup td + td,
.dc-sheet .dc-score th,
.dc-sheet .dc-score td { border-left: 1px solid #1a1a1a; }
.dc-sheet .dc-score th:first-child,
.dc-sheet .dc-score td:first-child { border-left: 0; text-align: left; padding-left: 4px; white-space: nowrap; }
.dc-sheet .dc-name { font-weight: 800; text-transform: uppercase; line-height: 1.02; text-align: left; padding-left: 3px; }
.dc-sheet .dc-ord { color: var(--dc-primary, #000); font-weight: 800; overflow: visible; }
.dc-sheet .dc-num { overflow: visible; }
.dc-sheet .dc-scorebox > .dc-score { height: 100%; }
.dc-sheet .dc-scorebox .dc-score tr { height: 33.33%; }
.dc-sheet .dc-num,
.dc-sheet .dc-pos,
.dc-sheet .dc-bats,
.dc-sheet .dc-change,
.dc-sheet .dc-note { font-weight: 800; }
.dc-sheet .dc-bench {
  display: grid;
  gap: 4px 8px;
  margin: 6px 8px;
  padding: 0;
  list-style: none;
  font-size: calc(var(--dc-player-size, 15pt) * 0.78);
  font-weight: 700;
}
.dc-sheet .dc-bench li { min-width: 0; overflow: hidden; line-height: 1.15; white-space: nowrap; }
.dc-sheet .dc-ruled { display: flex; flex-direction: column; }
.dc-sheet .dc-writes {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 2px 10px 6px;
}
.dc-sheet .dc-write { border-bottom: 1px solid #141414; height: 0; margin: 0; }
.dc-sheet .dc-wm {
  position: absolute;
  transform: translate(-50%, -50%);
  max-width: 92%;
  max-height: 86%;
  height: auto;
  object-fit: contain;
  z-index: 0;
  pointer-events: none;
}
.dc-sheet .dc-lineup,
.dc-sheet .dc-block h2,
.dc-sheet .dc-bench,
.dc-sheet .dc-mini,
.dc-sheet .dc-score,
.dc-sheet .dc-block p { position: relative; z-index: 1; }
.dc-sheet .dc-block p { margin: 4px 8px; font-size: 11pt; }
.dc-sheet .dc-brand {
  border-top: 3px solid var(--dc-secondary, #5f9429);
  overflow: hidden;
}
.dc-sheet .dc-brand .dc-wm {
  z-index: 1;
  width: auto;
  max-width: 64%;
  max-height: 76%;
  height: auto;
  object-fit: contain;
}
.dc-sheet .dc-brand span {
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  z-index: 2;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11pt;
  line-height: 1;
  padding: 0 4px;
  background: transparent;
  white-space: nowrap;
}
.dc-sheet .dc-fit-warn { margin: 0; color: #8a2b12; font-size: 8pt; font-weight: 800; }

@media (max-width: 980px) {
  #dugout-card-page .dc-shell { grid-template-columns: 1fr; }
  #dugout-card-page .dc-tools { max-height: none; }
  #dugout-card-page { overflow-x: hidden; }
}
