/*!
 * PlazaSoftware entry pages
 * --------------------------------------------------------------------------------------------
 * Standalone pages that do not use the app shell: the main screen (/, resources/views/main),
 * the sign-in pages (layouts/signin) and the error pages (resources/views/errors). It also styles the
 * in-shell message page (Admin/Permissions/insufficient_permission, .plz-notice).
 *
 * Tokens are a copy of theme.css :root (section 1 there); keep the two in step.
 * No Bootstrap: these pages load only this file (and Font Awesome 4.7 where a page asks for it).
 *
 * Sections
 *   1  Fonts and tokens         4  Main screen              7  Sign in (body.plz-auth)
 *   2  Base                     5  Status pages             8  Motion
 *   3  Entry top bar and menu   6  In-shell notice
 */

/* =============================================================================================
   1. Fonts and tokens
   ============================================================================================= */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    color-scheme: light;

    --plz-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --plz-bg: #f4f6fa;
    --plz-surface: #ffffff;
    --plz-surface-2: #f8fafc;
    --plz-line: #e4e8ee;
    --plz-line-soft: #eef1f5;
    --plz-line-strong: #cfd6e0;
    --plz-ink: #0f172a;
    --plz-ink-2: #475569;
    --plz-ink-3: #64748b;

    --plz-brand: #2a78d6;
    --plz-brand-600: #1f63b8;
    --plz-brand-700: #184f94;
    --plz-brand-50: #eef4fc;
    --plz-brand-100: #d9e7f8;
    --plz-ring: 0 0 0 3px rgba(42, 120, 214, .22);

    --plz-nav-bg: #0f1b2d;
    --plz-nav-bg-2: #16253b;
    --plz-nav-ink: #b6c2d3;
    --plz-nav-ink-2: #8796ac;

    --plz-good: #0ca30c;      --plz-good-ink: #0a7a0a;      --plz-good-50: #e9f7e9;
    --plz-warn: #fab219;      --plz-warn-ink: #8a5a00;      --plz-warn-50: #fff6e0;
    --plz-serious: #ec835a;   --plz-serious-ink: #b34a1f;   --plz-serious-50: #fdeee7;
    --plz-bad: #d03b3b;       --plz-bad-ink: #b02a2a;       --plz-bad-50: #fbeaea;

    --plz-radius: 12px;
    --plz-radius-sm: 8px;
    --plz-radius-xs: 6px;
    --plz-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .04);
    --plz-shadow-md: 0 4px 12px rgba(16, 24, 40, .08), 0 1px 3px rgba(16, 24, 40, .05);
    --plz-shadow-lg: 0 12px 32px rgba(16, 24, 40, .14);
    --plz-ease: cubic-bezier(.2, .7, .2, 1);

    --plz-entry-max: 1120px;
    --plz-entry-pad: 24px;
}
@media (max-width: 767px) {
    :root { --plz-entry-pad: 16px; }
}

/* =============================================================================================
   2. Base (standalone pages only; nothing here applies inside the app shell)
   ============================================================================================= */

html { -webkit-text-size-adjust: 100%; }

body.plz-entry,
body.plz-auth {
    margin: 0;
    font-family: var(--plz-font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--plz-ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body.plz-entry {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--plz-bg);
}
body.plz-entry *, body.plz-entry *::before, body.plz-entry *::after,
body.plz-auth *, body.plz-auth *::before, body.plz-auth *::after { box-sizing: border-box; }
/* Bare links only; component links set their own colour (zero-specificity :where keeps it that way). */
:where(body.plz-entry) a { color: var(--plz-brand); }
:where(body.plz-entry) dl, :where(body.plz-entry) dd { margin: 0; }
body.plz-entry [hidden], body.plz-auth [hidden], body.plz .plz-notice [hidden] { display: none !important; }
body.plz-entry :focus-visible { outline: 2px solid var(--plz-brand); outline-offset: 2px; }
body.plz-entry .sr-only, body.plz-auth .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.plz-entry__wrap {
    width: 100%;
    max-width: var(--plz-entry-max);
    margin: 0 auto;
    padding-left: var(--plz-entry-pad);
    padding-right: var(--plz-entry-pad);
}
.plz-entry__main { flex: 1 0 auto; padding-top: 40px; padding-bottom: 56px; }
.plz-entry__foot {
    flex: 0 0 auto;
    padding-top: 18px; padding-bottom: 22px;
    border-top: 1px solid var(--plz-line);
    font-size: 12.5px; color: var(--plz-ink-3);
}

/* Building mark in a brand square (same as the shell's sidebar brand). */
.plz-entry-mark {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    border-radius: 9px;
    background: linear-gradient(145deg, #3b8be4 0%, var(--plz-brand-600) 100%);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 1px 2px rgba(16, 24, 40, .2);
}
.plz-entry-mark svg { width: 19px; height: 19px; display: block; }

/* Buttons (entry pages have no Bootstrap). */
.plz-ebtn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 40px; padding: 0 16px;
    border: 1px solid var(--plz-line-strong);
    border-radius: var(--plz-radius-sm);
    background: var(--plz-surface);
    color: var(--plz-ink);
    font: inherit; font-size: 14px; font-weight: 600; line-height: 1;
    text-decoration: none; white-space: nowrap;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.plz-ebtn:hover { background: var(--plz-surface-2); border-color: var(--plz-ink-3); color: var(--plz-ink); text-decoration: none; }
.plz-ebtn:focus-visible { outline: none; box-shadow: var(--plz-ring); border-color: var(--plz-brand); }
.plz-ebtn svg, .plz-ebtn .fa { flex: 0 0 auto; }
.plz-ebtn svg { width: 16px; height: 16px; }
.plz-ebtn--primary { background: var(--plz-brand); border-color: var(--plz-brand); color: #fff; }
.plz-ebtn--primary:hover { background: var(--plz-brand-600); border-color: var(--plz-brand-600); color: #fff; }
.plz-ebtn--ghost { border-color: transparent; background: transparent; color: var(--plz-ink-2); }
.plz-ebtn--ghost:hover { background: var(--plz-surface-2); border-color: transparent; color: var(--plz-ink); }
/* Quiet text action (e.g. "Go back"): no box, so its icon lines up with the card edge wherever it lands. */
.plz-ebtn--link { padding: 0; border-color: transparent; background: transparent; color: var(--plz-ink-2); font-weight: 500; }
.plz-ebtn--link:hover { background: transparent; border-color: transparent; color: var(--plz-brand-600); text-decoration: underline; text-underline-offset: 3px; }
.plz-ebtn--link:focus-visible { border-color: transparent; border-radius: 6px; }

/* =============================================================================================
   3. Entry top bar and user menu
   ============================================================================================= */

.plz-ebar {
    position: sticky; top: 0; z-index: 20;
    flex: 0 0 auto;
    height: 60px;
    background: var(--plz-surface);
    border-bottom: 1px solid var(--plz-line);
}
.plz-ebar__inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.plz-ebar__brand {
    display: inline-flex; align-items: center; gap: 11px;
    min-width: 0;
    color: var(--plz-ink); text-decoration: none;
    border-radius: var(--plz-radius-sm);
}
.plz-ebar__brand:hover { text-decoration: none; color: var(--plz-ink); }
.plz-ebar__brandtext { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.plz-ebar__name { font-size: 14.5px; font-weight: 650; letter-spacing: -.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plz-ebar__sub { font-size: 11.5px; font-weight: 500; color: var(--plz-ink-3); margin-top: 2px; white-space: nowrap; }
.plz-ebar__right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.plz-edd { position: relative; }
.plz-euser {
    display: inline-flex; align-items: center; gap: 10px;
    height: 44px; padding: 0 8px 0 4px;
    border: 0; border-radius: 10px;
    background: transparent;
    font: inherit; color: inherit; text-align: left;
    cursor: pointer;
    transition: background .15s;
}
.plz-euser:hover, .plz-edd.is-open > .plz-euser { background: var(--plz-surface-2); }
.plz-euser:focus-visible { outline: none; box-shadow: var(--plz-ring); }
.plz-euser__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; max-width: 200px; }
.plz-euser__name { font-size: 13.5px; font-weight: 600; color: var(--plz-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plz-euser__role { font-size: 12px; color: var(--plz-ink-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plz-euser__caret { width: 14px; height: 14px; color: var(--plz-ink-3); transition: transform .15s; }
.plz-edd.is-open .plz-euser__caret { transform: rotate(180deg); }

.plz-eavatar {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--plz-brand-50);
    color: var(--plz-brand-600);
    box-shadow: inset 0 0 0 1px var(--plz-brand-100);
    font-size: 13px; font-weight: 650; letter-spacing: .02em;
    overflow: hidden;
}
.plz-eavatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plz-eavatar--md { width: 44px; height: 44px; font-size: 15px; }

.plz-emenu {
    position: absolute; top: calc(100% + 8px); right: 0; z-index: 30;
    width: 280px; max-width: calc(100vw - 24px);
    padding: 6px;
    background: var(--plz-surface);
    border: 1px solid var(--plz-line);
    border-radius: var(--plz-radius);
    box-shadow: var(--plz-shadow-lg);
    opacity: 0; visibility: hidden;
    transform: translateY(-4px) scale(.98); transform-origin: top right;
    transition: opacity .14s ease, transform .14s var(--plz-ease), visibility 0s linear .14s;
}
.plz-edd.is-open > .plz-emenu { opacity: 1; visibility: visible; transform: none; transition: opacity .14s ease, transform .14s var(--plz-ease), visibility 0s; }
.plz-emenu__user { display: flex; align-items: center; gap: 12px; padding: 10px 10px 8px; }
.plz-emenu__usertext { min-width: 0; }
.plz-emenu__username { font-weight: 600; font-size: 14px; line-height: 1.3; }
.plz-emenu__email { font-size: 12.5px; color: var(--plz-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.plz-emenu__sep { height: 1px; margin: 6px 4px; background: var(--plz-line); }
.plz-emenu__form { margin: 0; }
.plz-emenu__item {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 8px 10px;
    border: 0; border-radius: var(--plz-radius-sm);
    background: transparent;
    color: var(--plz-ink);
    font: inherit; font-size: 13.5px; font-weight: 500; line-height: 1.3;
    text-align: left; text-decoration: none;
    cursor: pointer;
}
.plz-emenu__item svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--plz-ink-3); }
.plz-emenu__item:hover, .plz-emenu__item:focus { background: var(--plz-surface-2); color: var(--plz-ink); text-decoration: none; outline: none; }
.plz-emenu__item:focus-visible { box-shadow: inset 0 0 0 2px var(--plz-brand); }
.plz-emenu__item--danger, .plz-emenu__item--danger svg { color: var(--plz-bad-ink); }
.plz-emenu__item--danger:hover, .plz-emenu__item--danger:focus { background: var(--plz-bad-50); color: var(--plz-bad-ink); }

/* Pills (role, scope). */
.plz-epill {
    display: inline-flex; align-items: center; gap: 6px;
    height: 24px; padding: 0 9px;
    border-radius: var(--plz-radius-xs);
    background: var(--plz-brand-50); color: var(--plz-brand-700);
    font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap;
}
.plz-epill svg { width: 13px; height: 13px; }
.plz-epill--neutral { background: #eef1f5; color: var(--plz-ink-2); }

@media (max-width: 599px) {
    .plz-ebar__sub { display: none; }
    .plz-euser__text { display: none; }
    .plz-euser { padding: 0 6px 0 4px; }
}

/* =============================================================================================
   4. Main screen (/, resources/views/main.blade.php, artwork in resources/views/main/art.blade.php)
   A dark band (top bar and hero, in the sign-in page's colours) with the module cards overlapping its foot.
   A card is an artwork panel over the name, description, figures and action. A card whose grid slot is
   600px or wider (the first, featured card on desktop and tablet) lays out side by side (container query).
   ============================================================================================= */

/* Top bar on the dark band (entry-bar with entryTone = dark). */
.plz-ebar--dark { position: relative; z-index: 20; background: transparent; border-bottom-color: rgba(255, 255, 255, .08); }
.plz-ebar--dark .plz-ebar__brand, .plz-ebar--dark .plz-ebar__brand:hover { color: #fff; }
.plz-ebar--dark .plz-ebar__brand:focus-visible { outline-color: #fff; }
.plz-ebar--dark .plz-ebar__sub { color: var(--plz-nav-ink-2); }
.plz-ebar--dark .plz-euser:hover, .plz-ebar--dark .plz-edd.is-open > .plz-euser { background: rgba(255, 255, 255, .08); }
.plz-ebar--dark .plz-euser:focus-visible { box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
.plz-ebar--dark .plz-euser__name { color: #fff; }
.plz-ebar--dark .plz-euser__role, .plz-ebar--dark .plz-euser__caret { color: var(--plz-nav-ink); }
.plz-ebar--dark .plz-euser .plz-eavatar { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.plz-ebar--dark .plz-emenu { color: var(--plz-ink); }

.plz-ebtn--light { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); color: #fff; }
.plz-ebtn--light:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .36); color: #fff; }
.plz-ebtn--light:focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, .3); border-color: #fff; }
.plz-ebtn--lg { height: 46px; padding: 0 20px; border-radius: 10px; font-size: 15px; }
.plz-ebar__signin { height: 38px; padding: 0 14px; }

/* A little wider than the other entry pages: the featured card carries three figures beside its artwork. */
body.plz-home { --plz-entry-max: 1240px; }
.plz-home__defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.plz-home__top {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    flex: 0 0 auto;
    padding-bottom: 116px;
    color: #fff;
    background-color: var(--plz-nav-bg);
    background-image:
        radial-gradient(820px 460px at 4% -18%, rgba(42, 120, 214, .40), rgba(42, 120, 214, 0) 66%),
        radial-gradient(760px 520px at 100% 0%, rgba(59, 139, 228, .16), rgba(59, 139, 228, 0) 70%),
        linear-gradient(172deg, #14243c 0%, #0f1b2d 58%, #0c1626 100%);
}
.plz-home__top::before {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, rgba(255, 255, 255, 0) 1.3px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .3) 75%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .3) 75%, rgba(0, 0, 0, 0) 100%);
}
.plz-home__hero { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 4px; }
.plz-home__eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    margin: 0 0 14px;
    font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: #8fc0ff;
}
.plz-home__eyedot { width: 6px; height: 6px; border-radius: 50%; background: #5aa5ff; box-shadow: 0 0 0 4px rgba(90, 165, 255, .2); }
.plz-home__title {
    margin: 0; max-width: 760px;
    font-size: 40px; line-height: 1.12; font-weight: 650; letter-spacing: -.025em;
    color: #fff;
    text-wrap: balance;
}
.plz-home__lead { margin: 14px 0 0; max-width: 600px; font-size: 16px; line-height: 1.6; color: #c3cedd; text-wrap: pretty; }
.plz-home__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; }
.plz-home__hint { font-size: 13.5px; color: var(--plz-nav-ink-2); }
.plz-home__pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.plz-home__pills:empty { display: none; }
.plz-home__pill {
    display: inline-flex; align-items: center; gap: 7px;
    height: 30px; padding: 0 12px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .07);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10);
    font-size: 12.5px; font-weight: 500; color: #dfe6f0; white-space: nowrap;
}
.plz-home__pill svg { width: 14px; height: 14px; color: #8fc0ff; }

/* Line-drawn skyline at the band's right edge, half under the cards. */
.plz-home__skyline {
    position: absolute; z-index: 0; bottom: 0;
    right: max(var(--plz-entry-pad), calc((100% - var(--plz-entry-max)) / 2 + var(--plz-entry-pad)));
    width: 470px; height: auto;
    pointer-events: none;
}
.plz-home__skyline .b { fill: rgba(255, 255, 255, .03); stroke: rgba(255, 255, 255, .08); stroke-width: 1; }
.plz-home__skyline .w rect { fill: rgba(143, 192, 255, .10); }

.plz-home__main { position: relative; z-index: 2; flex: 1 0 auto; margin-top: -84px; padding-bottom: 56px; }
.plz-home__out { display: flex; justify-content: center; margin: 28px 0 0; }

/* Open modules: six tracks; the spans follow how many there are (--n1 ... --n5):
   5 = 4+2 over 2+2+2, 4 = 4+2 over 3+3, 3 = 2+2+2, 2 = 3+3, 1 = the whole row. */
.plz-hgrid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
    margin: 0; padding: 0; list-style: none;
}
.plz-hgrid__item { grid-column: span 2; display: flex; min-width: 0; container-type: inline-size; }
.plz-hgrid--n5 > :first-child, .plz-hgrid--n4 > :first-child { grid-column: span 4; }
.plz-hgrid--n4 > :nth-child(n+3), .plz-hgrid--n2 > * { grid-column: span 3; }
.plz-hgrid--n1 > * { grid-column: 1 / -1; }

/* Modules the role cannot open: a row of smaller locked cards under their own heading. */
.plz-home__others { margin-top: 44px; }
.plz-home__main.is-empty .plz-home__others { margin-top: 0; }
.plz-home__sechead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0 0 14px; }
.plz-home__sectitle { margin: 0; font-size: 15px; line-height: 1.3; font-weight: 650; letter-spacing: -.01em; color: var(--plz-ink); }
.plz-home__secsub { margin: 0; font-size: 13px; color: var(--plz-ink-3); }
.plz-hgrid--locked { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.plz-hgrid--locked > .plz-hgrid__item { grid-column: auto; }
.plz-hgrid--locked .plz-hcard__art { height: 116px; padding-top: 12px; }
.plz-hgrid--locked .plz-hcard__body { padding: 16px 18px 16px; }
.plz-hgrid--locked .plz-hcard__desc { font-size: 13px; }
.plz-hgrid--locked .plz-hcard__cta { padding-top: 14px; }

/* Nothing to open: no cards overlap the band, so it ends with the hero. */
.plz-home__top.is-short { padding-bottom: 44px; }
.plz-home__main.is-empty { margin-top: 0; padding-top: 36px; }

.plz-hcard {
    --hc-a: #2a78d6; --hc-a2: #7fb0ec; --hc-a3: #d9e7f8; --hc-tint: #edf4fd; --hc-ink: #1f63b8; --hc-dot: rgba(42, 120, 214, .16);
    position: relative;
    flex: 1 1 auto;
    display: flex; flex-direction: column;
    min-width: 0;
    background: var(--plz-surface);
    border: 1px solid var(--plz-line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 28px -14px rgba(16, 24, 40, .18);
    color: var(--plz-ink);
    text-decoration: none;
    transition: border-color .18s, box-shadow .2s, transform .2s var(--plz-ease);
}
.plz-hcard--accounts { --hc-a: #12804e; --hc-a2: #4cc394; --hc-a3: #d3f0e2; --hc-tint: #ebf8f1; --hc-ink: #0f7a4a; --hc-dot: rgba(18, 128, 78, .15); }
.plz-hcard--payroll  { --hc-a: #5b45c9; --hc-a2: #9c8eec; --hc-a3: #e4defb; --hc-tint: #f3f0fd; --hc-ink: #5b45c9; --hc-dot: rgba(91, 69, 201, .15); }
.plz-hcard--stock    { --hc-a: #dc8a0e; --hc-a2: #f2b64a; --hc-a3: #fde5ba; --hc-tint: #fff6e6; --hc-ink: #9a5b00; --hc-dot: rgba(220, 138, 14, .18); }
.plz-hcard--admin    { --hc-a: #3b4a60; --hc-a2: #7d8ca2; --hc-a3: #e2e8f0; --hc-tint: #f1f4f8; --hc-ink: #3b4a60; --hc-dot: rgba(59, 74, 96, .14); }

a.plz-hcard:hover { color: var(--plz-ink); text-decoration: none; }
@media (hover: hover) {
    a.plz-hcard:hover {
        border-color: #d5dce6;
        box-shadow: 0 2px 4px rgba(16, 24, 40, .05), 0 22px 44px -18px rgba(16, 24, 40, .30);
        transform: translateY(-3px);
    }
}
a.plz-hcard:focus-visible { outline: none; border-color: var(--plz-brand); box-shadow: var(--plz-ring), 0 10px 28px -14px rgba(16, 24, 40, .18); }

/* Artwork panel. */
.plz-hcard__art {
    position: relative;
    flex: 0 0 auto;
    display: flex; align-items: flex-end; justify-content: center;
    height: 168px;
    padding: 16px 18px 0;
    background: linear-gradient(180deg, var(--hc-tint) 0%, #fbfcfe 100%);
    border-bottom: 1px solid var(--plz-line-soft);
}
.plz-hcard__art::before {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(var(--hc-dot) 1px, rgba(255, 255, 255, 0) 1.3px);
    background-size: 16px 16px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0) 85%);
    mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0) 85%);
}
.plz-hcard__art svg { position: relative; display: block; width: 100%; max-width: 320px; height: 100%; transition: transform .3s var(--plz-ease); }
@media (hover: hover) {
    a.plz-hcard:hover .plz-hcard__art svg { transform: translateY(-2px) scale(1.015); }
}
.plz-hcard__art .s { fill: #fff; }
.plz-hcard__art .ln { fill: #e4e8ee; }
.plz-hcard__art .ls { fill: #eef1f5; }
.plz-hcard__art .k { fill: #cfd7e2; }
.plz-hcard__art .k2 { fill: #a3b0c2; }
.plz-hcard__art .a { fill: var(--hc-a); }
.plz-hcard__art .a2 { fill: var(--hc-a2); }
.plz-hcard__art .a3 { fill: var(--hc-a3); }
.plz-hcard__art .w-soft { fill: rgba(255, 255, 255, .8); }
.plz-hcard__art .u-r { fill: #2a78d6; }
.plz-hcard__art .u-g { fill: #1baf7a; }
.plz-hcard__art .u-o { fill: #eb6834; }
.plz-hcard__art .u-n { fill: #dde3eb; }
.plz-hcard__art .ring-bg { fill: none; stroke: var(--hc-a3); stroke-width: 7; }
.plz-hcard__art .ring { fill: none; stroke: var(--hc-a); stroke-width: 7; stroke-linecap: round; }
.plz-hcard__art .line { fill: none; stroke: var(--hc-a); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.plz-hcard__art .dot { fill: var(--hc-a); stroke: #fff; stroke-width: 2.5; }
.plz-hcard__art .tick { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.plz-hcard__art .tape { fill: rgba(255, 255, 255, .38); }
.plz-hcard__art .low { fill: #eb6834; }
.plz-hcard__art .on { fill: var(--plz-brand); }
.plz-hcard__art .off { fill: #cfd7e2; }
.plz-hcard__art .knob { fill: #fff; }
.plz-hcard__art .av1 { fill: #d9e7f8; }
.plz-hcard__art .av2 { fill: #e4defb; }
.plz-hcard__art .av3 { fill: #d3f0e2; }

/* Text. */
.plz-hcard__body { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; padding: 18px 20px 18px; }
.plz-hcard__head { display: flex; align-items: center; gap: 11px; min-width: 0; }
.plz-hcard__icon {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: 9px;
    background: var(--hc-tint); color: var(--hc-ink);
    box-shadow: inset 0 0 0 1px var(--hc-a3);
}
.plz-hcard__icon svg { width: 17px; height: 17px; }
.plz-hcard__name { margin: 0; min-width: 0; font-size: 16.5px; line-height: 1.3; font-weight: 650; letter-spacing: -.012em; }
.plz-hcard__desc { margin: 9px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--plz-ink-3); }

/* What the module covers: only where the card has room for it and no figures (the featured card, for guests). */
.plz-hcard__tags {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    margin: 20px 0 0; padding: 18px 0 0;
    border-top: 1px solid var(--plz-line-soft);
    list-style: none;
}
.plz-hcard__tags li { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 13.5px; font-weight: 500; color: var(--plz-ink-2); }
.plz-hcard__tags svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--hc-a); }

.plz-hcard__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
    gap: 14px 18px;
    margin: 18px 0 0; padding: 16px 0 0;
    border-top: 1px solid var(--plz-line-soft);
}
.plz-hcard__stat { min-width: 0; margin: 0; }
.plz-hcard__label {
    display: block;
    font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: var(--plz-ink-3);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.plz-hcard__value {
    display: flex; align-items: center; gap: 7px;
    margin: 4px 0 0;
    font-size: 22px; line-height: 1.15; font-weight: 650; letter-spacing: -.015em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.plz-hcard__sub { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: var(--plz-ink-3); }
.plz-hcard__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--plz-good); box-shadow: 0 0 0 3px var(--plz-good-50); flex: 0 0 auto; }
.plz-hcard__flag {
    display: inline-flex; align-items: center; gap: 4px;
    height: 20px; padding: 0 7px;
    border-radius: var(--plz-radius-xs);
    background: var(--plz-warn-50); color: var(--plz-warn-ink);
    font-size: 11.5px; font-weight: 600;
}
.plz-hcard__flag svg { width: 12px; height: 12px; }

.plz-hcard__meter { margin-top: 16px; }
.plz-hcard__meterbar { display: flex; gap: 2px; height: 8px; border-radius: 99px; overflow: hidden; background: var(--plz-surface); }
.plz-hcard__meterbar > span { display: block; height: 100%; min-width: 2px; }
.plz-hcard__legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12px; color: var(--plz-ink-2); }
.plz-hcard__legend > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.plz-hcard__legend b { font-weight: 600; color: var(--plz-ink); font-variant-numeric: tabular-nums; }
.plz-hcard__legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

.plz-hcard__cta {
    margin-top: auto; padding-top: 18px;
    display: flex; align-items: center; gap: 6px;
    font-size: 13.5px; font-weight: 600; color: var(--hc-ink);
}
.plz-hcard__cta svg { width: 15px; height: 15px; flex: 0 0 auto; transition: transform .18s var(--plz-ease); }
@media (hover: hover) {
    a.plz-hcard:hover .plz-hcard__cta svg { transform: translateX(3px); }
}

/* Locked: the user's role cannot open the module. Visible, plainly marked, not a link. */
.plz-hcard.is-locked { cursor: default; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.plz-hcard.is-locked .plz-hcard__art { background: linear-gradient(180deg, #f2f4f7 0%, #fafbfc 100%); }
.plz-hcard.is-locked .plz-hcard__art::before { background-image: radial-gradient(rgba(100, 116, 139, .14) 1px, rgba(255, 255, 255, 0) 1.3px); }
.plz-hcard.is-locked .plz-hcard__art svg { filter: grayscale(1); opacity: .42; }
.plz-hcard.is-locked .plz-hcard__icon { background: var(--plz-surface-2); color: #94a3b8; box-shadow: inset 0 0 0 1px var(--plz-line); }
.plz-hcard.is-locked .plz-hcard__name { color: var(--plz-ink-2); }
.plz-hcard.is-locked .plz-hcard__cta { color: var(--plz-ink-3); font-weight: 500; font-size: 13px; }
.plz-hcard.is-locked .plz-hcard__cta svg { width: 14px; height: 14px; }
.plz-hcard__lock {
    position: absolute; top: 12px; right: 12px;
    display: inline-flex; align-items: center; gap: 6px;
    height: 26px; padding: 0 10px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 0 0 1px var(--plz-line), 0 1px 2px rgba(16, 24, 40, .06);
    font-size: 12px; font-weight: 600; color: var(--plz-ink-2);
}
.plz-hcard__lock svg { width: 13px; height: 13px; }

/* Side by side when the slot is wide (the featured card on desktop and tablet). */
@container (min-width: 600px) {
    .plz-hcard { flex-direction: row-reverse; }
    .plz-hcard__art {
        width: 48%; height: auto; min-height: 250px;
        align-items: center;
        padding: 18px 16px 10px;
        border-bottom: 0; border-left: 1px solid var(--plz-line-soft);
    }
    .plz-hcard__art svg { max-width: 360px; }
    .plz-hcard__body { padding: 26px 28px 22px; }
    .plz-hcard__head { gap: 13px; }
    .plz-hcard__icon { width: 40px; height: 40px; border-radius: 11px; }
    .plz-hcard__icon svg { width: 20px; height: 20px; }
    .plz-hcard__name { font-size: 20px; letter-spacing: -.018em; }
    .plz-hcard__desc { margin-top: 10px; font-size: 14.5px; }
    .plz-hcard__tags { display: grid; }
    /* With figures the text needs the room: narrower artwork. */
    .plz-hcard.has-figures .plz-hcard__art { width: 34%; }
    /* The action sits on a footer line, so the room the row leaves above it reads as part of the card. */
    .plz-hcard__cta { padding-top: 16px; border-top: 1px solid var(--plz-line-soft); }
    .plz-hcard__body > :nth-last-child(2) { margin-bottom: 20px; }
}

/* Cards rise in on first paint. */
@keyframes plz-home-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.plz-hgrid__item { animation: plz-home-rise .45s var(--plz-ease) both; }
.plz-hgrid__item:nth-child(2) { animation-delay: .04s; }
.plz-hgrid__item:nth-child(3) { animation-delay: .08s; }
.plz-hgrid__item:nth-child(4) { animation-delay: .12s; }
.plz-hgrid__item:nth-child(5) { animation-delay: .16s; }

@media (max-width: 1023px) {
    .plz-hgrid, .plz-hgrid--locked { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .plz-hgrid__item, .plz-hgrid--n4 > :nth-child(n+3), .plz-hgrid--n2 > * { grid-column: span 1; }
    .plz-hgrid--n5 > :first-child, .plz-hgrid--n4 > :first-child, .plz-hgrid--n4 > :last-child,
    .plz-hgrid--n3 > :first-child, .plz-hgrid--n1 > * { grid-column: 1 / -1; }
    .plz-home__skyline { width: 400px; opacity: .8; }
}
@media (max-width: 767px) {
    .plz-home__skyline { display: none; }
}
@media (max-width: 639px) {
    .plz-home__top { padding-bottom: 76px; }
    .plz-home__hero { padding-top: 30px; }
    .plz-home__eyebrow { margin-bottom: 10px; font-size: 11px; }
    .plz-home__title { font-size: 28px; line-height: 1.18; }
    .plz-home__lead { margin-top: 10px; font-size: 14.5px; line-height: 1.55; }
    .plz-home__actions { margin-top: 20px; }
    .plz-home__actions .plz-ebtn { flex: 1 1 100%; }
    .plz-home__hint { flex: 1 1 100%; text-align: center; }
    .plz-home__pills { margin-top: 16px; }
    .plz-home__main { margin-top: -52px; padding-bottom: 36px; }
    .plz-hgrid, .plz-hgrid--locked { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .plz-hgrid .plz-hgrid__item { grid-column: 1 / -1; }
    .plz-home__others { margin-top: 32px; }
    .plz-home__sechead { margin-bottom: 12px; }
    .plz-hcard__art { height: 140px; padding: 12px 14px 0; }
    .plz-hcard__body { padding: 16px 16px 16px; }
    .plz-hcard__value { font-size: 20px; }
    .plz-hcard__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* Locked cards shrink to a line each on a phone: no artwork, the lock line says why. */
    .plz-hcard.is-locked .plz-hcard__art { display: none; }
    .plz-hcard.is-locked .plz-hcard__body { padding: 14px 16px; }
    .plz-hcard.is-locked .plz-hcard__cta { padding-top: 10px; }
}

/* =============================================================================================
   5. Status pages (errors/*: forbidden, 404, 419, 500 ...)
   ============================================================================================= */

.plz-status { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; padding-top: 48px; padding-bottom: 64px; }
.plz-status__card {
    width: 100%; max-width: 560px;
    padding: 36px 36px 30px;
    background: var(--plz-surface);
    border: 1px solid var(--plz-line);
    border-radius: 16px;
    box-shadow: var(--plz-shadow-md);
}
.plz-status__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--plz-brand-50); color: var(--plz-brand-600);
}
.plz-status__icon svg { width: 26px; height: 26px; }
.plz-status__icon--bad { background: var(--plz-bad-50); color: var(--plz-bad-ink); }
.plz-status__icon--warn { background: var(--plz-warn-50); color: var(--plz-warn-ink); }
.plz-status__icon--neutral { background: #eef1f5; color: var(--plz-ink-2); }
.plz-status__code {
    display: block; margin: 18px 0 0;
    font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: var(--plz-ink-3);
}
.plz-status__title { text-wrap: balance; margin: 6px 0 0; font-size: 24px; line-height: 1.25; font-weight: 650; letter-spacing: -.02em; color: var(--plz-ink); }
.plz-status__msg { margin: 10px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--plz-ink-2); }
.plz-status__facts {
    margin: 22px 0 0; padding: 14px 16px;
    background: var(--plz-surface-2);
    border: 1px solid var(--plz-line-soft);
    border-radius: 10px;
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px;
    font-size: 13px;
}
.plz-status__facts dt { color: var(--plz-ink-3); font-weight: 500; }
.plz-status__facts dd { margin: 0; color: var(--plz-ink); font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.plz-status__facts code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; color: var(--plz-ink-2); }
.plz-status__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.plz-status__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }
.plz-status__actions form { margin: 0; }
/* "Go back" sits on the same row as the buttons, pushed to the far edge; it never needs a row of its own. */
.plz-status__back { margin-left: auto; padding-left: 8px; }

@media (max-width: 639px) {
    .plz-status { align-items: flex-start; padding-top: 20px; padding-bottom: 32px; }
    .plz-status__card { padding: 26px 20px 22px; border-radius: 14px; }
    .plz-status__title { font-size: 21px; }
    .plz-status__actions .plz-ebtn { flex: 1 1 auto; }
    /* Phone: the buttons stack full width; "Go back" is a centred text link under them. */
    .plz-status__actions .plz-status__back { flex: 1 0 100%; margin: 2px 0 0; padding: 0; }
}

/* =============================================================================================
   6. In-shell notice (Admin/Permissions/insufficient_permission inside the app shell)
   components.css forces border-radius:0 !important on most elements, hence the !important radii.
   ============================================================================================= */

body.plz .plz-notice {
    max-width: 600px;
    margin: 32px auto;
    padding: 32px 32px 28px;
    background: var(--plz-surface);
    border: 1px solid var(--plz-line);
    border-radius: 16px !important;
    box-shadow: var(--plz-shadow-md);
    text-align: left;
}
body.plz .plz-notice__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px;
    border-radius: 14px !important;
    background: var(--plz-brand-50); color: var(--plz-brand-600);
    font-size: 23px;
}
body.plz .plz-notice__icon svg { width: 26px; height: 26px; display: block; }
body.plz .plz-notice__icon--bad { background: var(--plz-bad-50); color: var(--plz-bad-ink); }
body.plz .plz-notice__icon--warn { background: var(--plz-warn-50); color: var(--plz-warn-ink); }
body.plz .plz-notice__icon--neutral { background: #eef1f5; color: var(--plz-ink-2); }
body.plz .plz-notice__code {
    display: block; margin: 18px 0 0;
    font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--plz-ink-3);
}
body.plz .plz-notice__title { margin: 6px 0 0; font-size: 22px; line-height: 1.3; font-weight: 650; letter-spacing: -.015em; color: var(--plz-ink); }
body.plz .plz-notice__msg { margin: 10px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--plz-ink-2); }
body.plz .plz-notice__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
body.plz .plz-notice__actions .btn { display: inline-flex; align-items: center; gap: 8px; }
body.plz .plz-notice__actions .btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
@media (max-width: 639px) {
    body.plz .plz-notice { margin: 8px 0 16px; padding: 24px 18px 20px; border-radius: 14px !important; }
    body.plz .plz-notice__title { font-size: 19px; }
    body.plz .plz-notice__actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* =============================================================================================
   7. Sign in (layouts/signin: login, forgot and reset password)
   Class contract used by the auth views: .row .label .field(.has-toggle) .peek .aside .submit
   .note(.note-ok|.note-bad) .sub .foot, plus h2 inside .form-side.
   ============================================================================================= */

body.plz-auth {
    min-height: 100vh;
    background-color: var(--plz-nav-bg);
    background-image:
        radial-gradient(900px 560px at 6% -10%, rgba(42, 120, 214, .30), rgba(42, 120, 214, 0) 64%),
        radial-gradient(900px 620px at 100% 110%, rgba(42, 120, 214, .22), rgba(42, 120, 214, 0) 62%),
        radial-gradient(rgba(255, 255, 255, .045) 1px, rgba(0, 0, 0, 0) 1px),
        linear-gradient(170deg, #13233a 0%, #0f1b2d 55%, #0b1524 100%);
    background-size: auto, auto, 24px 24px, auto;
    background-attachment: fixed;
}
body.plz-auth a { color: inherit; }

.plz-auth__shell {
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 28px 18px 20px;
}
.plz-auth__panel {
    width: 100%; max-width: 1000px;
    display: grid; grid-template-columns: 1fr 1fr;
    background: var(--plz-surface);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(2, 8, 20, .55), 0 0 0 1px rgba(255, 255, 255, .05);
}

/* The half that says where you are. */
.plz-auth__pitch {
    position: relative;
    display: flex; flex-direction: column;
    padding: 34px 36px 0;
    background-color: #12223a;
    background-image:
        radial-gradient(560px 320px at 0% 0%, rgba(42, 120, 214, .38), rgba(42, 120, 214, 0) 66%),
        radial-gradient(420px 300px at 100% 30%, rgba(59, 139, 228, .18), rgba(59, 139, 228, 0) 70%);
    color: #fff;
}
.plz-auth__brand { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; border-radius: 10px; }
.plz-auth__brand:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.plz-auth__brand .plz-entry-mark { width: 40px; height: 40px; border-radius: 11px; }
.plz-auth__brand .plz-entry-mark svg { width: 22px; height: 22px; }
.plz-auth__brandtext { display: flex; flex-direction: column; min-width: 0; }
.plz-auth__brandname { display: block; margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.01em; line-height: 1.2; color: #fff; overflow-wrap: anywhere; }
.plz-auth__brandsub { display: block; margin: 3px 0 0; font-size: 12px; font-weight: 500; color: var(--plz-nav-ink-2); }

.plz-auth__copy { margin-top: 34px; }
.plz-auth__copy h2 { text-wrap: balance; margin: 0; font-size: 24px; line-height: 1.28; font-weight: 650; letter-spacing: -.02em; color: #fff; }
.plz-auth__copy p { margin: 12px 0 0; font-size: 14px; line-height: 1.62; color: #c3cedd; }
.plz-auth__points { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.plz-auth__points li {
    display: inline-flex; align-items: center; gap: 7px;
    height: 30px; padding: 0 11px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .07);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10);
    font-size: 12.5px; font-weight: 500; color: #dfe6f0;
}
.plz-auth__points svg { width: 14px; height: 14px; color: #8fc0ff; }

.plz-auth__art { display: block; width: calc(100% + 72px); max-width: none; height: auto; margin: 28px -36px 0; }

/* The half you type into. */
.plz-auth__form { padding: 44px 44px 36px; display: flex; flex-direction: column; justify-content: center; }
.plz-auth__form h2 { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -.02em; color: var(--plz-ink); }
.plz-auth__form .sub { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--plz-ink-3); }
.plz-auth__form .sub strong { font-weight: 600; color: var(--plz-ink); }
.plz-auth__form form { margin: 24px 0 0; }

.plz-auth__form .label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--plz-ink-2); }
.plz-auth__form .labelrow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 6px; }
.plz-auth__form .labelrow .label { margin: 0; }
.plz-auth__form .row + .row { margin-top: 16px; }

.plz-auth__form .field { position: relative; display: block; }
.plz-auth__form .field > svg {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    width: 16px; height: 16px; color: var(--plz-ink-3); pointer-events: none;
}
.plz-auth__form .field input {
    width: 100%; height: 44px;
    padding: 0 14px 0 39px;
    font: inherit; font-size: 14.5px; color: var(--plz-ink);
    background: var(--plz-surface);
    border: 1px solid var(--plz-line-strong);
    border-radius: var(--plz-radius-sm);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.plz-auth__form .field input::placeholder { color: #98a3b3; }
.plz-auth__form .field input:hover { border-color: #b4bfcc; }
.plz-auth__form .field input:focus { outline: none; border-color: var(--plz-brand); box-shadow: var(--plz-ring); }
.plz-auth__form .field.has-toggle input { padding-right: 46px; }
.plz-auth__form .field input[aria-invalid="true"] { border-color: var(--plz-bad); }
.plz-auth__form .field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(208, 59, 59, .18); }

.plz-auth__form .peek {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    padding: 0; border: 0; border-radius: 6px;
    background: transparent; color: var(--plz-ink-3);
    cursor: pointer;
}
.plz-auth__form .peek:hover { background: var(--plz-surface-2); color: var(--plz-ink-2); }
.plz-auth__form .peek:focus-visible { outline: 2px solid var(--plz-brand); outline-offset: 0; }
.plz-auth__form .peek svg { width: 17px; height: 17px; }
.plz-auth__form .peek svg[hidden], .plz-auth__form .peek[hidden] { display: none; }

.plz-auth__form .field-error {
    display: flex; align-items: flex-start; gap: 6px;
    margin: 7px 0 0;
    font-size: 13px; line-height: 1.45; color: var(--plz-bad-ink);
}
.plz-auth__form .field-error svg { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 2px; }
.plz-auth__form .hint { margin: 7px 0 0; font-size: 12.5px; color: var(--plz-warn-ink); }
.plz-auth__form .hint[hidden] { display: none; }

.plz-auth__form .aside { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.plz-auth__form .aside:not(:has(.check)) { justify-content: flex-end; }
.plz-auth__form .aside a, .plz-auth__form .labelrow a {
    font-size: 13px; font-weight: 500; color: var(--plz-brand); text-decoration: none; border-radius: 4px;
}
.plz-auth__form .aside a:hover, .plz-auth__form .labelrow a:hover { color: var(--plz-brand-600); text-decoration: underline; }
.plz-auth__form .aside a:focus-visible, .plz-auth__form .labelrow a:focus-visible { outline: 2px solid var(--plz-brand); outline-offset: 2px; }

.plz-auth__form .check { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--plz-ink-2); cursor: pointer; user-select: none; }
.plz-auth__form .check input {
    appearance: none; -webkit-appearance: none;
    width: 17px; height: 17px; margin: 0;
    border: 1px solid var(--plz-line-strong); border-radius: 5px;
    background: var(--plz-surface);
    display: inline-grid; place-content: center;
    cursor: pointer;
    transition: background .12s, border-color .12s;
}
.plz-auth__form .check input::after {
    content: ""; width: 9px; height: 5px;
    border: solid #fff; border-width: 0 0 2px 2px;
    transform: rotate(-45deg) translate(1px, -1px) scale(0);
    transition: transform .12s var(--plz-ease);
}
.plz-auth__form .check input:checked { background: var(--plz-brand); border-color: var(--plz-brand); }
.plz-auth__form .check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.plz-auth__form .check input:focus-visible { outline: none; box-shadow: var(--plz-ring); border-color: var(--plz-brand); }

.plz-auth__form .submit {
    margin-top: 22px; width: 100%; height: 44px;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font: inherit; font-size: 14.5px; font-weight: 600;
    color: #fff; background: var(--plz-brand);
    border: 1px solid var(--plz-brand); border-radius: var(--plz-radius-sm);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .12), inset 0 1px 0 rgba(255, 255, 255, .12);
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .06s ease;
}
.plz-auth__form .submit:hover { background: var(--plz-brand-600); border-color: var(--plz-brand-600); }
.plz-auth__form .submit:active { transform: translateY(1px); }
.plz-auth__form .submit:focus-visible { outline: none; box-shadow: var(--plz-ring); }
.plz-auth__form .submit svg { width: 16px; height: 16px; }

.plz-auth__form .note {
    margin: 20px 0 0; padding: 11px 13px;
    border-radius: var(--plz-radius-sm);
    font-size: 13.5px; line-height: 1.5;
    display: flex; gap: 9px; align-items: flex-start;
}
.plz-auth__form .note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.plz-auth__form .note ul { margin: 0; padding: 0; list-style: none; }
.plz-auth__form .note li + li { margin-top: 3px; }
.plz-auth__form .note-bad { background: var(--plz-bad-50); border: 1px solid rgba(208, 59, 59, .25); color: var(--plz-bad-ink); }
.plz-auth__form .note-ok { background: var(--plz-good-50); border: 1px solid rgba(12, 163, 12, .22); color: var(--plz-good-ink); }

.plz-auth__form .foot {
    margin: 28px 0 0; padding-top: 18px;
    border-top: 1px solid var(--plz-line-soft);
    font-size: 12.5px; line-height: 1.55; color: var(--plz-ink-3);
}
.plz-auth__form .foot a { color: var(--plz-brand); text-decoration: none; }
.plz-auth__form .foot a:hover { text-decoration: underline; }

.plz-auth__legal { margin: 18px 0 0; font-size: 12px; color: var(--plz-nav-ink-2); text-align: center; }

/* Below this the halves stop fitting side by side: the pitch becomes a header strip with the
   business name; the artwork and the sales line go, and the form starts near the top. */
@media (max-width: 880px) {
    .plz-auth__shell { padding: 0; justify-content: flex-start; }
    .plz-auth__panel {
        max-width: 560px; min-height: 100vh;
        grid-template-columns: 1fr; grid-template-rows: auto 1fr;
        border-radius: 0; box-shadow: none;
    }
    .plz-auth__pitch { padding: 20px 22px; }
    .plz-auth__copy, .plz-auth__art { display: none; }
    .plz-auth__form { padding: 28px 22px 24px; justify-content: flex-start; }
    .plz-auth__form h2 { font-size: 21px; }
    .plz-auth__legal { display: none; }
}
@media (min-width: 561px) and (max-width: 880px) {
    .plz-auth__shell { padding: 24px 18px; justify-content: center; }
    .plz-auth__panel { min-height: 0; border-radius: 16px; box-shadow: 0 26px 60px rgba(2, 8, 20, .5); }
    .plz-auth__legal { display: block; }
}
@media (max-width: 380px) {
    .plz-auth__pitch { padding: 18px 16px; }
    .plz-auth__form { padding: 24px 16px 22px; }
}

/* =============================================================================================
   8. Motion
   ============================================================================================= */

@media (prefers-reduced-motion: reduce) {
    body.plz-entry *, body.plz-auth *, body.plz .plz-notice * { transition: none !important; animation: none !important; }
    a.plz-hcard:hover, a.plz-hcard:hover .plz-hcard__art svg { transform: none; }
    .plz-hgrid__item { animation: none; }
}
