@font-face {
  font-family: Poppins;
  src: url("/brand/poppins-semibold.woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url("/brand/montserrat-variable.woff2");
  font-weight: 100 900;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f7f7f7;
  color: #121214;
  font:
    15px/1.55 Montserrat,
    sans-serif;
}
header,
nav {
  padding-inline: max(calc((100vw - 1180px) / 2), 4vw);
}
header {
  height: 76px;
  background: #101012;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 16px;
}
.wordmark img {
  width: 88px;
}
.wordmark span {
  border-left: 1px solid #626267;
  padding-left: 16px;
  font:
    600 22px Poppins,
    sans-serif;
}
nav {
  background: white;
  display: flex;
  gap: 22px;
  border-bottom: 1px solid #ddd;
  overflow: auto;
}
button,
a,
input,
select {
  font: inherit;
}
button,
a.primary {
  cursor: pointer;
  text-decoration: none;
}
button {
  padding: 8px 13px;
  border-radius: 6px;
  border: 1px solid #ccc;
  color: inherit;
  background: transparent;
}
button:hover {
  background: #eee;
  color: #121214;
}
nav button {
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 14px 3px;
  white-space: nowrap;
  font-weight: 600;
}
nav button[aria-current] {
  color: #a40b29;
  border-color: #cc1235;
}
main {
  width: 92%;
  max-width: 1180px;
  margin: 32px auto 80px;
}
.context,
small {
  font-size: 12px;
  font-weight: 600;
}
.context {display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.roleBadge {
  display:inline-flex;
  justify-self:start;
  align-items:center;
  border-radius:999px;
  padding:3px 9px;
  background:#fcebf0;
  color:#96122f;
  font-size:12px;
  font-weight:600;
  line-height:1.4;
}
h1,
h2,
b {
  font-family: Poppins, sans-serif;
  font-weight: 600;
}
h1 {
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.15;
  letter-spacing: -0.045em;
  margin: 8px 0 22px;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.025em;
  margin: 0 0 15px;
}
section,
.login {
  background: #fff;
  border: 1px solid #e3e2e2;
  border-radius: 8px 22px 8px 8px;
  padding: 24px;
  margin-bottom: 18px;
}
.login {
  max-width: 460px;
}
.overview {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.featured {
  display: grid;
  grid-template-columns: 1fr 43%;
  background: #101012;
  color: white;
  border-radius: 8px 32px 8px 8px;
  overflow: hidden;
}
.featureText {
  padding: 30px;
  align-self: center;
}
.featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured h2 {
  font-size: clamp(25px, 3vw, 39px);
  line-height: 1.16;
  margin: 12px 0;
}
.featured p {
  color: #ddd;
  margin: 0 0 20px;
}
.counts {
  margin: 0;
}
.counts button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  border-top: 1px solid #eee;
  border-radius: 0;
  padding: 5px 0;
}
.counts b {
  font-size: 20px;
}
.primary {
  background: #cc1235;
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 10px 15px;
  display: inline-block;
  font-weight: 600;
}
.primary:hover {
  background: #a40b29;
  color: #fff;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
.tablewrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th,
td {
  padding: 12px 8px;
  border-bottom: 1px solid #eee;
}
th {
  font-size: 12px;
  color: #625e60;
}
code {
  background: #f2f2f2;
  padding: 3px 6px;
  border-radius: 4px;
}
label {
  display: grid;
  gap: 5px;
  margin: 12px 0;
  max-width: 560px;
  font-weight: 600;
}
input,
select {
  background: #fff;
  max-width: 100%;
  min-width: 0;
  padding: 9px;
  border: 1px solid #aaa;
  border-radius: 6px;
}
.mediaGrid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.mediaGrid li {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  padding: 12px;
}
.thumb {
  aspect-ratio: 16/9;
  background: #101012;
  margin: -12px -12px 10px;
}
.thumb img,
.thumb video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mediaGrid strong {
  display: block;
  overflow-wrap: anywhere;
  margin-bottom: 8px;
}
a {
  color: #a40b29;
}
:focus-visible {
  outline: 3px solid #cc1235;
  outline-offset: 2px;
}
[role="alert"] {
  color: #a40b29;
}
ol li {
  margin: 8px;
}
@media (max-width: 760px) {
  .overview {
    grid-template-columns: 1fr;
  }
  .featureText,
  section {
    padding: 18px;
  }
  nav {
    gap: 14px;
  }
  main {
    margin-top: 20px;
  }
  .featured {
    grid-template-columns: 1fr 35%;
  }
  header {
    height: 62px;
  }
}
fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
}
fieldset legend {
  font-weight: 600;
}
.inlineFields,
.resourceList > div,
.check {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.resourceList > div {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
.resourceList {
  margin-bottom: 16px;
}
.check {
  justify-content: flex-start;
}
input[type="color"] {
  height: 40px;
  width: 75px;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: #cc1235;
}
.resourceList button {
  min-width: 140px;
  text-align: left;
}
fieldset:disabled {
  opacity: 0.8;
}
.inlineFields input[type="number"] {
  width: 100px;
}

/* Allineamento delle testate e dimensione dei comandi del portale. */
button,
a.primary,
input:not([type="checkbox"]):not([type="radio"]),
select {
  min-height: 44px;
}
button,
a.primary {
  line-height: 1.35;
}
button,
.primary {
  padding-inline: 16px;
}
button:not(:disabled):focus-visible,
.resourceList a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline-offset: 3px;
}
label {
  font-size: 14px;
  gap: 7px;
  margin-block: 16px;
}
input,
select {
  font-size: 15px;
  color: #161616;
  font-weight: 500;
}
.pageHeading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 26px;
}
.pageHeading h1 {
  margin: 6px 0 0;
}
.pageHeading > label {
  min-width: 200px;
  margin: 0;
}
.context {
  color: #625e60;
}
.mobileNav {
  display: none;
}
nav {
  gap: 16px;
}
nav button {
  padding-inline: 5px;
}
main:has(.login) {
  max-width: 480px;
  margin: clamp(32px, 8vh, 86px) auto;
}
.login {
  max-width: none;
}
.login button {
  margin-top: 8px;
}
section {
  min-width: 0;
  padding: clamp(20px, 2.2vw, 32px);
  margin-bottom: 22px;
}
.counts {
  display: grid;
  align-content: start;
  gap: 8px;
}
.counts h2 {
  margin-bottom: 2px;
}
.counts button {
  padding: 7px 8px;
}
.editorLayout {
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(0, 2fr);
  align-items: start;
  gap: 22px;
}
.resourcePanel {
  position: sticky;
  top: 16px;
}
.resourcePanel h2 {
  font-size: 18px;
}
.resourceList {
  margin: 0 0 18px;
}
.resourceList > div {
  align-items: start;
  padding-block: 12px;
  gap: 12px;
}
.resourceList button {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.resourceList button[aria-pressed="true"] {
  border-color: #cc1235;
  background: #fff;
  color: #a40b29;
  font-weight: 600;
}
.resourceList a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 6px;
}
.resourceList span {
  align-self: center;
  color: #625e60;
}
fieldset {
  margin: 0;
}
fieldset fieldset {
  margin-block: 22px;
}
.check {
  min-height: 44px;
  margin: 8px 0;
  cursor: pointer;
}
.check input {
  width: 18px;
  height: 18px;
  flex: none;
}
.inlineFields {
  gap: 12px 18px;
  align-items: end;
}
.sequence {
  padding: 0;
  list-style: none;
  counter-reset: slide;
}
.sequence > li {
  counter-increment: slide;
  border: 1px solid #e1dfe0;
  border-radius: 10px;
  padding: 18px;
  margin: 0 0 16px;
  background: #fafafa;
  overflow-wrap: anywhere;
}
.sequence > li > strong:before {
  content: counter(slide) ". ";
  color: #a40b29;
}
.actionRow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.editorFooter,
.integrationActions {
  padding-top: 18px;
  margin-top: 22px;
  border-top: 1px solid #e1dfe0;
}
.actionRow .danger {
  margin-inline-start: auto;
}
button.danger,
.mediaGrid li > button {
  border-color: #d9c7ca;
  color: #94223a;
  background: white;
}
button.danger:hover,
.mediaGrid li > button:hover {
  border-color: #a40b29;
  background: #f7f7f7;
}
.separateAction {
  display: block;
  margin-top: 22px;
}
.mediaGrid {
  gap: 20px;
}
.mediaGrid li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.mediaGrid .thumb {
  align-self: stretch;
}
.mediaGrid li > button {
  margin-top: auto;
}
th,
td {
  vertical-align: top;
}
.tablewrap {
  max-width: 100%;
}
.tablewrap th {
  white-space: nowrap;
}
@media (max-width: 880px) {
  .editorLayout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .resourcePanel {
    position: static;
  }
  nav {
    gap: 9px;
  }
  nav button {
    font-size: 14px;
  }
}
@media (max-width: 760px) {
  nav > button {
    display: none;
  }
  .mobileNav {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: none;
    margin: 8px 0;
  }
  .mobileNav select {
    flex: 1;
  }
  .pageHeading {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
  }
  .pageHeading > label {
    min-width: 0;
  }
  .sequence > li {
    padding: 14px;
  }
  .reorder {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reorder button {
    padding: 8px;
  }
  .reorder .danger {
    grid-column: 1/-1;
    justify-self: start;
    margin: 2px 0 0;
  }
  .editorFooter .danger {
    margin-inline-start: auto;
  }
  .tablewrap {
    overscroll-behavior-inline: contain;
  }
  .inlineFields {
    align-items: stretch;
  }
  .sequence .inlineFields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
    margin: 10px 0 16px;
  }
  .sequence .inlineFields label {
    margin: 6px 0;
  }
  .sequence .inlineFields label:last-child {
    grid-column: 1/-1;
  }
  .sequence .inlineFields input,
  .sequence .inlineFields select {
    width: 100%;
  }
}

.playlistPreview {
  width: min(100%, 380px);
  aspect-ratio: 16 / 9;
  background: #101012;
  border-radius: 6px;
  overflow: hidden;
  display: grid;
  place-items: center;
  margin: 12px 0 16px;
}
.playlistPreview img, .playlistPreview video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.playlistPreview a { color: white; padding: 12px; }

.pickerGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 205px), 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
}
.pickerGrid li {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e1dfe0;
  border-radius: 8px;
}
.pickerGrid .playlistPreview {width:100%;margin:0}
.pickerGrid strong {overflow-wrap:anywhere}
.pickerGrid button {margin-top:auto}
.picker [role="status"]:empty {margin:0}

.portalShell {display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}
.portalShell>main {min-width:0;width:calc(100% - 64px);max-width:none}
.desktopSide,.mobileSide {background:white;color:#121214;padding:22px 14px;border:0;border-right:1px solid #e1dfe0}
.desktopSide {position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;overflow-y:auto}
.sideHead {display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 6px 28px}
.sideMark {gap:10px}
.sideMark img {width:74px}
.sideMark span {padding-left:10px;font-size:19px;border-color:#d3d0d2}
.sideLinks {display:grid;padding:0;gap:8px;border:0;overflow:visible}
.sideLinks>button {display:flex;align-items:center;gap:12px;text-align:left;padding:10px 12px;border:0;border-radius:8px;font-size:14px;color:#49464a}
.sideLinks svg {width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.sideLinks>button[aria-current="page"] {background:#f7f7f7;color:#a40b29;box-shadow:inset 3px 0 #cc1235}
.sideAccount {margin-top:auto;padding:18px 8px 0;display:grid;gap:4px;border-top:1px solid #e1dfe0;overflow-wrap:anywhere}
.sideAccount small {color:#625e60}
.sideAccount button {justify-self:start;margin-top:10px}
.mobileBar,.mobileSide {display:none}
@media(min-width:901px) and (max-width:1160px){.editorLayout{grid-template-columns:minmax(195px,.8fr) minmax(0,2fr)}.portalShell>main{width:calc(100% - 36px)}}
@media(max-width:900px){
 .portalShell{display:block}
 .portalShell>main{width:92%}
 .desktopSide{display:none}
 .mobileBar{display:flex;position:sticky;top:0;z-index:5;justify-content:flex-start;gap:10px;height:64px;padding:0 4%;background:white;color:#121214;border-bottom:1px solid #e1dfe0}
 .mobileSide[open]{display:flex}
 .mobileSide{flex-direction:column;position:fixed;inset:0 auto 0 0;margin:0;width:min(256px,92vw);height:100dvh;max-height:100dvh;max-width:none;overflow:auto}
 .menuIcon{width:44px;height:44px;padding:8px;display:grid;place-items:center;flex:none;border:0;border-radius:50%;font-size:24px;line-height:1}
 .menuIcon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
 .mobileSide{transform:translateX(-100%);transition:transform 200ms ease,display 200ms allow-discrete,overlay 200ms allow-discrete;touch-action:pan-y;overscroll-behavior:contain}
 .mobileSide[open]{transform:translateX(var(--drawer-offset,0px));padding-bottom:max(20px,env(safe-area-inset-bottom))}
 .mobileSide[data-dragging]{transition:none}
 .mobileSide::backdrop{background:rgb(16 16 18 / .2);opacity:0;transition:opacity 200ms,display 200ms allow-discrete,overlay 200ms allow-discrete}
 .mobileSide[open]::backdrop{opacity:1}
 @starting-style{.mobileSide[open]{transform:translateX(-100%)}.mobileSide[open]::backdrop{opacity:0}}
 @media(prefers-reduced-motion:reduce){.mobileSide,.mobileSide::backdrop{transition:none}}
 body:has(.mobileSide[open]){overflow:hidden}
}

.sideHead {margin-bottom:18px}
.sideBrand {margin:0 6px 18px;padding-bottom:18px;border-bottom:1px solid #e1dfe0}
.sideBrand label,.sideBrand small {margin:0;font-size:12px;color:#625e60}
.sideBrand select {width:100%;font-size:14px}
.sideBrand strong {display:block;overflow-wrap:anywhere}

.entryCalendar { grid-column: 1 / -1; min-width: 0; border-block: 1px solid #d9d4de; padding: .7rem 0; }
.entryCalendar summary { cursor: pointer; font-weight: 650; }
.entryCalendar summary span { margin-inline-start: .5rem; font-size: .85em; font-weight: 450; overflow-wrap: anywhere; }
.entryCalendar p { font-size: .85rem; margin: .8rem 0; }
.calendarDates,.calendarSlot { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; margin: .8rem 0; }
.calendarDates label,.calendarSlot label { min-width: 0; flex: 1 1 8rem; }
.calendarDates input,.calendarSlot input { width: 100%; min-width: 0; }

@media (min-width: 901px) {
  .playlistPage .editorLayout { grid-template-columns: clamp(185px, 15vw, 260px) minmax(0, 1fr); gap: 16px; }
  .playlistPage .resourcePanel { padding: 18px; }
}
.sequence { container-type: inline-size; }
.sequence > li {
  position: relative; display: grid; align-items: center;
  grid-template-columns: 24px minmax(82px, 120px) minmax(0, 1fr) auto;
  grid-template-areas: "handle preview name actions" "handle preview fields actions" ". calendar calendar calendar";
  gap: 6px 12px; margin-bottom: 8px; padding: 10px 12px;
}
.sequence .dragHandle { grid-area: handle; text-align: center; font-size: 24px; color: #615c60; user-select: none; }
.dragHandle[draggable="true"] { cursor: grab; }
.dragHandle:active { cursor: grabbing; }
.sequence .dragSource { background: #f4edef; }
.sequence .dropBefore::before,.sequence .dropAfter::after {
  content: ""; position: absolute; inset-inline: 0; height: 3px; background: #a40b29; pointer-events: none;
}
.sequence .dropBefore::before { top: -5px; }
.sequence .dropAfter::after { bottom: -5px; }
.sequence > li > strong { grid-area: name; }
.sequence .playlistPreview { grid-area: preview; width: 100%; margin: 0; }
.sequence .inlineFields { grid-area: fields; display: grid; grid-template-columns: minmax(56px,.65fr) repeat(2,minmax(0,1fr)); gap: 6px; margin: 0; }
.sequence .inlineFields label { margin: 0; font-size: 12px; gap: 2px; min-width: 0; }
.sequence .inlineFields label:last-child { grid-column: auto; }
.sequence .inlineFields :is(input,select) { width: 100%; min-height: 32px; padding: 4px; }
.sequence .entryCalendar { grid-area: calendar; border-bottom: 0; padding: 6px 0 0; }
.sequence .reorder { grid-area: actions; display: flex; flex-wrap: nowrap; gap: 4px; margin: 0; }
.sequence .reorder button { min-height: 32px; min-width: 30px; padding: 3px 6px; margin: 0; }
@container (max-width: 650px) {
  .sequence > li { grid-template-columns: 22px 86px minmax(0,1fr); grid-template-areas: "handle preview name" "handle preview actions" ". fields fields" ". calendar calendar"; }
}
@container (max-width: 360px) {
  .sequence > li { grid-template-columns: 18px 65px minmax(0,1fr); grid-template-areas: "handle preview name" "actions actions actions" "fields fields fields" "calendar calendar calendar"; gap: 6px; padding: 8px; }
  .sequence .reorder { justify-content: flex-end; }
}

.uploadBox {border:1px dashed #aaa;border-radius:8px;padding:12px;margin-block:12px}
.uploadBox label {margin:0}
.replacePanel {grid-column:1/-1; grid-row:4; min-width:0}
.resourcePanel details,.editorLayout section > details {margin-top:16px}
@container (min-width:361px) and (max-width:650px){.replacePanel{grid-row:5}}
@container (max-width:360px){.replacePanel{grid-row:5}.sequence .reorder{flex-wrap:wrap}}

.mediaStorage {display:grid;gap:4px;padding-bottom:14px;margin-bottom:8px;border-bottom:1px solid #e1dfe0}
.mediaStorage span,.mediaStorage small {font-size:.82rem;line-height:1.4}
.mediaStorage meter {width:100%;height:10px}

.analyticsCharts {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:20px;margin-block:24px}
.analyticsRanking {min-width:0;margin:0;padding:18px;border:1px solid #dedcdd;border-radius:10px}
.analyticsRanking figcaption {font-weight:700}
.analyticsRanking ol {list-style:none;padding:0;margin:18px 0 0;display:grid;gap:14px}
.analyticsRanking li > div:first-child {display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:.9rem}
.analyticsRanking li span {overflow-wrap:anywhere}
.analyticsRanking li strong {white-space:nowrap;font-variant-numeric:tabular-nums}
.rankingTrack {height:7px;margin-top:5px;background:#f1edef;border-radius:4px;overflow:hidden}
.rankingTrack i {display:block;height:100%;background:#bd173d;border-radius:inherit}

.loginShell {display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);min-height:100svh;background:#fff}
.loginVisual {position:relative;isolation:isolate;overflow:hidden;height:auto;min-height:100%;padding:clamp(28px,4vw,72px);background:#101012;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between}
.loginVisual picture {display:contents}
.loginPhoto {position:absolute;z-index:-2;inset:0;width:100%;height:100%;object-fit:cover;object-position:58% center}
.loginVisual::after {content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(8,8,10,.83),transparent 26%,transparent 55%,rgba(8,8,10,.92))}
.loginVisual p {margin:190px 0 0;color:white;font:600 clamp(42px,5.6vw,96px)/1.01 Poppins,sans-serif;letter-spacing:-.055em}
.loginVisual p span,.loginDot {color:#d71943}
.loginShell main {align-self:center;width:min(100%,480px);max-width:none;margin:0 auto;padding:46px clamp(24px,3vw,48px)}
.loginShell h1 {margin:0 0 32px;font-size:clamp(32px,3.2vw,48px);line-height:1.08}
.loginShell .login {padding:0;border:0;margin:0;display:grid;gap:20px;background:none}
.loginShell .login label {margin:0}
.loginShell .login input:not([type=checkbox]) {height:50px;width:100%;margin:6px 0 0;border:1px solid #aaa5a7;border-radius:7px;background:#fff;font-size:16px}
.loginShell .login .primary {display:flex;align-items:center;justify-content:space-between;width:100%;min-height:50px;margin:0;padding-inline:18px}
.loginShell .primary span {font-size:22px;line-height:1}
.loginShell :focus-visible {outline:3px solid #9b1939;outline-offset:2px}
@media(max-width:760px) {
 .loginShell {display:flex;flex-direction:column}
 .loginVisual {min-height:0;height:clamp(105px,20svh,165px);padding:24px;justify-content:center}
 .loginVisual p {display:none}
 .loginPhoto {object-position:50% 45%}
 .loginVisual::after {background:linear-gradient(90deg,rgba(8,8,10,.9),rgba(8,8,10,.18))}
 .loginShell main {padding-top:36px}
}

.pickerDialog {width:min(960px,calc(100% - 28px));max-height:86dvh;box-sizing:border-box;overflow:auto;overscroll-behavior:contain;padding:clamp(16px,3vw,28px);color:#141416;border:1px solid #dedcdd;border-radius:12px}
.pickerDialog::backdrop {background:rgb(18 16 18 / .55)}
.pickerHeading {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.pickerHeading h2 {margin:0}
body:has(.pickerDialog[open]) {overflow:hidden}

.toastStack {position:fixed;z-index:100;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));display:grid;gap:8px;width:max-content;max-width:min(440px,calc(100vw - 32px));pointer-events:none}
.portalToast {pointer-events:auto;display:flex;align-items:center;gap:10px;padding:7px 7px 7px 14px;border-radius:10px;background:#222126;color:white;box-shadow:0 4px 18px #0003;font:600 .9rem/1.4 Montserrat,sans-serif}
.portalToast[data-error=true] :is(b,[role="alert"]){color:#ffabb9}
.portalToast span {overflow-wrap:anywhere}
.portalToast button {flex:none;border:0;color:white;background:transparent;width:40px;height:40px;padding:0;font-size:20px}
.portalToast button:hover,.portalToast button:focus-visible{background:#ffffff24}

.passwordEntry {position:relative}
.passwordEntry input,.loginShell .passwordEntry input:not([type=checkbox]) {width:100%;min-height:46px;padding-right:50px;margin-bottom:0}
.passwordEntry .passwordEye,.loginShell .passwordEye {position:absolute;right:2px;bottom:1px;width:44px;height:44px;display:grid;place-items:center;background:transparent;color:#52484c;padding:0;margin:0;border:0;border-radius:6px}
.passwordEntry .passwordEye:hover {color:#991234;background:#fbf1f4}
.passwordEye svg {width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.passwordGuide {margin-top:8px;color:#554e52;font-size:.8rem}
.passwordGuide p {margin:0 0 4px}
.passwordGuide ul {list-style:none;padding:0;margin:0;display:flex;gap:3px 15px;flex-wrap:wrap}
.passwordGuide li:first-child {flex-basis:100%}
.passwordGuide li[data-met=true] {color:#226544}

.screenPresence {display:inline-flex;align-items:center;gap:.4em;width:max-content;font-size:.78rem;font-weight:700;border-radius:999px;padding:.18em .65em;background:#eee;color:#494949;white-space:nowrap}
.screenPresence::before {content:"";width:.52em;height:.52em;background:currentColor;border-radius:50%}
.screenPresence[data-state="online"] {color:#126036;background:#e3f5ea}
.screenPresence[data-state="offline"] {color:#972522;background:#fbe9e8}

.activityTrend {margin:1.5rem 0;padding:1.2rem;border:1px solid #dedede;border-radius:.8rem}
.activityTrend figcaption {font-size:1.18rem;font-weight:750;margin-bottom:.8rem}
.activityTrend label {max-width:23rem}
.activityTrend strong {display:block;margin:1rem 0 .5rem}
.trendBars {display:flex;align-items:stretch;height:10rem;border-bottom:1px solid #999;background:repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),#ececec 25%)}
.trendBars button {display:flex;flex:1;min-width:0;align-items:flex-end;justify-content:center;border:0;border-radius:0;background:transparent;padding:0;min-height:0}
.trendBars button:hover,.trendBars button:focus-visible {background:#f5e5ea}
.trendBars i {display:block;width:78%;max-width:3rem;background:#ac123f;border-radius:3px 3px 0 0}
.trendAxis {display:flex;justify-content:space-between;color:#555;font-size:.8rem;margin-top:.3rem}
.activityTrend p {min-height:1.3em;margin:.6rem 0 0}

/* Keep identification and actions aligned as the resource panel narrows. */
.resourceList > .screenListItem {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 8px}
.screenListItem > button {min-width:0;width:100%}
.screenListItem > small,.screenActions {grid-column:1/-1}
.screenListItem > small {overflow-wrap:anywhere}
.screenActions {display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.resourceList .screenActions button {min-width:0}
.resourcePanel {container-type:inline-size}
@container (max-width:205px) {
  .screenListItem > button,.screenListItem > .screenPresence {grid-column:1/-1;justify-self:start}
}
.calendarDates label,.calendarSlot label {margin:0}
.entryCalendar summary span {display:inline-block;margin-inline-start:.35em}
@container (max-width:360px) {
  .sequence .reorder {display:grid;grid-template-columns:minmax(0,1fr) 42px 42px;gap:6px}
  .sequence .reorder button {min-height:42px}
  .sequence .reorder .danger {grid-column:1/-1;justify-self:stretch;margin:0}
  .sequence .inlineFields {grid-template-columns:1fr 1fr;gap:8px}
  .sequence .inlineFields label:last-child {grid-column:1/-1}
  .sequence .inlineFields :is(input,select) {min-height:42px}
}
@media (max-width:600px) {
  .pageHeading {justify-items:start;align-items:start}
  .pickerHeading {position:sticky;top:calc(-1 * clamp(16px,3vw,28px));background:white;z-index:1;padding-block:8px}
  .mediaGrid {grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr))}
  .calendarDates,.calendarSlot {gap:10px}
  .portalShell :is(input:not([type=checkbox]):not([type=radio]),select) {font-size:16px}
}
@container (min-width:361px) and (max-width:500px) {
  .sequence > li {grid-template-areas:"handle preview name" "actions actions actions" "fields fields fields" "calendar calendar calendar"}
  .sequence .reorder {flex-wrap:wrap}
}
@media (max-width:420px) {
  .featured {grid-template-columns:minmax(0,1fr)}
  .featured img {grid-row:1;height:96px;object-position:center}
  .featured .featureText {padding:16px 18px}
}
