/* Heritage theme (Design A) — member pages. Scoped under body.jr-site. Owned by the "member" work group. */

/* ===== Member shell: sidebar + main column =====
   New pages: <div class="jr-main jr-ms"> sidebar <div class="jr-ms-main">...</div></div>
   Legacy pages (row > col-md-3 + col-md-9) keep working: the sidebar keeps its Bootstrap column classes. */
.jr-site .jr-ms { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }
.jr-site .jr-ms::before, .jr-site .jr-ms::after { display: none; }
.jr-site .jr-ms > .jr-ms-side { width: auto; float: none; padding: 0; position: static; }
.jr-site .jr-ms-main { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.jr-site .jr-ms-main > .jr-page-head { margin-bottom: 0; }
.jr-site .jr-ms-main > * { margin-top: 0; margin-bottom: 0; }

/* Sidebar */
.jr-site .jr-ms-side { display: flex; flex-direction: column; gap: 20px; margin-bottom: 24px; }
.jr-site .jr-ms > .jr-ms-side { margin-bottom: 0; }
.jr-site .jr-ms-side *, .jr-site .jr-ms-strip *, .jr-site .jr-ms-side *::before, .jr-site .jr-ms-side *::after { box-sizing: border-box; }
.jr-site .jr-ms-me { padding: 24px; text-align: center; position: relative; }
.jr-site .jr-ms-avatar-wrap { position: relative; width: 96px; height: 96px; margin: 0 auto 12px; }
.jr-site .jr-ms-avatar { display: block; width: 96px; height: 96px; border-radius: 50%; border: 2px solid var(--jr-gold); overflow: hidden; background: var(--jr-chip); }
.jr-site .jr-ms-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block; }
.jr-site .jr-ms-avatar-edit { position: absolute; right: -4px; bottom: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--jr-maroon); color: var(--jr-paper) !important; border: 2px solid var(--jr-paper); display: flex; align-items: center; justify-content: center; font-size: 13px; text-decoration: none !important; }
.jr-site .jr-ms-avatar-edit:hover { background: var(--jr-maroon-dark); }
.jr-site .jr-ms-name { display: block; font-size: 26px; line-height: 1.15; color: var(--jr-ink) !important; text-decoration: none !important; word-break: break-word; }
.jr-site .jr-ms-id { font-size: 14px; margin-top: 2px; }
.jr-site .jr-ms-pct { display: block; margin-top: 16px; text-align: left; color: inherit !important; text-decoration: none !important; }
.jr-site .jr-ms-pct-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--jr-muted); }
.jr-site .jr-ms-pct-row strong { color: var(--jr-ink); font-weight: 600; }
.jr-site .jr-ms-track { display: block; height: 8px; background: var(--jr-chip); border-radius: 999px; margin-top: 6px; overflow: hidden; }
.jr-site .jr-ms-track > span { display: block; height: 8px; background: var(--jr-gold); border-radius: 999px; }

.jr-site .jr-ms-nav { padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.jr-site .jr-ms-primary { display: flex; flex-direction: column; gap: 2px; }
.jr-site .jr-ms-nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: 10px; color: var(--jr-ink) !important; font-weight: 500; font-size: 15px; text-decoration: none !important; line-height: 1.25; }
.jr-site .jr-ms-nav a > i { width: 18px; flex: none; text-align: center; color: var(--jr-maroon); font-size: 14px; }
.jr-site .jr-ms-nav a:hover { background: var(--jr-chip); }
.jr-site .jr-ms-nav a.is-on { background: var(--jr-maroon); color: var(--jr-paper) !important; }
.jr-site .jr-ms-nav a.is-on > i { color: var(--jr-gold-soft); }
.jr-site .jr-ms-label { flex: 1; min-width: 0; }
.jr-site .jr-ms-count { flex: none; min-width: 24px; padding: 1px 8px; border-radius: 999px; background: var(--jr-chip); color: var(--jr-ink); font-size: 12px; font-weight: 600; text-align: center; }
.jr-site .jr-ms-nav a.is-on .jr-ms-count { background: rgba(255, 253, 248, .2); color: var(--jr-paper); }
.jr-site .jr-ms-group { border-top: 1px solid var(--jr-line); padding-top: 6px; }
.jr-site .jr-ms-group > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--jr-muted); }
.jr-site .jr-ms-group > summary::-webkit-details-marker { display: none; }
.jr-site .jr-ms-group > summary:hover { background: var(--jr-cream); }
.jr-site .jr-ms-group > summary i { font-size: 12px; color: var(--jr-maroon); transition: transform .2s; }
.jr-site .jr-ms-group[open] > summary i { transform: rotate(180deg); }
.jr-site .jr-ms-group > summary:focus-visible, .jr-site .jr-ms-nav a:focus-visible { outline: 3px solid var(--jr-gold-soft); outline-offset: 1px; }

.jr-site .jr-ms-plan { background: var(--jr-maroon); color: var(--jr-cream); border-radius: 18px; padding: 22px 24px; }
.jr-site .jr-ms-plan-k { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.jr-site .jr-ms-plan-name { font-size: 30px; color: var(--jr-cream) !important; line-height: 1.1; }
.jr-site .jr-ms-plan-meta { font-size: 14px; opacity: .9; margin: 4px 0 14px; }
.jr-site .jr-ms-plan .jr-btn-gold, .jr-site .jr-dash-plan .jr-btn-gold { background: var(--jr-gold-soft); color: var(--jr-ink) !important; }
.jr-site .jr-ms-plan .jr-btn-gold:hover, .jr-site .jr-dash-plan .jr-btn-gold:hover { background: #dcb365; }

/* Member strip (my_dashboard_info.php): shortcuts + verification */
.jr-site .jr-ms-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 24px; }
.jr-site .jr-ms-main > .jr-ms-strip { margin-bottom: 0; }
.jr-site .jr-ms-quick, .jr-site .jr-ms-verify { display: flex; flex-wrap: wrap; gap: 8px; }
.jr-site .jr-ms-chip, .jr-site .jr-ms-badge { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--jr-line); background: var(--jr-paper); color: var(--jr-ink) !important; font-size: 14px; font-weight: 600; text-decoration: none !important; white-space: nowrap; }
.jr-site .jr-ms-chip i { color: var(--jr-maroon); font-size: 13px; }
.jr-site .jr-ms-chip:hover { border-color: var(--jr-maroon); }
.jr-site .jr-ms-chip-n { min-width: 22px; padding: 0 7px; border-radius: 999px; background: var(--jr-chip); font-size: 12px; text-align: center; }
.jr-site .jr-ms-badge.is-ok { border-color: #BFDCC8; background: #EDF6F0; color: #1B6B3A !important; }
.jr-site .jr-ms-badge.is-todo { border-color: var(--jr-maroon); color: var(--jr-maroon) !important; cursor: pointer; }
.jr-site .jr-ms-badge.is-todo:hover { background: var(--jr-maroon); color: var(--jr-paper) !important; }

@media (max-width: 991px) {
	.jr-site .jr-ms { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.jr-site .jr-ms-side { gap: 12px; }
	.jr-site .jr-ms-me { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 14px; align-items: center; text-align: left; padding: 16px; }
	.jr-site .jr-ms-avatar-wrap { width: 64px; height: 64px; margin: 0; grid-row: span 2; }
	.jr-site .jr-ms-avatar { width: 64px; height: 64px; }
	.jr-site .jr-ms-avatar-edit { width: 28px; height: 28px; font-size: 11px; right: -6px; bottom: -4px; }
	.jr-site .jr-ms-name { font-size: 22px; }
	.jr-site .jr-ms-pct { grid-column: 2; margin-top: 4px; }
	.jr-site .jr-ms-nav { padding: 8px; }
	.jr-site .jr-ms-primary { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
	.jr-site .jr-ms-primary a { flex: none; white-space: nowrap; border: 1px solid var(--jr-line); border-radius: 999px; padding: 0 14px; gap: 8px; }
	.jr-site .jr-ms-primary a.is-on { border-color: var(--jr-maroon); }
	.jr-site .jr-ms-plan { display: none; }
}
@media (max-width: 600px) {
	.jr-site .jr-ms-strip { gap: 10px; }
	.jr-site .jr-ms-quick { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
	.jr-site .jr-ms-chip { flex: none; }
}

/* ===== Dashboard ===== */
.jr-site .jr-dash-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.jr-site .jr-dash-stat { display: flex; flex-direction: column; padding: 20px; color: var(--jr-muted) !important; text-decoration: none !important; font-size: 14px; }
.jr-site .jr-dash-stat .jr-dsp { font-size: 42px; line-height: 1; color: var(--jr-maroon); margin-bottom: 4px; }
.jr-site .jr-dash-stat:hover { border-color: var(--jr-maroon); }
.jr-site .jr-dash-card { padding: 24px; }
.jr-site .jr-dash-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.jr-site .jr-dash-card-head h2, .jr-site .jr-dash-todo-title { font-size: 28px; margin: 0; }
.jr-site .jr-dash-card-head a { font-weight: 600; white-space: nowrap; }
.jr-site .jr-dash-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.jr-site .jr-dash-tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.jr-site .jr-dash-tile { display: flex; flex-direction: column; color: var(--jr-ink) !important; text-decoration: none !important; cursor: pointer; min-width: 0; }
.jr-site .jr-dash-photo { position: relative; display: block; border-radius: 12px; overflow: hidden; background: var(--jr-chip); }
.jr-site .jr-dash-photo > img:first-child { width: 100%; height: 200px; object-fit: cover; object-position: 50% 22%; display: block; transition: transform .3s; }
.jr-site .jr-dash-tiles-4 .jr-dash-photo > img:first-child { height: 170px; }
.jr-site .jr-dash-tile:hover .jr-dash-photo > img:first-child { transform: scale(1.03); }
.jr-site .jr-dash-badge { position: absolute; left: 8px; bottom: 8px; width: 46px; height: auto; }
.jr-site .jr-dash-tile-name { font-size: 22px; margin-top: 8px; line-height: 1.2; }
.jr-site .jr-dash-tile-line { font-size: 14px; line-height: 1.4; }
.jr-site .jr-dash-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.jr-site .jr-dash-aside { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.jr-site .jr-dash-ints { display: flex; flex-direction: column; gap: 14px; }
.jr-site .jr-dash-int { display: flex; gap: 12px; align-items: center; }
.jr-site .jr-dash-int-photo { flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--jr-chip); cursor: pointer; }
.jr-site .jr-dash-int-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }
.jr-site .jr-dash-int-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.jr-site .jr-dash-int-text strong { font-weight: 600; }
.jr-site .jr-dash-int-text .jr-mu { font-size: 13px; }
.jr-site .jr-dash-int-btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.jr-site .jr-dash-none { margin: 0 0 14px; }
.jr-site .jr-dash-plan { background: var(--jr-maroon); color: var(--jr-cream); border-radius: 18px; padding: 24px; }
.jr-site .jr-dash-plan-k { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.jr-site .jr-dash-plan-name { font-size: 32px; color: var(--jr-cream) !important; line-height: 1.1; }
.jr-site .jr-dash-plan-meta { font-size: 15px; opacity: .9; margin: 4px 0 14px; }
.jr-site .jr-dash-todo-title { margin-bottom: 12px !important; }
.jr-site .jr-dash-todo { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.jr-site .jr-dash-todo li { position: relative; padding-left: 22px; }
.jr-site .jr-dash-todo li::before { content: ''; position: absolute; left: 2px; top: 13px; width: 8px; height: 8px; background: var(--jr-gold); transform: rotate(45deg); }
.jr-site .jr-dash-todo a { display: inline-flex; align-items: center; min-height: 32px; color: var(--jr-ink) !important; }
.jr-site .jr-dash-todo a:hover { color: var(--jr-maroon) !important; }

@media (max-width: 1100px) {
	.jr-site .jr-dash-tiles-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
	.jr-site .jr-dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.jr-site .jr-dash-stat .jr-dsp { font-size: 36px; }
	.jr-site .jr-dash-split { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.jr-site .jr-dash-tiles, .jr-site .jr-dash-tiles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.jr-site .jr-dash-photo > img:first-child, .jr-site .jr-dash-tiles-4 .jr-dash-photo > img:first-child { height: 180px; }
	.jr-site .jr-dash-card { padding: 18px; }
	.jr-site .jr-dash-card-head h2, .jr-site .jr-dash-todo-title { font-size: 24px; }
	.jr-site .jr-dash-tile-name { font-size: 20px; }
}

/* ===== Modals used on member pages (Bootstrap 3 shell + .jr-modal from jr-pages.css) ===== */
.jr-site .jr-modal.jr-modal-wide .modal-dialog { max-width: 640px; }
.jr-site .jr-modal .jr-modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.jr-site .jr-modal .jr-modal-actions > div { display: flex; flex-wrap: wrap; gap: 10px; }
.jr-site .jr-modal .jr-modal-warn { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: #FBEDEA; color: #7A1F2B; font-size: 15px; margin: 0 0 4px; }
.jr-site .jr-modal .jr-modal-warn i { margin-top: 3px; }
.jr-site .jr-modal .jr-modal-warn strong { display: block; font-weight: 600; }
.jr-site .jr-pa-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.jr-site .jr-pa-grid.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jr-site .jr-pa-item { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.jr-site .jr-pa-item > img { width: 100%; height: 220px; object-fit: contain; background: var(--jr-cream); border: 1px solid var(--jr-line); border-radius: 12px; display: block; }
.jr-site .jr-pa-note { margin: 0 !important; font-size: 13px !important; text-align: center; }
.jr-site .jr-file-btn { position: relative; overflow: hidden; cursor: pointer; margin: 0; }
.jr-site .jr-file-btn input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
@media (max-width: 600px) {
	.jr-site .jr-pa-grid.is-two { grid-template-columns: minmax(0, 1fr); }
	.jr-site .jr-pa-item > img { height: 170px; }
}
.jr-site .jr-dash-stat .jr-dsp, .jr-site .jr-ms-pct-row strong { font-variant-numeric: lining-nums; }

/* ===== My profile (view) + inline section editor ===== */
.jr-site .jr-mp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.jr-site .jr-mp-tabs { margin: 0 0 20px; padding: 0; border: 0; list-style: none; }
.jr-site .jr-mp-tabs::before, .jr-site .jr-mp-tabs::after { display: none; }
.jr-site .jr-mp-tabs > li { float: none; margin: 0; }
.jr-site .jr-mp-tabs > li > a.jr-pill { margin: 0; border-radius: 999px; }
.jr-site .jr-mp-tabs > li > a.jr-pill:hover, .jr-site .jr-mp-tabs > li > a.jr-pill:focus { background: var(--jr-paper); border-color: var(--jr-maroon); }
.jr-site .jr-mp-tabs > li.active > a.jr-pill, .jr-site .jr-mp-tabs > li.active > a.jr-pill:hover, .jr-site .jr-mp-tabs > li.active > a.jr-pill:focus { background: var(--jr-maroon); border-color: var(--jr-maroon); color: var(--jr-paper) !important; }
.jr-site .jr-mp-view .tab-pane.active { display: flex; flex-direction: column; gap: 20px; }
.jr-site .jr-mp-card { padding: 24px 28px; scroll-margin-top: 110px; }
.jr-site .jr-mp-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.jr-site .jr-mp-card-head h2 { font-size: 28px; margin: 0; display: flex; align-items: center; gap: 12px; line-height: 1.15; }
.jr-site .jr-mp-card-head h2 i { font-size: 16px; color: var(--jr-gold); width: 18px; text-align: center; }
.jr-site .jr-mp-edit { min-height: 40px; padding: 0 16px; font-size: 14px; }
.jr-site .jr-mp-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; margin: 0; }
.jr-site .jr-mp-kv > div { min-width: 0; }
.jr-site .jr-mp-kv dt { font-size: 13px; font-weight: 600; color: var(--jr-muted); letter-spacing: .04em; text-transform: uppercase; margin: 0 0 2px; }
.jr-site .jr-mp-kv dd { margin: 0; font-weight: 500; color: var(--jr-ink); overflow-wrap: anywhere; }
.jr-site .jr-mp-kv dd.is-empty { color: var(--jr-muted); font-weight: 400; font-style: italic; }
.jr-site .jr-mp-editcard { padding: 26px 28px; }
.jr-site .jr-mp-form { margin-bottom: 4px; }
.jr-site .jr-mp-form > hr, .jr-site .jr-mp-form > .clearfix, .jr-site .jr-mp-form > br { display: none; }
.jr-site .jr-mp-form > div:has(textarea) { grid-column: 1 / -1; }
.jr-site .jr-mp-form label, .jr-site .jr-mp-form > div > h5 { display: block; font-family: var(--jr-sans) !important; font-size: 13px !important; font-weight: 600 !important; letter-spacing: .04em; text-transform: uppercase; color: var(--jr-muted) !important; margin: 0 0 6px; }
.jr-site .jr-mp-form input[type=text], .jr-site .jr-mp-form input[type=time], .jr-site .jr-mp-form input[type=email], .jr-site .jr-mp-form select { display: block; width: 100% !important; height: 48px !important; min-height: 48px; padding: 0 14px !important; font-size: 16px !important; }
.jr-site .jr-mp-form textarea { display: block; width: 100% !important; min-height: 110px; padding: 12px 14px !important; font-size: 16px; line-height: 1.5; resize: vertical; }
.jr-site .jr-mp-form .select2-container { width: 100% !important; }
.jr-site .jr-mp-form .jr-inline > select, .jr-site .jr-mp-form .jr-inline > .select2-container { flex: 0 0 120px; width: 120px !important; }
.jr-site .jr-mp-form .jr-inline > input { flex: 1; min-width: 0; }
.jr-site .jr-mp-form .jr-dob > div { float: none !important; width: auto !important; padding: 0 !important; }
.jr-site .jr-mp-form label.error, .jr-site .jr-mp-form label.jr-error { text-transform: none !important; letter-spacing: 0; color: #A1261B !important; font-weight: 500 !important; margin: 6px 0 0; }
.jr-site .jr-mp-form-actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.jr-site #reponse_editFormId:not(:empty) { margin-bottom: 16px; }
@media (max-width: 820px) {
	.jr-site .jr-mp-card, .jr-site .jr-mp-editcard { padding: 18px; }
	.jr-site .jr-mp-card-head h2 { font-size: 24px; }
	.jr-site .jr-mp-kv { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.jr-site .jr-mp-form-actions .jr-btn { flex: 1; }
}
.jr-site .jr-mp-card .edit-pro-btn-g { position: static !important; width: auto !important; height: auto !important; background: none !important; border-radius: 0 !important; margin: 0 !important; display: block !important; flex: none; }
.jr-site .jr-mp-card .edit-pro-btn-g a { margin: 0 !important; font-size: 14px !important; color: var(--jr-ink) !important; }
.jr-site .jr-mp-card .edit-pro-btn-g a:hover { color: var(--jr-maroon) !important; }

/* ===== Photos (modify_photo.php) ===== */
.jr-site .jr-ph-card { padding: 26px 28px; }
.jr-site .jr-ph-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.jr-site .jr-ph-vis { flex: 0 1 320px; min-width: 220px; }
.jr-site .jr-ph-note { font-size: 14px; margin: 12px 0 20px; }
.jr-site .jr-ph-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.jr-site .jr-ph-item { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.jr-site .jr-ph-frame { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--jr-line); background: var(--jr-chip); }
.jr-site .jr-ph-frame img { width: 100%; height: 190px; object-fit: cover; object-position: 50% 22%; display: block; }
.jr-site .jr-ph-tag { position: absolute; left: 8px; top: 8px; padding: 3px 10px; border-radius: 999px; background: var(--jr-maroon); color: var(--jr-paper); font-size: 12px; font-weight: 600; }
.jr-site .jr-ph-tag-wait { top: auto; bottom: 8px; background: var(--jr-paper); color: var(--jr-ink); }
.jr-site .jr-ph-actions { display: flex; gap: 6px; }
.jr-site .jr-ph-actions .jr-btn { min-height: 40px; padding: 0 12px; font-size: 14px; flex: 1; }
.jr-site .jr-ph-actions .jr-ph-icon { flex: 0 0 40px; padding: 0; }
@media (max-width: 1100px) { .jr-site .jr-ph-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) {
	.jr-site .jr-ph-card { padding: 18px; }
	.jr-site .jr-ph-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.jr-site .jr-ph-frame img { height: 170px; }
	.jr-site .jr-ph-top > div { flex: 1 1 100%; }
	.jr-site .jr-ph-top .jr-btn { width: 100%; }
}

/* Crop dialog (canvasCrop keeps its own .imageBox sizing) */
.jr-site .jr-modal.jr-modal-crop .modal-dialog { max-width: 860px; }
.jr-site .jr-modal-crop .container_photo p { line-height: 1.4; height: auto; margin: 0; color: inherit; }
.jr-site .jr-modal-crop .imageBox { border: 1px solid var(--jr-line); border-radius: 12px; box-shadow: none; margin-top: 12px; }
.jr-site .jr-modal-crop .tools.jr-crop-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.jr-site .jr-modal-crop .tools.jr-crop-bar > span, .jr-site .jr-modal-crop .tools.jr-crop-bar > .upload-wapper { float: none; margin: 0; padding: 0 16px; min-height: 42px; border-radius: 999px; font-size: 14px; color: inherit; }
.jr-site .jr-modal-crop .tools.jr-crop-bar > .upload-wapper { color: var(--jr-paper) !important; background: var(--jr-maroon) !important; }
.jr-site .jr-modal-crop .tools.jr-crop-bar > .jr-btn-outline { background: var(--jr-paper); color: var(--jr-ink) !important; }
.jr-site .jr-modal-crop .tools.jr-crop-bar > .jr-btn-gold { background: var(--jr-gold-soft); color: var(--jr-ink) !important; }
.jr-site .jr-modal-crop #upload_file { width: 100%; height: 100%; }
.jr-site .jr-crop-hint { display: block; margin-top: 10px; font-size: 14px; color: var(--jr-muted); background: none; padding: 0; float: none; cursor: default; }
.jr-site .jr-modal-crop #response_message:not(:empty) { margin: 12px 0 0; }
.jr-site .jr-modal-crop .crop_img_11 { display: flex; justify-content: center; }
@media (max-width: 600px) {
	.jr-site .jr-modal-crop .tools.jr-crop-bar > * { flex: 1 1 calc(50% - 8px); justify-content: center; }
}

/* ===== Uploads: horoscope, ID proof, cover photo, video ===== */
.jr-site .jr-up-card { padding: 26px 28px; }
.jr-site .jr-up-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.jr-site .jr-up-grid.is-wide { grid-template-columns: minmax(0, 1fr); }
.jr-site .jr-up-preview { position: relative; border: 2px dashed var(--jr-line); border-radius: var(--jr-radius); background: var(--jr-cream); padding: 12px; min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.jr-site .jr-up-preview img { max-width: 100%; max-height: 420px; object-fit: contain; border-radius: 10px; display: block; }
.jr-site .jr-up-grid.is-wide .jr-up-preview img { width: 100%; max-height: 370px; object-fit: cover; }
.jr-site .jr-up-empty { display: flex; align-items: center; gap: 10px; color: var(--jr-muted); font-weight: 600; font-size: 15px; }
.jr-site .jr-up-empty i { color: var(--jr-gold); font-size: 18px; }
.jr-site .jr-up-empty-row { padding: 18px; border: 2px dashed var(--jr-line); border-radius: var(--jr-radius); background: var(--jr-cream); justify-content: center; margin-bottom: 20px; }
.jr-site .jr-up-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.jr-site .jr-up-side form { margin: 0; }
.jr-site .jr-up-side .reponse_photo:not(:empty) { margin-bottom: 12px; }
.jr-site .jr-up-note { font-size: 14px; margin: 10px 0 0; }
.jr-site .jr-up-del { margin: 0; }
.jr-site .jr-up-status { margin: 0; font-size: 15px; color: var(--jr-muted); }
.jr-site .jr-up-status strong { color: var(--jr-ink); }
.jr-site .jr-up-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--jr-ink); margin-bottom: 20px; }
.jr-site .jr-up-video iframe, .jr-site .jr-up-video object { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.jr-site .jr-up-videoform #respond_message:not(:empty) { margin-bottom: 14px; }
.jr-site .jr-up-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
@media (max-width: 820px) {
	.jr-site .jr-up-card { padding: 18px; }
	.jr-site .jr-up-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.jr-site .jr-up-side .jr-file-btn { width: 100%; }
}
.jr-site .jr-up-card > .jr-up-status { margin-bottom: 16px; }

/* ===== Photo password requests (received / sent) ===== */
.jr-site .jr-pr-tabs { margin: 0; }
.jr-site .jr-pr-list { display: flex; flex-direction: column; gap: 16px; }
.jr-site #main_content_ajax > #delete_success { margin: 0 0 16px; }
.jr-site .jr-pr-item { display: flex; gap: 20px; padding: 20px; align-items: flex-start; }
.jr-site .jr-pr-photo { position: relative; flex: none; width: 96px; height: 116px; border-radius: 12px; overflow: hidden; background: var(--jr-chip); display: block; }
.jr-site .jr-pr-photo > img:first-child { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }
.jr-site .jr-pr-badge { position: absolute; left: 4px; bottom: 4px; width: 36px; height: auto; }
.jr-site .jr-pr-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.jr-site .jr-pr-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.jr-site .jr-pr-k { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.jr-site .jr-pr-name { font-size: 24px; line-height: 1.15; color: var(--jr-ink) !important; text-decoration: none !important; }
.jr-site .jr-pr-status { flex: none; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--jr-chip); color: var(--jr-ink); }
.jr-site .jr-pr-status.is-accepted { background: #E3F1E8; color: #1B6B3A; }
.jr-site .jr-pr-status.is-rejected { background: #FBEDEA; color: #A1261B; }
.jr-site .jr-pr-msg { margin: 0; color: #4A372E; font-size: 15px; }
.jr-site .jr-pr-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.jr-site .jr-pr-date { font-size: 14px; }
.jr-site .jr-pr-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.jr-site .jr-pr-actions .jr-btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.jr-site .jr-pr-actions .jr-pr-icon { width: 40px; padding: 0; }
@media (max-width: 600px) {
	.jr-site .jr-pr-item { padding: 16px; gap: 14px; }
	.jr-site .jr-pr-photo { width: 72px; height: 88px; }
	.jr-site .jr-pr-name { font-size: 21px; }
	.jr-site .jr-pr-actions { width: 100%; }
	.jr-site .jr-pr-actions .jr-btn:not(.jr-pr-icon) { flex: 1; }
}

/* ===== Privacy settings (A-Settings) ===== */
.jr-site .jr-set .jr-tabs-row { margin-bottom: 28px; }
.jr-site .jr-set-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.jr-site .jr-set-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.jr-site .jr-set-card { padding: 24px 28px; scroll-margin-top: 110px; }
.jr-site .jr-set-card > h2 { font-size: 26px; margin: 0 0 4px; }
.jr-site .jr-set-sub { font-size: 15px; margin: 0 0 18px; }
.jr-site .jr-set-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.jr-site .jr-set-options-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jr-site .jr-set-opt { position: relative; display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 16px; border: 1px solid var(--jr-field); border-radius: 14px; background: var(--jr-paper); cursor: pointer; font-weight: 400; }
.jr-site .jr-set-opt:hover { border-color: var(--jr-maroon); }
.jr-site .jr-set-opt input[type=radio] { -webkit-appearance: auto; appearance: auto; position: static !important; opacity: 1 !important; flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--jr-maroon); }
.jr-site .jr-set-opt span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.jr-site .jr-set-opt strong { font-weight: 600; color: var(--jr-ink); }
.jr-site .jr-set-opt small { font-size: 13px; color: var(--jr-muted); line-height: 1.4; }
.jr-site .jr-set-opt:has(input:checked) { border-color: var(--jr-maroon); background: #FBF1EE; box-shadow: inset 0 0 0 1px var(--jr-maroon); }
.jr-site .jr-set-opt:has(input:focus-visible) { outline: 3px solid var(--jr-gold-soft); outline-offset: 2px; }
.jr-site .jr-set-card .alert { margin: 0 0 14px; }
.jr-site .jr-set-pass { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--jr-line); }
.jr-site .jr-set-pass-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.jr-site .jr-set-pass-head strong { font-weight: 600; }
.jr-site .jr-set-pass-head .jr-mu { font-size: 14px; }
.jr-site .jr-set-pass-row > input, .jr-site .jr-set-block-row > input { flex: 1; min-width: 0; height: 48px !important; padding: 0 14px !important; font-size: 16px !important; }
.jr-site .jr-set-pass-row .jr-btn, .jr-site .jr-set-block-row .jr-btn { flex: none; }
.jr-site .jr-set-form .jr-field { margin-bottom: 16px; }
.jr-site .jr-set-form .jr-row { margin-bottom: 0; }
.jr-site .jr-set-form .jr-row > .jr-field { margin-bottom: 16px; }
.jr-site .jr-set-form label.error { display: block; margin: 6px 0 0; font-size: 13px; font-weight: 500; color: #A1261B; text-transform: none; letter-spacing: 0; }
.jr-site .jr-set-actions { display: flex; justify-content: flex-end; margin-top: 4px; }
.jr-site .jr-set-blocked { margin-top: 20px; }
.jr-site .jr-set-blocked .jr-pcard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jr-site .jr-set-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 12px; }
.jr-site .jr-set-row > div { display: flex; flex-direction: column; min-width: 0; }
.jr-site .jr-set-row strong { font-weight: 600; }
.jr-site .jr-set-row .jr-mu { font-size: 14px; }
.jr-site .jr-set-aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 110px; }
.jr-site .jr-set-acard { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.jr-site .jr-set-acard p { margin: 0 0 6px; font-size: 15px; }
.jr-site .jr-set-atitle { font-size: 24px; line-height: 1.15; }
.jr-site .jr-set-verify { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--jr-muted); }
.jr-site .jr-set-verify li { display: flex; gap: 10px; align-items: center; }
.jr-site .jr-set-verify i { font-size: 10px; color: var(--jr-field); width: 16px; text-align: center; }
.jr-site .jr-set-verify li.is-ok { color: var(--jr-ink); }
.jr-site .jr-set-verify li.is-ok i { font-size: 15px; color: #1B7A3E; }
@media (max-width: 1100px) {
	.jr-site .jr-set-options { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 991px) {
	.jr-site .jr-set-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
	.jr-site .jr-set-aside { position: static; }
}
@media (max-width: 820px) {
	.jr-site .jr-set .jr-tabs-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-bottom: 20px; }
	.jr-site .jr-set .jr-tabs-row .jr-pill { flex: none; }
	.jr-site .jr-set-card { padding: 18px; }
	.jr-site .jr-set-options-2 { grid-template-columns: minmax(0, 1fr); }
	.jr-site .jr-set-blocked .jr-pcard-grid { grid-template-columns: minmax(0, 1fr); }
	.jr-site .jr-set-row { flex-direction: column; align-items: stretch; }
}
@media (max-width: 480px) {
	.jr-site .jr-set-pass-row, .jr-site .jr-set-block-row { flex-wrap: wrap; }
	.jr-site .jr-set-pass-row > input, .jr-site .jr-set-block-row > input { flex: 1 1 100%; }
	.jr-site .jr-set-pass-row .jr-btn, .jr-site .jr-set-block-row .jr-btn { flex: 1; }
}

/* ===== Delete profile request ===== */
.jr-site .jr-del-card { padding: 26px 28px; }
.jr-site .jr-del-note { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: var(--jr-cream); border: 1px solid var(--jr-line); margin-bottom: 22px; font-size: 15px; }
.jr-site .jr-del-note i { color: var(--jr-gold); margin-top: 4px; }
.jr-site .jr-del-note strong { display: block; font-weight: 600; }
.jr-site .jr-del-note span { color: var(--jr-muted); }
.jr-site .jr-del-card .jr-req { color: var(--jr-maroon); }
.jr-site .jr-del-actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
@media (max-width: 820px) { .jr-site .jr-del-card { padding: 18px; } .jr-site .jr-del-actions .jr-btn { flex: 1; } }
