/* Events — viewing half (Figma "Events" 22316:176194) — js/screens/events.js. Prefix ev-.
   Reuses .n-tabs/.n-tab (screens.css), .sm-chip (att-mark.css), .stl-star, .sl-back, .ac-head/.ac-icon32, .mk-* + .an-foot (forms),
   .rs-search (resources.css), .sbp-ta (subject-profile.css), .an-field (announce.css), .as-list (assessment.css). */

.ev-ico { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; }
.ev-ico:hover { background: var(--heles); }

/* ---------- List (22316:176195) ---------- */
.screen.ev { background: var(--goku); padding-bottom: 110px; }
.ev-top { padding-top: calc(var(--sb-dash) + 16px); }
.ev-head { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px; }
.ev-head h1 { flex: 1; min-width: 0; }
.ev-head-icons { display: flex; gap: 8px; }
.ev-searchrow { padding: 12px 20px 0; }
.ev-tabs { margin-top: 12px; }
.ev-tabs .n-tab small, .ev-d-tabs .n-tab small { font: 400 12px/16px var(--font); color: var(--trunks); margin-left: 4px; }
/* .sm-chips (att-mark.css, loaded later) sets margin: 0 -20px — qualify so the Figma spacing wins:
   header → 12 → tabs (56) → 16 → chips → 16 → cards, chips inset 20px. */
.sm-chips.ev-chips { margin: 16px 0; padding: 0 20px; }
.ev-list { display: flex; flex-direction: column; gap: 12px; padding: 0 20px; }

.ev-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; width: 100%; height: 240px;
  padding: 12px; border-radius: 8px; overflow: hidden; background: #595D62; text-align: left; isolation: isolate;
}
.ev-card.no-img { height: 124px; }
.ev-card-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ev-card-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40.5%, #000 92.4%); }
.ev-card:hover .ev-card-bg { transform: scale(1.02); transition: transform .3s; }
.ev-card-top { display: flex; justify-content: flex-end; }
.ev-card-info { display: flex; flex-direction: column; gap: 8px; }
.ev-card-title { font: 400 18px/28px var(--font); color: var(--gohan); }
.ev-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ev-tags > span {
  display: inline-flex; align-items: center; gap: 4px; height: 20px; min-width: 20px; padding: 0 8px; border: 0.4px solid var(--gohan);
  border-radius: 4px; font: 400 10px/16px var(--font); color: var(--gohan); white-space: nowrap;
}
.ev-tags > span.has-ico { padding-left: 4px; }

.ev-badge {
  flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 6px 8px; border-radius: 9999px;
  font: 700 12px/16px var(--font); color: var(--gohan); white-space: nowrap;
}
.ev-badge img { flex: none; }

.ev-fab {
  position: absolute; right: 16px; bottom: 97px; z-index: 5; display: flex; align-items: center; gap: 4px; height: 56px; padding: 12px 20px 12px 16px;
  border-radius: 16px; background: var(--piccolo); color: var(--gohan); font: 700 16px/24px var(--font);
  box-shadow: 0 4px 8px 3px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.3);
}
.ev-fab:hover { filter: brightness(1.08); }
.ev-fab.is-low { bottom: 32px; }

/* ---------- Detail (22316:176879 / 176935) ---------- */
.screen.ev-d { background: var(--goku); padding-bottom: 110px; }
.ev-d-top { background: var(--gohan); padding-top: var(--sb-dash); }
.ev-d-bar { display: flex; align-items: center; justify-content: space-between; height: 42px; padding: 16px 20px 4px; box-sizing: content-box; }
.ev-d-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px 20px; }
.ev-d-title { font: 700 24px/32px var(--font); color: var(--bulma); }
.ev-d-date { font: 400 14px/24px var(--font); color: var(--trunks); }
.ev-venue { display: flex; align-items: center; gap: 2px; font: 400 14px/24px var(--font); color: var(--trunks); }
.ev-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 8px; background: var(--goku); font: 400 14px/24px var(--font); color: var(--bulma); }
.ev-d-tabs .n-tab { flex: 1; }
.ev-d-body { padding: 24px 20px 0; }

.ev-gallery { display: flex; flex-direction: column; gap: 24px; }
.ev-ggroup { display: flex; flex-direction: column; gap: 12px; }
.ev-glabel { display: flex; align-items: center; gap: 8px; font: 700 12px/16px var(--font); letter-spacing: 0.5px; text-transform: uppercase; color: var(--bulma); }
.ev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ev-thumb { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--beerus); }
.ev-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-thumb:hover img { filter: brightness(0.94); }
.ev-thumb .ev-check { position: absolute; top: 4px; left: 4px; }

.ev-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 48px 16px; text-align: center; font: 400 16px/24px var(--font); color: var(--trunks); }
.ev-empty b { font-weight: 700; }
.ev-empty.is-star { gap: 8px; padding: 72px 0 40px; }

.ev-cards { display: flex; flex-direction: column; gap: 24px; }
.ev-box { display: flex; flex-direction: column; gap: 16px; padding: 16px; border-radius: 16px; background: var(--gohan); }
.ev-box-head { display: flex; align-items: center; gap: 8px; }
.ev-box-head .ev-box-title { flex: 1; min-width: 0; }
.ev-box-title { font: 700 14px/24px var(--font); color: var(--bulma); }
.ev-box-actions { display: flex; gap: 8px; }
.ev-muted { font: 400 14px/20px var(--font); color: var(--trunks); }
.ev-mini {
  flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 8px 8px 8px 4px; border-radius: 4px;
  background: var(--jiren); font: 700 12px/16px var(--font); color: var(--piccolo); white-space: nowrap;
}
.ev-mini:hover { background: rgba(78, 70, 180, 0.2); }
.ev-toggle-link { display: flex; align-items: center; gap: 4px; font: 400 14px/24px var(--font); color: var(--piccolo); }
.ev-toggle-link[aria-expanded="false"] img { transform: rotate(180deg); }

.ev-desc { position: relative; padding: 12px 16px; border-radius: 8px; background: var(--heles); font: 400 16px/24px var(--font); color: var(--bulma); }
.ev-desc p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-right: 0; }
.ev-desc.is-open p { display: block; }
.ev-more { font: 700 16px/24px var(--font); color: var(--piccolo); }
.ev-desc:not(.is-open) .ev-more { position: absolute; right: 16px; bottom: 12px; padding-left: 8px; padding-left: 36px; background: linear-gradient(90deg, rgba(245, 245, 245, 0), #F5F5F5 30px); }

.ev-kv { display: flex; flex-direction: column; gap: 12px; padding: 12px 16px; border-radius: 8px; background: var(--goku); font: 400 12px/16px var(--font); }
.ev-kv p { display: flex; gap: 2px; }
.ev-kv p b, .ev-kv p span { flex: 1 1 0; min-width: 0; }
.ev-kv b { font-weight: 500; color: var(--bulma); }
.ev-kv span { color: var(--trunks); }
.ev-kv.is-block { gap: 2px; }

.ev-people { display: flex; flex-wrap: wrap; gap: 4px; }
.ev-person { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px 4px 4px; border-radius: 9999px; background: var(--heles); font: 400 14px/20px var(--font); color: var(--bulma); white-space: nowrap; }
.ev-av { flex: none; display: grid; place-items: center; border: 1px solid var(--beerus); border-radius: 50%; background: var(--gohan); font: 700 10px/16px var(--font); color: var(--bulma); }

.ev-timeline { position: relative; display: flex; flex-direction: column; gap: 24px; list-style: none; }
.ev-timeline li { position: relative; display: flex; flex-direction: column; gap: 4px; padding-left: 24px; }
.ev-timeline li::before { content: ''; position: absolute; left: 0; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 179, 25, 0.56); }
.ev-timeline li.is-done::before { background: rgba(92, 51, 207, 0.56); }
.ev-timeline li:not(:last-child)::after { content: ''; position: absolute; left: 5px; top: 22px; bottom: -22px; width: 2px; background: var(--beerus); }
.ev-timeline p { font: 400 14px/24px var(--font); color: var(--bulma); }
.ev-timeline b { font-weight: 700; }
.ev-timeline time { font: 400 12px/16px var(--font); color: #5D626C; }

.ev-subs { display: flex; flex-direction: column; gap: 8px; }
.ev-sub { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px; border-radius: 8px; background: var(--goku); text-align: left; }
.ev-sub:hover { background: #EDEDED; }
.ev-sub-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ev-sub-title { font: 400 16px/24px var(--font); color: var(--bulma); }
.ev-subtags { display: flex; flex-wrap: wrap; gap: 4px; }
.ev-subtags span { height: 20px; padding: 0 8px; border: 0.4px solid var(--trunks); border-radius: 4px; font: 400 10px/19px var(--font); color: var(--trunks); white-space: nowrap; }

/* Winner card (179747) */
.ev-wins { display: flex; flex-direction: column; gap: 8px; }
.ev-wins.is-page { gap: 8px; margin-top: 24px; }
.ev-win { display: flex; flex-direction: column; border: 1px solid var(--beerus); border-radius: 8px; overflow: hidden; background: var(--gohan); }
.ev-win-top { display: flex; align-items: center; gap: 8px; padding: 8px 12px 0; }
.ev-win-pos { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font: 700 14px/24px var(--font); color: #FFB319; }
.ev-win-pos.is-dq { color: #FFB319; }
.ev-win-score { flex: none; padding: 2px 16px 2px 12px; border-radius: 8px; background: var(--heles); font: 700 14px/24px var(--font); color: var(--trunks); }
.ev-win-who { display: flex; align-items: center; gap: 12px; padding: 12px; }
.ev-win-who > span, .ev-sprow-text, .ev-wrow-who > span, .ev-results button > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ev-win-who b { font: 400 16px/24px var(--font); color: var(--bulma); }
.ev-win-who small, .ev-wrow-who small, .ev-results small { font: 400 12px/16px var(--font); color: var(--trunks); }
.ev-win-note { padding: 12px; border-top: 1px solid var(--beerus); background: var(--goku); font: 400 12px/16px var(--font); color: var(--trunks); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-photo-av { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

/* Staff sheet (177129 / 177258) */
.ev-ssheet { display: flex; flex-direction: column; gap: 16px; }
.ev-sfield { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 16px; border-radius: 8px; background: var(--heles); font: 400 16px/24px var(--font); color: var(--trunks); text-align: left; }
.ev-sfield:hover { background: #EDEDED; }
.ev-dates { display: flex; flex-direction: column; border: 1px solid var(--beerus); border-radius: 8px; }
.ev-daterow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; font: 400 16px/24px var(--font); color: var(--trunks); }
.ev-daterow + .ev-daterow { border-top: 1px solid var(--beerus); }
.ev-datepill { position: relative; padding: 2px 8px; border-radius: 4px; background: var(--jiren); color: var(--piccolo); cursor: pointer; }
.ev-datepill input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* Forms (Add Images / Edit Images / Winners / Staff picker) */
.ev-form-head { margin-bottom: 24px; }
.ev-form-head h1 { flex: 1; min-width: 0; }
.ev-row-box { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border: 1px solid var(--beerus); border-radius: 8px; background: var(--gohan); font: 400 16px/24px var(--font); color: var(--trunks); }
.ev-toggle { flex: none; display: flex; border-radius: 13px; }
.ev-ai-body > * + *, .ev-ei .mk-body > * + * { margin-top: 24px; }
.ev-ai-body > .ev-form-head + *, .ev-ei .ev-form-head + * { margin-top: 0; }
.ev-upbox { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--beerus); border-radius: 8px; background: var(--gohan); }
.ev-upbox p { font: 400 16px/24px var(--font); color: var(--trunks); }
.ev-updrop { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding: 24px 16px; border-radius: 8px; background: var(--goku); text-align: center; }
.ev-updrop .mk-drop-art { margin-bottom: 12px; }
.ev-updrop:hover { background: #EDEDED; }
.ev-files { display: flex; flex-direction: column; border: 1px solid var(--beerus); border-radius: 8px; background: var(--gohan); }
.ev-frow { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.ev-frow + .ev-frow { border-top: 1px solid var(--beerus); }
.ev-frow-main { display: flex; align-items: center; gap: 12px; }
.ev-frow-main img:first-child { flex: none; border-radius: 4px; object-fit: cover; }
.ev-frow-main > span, .ev-frow-cap { flex: 1; min-width: 0; font: 400 14px/20px var(--font); color: var(--trunks); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-frow-cap { border: 0; outline: 0; background: transparent; padding: 2px 0; border-bottom: 1px dashed transparent; }
.ev-frow-cap:focus { border-bottom-color: var(--piccolo); color: var(--bulma); }
.ev-frow small { font: 400 12px/16px var(--font); color: var(--trunks); }
.ev-x { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; }
.ev-x:hover { background: var(--heles); }
.ev-change {
  position: relative; display: grid; place-items: center; width: 100%; height: 140px; border-radius: 8px; overflow: hidden;
  background-size: cover; background-position: center; font: 700 16px/24px var(--font); color: var(--gohan);
}
.ev-change::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
.ev-change span { position: relative; }
.ev-cap { padding: 8px 16px; }
.ev-capsheet { display: flex; flex-direction: column; gap: 16px; }
.ev-capsheet .an-field { padding: 8px 16px; }

/* Staff picker (180323 / 180639) */
.ev-sp-body { padding-bottom: 24px; }
.ev-to { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 -20px 16px; padding: 12px 20px; border-top: 1px solid var(--beerus); border-bottom: 1px solid var(--beerus); background: var(--gohan); }
.ev-to-label { font: 400 14px/24px var(--font); color: var(--trunks); }
.ev-to-chips { display: contents; }
.ev-tochip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 2px; border-radius: 9999px; background: var(--jiren); font: 400 14px/20px var(--font); color: var(--bulma); }
.ev-tochip button { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; }
.ev-to input { flex: 1; min-width: 120px; border: 0; outline: 0; background: transparent; font: 400 14px/24px var(--font); color: var(--bulma); }
.sm-chips.ev-sp-chips { margin-bottom: 16px; }
.ev-sp-list { display: flex; flex-direction: column; gap: 8px; }
.ev-sprow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 8px; background: var(--gohan); text-align: left; }
.ev-sprow.is-on { background: linear-gradient(var(--jiren), var(--jiren)), var(--gohan); }
.ev-sprow b { font: 700 16px/24px var(--font); color: var(--bulma); }
.ev-sprow small { font: 400 12px/16px var(--font); color: var(--trunks); }

/* Checkbox (MDS-Public-TW-Checkbox) */
.ev-check { flex: none; position: relative; display: inline-block; width: 18px; height: 18px; border: 1.5px solid var(--trunks); border-radius: 4px; background: var(--gohan); }
.ev-check.sm { width: 16px; height: 16px; border-color: var(--trunks); background: rgba(0, 0, 0, 0.56); }
.ev-check.is-on, .ev-thumb.is-on .ev-check { border-color: var(--piccolo); background: var(--piccolo) url('../assets/events/check-16.svg') center / 12px no-repeat; }
button.ev-check { cursor: pointer; }

/* Winners list (179711) */
.ev-switch { display: flex; gap: 8px; margin: 0 -20px; padding: 0 20px; overflow-x: auto; scrollbar-width: none; }
.ev-switch::-webkit-scrollbar { display: none; }
.ev-sw { flex: none; display: flex; align-items: center; gap: 8px; height: 32px; padding: 4px 12px; border-radius: 8px; background: var(--goku); font: 700 14px/24px var(--font); color: var(--trunks); white-space: nowrap; }
.ev-w .ev-sw { background: #EBEBEB; }
.ev-sw.is-on { background: var(--piccolo); color: var(--gohan); }
.ev-sw-n { min-width: 16px; padding: 0 4px; border-radius: 100px; background: rgba(0, 0, 0, 0.35); font: 500 12px/16px var(--font); color: var(--gohan); text-align: center; }
.ev-sw.is-on .ev-sw-n { background: var(--gohan); color: var(--piccolo); }
.screen.mk.ev-w .mk-body { padding-bottom: 110px; }

/* Add Winners (179577 / 179607 / 179676) */
.ev-wa-body { display: flex; flex-direction: column; gap: 12px; }
.ev-wa-body .ev-form-head { margin-bottom: 12px; }
.ev-wsearch { position: relative; }
.ev-winput { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 8px; background: #EBEBEB; }
.ev-winput input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 400 16px/24px var(--font); color: var(--bulma); }
.ev-winput input::placeholder { color: var(--bulma); }
.ev-winput button { font: 400 14px/20px var(--font); color: var(--trunks); }
.ev-filters { margin-top: 8px; } /* one row, scrolls sideways (.m-chips.hscroll bleeds to the screen edges) */
.ev-wnone { margin: 12px 0 0; text-align: center; font: 400 14px/20px var(--font); color: var(--trunks); }
.ev-fchip img { flex: none; }
.ev-results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 4; display: flex; flex-direction: column; padding: 4px; border-radius: 8px; background: var(--gohan); box-shadow: 0 8px 12px rgba(0, 0, 0, 0.16), 0 0 0.5px rgba(0, 0, 0, 0.4); }
.ev-results button { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; text-align: left; }
.ev-results button:hover { background: var(--heles); }
.ev-results b { font: 400 16px/24px var(--font); color: var(--bulma); }
.ev-wrows { display: flex; flex-direction: column; gap: 16px; margin-top: 12px; }
.ev-wrow { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--beerus); border-radius: 8px; background: var(--gohan); }
.ev-wrow-who { display: flex; align-items: center; gap: 8px; }
.ev-wrow-who b { font: 400 16px/24px var(--font); color: var(--bulma); }
.ev-select { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 8px 12px; border: 1px solid var(--beerus); border-radius: 8px; background: var(--gohan); font: 400 14px/24px var(--font); color: var(--trunks); text-align: left; }
.ev-select.is-filled { color: var(--bulma); }
.ev-select:hover { border-color: #CFCFCF; }
.ev-ta-sm textarea { min-height: 56px; font-size: 14px; }
.ev-remarks { margin-top: 24px; background: #EBEBEB; border-color: #EBEBEB; }

/* ---------- Photos (176576 / 176799 / 176396 / 176750 / 176625) ---------- */
.screen.ev-g { background: var(--goku); padding-bottom: 32px; }
.ev-g-top { background: var(--gohan); padding-top: calc(var(--sb-dash) + 16px); }
.ev-g-head { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 20px 8px; }
.ev-g-head h1 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-g-title { font-size: 20px; }
.ev-g.is-selecting .ev-g-top { padding-bottom: 8px; }
.ev-gsearch { flex: 1; min-width: 0; background: var(--goku); }
.ev-g-tabs .n-tab { flex: 1; }
.ev-tchips { display: flex; gap: 4px; padding: 16px 20px; overflow-x: auto; scrollbar-width: none; }
.ev-tchips::-webkit-scrollbar { display: none; }
.ev-tchip { flex: none; display: flex; align-items: center; gap: 4px; height: 32px; padding: 4px 12px 4px 8px; border-radius: 9999px; background: #EBEBEB; font: 700 12px/16px var(--font); color: var(--trunks); white-space: nowrap; }
.ev-tchip img { filter: brightness(0) invert(0.36); }
.ev-tchip.is-on { padding: 4px 12px; background: var(--piccolo); color: var(--gohan); }
.ev-tchip.is-on img { filter: none; }
.ev-g-body { padding: 0 20px; }
.ev-selall { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.ev-selall-btn { display: flex; align-items: center; gap: 12px; font: 400 14px/24px var(--font); color: var(--bulma); }
.ev-egrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 8px; }
.ev-ecard { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.ev-ecard img { width: 100%; aspect-ratio: 1; border-radius: 8px; object-fit: cover; margin-bottom: 4px; }
.ev-ecard b { font: 400 14px/20px var(--font); color: var(--bulma); }
.ev-ecard span { font: 400 11px/14px var(--font); color: #5D626C; }
.ev-linklist { display: flex; flex-direction: column; gap: 8px; }
.ev-link { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 8px; background: var(--gohan); }
.ev-link b { font: 700 16px/24px var(--font); color: var(--bulma); }
.ev-link > span { font: 400 14px/20px var(--font); color: var(--trunks); }
.ev-open { align-self: flex-end; margin-top: 8px; padding: 4px 8px 4px 12px; font-size: 14px; line-height: 24px; }

/* Viewer (176448) + info (176512) */
.screen.ev-ph { --ev-ph-panel: 128px; background: #000; overflow: hidden; } /* panel = caption + date only */
.ev-ph-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-ph-img { touch-action: pan-y; user-select: none; -webkit-user-drag: none; }
.ev-ph.is-info .ev-ph-img { height: calc(100% - var(--ev-ph-panel)); }
/* Zoomed: enlarged photo dragged with a finger (size + position set in JS) */
.ev-ph.is-zoom .ev-ph-img { inset: auto; left: 0; top: 0; max-width: none; object-fit: fill; touch-action: none; cursor: grab; will-change: transform; }
.ev-ph.is-zoom .ev-ph-img:active { cursor: grabbing; }
/* Zoom button — bottom right of the photo (above the details panel; screen corner when zoomed) */
.ev-ph-zoom { position: absolute; right: 16px; bottom: calc(var(--ev-ph-panel) + 16px); z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--bulma); background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(8px); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); }
.ev-ph.is-zoom .ev-ph-zoom { bottom: 112px; } /* above the thumbnail strip */
.ev-ph-bar { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; padding: calc(var(--sb-dash) + 12px) 20px 12px; background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(8px); }
.ev-ph-actions { display: flex; gap: 16px; }
.ev-ph-strip { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 8px 8px 34px; overflow-x: auto; scrollbar-width: none; background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(8px); }
.ev-ph-strip::-webkit-scrollbar { display: none; }
.ev-ph-strip button { flex: none; width: 44px; height: 44px; border-radius: 4px; overflow: hidden; border: 2px solid transparent; }
.ev-ph-strip button.is-on { width: 52px; height: 52px; margin-top: -4px; border-color: #000; }
.ev-ph-strip img { width: 100%; height: 100%; object-fit: cover; }
.ev-ph-info { position: absolute; left: 0; right: 0; bottom: 0; height: var(--ev-ph-panel); display: flex; flex-direction: column; justify-content: flex-start; padding: 20px 20px 34px; border-radius: 0 0 16px 16px; background: var(--gohan); overflow-y: auto; }
.ev-ph-info-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ev-ph-info-head > div { display: flex; flex-direction: column; }
.ev-ph-info-head b { font: 700 18px/28px var(--font); color: var(--bulma); }
.ev-ph-info-head span, .ev-ph-info p span { font: 400 14px/24px var(--font); color: var(--trunks); }
.ev-ph-info .ev-mini { padding: 8px 16px; font-size: 14px; line-height: 24px; }
.ev-ph-info p { display: flex; flex-direction: column; }
.ev-ph-info p b { font: 700 14px/24px var(--font); color: var(--bulma); }
.ev-ph-foot { font: 400 14px/24px var(--font); color: var(--trunks); }

/* Trip Evaluation — card on the trip detail (replaces Winners) and the evaluation screen */
.ev-eval-card { width: 100%; flex-direction: row; align-items: center; gap: 8px; text-align: left; }
.ev-eval-card:hover { background: #FCFCFC; }
.ev-eval-card > img { flex: none; }
.ev-eval-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ev-eval-sub { font: 400 12px/16px var(--font); color: var(--trunks); }
.ev-eval-body { display: flex; flex-direction: column; gap: 16px; }
.ev-eval-body .ev-form-head { margin-bottom: 0; }
.ev-eval-trip { margin: -8px 0 0; font: 400 14px/20px var(--font); color: var(--trunks); }
.ev-eval-legend { display: flex; flex-wrap: wrap; gap: 8px 12px; padding: 12px 16px; border-radius: 8px; background: var(--jiren); font: 400 12px/16px var(--font); color: var(--bulma); }
.ev-eval-legend span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.ev-eval-legend b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--piccolo); font: 700 10px/1 var(--font); color: var(--gohan); }
.ev-eval-list { display: flex; flex-direction: column; gap: 8px; }
.ev-eval-q { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 8px; background: var(--gohan); }
.ev-eval-q-title { display: flex; gap: 4px; margin: 0; font: 700 14px/24px var(--font); color: var(--bulma); }
.ev-eval-scale { display: flex; justify-content: space-between; gap: 8px; }
.ev-eval-dot { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--beerus); border-radius: 50%; background: var(--gohan); font: 400 16px/24px var(--font); color: var(--bulma); }
.ev-eval-dot:hover { border-color: var(--piccolo); }
.ev-eval-dot.is-on { border-color: var(--piccolo); background: var(--piccolo); color: var(--gohan); font-weight: 700; }
.ev-eval-picked { margin: -4px 0 0; font: 400 12px/16px var(--font); color: var(--piccolo); }
.ev-eval-picked.is-empty { color: var(--trunks); }
.ev-eval-fb { background: var(--goku); border-color: var(--goku); }
.ev-eval-fb textarea { min-height: 56px; font-size: 14px; }
.screen.mk.ev-eval .mk-body { padding-bottom: 24px; }
