:root {
  --textColor: #1f2933;
  --mutedColor: #65707c;
  --lineColor: #d8dee6;
  --softGray: #f6f8fa;
  --brandColor: #126b5d;
  --brandDark: #0b4b41;
  --headerWine: #7b1f35;
  --headerWineDark: #5f1729;
  --accentColor: #9f4f16;
  --dangerColor: #a32727;
  --selectedColor: #e1f4e8;
  --blockedColor: #eef0f2;
  --warningColor: #fff5d8;
  --boxRadius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--textColor);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

a {
  color: var(--brandDark);
}

main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px 36px;
}

.topHeader {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 20px;
  background: var(--headerWine);
  border-bottom: 1px solid var(--headerWineDark);
  color: #ffffff;
}

.brandArea {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.logoCheck {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-weight: 700;
  border-radius: 6px;
}

.brandTitle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.clubLogo {
  width: 120px;
  height: 38px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 6px;
  padding: 3px;
}

.modeBadge {
  padding: 3px 8px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: var(--headerWineDark);
  font-size: 0.85rem;
  border-radius: var(--boxRadius);
}

.mainNav {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
}

.navStack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.mainNav a,
.linkButton {
  border: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.mainNav a:hover,
.linkButton:hover {
  color: #ffe6ed;
}

.mainNav a.adminNavLink {
  color: #ffb3b3;
  font-weight: 700;
}

.mainNav a.adminNavLink:hover {
  color: #ffffff;
}

.adminMobileNav {
  display: none;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--boxRadius);
  background: rgba(255, 255, 255, 0.08);
}

.adminMobileNav a {
  color: #ffb3b3;
  text-decoration: none;
  font-weight: 700;
}

.userMenu {
  position: relative;
}

.userMenu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
}

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

.userIcon {
  width: 24px;
  height: 24px;
}

.userMenuPanel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 8px;
  min-width: 220px;
  padding: 14px;
  border: 1px solid var(--lineColor);
  border-radius: var(--boxRadius);
  background: #ffffff;
  color: var(--textColor);
  box-shadow: 0 10px 30px rgba(31, 41, 51, 0.18);
}

.userMenuPanel span {
  color: var(--mutedColor);
}

.userMenuPanel a,
.darkLinkButton {
  color: var(--headerWine);
  text-align: left;
}

.userMenuPanel a:hover,
.darkLinkButton:hover {
  color: var(--headerWineDark);
}

.inlineForm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.adminHeaderActions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.adminViewRoleLabel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mutedColor);
  font-weight: 600;
}

.timelineBlock {
  padding: 14px 0 16px;
  border-bottom: 1px solid var(--lineColor);
}

.timelineHeader {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 10px;
}

.timelineBlock h2 {
  margin: 0;
  font-size: 1rem;
}

.timelineLegend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--mutedColor);
  font-size: 0.85rem;
}

.timelineLegend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legendSwatch {
  width: 14px;
  height: 14px;
  border: 2px solid;
  border-radius: 4px;
  background: #ffffff;
}

.legendYellow {
  border-color: #e0aa10;
}

.legendRed {
  border-color: #c62828;
}

.legendCheck {
  color: var(--brandColor);
  font-weight: 700;
}

.timeline {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 0 2px;
}

.timelineItem {
  flex: 0 0 220px;
  position: relative;
  border: 1px solid var(--lineColor);
  background: #ffffff;
  border-radius: var(--boxRadius);
}

.timelineLink {
  display: block;
  padding: 10px 36px 10px 12px;
  color: var(--textColor);
  text-decoration: none;
}

.timelineLink span {
  display: block;
  color: var(--mutedColor);
}

.timelineInfoButton {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--lineColor);
  border-radius: 999px;
  background: #ffffff;
  color: var(--mutedColor);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  z-index: 1;
}

.timelineInfoButton:hover {
  border-color: var(--brandColor);
  color: var(--brandColor);
}

.timelineSelectionMeta {
  display: block;
  margin-top: 4px;
  color: var(--mutedColor);
  font-size: 0.78rem;
  line-height: 1.3;
}

.timelineCheckIcon {
  display: inline;
  margin-right: 5px;
  color: inherit;
}

.timelineItem .timelineTitleClosed {
  color: var(--brandColor);
  font-weight: 700;
}

.timelineItem.isActive {
  border-color: var(--brandColor);
  box-shadow: inset 0 0 0 2px var(--brandColor);
}

.timelineItem.needsVotes {
  border-color: #c62828;
  animation: voteAlertBlink 1.1s infinite;
}

.timelineItem.hasPartialVotes {
  border-color: #e0aa10;
  box-shadow: inset 0 0 0 2px #e0aa10;
}

.timelineItem.isActive.needsVotes {
  box-shadow: inset 0 0 0 2px #c62828;
}

.timelineItem.isActive.hasPartialVotes {
  box-shadow: inset 0 0 0 2px #e0aa10;
}

.timelineItem.adminPendingVotes {
  border-color: #c62828;
  box-shadow: inset 0 0 0 2px #c62828;
}

.timelineItem.adminCompleteVotes {
  border-color: var(--brandColor);
  box-shadow: inset 0 0 0 2px var(--brandColor);
}

@keyframes voteAlertBlink {
  0%,
  100% {
    box-shadow: inset 0 0 0 2px #c62828, 0 0 0 0 rgba(198, 40, 40, 0.55);
  }

  50% {
    box-shadow: inset 0 0 0 2px #c62828, 0 0 0 4px rgba(198, 40, 40, 0.18);
  }
}

.flashMessage {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid var(--lineColor);
  border-radius: var(--boxRadius);
}

.flashSuccess {
  background: var(--selectedColor);
  border-color: #9acdab;
}

.flashError {
  background: #fde8e8;
  border-color: #e9a8a8;
}

.authBox,
.contentBlock {
  max-width: 980px;
  margin: 24px auto;
  padding: 20px;
  border: 1px solid var(--lineColor);
  background: #ffffff;
  border-radius: var(--boxRadius);
}

.authBox {
  max-width: 440px;
}

.pageHeader {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0;
}

.pageHeader h1,
.contentBlock h1,
.contentBlock h2,
.pieceCard h2 {
  margin: 0 0 6px;
}

.pageHeader p {
  margin: 0;
  color: var(--mutedColor);
}

.formHelp {
  margin: 0 0 14px;
  color: var(--mutedColor);
}

.compactBlock {
  padding: 14px 20px;
}

.bulkAssignForm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px) auto;
  gap: 12px;
  align-items: end;
}

.splitView {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 20px;
  align-items: start;
}

.leftPanel,
.rightPanel {
  min-width: 0;
}

.rightPanel {
  position: sticky;
  top: 84px;
  border: 1px solid var(--lineColor);
  padding: 16px;
  background: #ffffff;
  border-radius: var(--boxRadius);
}

.previewFrameWrap {
  position: relative;
  min-height: 520px;
}

.previewFrame {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 520px;
  border: 1px solid var(--lineColor);
  background: transparent;
  border-radius: var(--boxRadius);
}

.previewStatusBar {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid var(--lineColor);
  border-radius: var(--boxRadius);
}

.previewStatusBar.isPreviewOk {
  background: #effaf3;
  border-color: #b8dfc5;
}

.previewStatusBar.isPreviewBlocked {
  background: #fff0f0;
  border-color: #e2b2b2;
}

.previewStatusText {
  display: block;
  color: var(--textColor);
  font-size: 0.84rem;
  line-height: 1.35;
}

.previewUrlText {
  display: block;
  color: var(--mutedColor);
  font-size: 0.82rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.previewStatusBar .secondaryButton {
  justify-self: start;
}

.previewStatusBar.isPreviewOk .previewStatusText,
.previewStatusBar.isPreviewOk .previewUrlText {
  display: none;
}

.pieceCard {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--lineColor);
  background: #fff7d6;
  border-radius: var(--boxRadius);
}

.pieceSelected {
  background: var(--selectedColor);
  border-color: #95cba4;
}

.pieceBlocked {
  background: var(--blockedColor);
  color: #7a828a;
}

.pieceHeader,
.toolRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pieceTitle {
  margin: 0;
  color: var(--brandColor);
}

.pieceSubmitterNote {
  margin-left: 6px;
  color: var(--mutedColor);
  font-size: 0.78rem;
  font-weight: 400;
}

.pieceVoteCount {
  color: var(--mutedColor);
  font-size: 0.88rem;
  font-weight: 400;
}

.metaGrid,
.gridForm {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.wideField {
  grid-column: 1 / -1;
}

.formActionRow {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--lineColor);
}

.metaGrid {
  margin: 12px 0;
}

.pieceMetaGrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metaGrid div {
  padding: 8px;
  border: 1px solid var(--lineColor);
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--boxRadius);
}

.metaGrid dt {
  color: var(--mutedColor);
  font-size: 0.85rem;
}

.metaGrid dd {
  margin: 0;
  font-weight: 400;
}

.pieceImageMeta dd {
  margin-top: 6px;
}

.pieceMediaRow {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.pieceMediaRowNoImage {
  grid-template-columns: minmax(0, 1fr);
}

.pieceMetaImage {
  display: block;
  width: 100%;
  max-width: 200px;
  max-height: 300px;
  margin: 0 auto;
  object-fit: contain;
  border: 1px solid var(--lineColor);
  border-radius: var(--boxRadius);
  background: #ffffff;
}

.descriptionMeta {
  position: relative;
}

.descriptionCell {
  position: relative;
  min-width: 260px;
}

.descriptionPreview {
  position: relative;
  display: inline-block;
  cursor: help;
}

.descriptionOverlay {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 20;
  display: none;
  width: min(520px, 75vw);
  max-height: 260px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--lineColor);
  border-radius: var(--boxRadius);
  background: #ffffff;
  color: var(--textColor);
  box-shadow: 0 10px 30px rgba(31, 41, 51, 0.18);
  font-weight: 400;
  line-height: 1.45;
}

.descriptionPreview:hover .descriptionOverlay,
.descriptionPreview:focus .descriptionOverlay {
  display: block;
}

.voteSummary,
.linkRow,
.pieceLinkBox {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.voteSummaryLabel {
  color: var(--mutedColor);
  font-weight: 700;
}

.pieceLinkBox {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px;
  width: 100%;
  border: 1px solid var(--lineColor);
  background: var(--softGray);
  border-radius: var(--boxRadius);
}

.pieceLinkBox h3 {
  margin: 0;
  font-size: 1rem;
}

.pieceAuxGrid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: stretch;
}

.pieceAuxGrid .pieceLinkBox {
  margin: 0;
}

.pieceCommentAction {
  display: flex;
  justify-content: center;
}

.pieceLinkActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  align-items: center;
}

.pieceLinkButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--brandColor);
  border-radius: var(--boxRadius);
  background: #ffffff;
  color: var(--brandDark);
  font-weight: 700;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.pieceLinkButton:hover {
  background: var(--selectedColor);
}

@media (max-width: 1100px) {
  .bulkAssignForm {
    grid-template-columns: minmax(0, 1fr);
  }

  .pieceMetaGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pieceMediaRow {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .pieceMetaGrid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.voteForm,
.stackForm,
.searchForm {
  display: grid;
  gap: 12px;
}

.voteForm {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  column-gap: 28px;
}

.voteBox {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #c4ccd5;
  background: #eef1f4;
  border-radius: var(--boxRadius);
}

.voteBox.hasSubmittedVote {
  border: 3px solid #4f8d5f;
  box-shadow: inset 0 0 0 1px rgba(79, 141, 95, 0.1);
}

.voteBox h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.pieceSelected .voteBox {
  background: #cfe7d8;
  border-color: #8fc29f;
}

.pieceBlocked .voteBox {
  background: #dfe3e7;
  border-color: #c1c8cf;
}

label {
  display: grid;
  gap: 5px;
  color: var(--mutedColor);
  font-weight: 600;
}

.visuallyHidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

input,
select,
textarea {
  min-height: 38px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--lineColor);
  color: var(--textColor);
  font: inherit;
  border-radius: var(--boxRadius);
}

.priceInput {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.priceInput span {
  color: var(--textColor);
  font-weight: 700;
}

.checkboxLine {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--textColor);
}

.checkboxLine input {
  width: auto;
  min-height: auto;
}

.segmentedControl {
  display: grid;
  gap: 8px;
  align-self: stretch;
  justify-items: start;
}

.voteChoiceColumn {
  display: flex;
  align-self: stretch;
  justify-content: flex-start;
  padding-right: 6px;
}

.voteRadioInput {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.voteOption {
  display: inline-flex;
  color: var(--textColor);
  cursor: pointer;
}

.voteOption span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--lineColor);
  background: #ffffff;
  border-radius: var(--boxRadius);
}

.voteRadioInput:checked + .voteOption span {
  border-color: var(--brandColor);
  background: var(--selectedColor);
}

.commentColumn {
  display: grid;
  gap: 10px;
  grid-template-rows: 1fr auto;
  min-height: 100%;
}

.commentColumn label {
  min-height: 100%;
}

.commentColumn textarea {
  height: 100%;
  min-height: 132px;
  resize: vertical;
}

.primaryButton,
.secondaryButton,
.royalButton,
.dangerButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid transparent;
  color: #ffffff;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--boxRadius);
}

.primaryButton {
  background: var(--headerWine);
}

.primaryButton:hover {
  background: var(--headerWineDark);
}

.secondaryButton {
  background: #ffffff;
  border-color: var(--lineColor);
  color: var(--textColor);
}

.royalButton {
  background: #4169e1;
  color: #ffffff;
}

.royalButton:hover {
  background: #2f54c6;
}

.dangerButton {
  background: var(--dangerColor);
}

.hintBox {
  margin-top: 12px;
  padding: 10px;
  background: var(--softGray);
  border: 1px solid var(--lineColor);
  border-radius: var(--boxRadius);
}

.tableWrap {
  overflow-x: auto;
  border: 1px solid var(--lineColor);
  border-radius: var(--boxRadius);
}

.dataTable {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.dataTable th,
.dataTable td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--lineColor);
  text-align: left;
  vertical-align: top;
}

.dataTable th {
  background: var(--softGray);
}

.notesInlineTable {
  min-width: 1550px;
}

.notesInlineTable input,
.notesInlineTable select,
.notesInlineTable textarea {
  min-height: 34px;
  width: 100%;
  font: inherit;
}

.notesInlineTable textarea {
  min-width: 220px;
  resize: vertical;
}

.notesInlineTable td {
  white-space: nowrap;
}

.notesArchiveCell {
  min-width: 92px;
}

.notesNameCell {
  min-width: 220px;
}

.notesTextCell {
  min-width: 180px;
}

.notesShortCell {
  min-width: 130px;
}

.notesDurationCell {
  min-width: 110px;
}

.notesPriceCell {
  min-width: 120px;
}

.notesModeCell {
  min-width: 95px;
}

.notesCreatorCell {
  min-width: 230px;
}

.notesIconCell,
.notesIconStackCell {
  min-width: 88px;
  text-align: center;
  vertical-align: middle;
}

.notesIconStackCell {
  display: grid;
  gap: 8px;
}

.notesIconButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #d0d0d0;
  border-radius: 10px;
  background: #ffffff;
  color: #7c7c7c;
  font-size: 1.1rem;
  cursor: pointer;
}

.notesIconButton.hasValue {
  color: var(--accentColor);
  border-color: rgba(106, 34, 40, 0.35);
}

.notesIconButton.isFilled.hasValue {
  background: var(--accentColor);
  color: #ffffff;
}

.notesIconButton.isOutline {
  background: #fff8f8;
}

.notesImageButton.hasValue,
.notesDescriptionButton.hasValue,
.notesDateButton {
  background: #fff8f8;
}

.notesDateInput {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.notesUpdatedAtCell code {
  white-space: normal;
  display: inline-block;
  min-width: 132px;
}

.notesInlineField.isSaving {
  background: #eef4ff;
}

.notesInlineField.saveSuccess {
  border-color: #71b388;
  background: #f1fbf4;
}

.notesInlineField.saveError {
  border-color: #d66b6b;
  background: #fff1f1;
}

.notesIconButton.isSaving {
  background: #eef4ff;
}

.notesIconButton.saveSuccess {
  border-color: #71b388;
  background: #f1fbf4;
}

.notesIconButton.saveError {
  border-color: #d66b6b;
  background: #fff1f1;
}

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

.historyLine {
  margin-bottom: 5px;
}

.cardGrid,
.adminGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.adminTile {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--lineColor);
  color: var(--textColor);
  text-decoration: none;
  background: #ffffff;
  border-radius: var(--boxRadius);
}

.helpHero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 18px;
  align-items: center;
  margin: 22px 0;
  padding: 20px;
  border: 1px solid var(--lineColor);
  border-radius: var(--boxRadius);
  background: #ffffff;
}

.helpHero h2 {
  margin-top: 0;
}

.helpHero img,
.helpCard img {
  width: 100%;
  height: auto;
  border: 1px solid var(--lineColor);
  border-radius: var(--boxRadius);
  background: #ffffff;
}

.helpGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.helpCard {
  padding: 18px;
  border: 1px solid var(--lineColor);
  border-radius: var(--boxRadius);
  background: #ffffff;
}

.helpCard h2 {
  margin-top: 0;
}

.helpCard ul {
  margin-bottom: 0;
  padding-left: 20px;
}

.helpCard li + li {
  margin-top: 6px;
}

.wideHelpCard {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: center;
}

.approvalRow {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(180px, 260px) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--lineColor);
}

.notifyMukoForm {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.notifyMukoRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.notifyMukoRow p {
  max-width: 760px;
  margin: 0;
  color: var(--mutedColor);
}

.notifyMukoRow .notifyMukoForm {
  flex: 0 0 auto;
  margin-top: 0;
}

.assignmentBox {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--lineColor);
}

.assignmentBox h3 {
  margin: 0 0 10px;
}

.assignmentRow,
.assignmentAddForm {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.assignmentRow {
  justify-content: space-between;
  padding: 8px 10px;
  border: 1px solid var(--lineColor);
  border-radius: var(--boxRadius);
  background: var(--softGray);
}

.assignmentAddForm label {
  min-width: 260px;
}

.iconDangerButton {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--dangerColor);
  border-radius: 999px;
  background: #ffffff;
  color: var(--dangerColor);
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.sortableList {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.sortableList li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 6px 10px;
  padding: 10px;
  border: 1px solid var(--lineColor);
  background: #ffffff;
  cursor: grab;
  border-radius: var(--boxRadius);
}

.sortableList small {
  grid-column: 2;
  color: var(--mutedColor);
}

.dragHandle {
  grid-row: span 2;
  color: var(--accentColor);
}

.breakRemoveButton {
  align-self: start;
  width: 30px;
  height: 30px;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
}

.isDragging {
  opacity: 0.55;
}

.modalDialog {
  width: min(720px, calc(100vw - 30px));
  border: 1px solid var(--lineColor);
  padding: 0;
  border-radius: var(--boxRadius);
}

.modalContent {
  padding: 20px;
}

.modalActionRow {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.closeButton {
  float: right;
  width: 34px;
  height: 34px;
  border: 1px solid var(--lineColor);
  background: #ffffff;
  cursor: pointer;
  border-radius: var(--boxRadius);
}

.commentItem {
  padding: 12px 0;
  border-bottom: 1px solid var(--lineColor);
}

.copyText {
  width: 100%;
  min-height: 320px;
  white-space: pre;
}

.selectionPreviewModal {
  min-width: min(720px, 92vw);
}

.modalMeta {
  margin: -4px 0 16px;
  color: var(--mutedColor);
}

.modalInfoText {
  margin: -6px 0 16px;
  color: var(--mutedColor);
  font-size: 0.9rem;
  line-height: 1.45;
}

.notesEditorModal {
  min-width: min(640px, 92vw);
}

.notesModalField {
  display: grid;
  gap: 8px;
}

.notesModalField input,
.notesModalField textarea {
  width: 100%;
  font: inherit;
  border: 1px solid var(--lineColor);
  border-radius: var(--boxRadius);
  padding: 10px 12px;
}

.selectionPreviewTable tfoot th {
  background: var(--softGray);
}

.selectionPreviewDurationCell {
  white-space: nowrap;
}

.selectionPreviewDurationCell span:first-child {
  display: inline-block;
  min-width: 58px;
}

.voteSignalWrap {
  display: inline-flex;
  position: relative;
  margin-left: 10px;
  vertical-align: middle;
  padding: 0;
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.voteSignalChart {
  width: 84px;
  height: 46px;
  overflow: visible;
}

.voteSignalTrack,
.voteSignalArc {
  fill: none;
  stroke-linecap: butt;
  stroke-width: 12;
}

.voteSignalTrack {
  stroke: #edf0f3;
  filter: drop-shadow(0 0 0.4px #c8ced6);
}

.signalYes {
  stroke: #7bc67e;
}

.signalMaybe {
  stroke: #f1c84a;
}

.signalNo {
  stroke: #e06b6b;
}

.voteSignalTooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  z-index: 5;
  min-width: 130px;
  padding: 8px 10px;
  border: 1px solid var(--lineColor);
  border-radius: var(--boxRadius);
  background: #ffffff;
  color: var(--textColor);
  box-shadow: 0 8px 18px rgba(31, 41, 51, 0.16);
  font-size: 0.82rem;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
}

.voteSignalWrap.isTooltipOpen {
  z-index: 2;
}

.mutedInline {
  color: var(--mutedColor);
  font-weight: 400;
}

code {
  white-space: pre-wrap;
}

@media (max-width: 900px) {
  .topHeader,
  .pageHeader,
  .pieceHeader {
    align-items: stretch;
    flex-direction: column;
  }

  .splitView {
    grid-template-columns: 1fr;
  }

  .voteForm {
    grid-template-columns: 1fr;
  }

  .voteChoiceColumn {
    justify-content: stretch;
    padding-right: 0;
  }

  .segmentedControl {
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    justify-items: stretch;
    width: 100%;
  }

  .voteOption {
    width: 100%;
  }

  .voteOption span {
    width: 100%;
  }

  .rightPanel {
    display: none;
  }

  .approvalRow {
    grid-template-columns: 1fr;
  }

  .desktopAdminNavLink {
    display: none;
  }

  .adminMobileNav {
    display: flex;
  }

  .helpHero,
  .wideHelpCard {
    grid-template-columns: 1fr;
  }
}
