/* Vote guide — list + editor */

.vote-page {
  max-width: 760px;
}

.page-vote .page-header {
  margin-bottom: 20px;
}

.page-vote .page-header h1 {
  margin: 8px 0 10px;
}

.page-vote .page-header p {
  max-width: 52ch;
  color: var(--text-muted);
  line-height: 1.6;
}

.vote-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 22px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--cortis-green) 28%, var(--border));
  background: color-mix(in srgb, var(--cortis-green) 8%, var(--bg-card));
}

.vote-banner .ico {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--cortis-green);
}

.vote-banner span {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.vote-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.vote-count {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.vote-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.vote-empty {
  color: var(--text-muted);
  padding: 36px 12px;
  text-align: center;
}

/* ——— List cards ——— */

.vote-guide-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.vote-guide-card:hover {
  border-color: color-mix(in srgb, var(--cortis-green) 40%, var(--border));
  transform: translateY(-1px);
}

.vote-guide-inner {
  padding: 22px 22px 18px;
}

.vote-guide-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.vote-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.vote-status.is-open {
  background: color-mix(in srgb, var(--cortis-green) 18%, transparent);
  color: var(--cortis-green);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cortis-green) 35%, transparent);
}

.vote-status.is-closed {
  background: var(--surface-muted);
  color: var(--text-subtle);
}

.vote-guide-kicker {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.vote-card-actions {
  display: none;
  margin-left: auto;
  gap: 6px;
}

body.is-admin .vote-card-actions,
body.cms-editing .vote-card-actions {
  display: inline-flex;
}

.vote-ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.vote-ghost-btn:hover {
  border-color: color-mix(in srgb, var(--text-main) 35%, var(--border));
  color: var(--text-main);
}

.vote-mini-del {
  color: color-mix(in srgb, var(--cortis-red) 85%, #fff);
  border-color: color-mix(in srgb, var(--cortis-red) 35%, var(--border));
}

.vote-mini-del:hover {
  background: color-mix(in srgb, var(--cortis-red) 12%, transparent);
  border-color: var(--cortis-red);
  color: var(--cortis-red);
}

.vote-guide-title {
  margin: 0 0 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.vote-post-body {
  margin: 0;
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.vote-post-body.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.vote-post-body p,
.vote-post-body ul,
.vote-post-body ol {
  margin: 0 0 0.55em;
}

.vote-post-body p:last-child,
.vote-post-body ul:last-child,
.vote-post-body ol:last-child {
  margin-bottom: 0;
}

.vote-post-body a,
.vote-summary-editor .editor-body a {
  color: var(--cortis-green);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font-weight: 700;
}

.vote-post-more {
  display: inline-flex;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cortis-green);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.vote-post-more:hover {
  text-decoration: underline;
}

.vote-guide-media {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.vote-guide-media:has(.vote-guide-thumbs) {
  grid-template-columns: minmax(0, 1.4fr) minmax(96px, 0.55fr);
}

.vote-guide-hero,
.vote-guide-thumb {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-overlay);
  cursor: zoom-in;
}

.vote-guide-hero img,
.vote-guide-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vote-guide-hero {
  aspect-ratio: 16 / 10;
  max-height: 360px;
}

.vote-guide-media:not(:has(.vote-guide-thumbs)) .vote-guide-hero {
  aspect-ratio: 16 / 9;
  max-height: 400px;
}

.vote-guide-thumbs {
  display: grid;
  gap: 8px;
  grid-auto-rows: 1fr;
}

.vote-guide-thumb {
  min-height: 0;
  aspect-ratio: 1;
}

.vote-media-more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.vote-guide-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.vote-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.vote-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vote-guide-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--cortis-green);
  color: var(--text-on-accent);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.vote-guide-cta:hover {
  filter: brightness(1.06);
  color: var(--text-on-accent);
  transform: translateY(-1px);
}

/* ——— Guide detail / editor ——— */

.vote-guide-page {
  max-width: 1120px;
}

.vote-guide-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 18px;
}

.vote-guide-page .back-link:hover {
  color: var(--cortis-green);
}

.vote-edit-hero {
  display: none;
  margin-bottom: 22px;
}

body.is-admin .vote-edit-hero {
  display: block;
}

.vote-edit-hero h1 {
  margin: 8px 0 0;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.vote-compose {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 48px;
}

body.is-admin .vote-compose {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.vote-compose-main {
  padding: 24px 26px 28px;
}

.vote-compose-main:hover {
  border-color: var(--border);
  transform: none;
}

.vote-guide-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

body.is-admin .vote-guide-byline {
  display: none;
}

.vote-post-avatar {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cortis-green);
  color: var(--logo-icon-text, #111);
  border: 2px solid color-mix(in srgb, var(--cortis-pink) 70%, transparent);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 900;
}

.vote-post-who {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vote-post-who strong {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.vote-post-who span {
  color: var(--text-muted);
  font-size: 13px;
}

.vote-compose-main > .vote-guide-kicker {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

body.is-admin .vote-compose-main > .vote-guide-kicker {
  display: none;
}

#voteTitle {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  outline: none;
}

body:not(.is-admin) #voteTitle,
body.vote-guide-readonly #voteTitle {
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 12px;
  cursor: default;
  color: var(--text-main);
}

body:not(.is-admin) #voteTitle::placeholder,
body.vote-guide-readonly #voteTitle::placeholder {
  color: var(--text-subtle);
  opacity: 0.7;
}

.vote-compose-aside {
  display: none;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 88px;
}

body.is-admin .vote-compose-aside {
  display: flex;
}

.vote-panel {
  padding: 16px;
}

.vote-panel:hover {
  border-color: var(--border);
  transform: none;
}

.vote-panel h2 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.vote-editor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0;
}

.vote-editor label,
.vote-full {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.vote-editor input:not([type="checkbox"]):not([type="file"]):not([type="color"]),
.vote-editor select,
.vote-editor textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-input);
  color: var(--text-main);
  font: inherit;
  padding: 10px 12px;
}

.vote-open-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-input);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.vote-open-row span {
  line-height: 1.2;
}

.vote-editor .vote-open-switch {
  appearance: none;
  width: 44px;
  height: 24px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  background: var(--progress-track, var(--surface-overlay));
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease;
}

.vote-editor .vote-open-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.vote-editor .vote-open-switch:checked {
  background: var(--cortis-green);
}

.vote-editor .vote-open-switch:checked::after {
  transform: translateX(20px);
}

.vote-editor .vote-open-switch:disabled {
  cursor: default;
  opacity: 0.7;
}

.vote-editor .flatpickr-wrapper {
  width: 100%;
}

.vote-editor .flatpickr-alt-input {
  cursor: pointer;
}

.vote-editor .flatpickr-alt-input:disabled {
  cursor: default;
}

.flatpickr-calendar {
  z-index: 90;
}

.vote-save-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vote-save-panel p {
  margin: 0 0 4px;
  color: var(--cortis-red);
  font-size: 12px;
  font-weight: 700;
}

.vote-save-panel .antd-ui-btn {
  width: 100%;
  justify-content: center;
}

.vote-save-panel .antd-ui-btn-danger {
  order: 3;
}

/* Summary editor */

.vote-summary-wrap {
  margin: 4px 0 18px;
}

.vote-photos-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

body:not(.is-admin) .vote-photos-label {
  display: none;
}

.vote-summary-editor .editor-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
  padding: 6px 8px;
  border-radius: 10px 10px 0 0;
  background: color-mix(in srgb, var(--surface-muted) 88%, var(--bg-card));
  border: 1px solid var(--border);
  border-bottom: none;
}

.vote-summary-editor .editor-toolbar[hidden] {
  display: none;
}

.tool-btn {
  width: 34px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tool-btn .ico {
  width: 16px;
  height: 16px;
}

.tool-btn[data-cmd="color"] {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tool-btn[data-cmd="codeblock"],
.tool-btn[data-cmd="code"] {
  font-size: 12px;
  letter-spacing: -0.04em;
}

.tool-btn:hover,
.tool-btn.is-on {
  background: color-mix(in srgb, var(--text-main) 8%, transparent);
  color: var(--text-main);
}

.toolbar-spacer {
  flex: 1;
}

.toolbar-more {
  position: relative;
}

.color-input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 180px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  z-index: 30;
}

.more-menu[hidden] { display: none; }

.more-menu button {
  display: block;
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-main);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.more-menu button:hover {
  background: var(--surface-muted);
}

.vote-summary-editor .editor-body {
  position: relative;
  min-height: 240px;
  padding: 18px 14px;
  border: 1px solid var(--border);
  border-radius: 0 0 10px 10px;
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.75;
  outline: none;
}

.vote-summary-editor .editor-body.is-empty::before {
  content: attr(data-placeholder);
  position: absolute;
  left: 14px;
  top: 18px;
  pointer-events: none;
  color: var(--text-subtle);
  font-size: 16px;
}

.vote-summary-editor .editor-body:focus {
  border-color: color-mix(in srgb, var(--cortis-green) 40%, var(--border));
}

.vote-summary-editor .editor-body h2 {
  font-size: 22px;
  margin: 1em 0 0.4em;
}

.vote-summary-editor .editor-body blockquote {
  margin: 12px 0;
  padding: 4px 0 4px 14px;
  border-left: 3px solid var(--cortis-green);
  color: var(--text-muted);
}

.vote-summary-editor .editor-body img {
  max-width: 100%;
  border-radius: 10px;
  margin: 12px 0;
}

.vote-summary-editor .editor-body pre {
  background: var(--surface-muted);
  padding: 12px;
  border-radius: 8px;
  overflow: auto;
  font-size: 13px;
}

.vote-summary-editor .editor-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.vote-summary-editor .editor-body iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 10px;
  margin: 12px 0;
}

body:not(.is-admin) .vote-summary-editor .editor-toolbar {
  display: none;
}

body:not(.is-admin) .vote-summary-editor .editor-body {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 15px;
  line-height: 1.65;
}

body:not(.is-admin) .vote-summary-editor .editor-body.is-empty {
  display: none;
}

body:not(.is-admin) .vote-banner {
  display: none;
}

/* Tags */

.vote-guide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.vote-tags-wrap {
  position: relative;
}

.vote-tags-wrap .meta-line {
  width: 100%;
  border: none;
  background: none;
  color: var(--text-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 0 10px;
  text-align: left;
  cursor: pointer;
}

.vote-tags-wrap .meta-line:hover {
  color: var(--text-main);
}

.vote-tags-wrap .chip-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

.vote-tags-wrap .chip,
.chip-row .chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cortis-green) 16%, var(--surface-muted));
  color: var(--text-main);
  font-size: 12px;
  font-weight: 700;
}

.vote-tags-wrap .chip .cat-ico,
.chip-row .chip .cat-ico {
  width: 12px;
  height: 12px;
}

.vote-tags-wrap .chip button,
.chip-row .chip button {
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  line-height: 1;
}

.cat-card {
  margin-top: 10px;
  padding: 16px 18px 14px;
  border-radius: 16px;
  background: var(--bg-elevated, var(--bg-card));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
}

.cat-card[hidden] { display: none; }

.cat-card h3 {
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.cat-search {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin: 0 0 8px;
  padding: 0 2px;
}

.tag-plus {
  display: grid;
  place-items: center;
  color: var(--text-subtle);
  flex-shrink: 0;
}

.tag-plus .ico {
  width: 16px;
  height: 16px;
}

.vote-editor .cat-search input,
.vote-editor .cat-search #tagSearch {
  flex: 1;
  min-width: 0;
  width: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-main);
  caret-color: var(--text-main);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 0;
  outline: none;
}

.vote-editor .cat-search input::placeholder {
  color: var(--text-subtle);
  opacity: 1;
}

.tag-hint {
  min-height: 18px;
  margin: 0 0 12px;
  color: var(--text-subtle);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.tag-hint:empty {
  display: none;
}

.tag-hint strong {
  color: var(--text-main);
  font-weight: 800;
}

.cat-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px 10px;
}

.cat-empty {
  width: 100%;
  margin: 8px 0 0;
  text-align: center;
  color: var(--text-subtle);
  font-size: 13px;
}

.cat-opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.cat-opt .cat-ico {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.cat-opt.featured {
  background: rgba(232, 201, 138, 0.14);
  border: 1px solid rgba(232, 201, 138, 0.5);
  color: #F3E2B8;
}

.cat-opt.topic {
  background: var(--surface-muted);
  border: 1px solid transparent;
  color: var(--text-main);
}

.cat-opt:hover {
  transform: translateY(-1px);
}

.cat-opt.featured.is-on {
  background: #E8C98A;
  border-color: #E8C98A;
  color: #3D2A0C;
  box-shadow: 0 0 0 2px rgba(212, 168, 75, 0.25);
}

.cat-opt.topic.is-on {
  background: var(--cortis-green);
  color: var(--text-on-accent);
}

/* Photos */

.vote-photos-wrap {
  margin: 4px 0 8px;
}

.vote-photos-wrap[hidden] {
  display: none;
}

.vote-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
}

.vote-photos.is-drag {
  outline: 2px dashed var(--cortis-green);
  outline-offset: 4px;
  border-radius: 16px;
}

.vote-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-overlay);
  cursor: zoom-in;
}

.vote-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vote-photo-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.vote-photo-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 132px;
  aspect-ratio: 1;
  border: 1.5px dashed color-mix(in srgb, var(--text-subtle) 55%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-muted) 70%, transparent);
  color: var(--text-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.vote-photo-add:hover,
.vote-photos.is-drag .vote-photo-add {
  border-color: var(--cortis-green);
  color: var(--cortis-green);
  background: color-mix(in srgb, var(--cortis-green) 8%, var(--surface-muted));
}

.vote-photo-add-ico .ico {
  width: 22px;
  height: 22px;
}

.vote-photo-add small {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-subtle);
  text-align: center;
  padding: 0 8px;
}

body:not(.is-admin) .vote-photos {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

body:not(.is-admin) .vote-photos.count-1 {
  grid-template-columns: 1fr;
}

body:not(.is-admin) .vote-photos.count-2 {
  grid-template-columns: 1fr 1fr;
}

body:not(.is-admin) .vote-photos.count-3,
body:not(.is-admin) .vote-photos.count-4 {
  grid-template-columns: repeat(2, 1fr);
}

body:not(.is-admin) .vote-photos .vote-photo {
  border-radius: 12px;
}

body:not(.is-admin) .vote-photos.count-1 .vote-photo {
  aspect-ratio: 16 / 10;
  max-height: 420px;
}

body:not(.is-admin) .vote-photos.count-2 .vote-photo {
  aspect-ratio: 3 / 4;
}

/* Lightbox */

.vote-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 48px 16px 24px;
  background: rgba(0, 0, 0, 0.82);
}

.vote-lightbox[hidden] {
  display: none;
}

.vote-lightbox img {
  max-width: min(960px, 100%);
  max-height: calc(100vh - 80px);
  margin: 0 auto;
  object-fit: contain;
  border-radius: 12px;
}

.vote-lightbox-close,
.vote-lightbox-nav {
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
}

.vote-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}

.vote-lightbox-nav {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.vote-lightbox-nav.is-off {
  visibility: hidden;
}

.vote-lightbox-close .ico,
.vote-lightbox-nav .ico {
  width: 20px;
  height: 20px;
}

@media (max-width: 960px) {
  body.is-admin .vote-compose {
    grid-template-columns: 1fr;
  }

  .vote-compose-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .vote-guide-inner {
    padding: 18px 16px 16px;
  }

  .vote-guide-media:has(.vote-guide-thumbs) {
    grid-template-columns: 1fr;
  }

  .vote-guide-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }

  .vote-guide-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .vote-guide-cta {
    width: 100%;
  }

  .vote-compose-main {
    padding: 18px 16px 20px;
  }

  .vote-lightbox {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}
