/* Noor base styles, shared by every page. Colours mirror the tokens in
   core/js/tailwind-theme.js; anything Tailwind utilities can express stays
   in the templates. */

html {
  font-family: Figtree, ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html.dark { color-scheme: dark; }

.font-display {
  font-optical-sizing: auto;
  letter-spacing: -0.012em;
}
.font-mono { font-variant-numeric: tabular-nums; }

/* The popup list of a native <select> ignores color-scheme in some
   browsers and renders white, so its colours are set explicitly. */
select option { background-color: #ffffff; color: #16233F; }
html.dark select option { background-color: #132C55; color: #E3E9F3; }

/* Scrollbars in the theme colours: a violet → navy thumb on a clear track. */
/* Firefox has only the standard properties; Chromium browsers ignore the
   ::-webkit-scrollbar gradient below whenever scrollbar-color is set, so
   the standard one is kept for browsers without ::-webkit-scrollbar. */
@supports not selector(::-webkit-scrollbar) {
  html, [class*="scrollbar"] { scrollbar-color: #7c3aed transparent; scrollbar-width: thin; }
  html.dark, html.dark [class*="scrollbar"] { scrollbar-color: #a78bfa transparent; }
}
@supports selector(::-webkit-scrollbar) {
  [class*="scrollbar"] { scrollbar-color: auto !important; scrollbar-width: auto !important; }
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background-image: linear-gradient(180deg, #8b5cf6, #1F52A0);
  border: 3px solid transparent;
  background-clip: padding-box;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover { background-image: linear-gradient(180deg, #7c3aed, #17386C); border-width: 2px; }
html.dark ::-webkit-scrollbar-thumb { background-image: linear-gradient(180deg, #a78bfa, #3A6AB8); }
::-webkit-scrollbar-corner { background: transparent; }

/* Cards: every white panel in the app is `border border-line bg-white`.
   A soft shadow lifts them off the mist canvas without heavier borders.
   Limited to container elements so inputs (also bg-white) stay flat. */
:is(div, section, aside, nav, article, form, details, ul)[class~="bg-white"][class~="border"] {
  box-shadow: 0 1px 2px rgba(22, 35, 63, 0.04), 0 8px 24px -14px rgba(22, 35, 63, 0.16);
}
html.dark :is(div, section, aside, nav, article, form, details, ul)[class~="bg-white"][class~="border"] { box-shadow: none; }

/* Inputs get a quiet resting state and a clear focus state. */
:is(input, select, textarea)[class~="border-line"] { transition: border-color .15s, box-shadow .15s; }

/* Urgency marker: a small notched ribbon beside list rows. */
.ribbon-tab { clip-path: polygon(0 0, 100% 0, 100% 74%, 50% 100%, 0 74%); }

/* Signature: the brass bookmark ribbon. Court diaries and law reports mark
   the page you're on with a ribbon; Noor uses one to mark "you are here"
   in the sidebar and "today" on the dashboard. */
.bookmark {
  background: linear-gradient(180deg, #E9BC58 0%, #C88A1E 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
  box-shadow: inset -1px 0 0 rgba(122, 82, 12, 0.35);
}

/* Universal keyboard focus ring for anything without its own. */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #1F52A0;
  outline-offset: 2px;
}
html.dark a:focus-visible, html.dark button:focus-visible, html.dark [tabindex]:focus-visible,
html.dark summary:focus-visible, html.dark input:focus-visible, html.dark select:focus-visible,
html.dark textarea:focus-visible { outline-color: #E9BC58; }

@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fade-in { animation: fadein .45s cubic-bezier(.2, .8, .2, 1) both; }

@keyframes ribbon-drop { from { transform: translateY(-100%); } to { transform: none; } }
.ribbon-drop { animation: ribbon-drop .5s cubic-bezier(.2, .8, .2, 1) .15s both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Canvas: a soft wash of sky, violet and brass behind the top of every
   staff page, so the light workspace has colour without busy panels. */
.app-canvas {
  background:
    radial-gradient(1000px 360px at 100% 0%, rgba(124, 58, 237, 0.08), transparent 70%),
    radial-gradient(1000px 380px at 0% 0%, rgba(14, 165, 233, 0.09), transparent 70%),
    radial-gradient(700px 300px at 55% 0%, rgba(233, 188, 88, 0.10), transparent 70%);
  background-repeat: no-repeat;
}
html.dark .app-canvas {
  background:
    radial-gradient(1000px 360px at 100% 0%, rgba(124, 58, 237, 0.14), transparent 70%),
    radial-gradient(1000px 380px at 0% 0%, rgba(14, 165, 233, 0.12), transparent 70%);
  background-repeat: no-repeat;
}

/* Tab bars (core/_tab.html): a rounded tray of colour-coded chips that
   scrolls sideways on small screens without a visible scrollbar. */
.tabbar { scrollbar-width: none; scroll-snap-type: x proximity; }
.tabbar::-webkit-scrollbar { display: none; }
.tabbar > a { scroll-snap-align: start; }

/* List tables: add class="data-table" to a <table>. Headers read as labels
   with an optional plain-English hint underneath (<span class="th-hint">),
   rows get a faint stripe so wide tables are easy to follow across. */
.data-table thead th {
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(22, 35, 63, 0.55); vertical-align: top; white-space: nowrap;
}
html.dark .data-table thead th { color: rgba(227, 233, 243, 0.55); }
.data-table thead tr { background: linear-gradient(180deg, rgba(14, 165, 233, 0.05), rgba(124, 58, 237, 0.03)); }
html.dark .data-table thead tr { background: rgba(255, 255, 255, 0.03); }
.th-hint {
  display: block; margin-top: 1px; font-size: 10.5px; font-weight: 400; letter-spacing: 0;
  text-transform: none; color: rgba(22, 35, 63, 0.42); white-space: nowrap;
}
html.dark .th-hint { color: rgba(227, 233, 243, 0.40); }
.data-table tbody tr:nth-child(even) { background-color: rgba(22, 35, 63, 0.018); }
html.dark .data-table tbody tr:nth-child(even) { background-color: rgba(255, 255, 255, 0.02); }
.data-table tbody tr { transition: background-color .12s; }
.data-table tbody tr:hover { background-color: rgba(14, 165, 233, 0.06); }
html.dark .data-table tbody tr:hover { background-color: rgba(14, 165, 233, 0.08); }
.data-table tfoot td { font-weight: 600; border-top: 1px solid rgba(22, 35, 63, 0.12); }
html.dark .data-table tfoot td { border-top-color: rgba(227, 233, 243, 0.12); }
/* Abbreviations explained on hover / long-press. */
.data-table abbr[title] { text-decoration: underline dotted rgba(22, 35, 63, 0.35); text-underline-offset: 3px; cursor: help; }

/* ---- One look across the app, after the firm calendar ----------------
   Older pages were written with square-ish `rounded` panels and flat navy
   buttons; these rules bring them in line with the calendar's rounded
   panels, gradient primary buttons and softer inputs without rewriting
   every template. New markup should use the same classes directly. */

/* Panels: rounded-2xl. */
:is(div, section, aside, nav, article, form, details, ul)[class~="rounded"][class~="border"][class~="bg-white"] {
  border-radius: 1rem;
}
/* Inputs and selects: rounded-lg. */
:is(input, select, textarea)[class~="rounded"],
:is(input, select, textarea)[class~="rounded-sm"] { border-radius: 0.5rem; }

/* Primary actions: the calendar's violet → chambers gradient. */
:is(a, button)[class~="bg-chambers-700"] {
  background-image: linear-gradient(90deg, #7c3aed, #1F52A0);
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px -2px rgba(124, 58, 237, 0.28);
  transition: filter .15s, transform .15s, box-shadow .15s;
}
:is(a, button)[class~="bg-chambers-700"]:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 16px -4px rgba(124, 58, 237, 0.38);
}
:is(a, button)[class~="bg-chambers-700"]:active { transform: translateY(1px); }

/* Secondary outline buttons: rounded-lg with a violet hover. */
:is(a, button)[class~="border"][class~="border-line"][class~="rounded"]:not([class~="bg-chambers-700"]) {
  border-radius: 0.5rem;
  transition: border-color .15s, color .15s, background-color .15s;
}
:is(a, button)[class~="border"][class~="border-line"][class~="rounded"]:not([class~="bg-chambers-700"]):hover {
  border-color: rgba(124, 58, 237, 0.45);
  color: #6d28d9;
}
html.dark :is(a, button)[class~="border"][class~="border-line"][class~="rounded"]:not([class~="bg-chambers-700"]):hover { color: #ddd6fe; }

/* Card header bars: a faint colour wash like the calendar toolbar. */
:is(div, section)[class~="bg-white"][class~="border"] > div[class~="border-b"][class~="px-5"]:first-child {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.035), rgba(14, 165, 233, 0.03) 60%, transparent);
}

/* ---- 3D report cards (core/_card3d.html) -----------------------------
   Glossy raised tiles: a top-lit gradient, a bright inner rim on top and a
   darker lip underneath (so the tile reads as a thick slab), a coloured
   drop shadow, and a clay icon that breaks out past the edge. */
.card3d {
  --c1: #4FA8F5; --c2: #1E6FE0; --glow: rgba(30, 111, 224, .45); --ink: #fff;
  position: relative; display: flex; align-items: center; min-height: 7.5rem;
  margin-top: 2.25rem; padding: 1.4rem 1.6rem; border-radius: 1.4rem;
  color: var(--ink); text-decoration: none;
  background: linear-gradient(165deg, var(--c1) 0%, var(--c2) 100%);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, .45),
    inset 0 -5px 0 rgba(0, 0, 0, .12),
    0 18px 30px -16px var(--glow),
    0 4px 10px -4px rgba(15, 23, 42, .18);
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s;
}
.card3d::after {           /* soft sheen across the top half */
  content: ""; position: absolute; inset: 0 0 45% 0; border-radius: 1.4rem 1.4rem 2rem 2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0));
  pointer-events: none;
}
a.card3d:hover { transform: translateY(-3px); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.45), inset 0 -5px 0 rgba(0,0,0,.12), 0 24px 36px -16px var(--glow), 0 6px 14px -4px rgba(15,23,42,.2); }
a.card3d:focus-visible { outline: 3px solid var(--c2); outline-offset: 3px; }
.card3d-icon {
  position: absolute; top: -2.6rem; width: 7.25rem; height: 7.25rem; z-index: 1;
  filter: drop-shadow(0 14px 14px rgba(15, 23, 42, .28));
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.card3d-icon svg { width: 100%; height: 100%; display: block; }
a.card3d:hover .card3d-icon { transform: translateY(-4px) rotate(-3deg) scale(1.03); }
.card3d-icon-right .card3d-icon { right: .75rem; }
.card3d-icon-left .card3d-icon { left: .9rem; }
.card3d-icon-right .card3d-body { padding-right: 7rem; }
.card3d-icon-left .card3d-body { padding-left: 7.6rem; }
.card3d-body { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; min-width: 0; }
.card3d-value {
  font-family: Figtree, ui-sans-serif, system-ui, sans-serif; font-weight: 800; font-size: 2.6rem; line-height: 1;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .12), 0 6px 14px rgba(0, 0, 0, .15);
}
.card3d-text { display: flex; flex-direction: column; min-width: 0; }
.card3d-label { font-weight: 700; font-size: 1.15rem; line-height: 1.15; }
.card3d-hint { margin-top: .2rem; font-size: .78rem; opacity: .82; }
@media (max-width: 640px) {
  .card3d-value { font-size: 2rem; }
  .card3d-icon { width: 5.75rem; height: 5.75rem; top: -2rem; }
  .card3d-icon-right .card3d-body { padding-right: 5.25rem; }
  .card3d-icon-left .card3d-body { padding-left: 5.75rem; }
}
.card3d-blue   { --c1: #5AB0F7; --c2: #1E6FE0; --glow: rgba(30, 111, 224, .5); }
.card3d-indigo { --c1: #7C93EE; --c2: #3F51C8; --glow: rgba(63, 81, 200, .5); }
.card3d-teal   { --c1: #4FE0D0; --c2: #0EA5A6; --glow: rgba(14, 165, 166, .5); }
.card3d-violet { --c1: #B48AF0; --c2: #7C4BCB; --glow: rgba(124, 75, 203, .5); }
.card3d-navy   { --c1: #3E6CC0; --c2: #1A3D80; --glow: rgba(26, 61, 128, .5); }
.card3d-rose   { --c1: #FB8FAE; --c2: #E0335F; --glow: rgba(224, 51, 95, .45); }
.card3d-amber  { --c1: #FFC860; --c2: #F08A12; --glow: rgba(240, 138, 18, .45); }
.card3d-cream  { --c1: #FBF7F0; --c2: #ECE4D6; --glow: rgba(120, 100, 70, .3); --ink: #3B4256; }
html.dark .card3d-cream { --c1: #3B3A44; --c2: #2A2933; --ink: #F1EDE4; }

/* Search suggestions (base.html script): the highlighted row. */
.suggest-list .suggest-active { background-color: rgba(124, 58, 237, 0.07); }
html.dark .suggest-list .suggest-active { background-color: rgba(255, 255, 255, 0.06); }
/* Search results: the words that matched */
mark.search-hit { background-color: rgba(250, 204, 21, 0.35); color: inherit; border-radius: 3px; padding: 0 1px; }
html.dark mark.search-hit { background-color: rgba(250, 204, 21, 0.25); }
/* Form controls follow the theme too (date pickers, scrollbars, autofill). */
html.dark :is(input, select, textarea) { color-scheme: dark; }
html.dark input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #132C55 inset; -webkit-text-fill-color: #E3E9F3; }

/* ---- Pop-up notifications (core/_toasts.html) ------------------------ */
.toast-stack {
  position: fixed; top: 4.75rem; right: 1rem; z-index: 60;
  display: flex; flex-direction: column; gap: .6rem;
  width: min(24rem, calc(100vw - 2rem)); pointer-events: none;
}
.toast {
  --tone: #10b981; --tone-soft: rgba(16, 185, 129, .12);
  pointer-events: auto; position: relative; overflow: hidden;
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .85rem .85rem .95rem .9rem; border-radius: 1rem;
  background: rgba(255, 255, 255, .96); color: #16233F;
  border: 1px solid rgba(22, 35, 63, .08); border-left: 4px solid var(--tone);
  box-shadow: 0 18px 40px -18px rgba(22, 35, 63, .45), 0 4px 12px -6px rgba(22, 35, 63, .18);
  backdrop-filter: blur(10px);
  animation: toast-in .5s cubic-bezier(.2, .9, .25, 1.15) both;
}
html.dark .toast { background: rgba(19, 32, 58, .96); color: #E3E9F3; border-color: rgba(227, 233, 243, .1); border-left-color: var(--tone); }
.toast-success { --tone: #10b981; --tone-soft: rgba(16, 185, 129, .14); }
.toast-info, .toast-debug { --tone: #0ea5e9; --tone-soft: rgba(14, 165, 233, .14); }
.toast-warning { --tone: #f59e0b; --tone-soft: rgba(245, 158, 11, .16); }
.toast-error { --tone: #e11d48; --tone-soft: rgba(225, 29, 72, .14); }
.toast-icon {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: .7rem; color: var(--tone); background: var(--tone-soft);
  animation: toast-pop .55s cubic-bezier(.2, .9, .25, 1.4) .15s both;
}
.toast-icon svg { width: 1.15rem; height: 1.15rem; }
.toast-text { flex: 1; min-width: 0; margin: .3rem 0 0; font-size: .875rem; line-height: 1.35; font-weight: 500; }
.toast-close {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 1.75rem; height: 1.75rem; border-radius: .55rem; color: currentColor; opacity: .45;
  transition: opacity .15s, background-color .15s;
}
.toast-close:hover, .toast-close:focus-visible { opacity: .9; background: rgba(22, 35, 63, .06); }
html.dark .toast-close:hover { background: rgba(255, 255, 255, .08); }
.toast-close svg { width: 1rem; height: 1rem; }
.toast-timer {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--tone); opacity: .55; transform-origin: left;
  animation-name: toast-timer; animation-timing-function: linear; animation-fill-mode: both;
}
.toast-paused .toast-timer { animation-play-state: paused; }
.toast-leaving { animation: toast-out .35s cubic-bezier(.4, 0, 1, 1) both; }
@keyframes toast-in { from { opacity: 0; transform: translateX(110%) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(110%) scale(.96); margin-top: -4.2rem; } }
@keyframes toast-pop { from { transform: scale(.4) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toast-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 640px) { .toast-stack { top: auto; bottom: 1rem; right: 1rem; left: 1rem; width: auto; } }

/* ---- Collapsible sidebar (desktop) ------------------------------------
   html.sidebar-collapsed shrinks the sidebar to an icon rail; labels show
   as tooltips (title). Phones keep the slide-in drawer. */
#sidebar { transition: transform .2s ease-out, width .22s cubic-bezier(.2, .8, .2, 1); }
.sidebar-toggle-arrow { transition: transform .22s; transform-origin: 14px 12px; }
@media (min-width: 1024px) {
  html.sidebar-collapsed #sidebar { width: 5.25rem; }
  html.sidebar-collapsed .sidebar-toggle-arrow { transform: scaleX(-1); }
  html.sidebar-collapsed #sidebar .sidebar-logo-wide,
  html.sidebar-collapsed #sidebar .sidebar-firm { display: none; }
  html.sidebar-collapsed #sidebar .sidebar-logo-icon { display: block; }
  html.sidebar-collapsed #sidebar > div:first-child { justify-content: center; padding-left: 0; padding-right: 0; }
  html.sidebar-collapsed #sidebar nav { padding-left: .6rem; padding-right: .6rem; }
  html.sidebar-collapsed #sidebar nav > p { font-size: 0; justify-content: center; padding: 1rem 0 .35rem; border-top: 1px solid rgba(22, 35, 63, .08); margin-top: .5rem; }
  html.dark.sidebar-collapsed #sidebar nav > p { border-top-color: rgba(227, 233, 243, .08); }
  html.sidebar-collapsed #sidebar nav > p:first-child { border-top: 0; margin-top: 0; }
  html.sidebar-collapsed #sidebar nav > p svg { width: 14px; height: 14px; }
  html.sidebar-collapsed #sidebar nav a { justify-content: center; padding-left: 0; padding-right: 0; }
  html.sidebar-collapsed #sidebar nav a > span.truncate { display: none; }
}

/* Sidebar: a hairline above each menu group after the first. */
#sidebar nav > p ~ p { border-top: 1px solid rgba(22, 35, 63, .09); margin-top: .65rem; }
html.dark #sidebar nav > p ~ p { border-top-color: rgba(227, 233, 243, .09); }

/* Compact 3D card: four to a row (Reports overview). Smaller icon, the
   number stacked above its label. */
.card3d-compact { min-height: 6.75rem; padding: 1.1rem 1.15rem; border-radius: 1.2rem; margin-top: 2rem; }
.card3d-compact::after { border-radius: 1.2rem 1.2rem 1.6rem 1.6rem; }
.card3d-compact .card3d-icon { width: 5.25rem; height: 5.25rem; top: -2rem; }
.card3d-compact.card3d-icon-right .card3d-icon { right: .4rem; }
.card3d-compact.card3d-icon-left .card3d-icon { left: auto; right: .4rem; }
.card3d-compact.card3d-icon-right .card3d-body,
.card3d-compact.card3d-icon-left .card3d-body { padding-left: 0; padding-right: 4.5rem; }
.card3d-compact .card3d-body { flex-direction: column; align-items: flex-start; gap: .3rem; }
.card3d-compact .card3d-value { font-size: 1.85rem; }
.card3d-compact .card3d-label { font-size: .95rem; }
.card3d-compact .card3d-hint { font-size: .72rem; }

/* Multi-select as tickable chips (e.g. a task's "Also assigned to"):
   Django renders CheckboxSelectMultiple as divs of label > input. */
.chip-checks-scroll > div { display: flex; flex-wrap: wrap; gap: .4rem; width: auto; height: auto; }
.chip-checks-scroll > div > div { display: contents; }
.chip-checks label {
  display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
  padding: .3rem .65rem; border-radius: 9999px; font-size: .78rem; font-weight: 500;
  border: 1px solid rgba(22, 35, 63, .14); background: #fff; color: rgba(22, 35, 63, .78);
  transition: border-color .15s, background-color .15s, color .15s;
}
html.dark .chip-checks label { background: rgba(255, 255, 255, .04); border-color: rgba(227, 233, 243, .14); color: rgba(227, 233, 243, .8); }
.chip-checks label:hover { border-color: rgba(124, 58, 237, .5); }
.chip-checks label:has(input:checked) { background: rgba(124, 58, 237, .1); border-color: rgba(124, 58, 237, .55); color: #6d28d9; font-weight: 600; }
html.dark .chip-checks label:has(input:checked) { background: rgba(167, 139, 250, .14); color: #ddd6fe; }
.chip-checks .chip-checks-scroll { max-height: 9.5rem; overflow-y: auto; padding: .15rem; }
.chip-checks label { white-space: nowrap; }
.chip-checks input[type="checkbox"] { flex-shrink: 0; width: .95rem; height: .95rem; margin: 0; accent-color: #7c3aed; cursor: pointer; }

/* People picker (tasks/_people_picker.html): search, picked chips and
   one-click groups above the .chip-checks list. */
.chip-checks-scroll > div > div[hidden] { display: none; }
.people-picker-tools { display: grid; gap: .5rem; margin-bottom: .5rem; }
.people-picker-tools[hidden], .people-picker-picked[hidden], .people-picker-groups[hidden] { display: none; }
.people-picker-search { position: relative; }
.people-picker-search svg { position: absolute; left: .7rem; top: 50%; width: 1rem; height: 1rem; transform: translateY(-50%); color: rgba(22, 35, 63, .4); pointer-events: none; }
html.dark .people-picker-search svg { color: rgba(227, 233, 243, .45); }
.people-picker-search input {
  display: block; width: 100%; padding: .5rem .75rem .5rem 2.1rem; border-radius: .6rem; font-size: .85rem;
  border: 1px solid rgba(22, 35, 63, .14); background: #fff; color: #16233F;
}
.people-picker-search input:focus { outline: none; border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124, 58, 237, .18); }
html.dark .people-picker-search input { background: rgba(255, 255, 255, .05); border-color: rgba(227, 233, 243, .14); color: #E3E9F3; }
.people-picker-picked, .people-picker-groups { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.people-picker-count { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6d28d9; margin-right: .15rem; }
html.dark .people-picker-count { color: #c4b5fd; }
.people-picker-chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .35rem .25rem .65rem; border-radius: 9999px;
  font-size: .78rem; font-weight: 600; color: #fff; background: linear-gradient(135deg, #8b5cf6, #4f46e5);
  box-shadow: 0 2px 6px -2px rgba(79, 70, 229, .5); cursor: pointer;
}
.people-picker-chip:hover .people-picker-x, .people-picker-chip:focus-visible .people-picker-x { background: rgba(255, 255, 255, .35); }
.people-picker-chip:focus-visible { outline: 2px solid #7c3aed; outline-offset: 2px; }
.people-picker-x { display: inline-flex; align-items: center; justify-content: center; width: 1.1rem; height: 1.1rem; border-radius: 9999px; background: rgba(255, 255, 255, .2); font-size: .85rem; line-height: 1; }
.people-picker-clear { font-size: .75rem; font-weight: 600; color: rgba(22, 35, 63, .55); text-decoration: underline; text-underline-offset: 2px; padding: .2rem .3rem; }
html.dark .people-picker-clear { color: rgba(227, 233, 243, .6); }
.people-picker-group {
  display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .55rem; border-radius: .55rem; font-size: .74rem; font-weight: 600;
  border: 1px dashed rgba(124, 58, 237, .45); color: #6d28d9; background: rgba(124, 58, 237, .04); transition: background-color .15s;
}
.people-picker-group:hover { background: rgba(124, 58, 237, .1); }
.people-picker-group.is-on { border-style: solid; background: rgba(124, 58, 237, .12); }
.people-picker-group:focus-visible { outline: 2px solid #7c3aed; outline-offset: 2px; }
html.dark .people-picker-group { color: #ddd6fe; border-color: rgba(167, 139, 250, .45); background: rgba(167, 139, 250, .06); }
.people-picker-plus { font-weight: 800; }
.people-picker-n { padding: 0 .35rem; border-radius: 9999px; background: rgba(124, 58, 237, .14); font-size: .68rem; }
.people-picker-empty { margin-top: .35rem; font-size: .78rem; color: rgba(22, 35, 63, .5); }
html.dark .people-picker-empty { color: rgba(227, 233, 243, .5); }

/* Standard form page (core/form_page.html) */
.form-with-aside { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
@media (min-width: 1024px) {
  .form-with-aside { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-with-aside > .form-card { grid-column: span 2 / span 2; }
}
.form-with-aside > aside { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
a.form-cancel[href=""] { display: none; }
