/* The portal's own additions to marketing's prototype (v.css), session 43a53843 on the operator's rulings. */

/* A button that would act on the customer's server or store data keeps its look and does nothing. */
[aria-disabled="true"] { cursor: not-allowed; }

/* Content that is the prototype's example, not account data. */
.p-example { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px;
  background: #F6E7B8; color: #5A4300; font-size: 11px; font-weight: 600; letter-spacing: .02em; vertical-align: middle; }
.p-examplebar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 13px; color: rgba(41,41,51,.72); }

/* A sentence the record says is false, taken out until Joonas words it. */
.p-ph { display: inline; color: rgba(41,41,51,.6); font-style: italic; }
.p-ph::before { content: "Text needed"; display: inline-block; margin-right: 8px; padding: 0 7px; border-radius: 999px;
  background: #F3D5DC; color: #7A0F2C; font-size: 11px; font-weight: 600; font-style: normal; letter-spacing: .02em; }
.theme-dark .p-hero .p-ph, .p-hero .p-ph { color: rgba(255,255,255,.66); }

.p-messages { list-style: none; margin: 0 0 18px; padding: 0; }
.p-main.p-allauth .p-inner { max-width: 720px; }

/* Welcome's step rail as links, so each step of the example can be read */
.w-steplink { display: contents; color: inherit; text-decoration: none; }

/* A negative month on the dark hero: the prototype's line is green for a gain. */
.p-negline { color: #FF9DB8 !important; }

/* Welcome on a phone: the prototype's step rail scrolls sideways, but its unwrapped steps widened the one grid
   column past the screen. A grid item's minimum width is its content's unless it is set to zero. */
@media (max-width: 900px) { .w-grid > * { min-width: 0; } }

/* The design board's rules the prototype did not have (2.zip, 2026-11-10): the key guide, the limit sliders,
   the warning note and the timeline's done step. */
.p-timeline .done .n, .p-timeline li.done .n{background: rgb(61, 187, 134); color: rgb(22, 37, 30);}
.kg-tabs{display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgb(241, 242, 241);}
.kg-tabs button{height: 36px; padding: 0px 16px; border: 0px; border-radius: 999px; background: transparent; font: 500 14px / 1 Poppins, sans-serif; color: rgb(69, 69, 79); cursor: pointer;}
.kg-tabs button[aria-selected="true"]{background: rgb(50, 50, 60); color: rgb(255, 255, 255);}
.kg-tabs button:focus-visible{outline: 2px solid rgb(0, 137, 85); outline-offset: 2px;}
.kg-legend{display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-bottom: 16px; border-bottom: 1px dotted rgb(211, 212, 217);}
.kg-panel{margin-top: 18px;}
.kg-sub{font-size: 15px; font-weight: 600; margin-bottom: 10px;}
.kg-where{display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 10px; padding: 8px 14px; border-radius: 12px; background: rgb(247, 248, 247); border: 1px solid rgb(228, 229, 232); font-size: 14px; font-weight: 500;}
.kg-steps{margin-top: 18px; gap: 18px;}
.kg-steps li > div{color: rgb(69, 69, 79);}
.kg-fig{margin: 10px 0px 0px;}
.kg-fig img{display: block; width: auto; height: auto; max-width: min(100%, 560px); max-height: 360px; border: 1px solid rgb(228, 229, 232); border-radius: 12px;}
.kg-fig figcaption{margin-top: 4px; font-size: 12px; color: rgb(107, 107, 117);}
.kg-perm{margin-top: 18px;}
.kg-chips{display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;}
.kg-off{text-decoration: line-through;}
.p-note.kg-warn{background: rgb(246, 226, 234); color: rgb(104, 0, 41);}
.rg-out{font-size: 18px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: rgb(50, 50, 60);}
.rg-in{width: 100%; height: 28px; margin: 6px 0px 0px; accent-color: rgb(50, 50, 60); cursor: pointer;}
.rg-marks{display: flex; justify-content: space-between; font-size: 11px; color: rgb(107, 107, 117); font-variant-numeric: tabular-nums;}

/* Brief item 2: the Help button is the round icon button, its icon 24 px. */
.p-iconbtn[aria-label="Help"] .ic { width: 24px; height: 24px; }

/* The frame's foot: the legal entity and the privacy policy (brief item 10; the terms set aside, c4ba9170:414). */
.p-legal { max-width: 1180px; margin: 40px auto 0; padding-top: 18px; border-top: 1px dotted #D3D4D9; font-size: 12px; color: #6B6B75; }
.p-legal a { color: inherit; }

/* The state screens' links on the example line. */
.p-states { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }

/* hidden wins over any display rule, as on the board (the Replace key dialog, the welcome steps, the guide panels). */
[hidden] { display: none !important; }

/* The sign-in panel is dark: its text-needed marks and its privacy link in its own colours. */
aside .p-ph { color: rgba(255,255,255,.7); }
.p-legal-dark { color: inherit; }

/* The sign-in screen fills the window (the board drew it in a 900 px frame) and stacks on a phone, the panel
   above the card: the board has no phone layout for it. */
.p-entrance { min-height: 100vh; }
@media (max-width: 900px) {
  .p-entrance { grid-template-columns: 1fr !important; height: auto !important; }
  .p-entrance > aside { min-height: 0 !important; gap: 24px; padding: 28px 24px !important; }
  .p-entrance > aside > svg { display: none; }
  .p-entrance > main { padding: 28px 16px 40px !important; }
  .p-entrance > main > .p-iconbtn { position: static !important; align-self: flex-end; margin-bottom: 12px; }
}

/* Welcome step 3 on a phone: the key-check tiles in one column, as the prototype's phone rule has them. The
   board's inline four-column rule outranked it. The key cards may shrink below their fields' width. */
@media (max-width: 640px) { .w-panel .w-perm { grid-template-columns: 1fr !important; } .w-panel .w-bot { min-width: 0; } }

/* The live data pages: period and filter choices are links, so a choice is an address and needs no script. */
a.p-seg, a.p-chip { display: inline-flex; align-items: center; text-decoration: none; }
.p-live { display: inline-flex; align-items: center; gap: 7px; height: 20px; padding: 0 9px; border-radius: 999px;
  background: rgba(0,137,85,.12); color: #008955; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.p-live .d { width: 7px; height: 7px; border-radius: 50%; background: #3DBB86; animation: v-pulse 2s infinite; }
@media (prefers-reduced-motion: reduce) { .p-live .d { animation: none; } }
.p-asof strong { color: #9C2B4E; font-weight: 600; }
.p-kpi .val.p-val-sm { font-size: 20px; line-height: 1.5; }
.p-table tr.p-sum td { font-weight: 600; border-top: 2px solid #E4E4E8; }
.b-m .l + .v + .l { margin-top: 2px; }
.p-asof { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 13px; color: rgba(41,41,51,.72); }
/* Overview's bot rows on a phone: the name and the result share a line, the state sits under them. The row is a
   flex list item (.p-list>li), so the rule names it as one. */
@media (max-width: 760px) { .p-list > li.o-bot { flex-wrap: wrap; row-gap: 8px; } .p-list > li.o-bot > div:first-child { flex: 1 1 0; min-width: 0; } .p-list > li.o-bot > .p-pill { flex: 0 0 100%; width: max-content; max-width: max-content; } }

/* The chart is revealed from the left by a clip on the whole drawing. The board's own effect drew the line with a
   dash of fixed length, and a line of hourly points is longer than that dash on a wide screen, so its last stretch
   was never drawn (the operator's screenshot of 2026-11-16). A clip does not depend on the line's length. */
.p-reveal { clip-path: inset(0 100% 0 0); animation: p-reveal 1.6s .2s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes p-reveal { to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .p-reveal { animation: none; clip-path: none; } }

/* Django's error pages (templates/400.html and the rest) in the portal's frame */
.p-errpage { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.p-errcard { max-width: 520px; width: 100%; padding: 32px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.p-errcard .p-logo { color: #2F303A; }
