/* StreetMafia Design V2026 - dashboard. Sized on the main column (container
   queries), so it reacts to the room left next to the sidebar. */
.sm-dash { display: flex; flex-direction: column; gap: var(--sm-gap); }

/* Banner + statistics strip */
.sm-hero { position: relative; display: flex; align-items: center; min-height: 290px; padding: 40px 56px 90px; overflow: hidden; border: 1px solid var(--sm-border); border-radius: var(--sm-radius); background: #09090c; color: #fff; }
.sm-hero__img { position: absolute; top: 0; right: 0; width: 76%; height: 100%; object-fit: cover; object-position: right top; -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%); mask-image: linear-gradient(90deg, transparent, #000 22%); }
.sm-hero__text { position: relative; }
.sm-hero__hello { font: 400 44px/1.1 var(--sm-font-display); color: #e9e9ec; }
.sm-hero__name { margin-top: 10px !important; padding-bottom: 14px !important; overflow-wrap: anywhere; font: 700 76px/1.05 var(--sm-font-display) !important; }
.sm-hero__rule { width: 220px; max-width: 100%; height: 5px; border-radius: 3px; background: var(--sm-accent); }
.sm-hero .sm-theme { position: absolute; top: 16px; right: 20px; }
.sm-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; position: relative; margin: -96px 12px 0; padding: 20px 28px; border: 1px solid var(--sm-border); border-radius: var(--sm-radius); background: var(--sm-surface); }
.sm-strip__item { display: flex; align-items: center; gap: 16px; min-width: 0; }
.sm-strip__item > .sm-icon { width: 44px; height: 44px; color: var(--sm-warn); }
.sm-strip__item--cash > .sm-icon { color: var(--sm-ok); }
.sm-strip__item--bank > .sm-icon { color: var(--sm-text); }
.sm-strip__body { min-width: 0; }
.sm-strip__value { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 28px/1.2 var(--sm-font-display); }
.sm-strip__label { display: block; color: var(--sm-muted); font: 400 18px/1.2 var(--sm-font-display); }

/* Action cards */
.sm-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sm-gap); }
.sm-action { position: relative; display: flex; flex-direction: column; min-height: 265px; overflow: hidden; }
.sm-action__img { width: 100%; height: 170px; object-fit: cover; -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }
.sm-action__body { position: relative; flex: 1; margin-top: -24px; padding: 0 22px 22px; }
.sm-action__title { display: flex; align-items: center; gap: 10px; margin-bottom: 8px !important; font: 600 34px/1.1 var(--sm-font-display) !important; }
.sm-action__title .sm-icon { width: 26px; height: 26px; }
.sm-action__text { margin: 0; padding-right: 58px; color: var(--sm-muted); font-size: 15px; line-height: 1.35; }
.sm-action__go { position: absolute; right: 22px; bottom: 22px; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: var(--sm-radius-s); background: var(--sm-accent); color: var(--sm-on-accent); }
.sm-action:hover { border-color: var(--sm-accent); }
.sm-action:hover .sm-action__go { background: var(--sm-accent-hover); }

/* Timers and events */
.sm-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sm-gap); }
.sm-panel { padding: 28px 30px; }
.sm-timer { display: flex; gap: 18px; align-items: flex-start; padding-bottom: 18px; }
.sm-timer:last-child { padding-bottom: 0; }
.sm-timer > .sm-icon { width: 30px; height: 30px; margin-top: 6px; color: var(--sm-text); }
.sm-timer__body { flex: 1; min-width: 0; }
.sm-timer__head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 17px; }
.sm-timer__head a:hover { color: var(--sm-link); }
.sm-timer__time { flex: none; font: 600 22px/1.1 var(--sm-font-display); font-variant-numeric: tabular-nums; }
.sm-empty { margin: 0; color: var(--sm-muted); }
.sm-event { display: flex; align-items: center; gap: 14px; padding: 10px 0; font-size: 16px; }
.sm-event:first-child { padding-top: 0; }
.sm-event .sm-icon { width: 24px; height: 24px; }
.sm-event--ok .sm-icon { color: var(--sm-ok); }
.sm-event--bad .sm-icon { color: var(--sm-accent); }
.sm-event__text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.sm-event__time { flex: none; color: var(--sm-muted); }
.sm-more-link { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 16px; font: 500 20px/1.2 var(--sm-font-display); }
.sm-ui a.sm-more-link { color: var(--sm-link); }
.sm-ui a.sm-more-link:hover { text-decoration: underline; color: var(--sm-link); }

/* Season band */
.sm-band { display: flex; align-items: center; gap: 34px; overflow: hidden; padding-right: 34px; background: linear-gradient(90deg, rgba(120, 12, 20, .3), rgba(120, 12, 20, .12)), var(--sm-surface); }
.sm-band__img { width: 320px; height: 150px; flex: none; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, #000 75%, transparent); mask-image: linear-gradient(90deg, #000 75%, transparent); }
.sm-band__icon { display: none; }
.sm-band__text { flex: none; }
.sm-band__title { font: 600 46px/1.1 var(--sm-font-display) !important; }
.sm-band__dates { display: flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--sm-muted); font-size: 18px; }
.sm-band__dates .sm-icon { color: var(--sm-accent); }
.sm-band .sm-bar { flex: 1; min-width: 80px; height: 14px; border-radius: 7px; }
.sm-band__left { flex: none; min-width: 200px; font-size: 26px; }

/* Legacy overview boxes under the new dashboard */
.sm-legacy-boxes { min-width: 0; }

/* Main column narrower than the design width */
@container (max-width: 1240px) {
	.sm-hero { padding: 32px 36px 90px; min-height: 260px; }
	.sm-hero__hello { font-size: 34px; }
	.sm-hero__name { font-size: 60px !important; }
	.sm-strip { padding: 16px 18px; }
	.sm-strip__item { gap: 10px; }
	.sm-strip__item > .sm-icon { width: 32px; height: 32px; }
	.sm-strip__value { font-size: 22px; }
	.sm-strip__label { font-size: 15px; }
	.sm-action { min-height: 240px; }
	.sm-action__img { height: 140px; }
	.sm-action__title { font-size: 26px !important; }
	.sm-action__body { padding: 0 16px 16px; }
	.sm-action__go { right: 16px; bottom: 16px; width: 40px; height: 40px; }
	.sm-action__text { padding-right: 48px; font-size: 14px; }
	.sm-panel { padding: 22px; }
	.sm-band { gap: 20px; padding-right: 20px; }
	.sm-band__img { width: 200px; }
	.sm-band__title { font-size: 34px !important; }
	.sm-band__dates { font-size: 15px; }
	.sm-band__left { min-width: 0; font-size: 20px; padding: 10px 14px; }
}
@container (max-width: 900px) {
	.sm-hero { padding-bottom: 32px; min-height: 220px; }
	.sm-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 12px 0 0; }
	.sm-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sm-action { min-height: 210px; }
	.sm-band { flex-wrap: wrap; padding: 0 20px 20px 0; }
	.sm-band .sm-bar { flex-basis: 100%; order: 3; margin-left: 20px; }
	.sm-band__img { width: 150px; height: 110px; }
	.sm-band__left { margin-left: auto; }
}
@container (max-width: 700px) {
	.sm-panels { grid-template-columns: minmax(0, 1fr); }
}

/* Phone: follows the mobile reference. */
@media (max-width: 767.98px) {
	.sm-hero, .sm-strip { display: none; }
	.sm-actions { order: 1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
	.sm-panels { display: contents; }
	.sm-panel--timers { order: 2; }
	.sm-band { order: 3; }
	.sm-panel--events { order: 4; }
	.sm-legacy-boxes { order: 5; }

	.sm-action { min-height: 76px; }
	.sm-action__img, .sm-action__text, .sm-action__go { display: none; }
	.sm-action__body { display: flex; align-items: center; justify-content: center; margin: 0; padding: 12px 2px; }
	.sm-action__title { flex-direction: column; gap: 6px; margin: 0 !important; font: 500 16px/1.1 var(--sm-font-display) !important; }
	.sm-action__title .sm-icon { width: 30px; height: 30px; }

	.sm-panel { padding: 16px; }
	.sm-panel--timers .sm-card__title { position: absolute; width: 1px; height: 1px; margin: 0 !important; overflow: hidden; clip-path: inset(50%); }
	.sm-panel--timers .sm-empty { padding-left: 2px; }
	.sm-timer > .sm-icon { width: 34px; height: 34px; color: var(--sm-accent); }
	.sm-timer__time { font-size: 20px; }
	.sm-timer__head { font-size: 16px; margin-bottom: 8px; }

	.sm-band { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; padding: 16px; background: var(--sm-surface); }
	.sm-band__img { display: none; }
	.sm-band__icon { display: block; width: 44px; height: 44px; color: var(--sm-accent); }
	.sm-band__title { font-size: 26px !important; }
	.sm-band__dates { margin-top: 0; font-size: 15px; }
	.sm-band__dates .sm-icon { display: none; }
	.sm-band__text { flex: initial; min-width: 0; }
	.sm-band .sm-bar { grid-column: 1 / -1; order: initial; margin: 10px 0 8px; height: 10px; }
	.sm-ui a.sm-band__left { grid-column: 1 / -1; display: block; min-height: 0; margin: 0; padding: 4px; background: none; border: 0; color: var(--sm-text); font: 500 18px/1.2 var(--sm-font-display); text-align: center; }

	.sm-event { font-size: 14px; }
	.sm-card__title { font-size: 20px; margin-bottom: 12px !important; }
	.sm-more-link { font-size: 16px; min-height: 44px; margin-top: 4px; }
}

/* The banner stays dark in both themes. */
#pagina .content .sm-hero h1 { color: #fff; }
