/* ── Phtoll Ride Tracker ─────────────────────────────────────────── */

.prt-app {
	max-width: 900px;
	margin: 0 auto;
	padding: 16px;
	color: #e0e0e0;
	font-family: inherit;
}

/* ── Map ── */
.prt-map-wrap {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid #2a2a2a;
	background: #111;
}

#prt-map {
	height: 420px;
	width: 100%;
	background: #111;
}

.prt-stats-overlay {
	position: absolute;
	top: 12px;
	left: 12px;
	display: flex;
	gap: 7px;
	z-index: 1000;
	flex-wrap: wrap;
	pointer-events: none;
}

.prt-stat {
	background: rgba(10, 10, 10, 0.88);
	border: 1px solid #333;
	border-radius: 10px;
	padding: 8px 12px;
	text-align: center;
	min-width: 68px;
	backdrop-filter: blur(4px);
}

.prt-stat span {
	display: block;
	font-size: 1.35rem;
	font-weight: 700;
	color: #EAB308;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.prt-stat em {
	display: block;
	font-style: normal;
	font-size: 0.62rem;
	color: #777;
	text-transform: uppercase;
	letter-spacing: .06em;
	margin-top: 3px;
}

.prt-map-badges {
	position: absolute;
	bottom: 12px;
	right: 12px;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 5px;
	pointer-events: none;
}

.prt-gps-badge,
.prt-wakelock-badge {
	background: rgba(10, 10, 10, 0.88);
	border: 1px solid #333;
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 0.72rem;
	color: #888;
	backdrop-filter: blur(4px);
}

.prt-gps-badge.prt-gps-ok       { color: #00C9A7; border-color: #00C9A7; }
.prt-wakelock-badge              { color: #EAB308; border-color: #EAB308; }
.prt-wakelock-badge--warn        { color: #f97316; border-color: #f97316; }

.prt-bike-dot {
	width: 18px;
	height: 18px;
	background: #EAB308;
	border-radius: 50%;
	border: 3px solid #fff;
	box-shadow: 0 0 10px rgba(234, 179, 8, .8);
}

/* ── Controls ── */
.prt-controls {
	margin-top: 14px;
	background: #1a1a1a;
	border: 1px solid #2a2a2a;
	border-radius: 14px;
	padding: 16px;
}

.prt-ride-form {
	display: flex;
	gap: 10px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.prt-input {
	flex: 1;
	min-width: 130px;
	background: #111;
	border: 1px solid #333;
	border-radius: 9px;
	color: #e0e0e0;
	padding: 10px 13px;
	font-size: 0.93rem;
	outline: none;
	transition: border-color .15s;
}

.prt-input:focus { border-color: #EAB308; }
textarea.prt-input { resize: vertical; font-family: inherit; }

.prt-btn-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.prt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 11px 22px;
	border: none;
	border-radius: 9px;
	font-size: .93rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: opacity .15s, transform .1s;
	white-space: nowrap;
}

.prt-btn:active:not(:disabled) { transform: scale(.97); }
.prt-btn:disabled { opacity: .45; cursor: not-allowed; }
.prt-btn:hover:not(:disabled) { opacity: .86; }

.prt-btn--start   { background: #EAB308; color: #0a0a0a; }
.prt-btn--stop    { background: #ef4444; color: #fff; }
.prt-btn--save    { background: #00C9A7; color: #0a0a0a; }
.prt-btn--discard { background: #2a2a2a; color: #ccc; border: 1px solid #444; }
.prt-btn--primary { background: #EAB308; color: #0a0a0a; }
.prt-btn--outline { background: transparent; border: 1px solid #EAB308; color: #EAB308; }

.prt-status {
	margin-top: 12px;
	font-size: .84rem;
	color: #777;
	min-height: 1.2em;
}

.prt-login-notice {
	padding: 32px 16px;
	text-align: center;
	color: #ccc;
}

.prt-login-notice strong { color: #e0e0e0; }

.prt-login-notice a { color: #EAB308; text-decoration: underline; }

/* ── History ── */
.prt-history-header,
.prt-feed-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	flex-wrap: wrap;
	gap: 12px;
}

.prt-history-header h2,
.prt-feed-header h2 {
	font-size: 1.35rem;
	color: #EAB308;
	margin: 0;
}

.prt-rides-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.prt-ride-card {
	background: #1a1a1a;
	border: 1px solid #252525;
	border-radius: 12px;
	padding: 16px;
	transition: border-color .15s;
}

.prt-ride-card:hover { border-color: #3a3a3a; }

.prt-ride-card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.prt-ride-title { font-weight: 600; color: #e0e0e0; }
.prt-ride-date  { font-size: .78rem; color: #555; white-space: nowrap; }

.prt-ride-card-stats {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.prt-mini-stat { font-size: .85rem; color: #888; }
.prt-mini-stat strong { color: #EAB308; font-weight: 700; }

.prt-ride-card-footer {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.prt-social-counts { font-size: .78rem; color: #555; }

.prt-card-actions { display: flex; gap: 10px; margin-left: auto; }

.prt-visibility-badge {
	font-size: .68rem;
	padding: 2px 9px;
	border-radius: 999px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.prt-vis-public  { background: rgba(0,201,167,.12); color: #00C9A7; }
.prt-vis-private { background: rgba(120,120,120,.15); color: #888; }

.prt-btn-link {
	background: none;
	border: none;
	font-size: .82rem;
	cursor: pointer;
	padding: 0;
	color: #EAB308;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.prt-btn-link:hover { color: #fff; }
.prt-btn-link.prt-delete-ride { color: #ef4444; }

/* ── Feed ── */
.prt-feed-list {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.prt-feed-card {
	background: #1a1a1a;
	border: 1px solid #252525;
	border-radius: 14px;
	overflow: hidden;
}

.prt-feed-card-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px 8px;
}

.prt-avatar {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #2a2a2a;
	object-fit: cover;
	flex-shrink: 0;
}

.prt-feed-rider-info { display: flex; flex-direction: column; gap: 1px; }
.prt-feed-rider-info strong { color: #e0e0e0; font-size: .93rem; }
.prt-feed-rider-info span   { color: #555; font-size: .75rem; }

.prt-feed-title {
	padding: 0 16px 8px;
	font-size: .97rem;
	font-weight: 600;
	color: #e0e0e0;
}

.prt-feed-stats {
	display: flex;
	gap: 14px;
	padding: 0 16px 10px;
	font-size: .82rem;
	color: #777;
	flex-wrap: wrap;
}

.prt-feed-map-thumb {
	height: 190px;
	cursor: pointer;
	background: #111;
	border-top: 1px solid #222;
	border-bottom: 1px solid #222;
}

.prt-no-route {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #333;
	font-size: .82rem;
}

.prt-feed-actions {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 10px 12px;
}

.prt-like-btn,
.prt-comment-btn,
.prt-view-route-btn {
	background: none;
	border: none;
	color: #666;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: .82rem;
	padding: 6px 10px;
	border-radius: 8px;
	transition: color .15s, background .15s;
}

.prt-like-btn:hover    { color: #ef4444; background: rgba(239,68,68,.1); }
.prt-like-btn.prt-liked { color: #ef4444; }
.prt-comment-btn:hover { color: #00C9A7; background: rgba(0,201,167,.1); }
.prt-view-route-btn    { color: #EAB308; margin-left: auto; }
.prt-view-route-btn:hover { background: rgba(234,179,8,.1); }

/* ── Modal ── */
.prt-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .88);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	overflow-y: auto;
}

.prt-modal-inner {
	background: #1a1a1a;
	border: 1px solid #2e2e2e;
	border-radius: 18px;
	width: 100%;
	max-width: 700px;
	max-height: 92vh;
	overflow-y: auto;
	position: relative;
}

.prt-modal-close {
	position: sticky;
	top: 0;
	left: 100%;
	float: right;
	margin: 10px 10px 0 0;
	background: #2a2a2a;
	border: none;
	color: #ccc;
	font-size: 1.15rem;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	cursor: pointer;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.prt-modal-close:hover { background: #3a3a3a; color: #fff; }

.prt-modal-map {
	height: 300px;
	background: #111;
	border-radius: 18px 18px 0 0;
	overflow: hidden;
}

.prt-modal-stats,
.prt-modal-body { padding: 16px; }

.prt-modal-stats h3 {
	color: #e0e0e0;
	margin: 0 0 4px;
	font-size: 1.1rem;
}

.prt-modal-stats p {
	color: #666;
	font-size: .8rem;
	margin: 0 0 14px;
}

.prt-modal-stat-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	text-align: center;
	margin-bottom: 14px;
}

.prt-modal-stat-grid > div {
	background: #111;
	border-radius: 9px;
	padding: 10px 6px;
}

.prt-modal-stat-grid strong {
	display: block;
	font-size: 1.15rem;
	color: #EAB308;
}

.prt-modal-stat-grid em {
	display: block;
	font-size: .65rem;
	color: #555;
	font-style: normal;
	text-transform: uppercase;
	margin-top: 2px;
}

.prt-modal-actions {
	display: flex;
	gap: 8px;
	margin-top: 4px;
}

.prt-modal-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: .78rem;
	color: #666;
	margin-top: 10px;
}

/* ── Comments ── */
.prt-comments-section {
	border-top: 1px solid #252525;
	padding-top: 14px;
	margin-top: 4px;
}

.prt-comments-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 12px;
	max-height: 220px;
	overflow-y: auto;
}

.prt-comment {
	background: #111;
	border-radius: 9px;
	padding: 10px 13px;
}

.prt-comment strong { color: #EAB308; font-size: .82rem; }
.prt-comment p      { margin: 4px 0; color: #ccc; font-size: .9rem; line-height: 1.45; }
.prt-comment-time   { font-size: .7rem; color: #444; }

.prt-empty-comments { color: #444; font-size: .82rem; padding: 6px 0; }

.prt-comment-form { display: flex; flex-direction: column; gap: 8px; }

.prt-comment-login { font-size: .85rem; color: #666; padding-top: 6px; }
.prt-comment-login a { color: #EAB308; text-decoration: underline; }

/* ── Misc ── */
.prt-loading, .prt-error, .prt-empty {
	text-align: center;
	padding: 36px 16px;
	color: #444;
	font-size: .93rem;
}

.prt-error  { color: #ef4444; }
.prt-empty .prt-btn { margin-top: 14px; }
.prt-load-more { text-align: center; padding: 20px 0; }

/* ── Nav ── */
.prt-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
	gap: 10px;
	flex-wrap: wrap;
}

.prt-nav-links {
	display: flex;
	gap: 2px;
	background: #111;
	border: 1px solid #222;
	border-radius: 10px;
	padding: 4px;
}

.prt-nav-link {
	padding: 8px 16px;
	border-radius: 7px;
	font-size: .88rem;
	font-weight: 600;
	color: #555;
	text-decoration: none;
	transition: color .15s, background .15s;
	white-space: nowrap;
}

.prt-nav-link:hover    { color: #e0e0e0; background: #1a1a1a; }
.prt-nav-link.is-active { color: #EAB308; background: #1a1a1a; }

.prt-nav-right {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.prt-nav-rider {
	font-size: .8rem;
	color: #666;
	max-width: 90px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.prt-nav-auth {
	font-size: .82rem;
	font-weight: 600;
	color: #888;
	text-decoration: none;
	padding: 6px 12px;
	border-radius: 7px;
	border: 1px solid #222;
	background: #111;
	transition: color .15s, border-color .15s;
	white-space: nowrap;
}

.prt-nav-auth:hover { color: #e0e0e0; border-color: #444; }

.prt-nav-auth--reg {
	background: #EAB308;
	color: #0a0a0a;
	border-color: #EAB308;
}

.prt-nav-auth--reg:hover { opacity: .88; color: #0a0a0a; }

.prt-nav-socials {
	display: flex;
	gap: 8px;
}

.prt-social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: #111;
	border: 1px solid #222;
	color: #555;
	text-decoration: none;
	transition: color .15s, border-color .15s;
	flex-shrink: 0;
}

.prt-social-link:hover { color: #EAB308; border-color: #EAB308; }

/* ── Share overlay ── */
.prt-share-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .92);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	overflow-y: auto;
}

.prt-share-panel {
	background: #111;
	border: 1px solid #252525;
	border-radius: 20px;
	width: 100%;
	max-width: 430px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.prt-share-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.prt-share-title {
	font-size: 1.05rem;
	font-weight: 700;
	color: #e0e0e0;
	margin: 0;
}

.prt-share-x {
	background: #1e1e1e;
	border: 1px solid #2a2a2a;
	color: #888;
	font-size: 1.2rem;
	line-height: 1;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	flex-shrink: 0;
	transition: color .15s, background .15s;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.prt-share-x:hover { background: #2a2a2a; color: #fff; }

.prt-share-preview {
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #1e1e1e;
	background: #0a0a0a;
	position: relative;
}

.prt-share-preview canvas {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	display: block;
}

.prt-share-loading {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .72);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: #888;
	font-size: .82rem;
}

.prt-share-spinner {
	width: 28px;
	height: 28px;
	border: 3px solid #333;
	border-top-color: #EAB308;
	border-radius: 50%;
	animation: prt-spin .75s linear infinite;
}

@keyframes prt-spin { to { transform: rotate(360deg); } }

.prt-share-controls {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.prt-share-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.prt-share-label {
	font-size: .8rem;
	color: #666;
	white-space: nowrap;
	flex-shrink: 0;
}

.prt-bg-tabs {
	display: flex;
	gap: 6px;
	flex: 1;
	justify-content: flex-end;
}

.prt-bg-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 9px 16px;
	border-radius: 9px;
	font-size: .85rem;
	font-weight: 600;
	cursor: pointer;
	background: #1a1a1a;
	border: 1px solid #2a2a2a;
	color: #666;
	transition: color .15s, border-color .15s, background .15s;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	flex: 1;
}

.prt-bg-tab:hover     { color: #ccc; border-color: #444; }
.prt-bg-tab.is-active { color: #EAB308; border-color: #EAB308; background: rgba(234,179,8,.08); }

.prt-photo-upload {
	margin-top: 2px;
}

.prt-photo-btns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.prt-photo-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px 12px;
	border: 1px solid #2a2a2a;
	border-radius: 12px;
	cursor: pointer;
	font-size: .85rem;
	font-weight: 600;
	color: #777;
	background: #1a1a1a;
	transition: border-color .15s, color .15s, background .15s;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	text-align: center;
	min-height: 76px;
}

.prt-photo-btn:hover,
.prt-photo-btn:active { border-color: #EAB308; color: #EAB308; background: rgba(234,179,8,.06); }

#prt-photo-camera,
#prt-photo-input { display: none; }

.prt-style-picker {
	display: flex;
	gap: 6px;
	flex: 1;
	justify-content: flex-end;
}

.prt-style-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 10px;
	border-radius: 9px;
	font-size: .85rem;
	font-weight: 600;
	cursor: pointer;
	background: #1a1a1a;
	border: 1px solid #2a2a2a;
	color: #666;
	transition: color .15s, border-color .15s, background .15s;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	flex: 1;
}

.prt-style-btn:hover     { color: #ccc; border-color: #444; }
.prt-style-btn.is-active { color: #EAB308; border-color: #EAB308; background: rgba(234,179,8,.08); }

.prt-swatch {
	display: inline-block;
	width: 14px;
	height: 14px;
	border-radius: 3px;
	flex-shrink: 0;
}

.prt-share-tip {
	text-align: center;
	color: #555;
	font-size: .8rem;
	margin: 0;
}

.prt-share-btns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.prt-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 13px 14px;
	border-radius: 10px;
	font-size: .88rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	border: 1px solid transparent;
	transition: opacity .15s;
	white-space: nowrap;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.prt-share-btn:hover { opacity: .82; }

.prt-share-btn--native { background: #EAB308; color: #0a0a0a; border-color: #EAB308; grid-column: 1 / -1; }
.prt-share-btn--dl     { background: #1e293b; color: #e0e0e0; border-color: #334155; grid-column: 1 / -1; }
.prt-share-btn--wa     { background: #25D366; color: #fff; }
.prt-share-btn--fb     { background: #1877F2; color: #fff; }
.prt-share-btn--tw     { background: #000;    color: #fff; border-color: #333; grid-column: 1 / -1; }

.prt-share-close { width: 100%; }

/* ── Auth / Register page ── */
.prt-auth-app {
	max-width: 460px;
}

.prt-auth-card {
	background: #111;
	border: 1px solid #222;
	border-radius: 16px;
	padding: 28px 24px 24px;
	margin-top: 4px;
}

.prt-auth-title {
	font-size: 1.35rem;
	font-weight: 700;
	color: #e0e0e0;
	margin: 0 0 6px;
}

.prt-auth-sub {
	color: #aaa;
	font-size: .9rem;
	margin: 0 0 22px;
	line-height: 1.5;
}

.prt-auth-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.prt-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.prt-field label {
	font-size: .78rem;
	font-weight: 600;
	color: #bbb;
	text-transform: uppercase;
	letter-spacing: .05em;
}

.prt-auth-error {
	background: rgba(239,68,68,.1);
	border: 1px solid rgba(239,68,68,.28);
	color: #fca5a5;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: .88rem;
	line-height: 1.45;
}

.prt-btn--full { width: 100%; margin-top: 4px; }

.prt-auth-footer {
	text-align: center;
	color: #999;
	font-size: .88rem;
	margin: 18px 0 0;
}

.prt-auth-footer a { color: #EAB308; text-decoration: none; }
.prt-auth-footer a:hover { text-decoration: underline; }

.prt-auth-success {
	padding: 8px 0 4px;
}

.prt-link-btn {
	background: none;
	border: none;
	padding: 0;
	color: #EAB308;
	font-size: inherit;
	cursor: pointer;
	text-decoration: underline;
}
.prt-link-btn:hover { text-decoration: none; }

.prt-verify-notice {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.prt-resend-btn {
	background: none;
	border: 1px solid #EAB308;
	color: #EAB308;
	border-radius: 6px;
	padding: 3px 10px;
	font-size: .82rem;
	cursor: pointer;
	white-space: nowrap;
}
.prt-resend-btn:hover { background: rgba(234,179,8,.1); }
.prt-resend-btn:disabled { opacity: .5; cursor: default; }

.prt-resend-msg { font-size: .85rem; }

/* ── Responsive ── */
@media (max-width: 600px) {
	#prt-map        { height: 300px; }
	.prt-modal-map  { height: 220px; }
	.prt-stats-overlay { gap: 5px; }
	.prt-stat { min-width: 56px; padding: 6px 8px; }
	.prt-stat span { font-size: 1.1rem; }
	.prt-modal-stat-grid { grid-template-columns: repeat(2, 1fr); }
	.prt-feed-map-thumb  { height: 160px; }
	.prt-btn-row { flex-direction: column; }
	.prt-btn { width: 100%; }

	/* Share overlay — bottom sheet on mobile */
	.prt-share-overlay {
		align-items: flex-end;
		padding: 0;
	}

	.prt-share-panel {
		max-width: 100%;
		border-radius: 20px 20px 0 0;
		border-bottom: none;
		padding: 16px 16px 32px;
		max-height: 92dvh;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		gap: 12px;
	}

	/* Drag handle visual cue */
	.prt-share-panel::before {
		content: '';
		display: block;
		width: 36px;
		height: 4px;
		background: #333;
		border-radius: 2px;
		margin: 0 auto 2px;
		flex-shrink: 0;
	}

	/* Controls: stack label above tabs/picker */
	.prt-share-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.prt-bg-tabs,
	.prt-style-picker {
		width: 100%;
		justify-content: stretch;
	}

	.prt-bg-tab,
	.prt-style-btn {
		flex: 1;
		padding: 11px 8px;
		font-size: .9rem;
	}

	/* Share preview — constrain canvas height so controls stay visible */
	.prt-share-preview {
		max-height: 44dvh;
	}

	.prt-share-preview canvas {
		width: auto;
		height: 44dvh;
		max-width: 100%;
		margin: 0 auto;
	}

	/* Share buttons — full width each */
	.prt-share-btns {
		grid-template-columns: 1fr;
	}

	.prt-share-btn {
		grid-column: 1 / -1;
		padding: 15px 14px;
		font-size: .95rem;
	}
}
