:root {
  color-scheme: light;
  --navy: #10244d;
  --navy-deep: #0b1c3e;
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --ink: #1b2b48;
  --muted: #64748b;
  --border: #e6ebf2;
  --page: #f7f9fc;
  --radius: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  font-weight: 400;
  color: var(--ink);
  background: var(--page);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button, input, textarea, select { outline-offset: 4px; }
:focus-visible { outline: 3px solid #60a5fa; }
button { letter-spacing: inherit; }
a { color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
button { border: 0; }
.icon { width: 21px; height: 21px; flex: 0 0 auto; }
.sr-only { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 12px 20px; border-radius: 8px; color: #fff; background: var(--blue); text-decoration: none; }
.skip-link:focus { top: 12px; }
.boot-state { min-height: 100vh; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 20px; color: var(--muted); font-size: 14px; }
.boot-mark { width: 52px; height: 52px; display: grid; place-items: center; color: white; background: var(--blue); border-radius: 14px; font-size: 28px; font-weight: 800; }
.noscript { padding: 24px; color: var(--ink); text-align: center; }

.brand { display: flex; align-items: center; gap: 10px; width: fit-content; text-decoration: none; color: #fff; }
.brand-symbol { display: block; width: 39px; height: 39px; border-radius: 11px; background: #3271f1; color: white; flex: 0 0 auto; }
.brand-symbol svg { width: 100%; height: 100%; }
.brand-word { display: flex; align-items: baseline; gap: 5px; font-size: 23px; font-weight: 750; letter-spacing: -.9px; }
.brand-word > span { font-weight: 350; color: #c3d0ea; }
.eyebrow { display: block; color: #4971ae; font-size: 12px; line-height: 1.5; letter-spacing: 1.8px; font-weight: 750; }
.eyebrow.light { color: #93b7ff; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 43px; border-radius: 8px; padding: 11px 17px; font-size: 14px; font-weight: 650; white-space: nowrap; text-decoration: none; border: 1px solid transparent; transition: background .15s, box-shadow .15s, border-color .15s; }
.button .icon { width: 17px; height: 17px; }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 3px 5px #2563eb12; }
.button-primary:hover { background: var(--blue-hover); box-shadow: 0 4px 10px #2563eb24; }
.button-secondary { background: #fff; border-color: #dbe2ed; color: #40526e; }
.button-secondary:hover { background: #f3f6fc; border-color: #b8c9e2; }
.button-quiet { background: transparent; color: #51647f; }
.button-quiet:hover { background: #edf3ff; color: var(--blue); }
.button-small { min-height: 34px; padding: 7px 11px; font-size: 13px; }
.button-small .icon { width: 14px; height: 14px; }
.button-danger { color: #fff; background: #b93838; }
.button-danger:hover { background: #9b2828; }
.text-button { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; background: none; color: #2563eb; font-size: 13px; font-weight: 650; white-space: nowrap; }
.text-button:hover { color: #1744ad; }
.text-button .icon { width: 16px; height: 16px; }
.icon-button { width: 36px; height: 36px; flex: 0 0 auto; display: inline-grid; place-items: center; border-radius: 8px; color: #6c7b94; background: transparent; }
.icon-button:hover { color: var(--blue); background: #eff4fd; }

/* Sign in */
.login-layout { min-height: 100dvh; display: grid; grid-template-columns: 48% 52%; background: #fff; }
.login-story { min-height: 100dvh; position: relative; overflow: hidden; background: linear-gradient(145deg, #102b60 0%, #122c5a 48%, #0d1e40 100%); padding: 52px 11.5%; color: #fff; }
.login-story::after { content: ""; position: absolute; bottom: -260px; left: -180px; height: 550px; width: 550px; border: 1px solid #527bb229; border-radius: 50%; pointer-events: none; }
.login-brand { position: relative; z-index: 1; }
.login-brand .brand-symbol { width: 43px; height: 43px; }
.login-brand .brand-word { font-size: 27px; }
.story-copy { margin-top: clamp(70px, 11vh, 130px); position: relative; z-index: 1; }
.story-copy h1 { margin-top: 21px; font-size: clamp(30px, 3.1vw, 45px); letter-spacing: -1.8px; line-height: 1.22; font-weight: 650; }
.story-copy > p { max-width: 365px; color: #b7c9e7; font-size: 14px; line-height: 1.85; margin-top: 23px; }
.story-points { display: flex; flex-direction: column; gap: 17px; margin-top: 32px; font-size: 14px; color: #d4e0f5; }
.story-points > span { display: flex; align-items: center; gap: 11px; }
.story-points .icon { width: 17px; height: 17px; color: #75a4ff; }
.story-footer { position: absolute; bottom: 35px; left: 11.5%; color: #96accf; display: flex; align-items: center; gap: 8px; font-size: 12px; }
.secure-dot { width: 5px; height: 5px; border-radius: 50%; background: #78a9fb; }
.story-art { position: relative; height: 218px; width: 290px; margin: 14px auto 36px; opacity: .9; }
.art-orbit { border: 1px solid #7096d92a; border-radius: 50%; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.orbit-one { width: 145px; height: 145px; }
.orbit-two { width: 225px; height: 225px; }
.orbit-three { width: 315px; height: 315px; }
.art-tile { display: grid; place-items: center; position: absolute; width: 68px; height: 68px; border-radius: 19px; background: linear-gradient(145deg, #3369bd, #24529c); box-shadow: 0 18px 45px #04143242; border: 1px solid #6195eb65; transform: rotate(-9deg); left: 103px; top: 68px; color: #d7e8ff; }
.art-tile .icon { width: 31px; height: 31px; }
.tile-check { width: 40px; height: 40px; border-radius: 12px; background: #184870; left: 190px; top: 120px; transform: rotate(10deg); border-color: #649fc969; color: #9ddbcf; }
.tile-check .icon { width: 23px; height: 23px; }
.art-point { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #487de4; left: 43px; top: 125px; box-shadow: 0 0 0 7px #487de414; }
.art-cross { position: absolute; font-size: 20px; color: #477cce; font-weight: 200; }
.cross-one { top: 35px; right: 61px; }.cross-two { bottom: 26px; left: 97px; font-size: 14px; }
.login-main { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 60px; position: relative; }
.login-form-wrap { width: 100%; max-width: 354px; margin-top: -16px; }
.login-form-wrap h2 { font-size: 29px; font-weight: 650; letter-spacing: -.95px; margin-top: 13px; line-height: 1.3; }
.login-subtitle { color: #7c8799; font-size: 14px; line-height: 1.7; margin-top: 10px; margin-bottom: 32px; }
.login-form-wrap form { display: flex; flex-direction: column; gap: 20px; }
.login-submit { width: 100%; min-height: 47px; margin-top: 4px; justify-content: space-between; padding-inline: 18px; font-size: 13px; }
.access-note { display: flex; align-items: flex-start; gap: 10px; padding-top: 26px; border-top: 1px solid #edf0f5; margin-top: 29px; }
.access-note .icon { width: 17px; height: 17px; margin-top: 2px; color: #8c9bb1; }
.access-note p { font-size: 12px; line-height: 1.85; color: #8c97a8; }
.access-note strong { color: #63718a; font-weight: 550; }
.login-footer { position: absolute; bottom: 26px; left: 0; right: 0; color: #9aa6b7; font-size: 12px; text-align: center; }
.login-footer > span { display: block; margin-top: 6px; font-size: 11px; color: #a5afbd; }
.login-mobile-brand { display: none; }
.password-field { position: relative; }
.password-field input { padding-right: 47px; width: 100%; }
.password-toggle { position: absolute; right: 4px; top: 5px; }
.password-toggle .icon { width: 18px; height: 18px; }

/* Application frame */
.app-layout { min-height: 100dvh; }
.sidebar { width: 240px; height: 100dvh; position: fixed; z-index: 20; top: 0; left: 0; padding: 31px 20px 20px; background: linear-gradient(170deg, #132d5d, #10244b 75%); color: #d1dcf0; display: flex; flex-direction: column; }
.sidebar .brand { margin-left: 9px; }
.sidebar .brand-word { font-size: 22px; }
.sidebar .brand-symbol { width: 35px; height: 35px; }
.workspace-label { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #91a8cd; margin: 20px 10px 0; padding-bottom: 25px; border-bottom: 1px solid #6b85b12a; }
.workspace-dot { width: 5px; height: 5px; background: #6595ed; border-radius: 50%; }
.sidebar nav { padding-top: 26px; }
.nav-caption { margin: 0 13px 12px; font-size: 10px; letter-spacing: 1.9px; color: #738eb7; font-weight: 650; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 12px; position: relative; min-height: 45px; margin-bottom: 5px; padding: 11px 13px; background: transparent; color: #adbfdd; border-radius: 8px; text-align: left; font-size: 14px; font-weight: 450; }
.nav-item .icon { width: 18px; height: 18px; color: #93acd2; }
.nav-item:hover { background: #28436b66; color: #fff; }
.nav-item.is-active { background: #2c64ca35; color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1px #5b8bd526; }
.nav-item.is-active .icon { color: #7eaaff; }
.nav-active-dot { width: 5px; height: 5px; border-radius: 50%; background: #73a3ff; margin-left: auto; }
.sidebar-bottom { margin-top: auto; padding-top: 30px; }
.foundation-note { display: flex; align-items: flex-start; gap: 10px; padding: 15px 10px; margin-bottom: 20px; border-radius: 8px; background: #203c642e; border: 1px solid #7292c217; }
.foundation-note .icon { width: 17px; height: 17px; color: #789bce; margin-top: 2px; }
.foundation-note strong { display: block; color: #aec2e2; font-weight: 550; font-size: 12px; }
.foundation-note p { color: #7792b8; font-size: 11px; line-height: 1.7; margin-top: 5px; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 18px 6px 14px; border-top: 1px solid #6b85b12a; }
.avatar { width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid #6e8bb359; background: #2b4770; color: #d0dff4; border-radius: 10px; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.sidebar-user > div { min-width: 0; }
.sidebar-user strong { display: block; font-size: 12px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user div > span { display: block; font-size: 10px; color: #7f9ac1; margin-top: 5px; }
.logout-button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 7px; background: transparent; color: #8da6ca; font-size: 12px; text-align: left; border-radius: 7px; }
.logout-button .icon { width: 15px; height: 15px; }
.logout-button:hover { background: #263e6359; color: #d8e4f5; }
.main-layout { margin-left: 240px; min-width: 0; }
.topbar { height: 73px; background: #fff; border-bottom: 1px solid var(--border); padding: 0 35px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-location { display: flex; align-items: center; gap: 13px; color: #56657b; font-size: 12px; white-space: nowrap; }
.topbar-location > .icon { width: 10px; height: 10px; color: #b4becc; }
.topbar-platform { color: #9ba6b7; }
.topbar-right { display: flex; align-items: center; gap: 22px; }
.secure-session { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #8c98ab; }
.secure-session .icon { width: 14px; height: 14px; color: #8296b4; }
.topbar-avatar { height: 31px; width: 31px; border-radius: 50%; background: #eaf0fc; color: #456497; display: grid; place-items: center; font-size: 11px; font-weight: 650; border: 3px solid #f6f8fc; }
.mobile-menu, .sidebar-scrim { display: none; }
.page-content { max-width: 1500px; margin: 0 auto; min-height: calc(100dvh - 73px); padding: 34px 35px 0; outline: none; display: flex; flex-direction: column; }
#page-body { flex: 1; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.page-heading h1 { font-size: clamp(22px, 1.85vw, 29px); line-height: 1.3; letter-spacing: -.8px; font-weight: 650; margin-top: 8px; }
.page-heading p { color: #8b97a9; font-size: 13px; line-height: 1.7; margin-top: 8px; }
.page-heading > .button { flex: 0 0 auto; }
.page-heading .eyebrow { font-size: 10px; letter-spacing: 1.6px; }
.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 30px 0 21px; margin-top: 6px; font-size: 10px; color: #a2adbc; }
.page-loading { display: flex; align-items: center; flex-direction: column; gap: 17px; min-height: 60vh; justify-content: center; font-size: 14px; color: #8492a6; }
.spinner { height: 26px; width: 26px; border: 2px solid #dbe6fa; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Overview */
.welcome-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; overflow: hidden; min-height: 232px; padding: 29px 33px; background: linear-gradient(110deg, #edf4ff 0%, #f0f5ff 66%, #eaf2ff 100%); border: 1px solid #dfe9fc; border-radius: var(--radius); }
.welcome-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 650; letter-spacing: .9px; color: #6a8ac4; }
.pulse-dot { width: 4px; height: 4px; border-radius: 50%; background: #5e8fe6; }
.welcome-content { max-width: 435px; position: relative; z-index: 1; }
.welcome-content h2 { font-size: 27px; font-weight: 620; line-height: 1.25; letter-spacing: -.75px; color: #244476; margin-top: 13px; }
.welcome-content > p { font-size: 12px; line-height: 1.85; color: #7890b3; max-width: 345px; margin-top: 11px; }
.welcome-content > .text-button { margin-top: 17px; font-size: 12px; }
.welcome-visual { position: relative; width: 245px; height: 180px; flex: 0 0 auto; margin: -5px 6% -5px 0; }
.visual-circle { position: absolute; height: 187px; width: 187px; border: 1px solid #c7d9f4; border-radius: 50%; left: 27px; top: -4px; }
.visual-circle::before { content: ""; position: absolute; inset: 17px; border: 1px solid #d4e1f5; border-radius: 50%; }
.visual-circle::after { content: ""; position: absolute; inset: -17px; border: 1px dashed #cfddf1; border-radius: 50%; }
.mini-event-card { position: absolute; width: 145px; height: 150px; border-radius: 13px; top: 13px; left: 48px; transform: rotate(-7deg); padding: 20px; background: #fff; border: 1px solid #d9e5f7; box-shadow: 0 10px 24px #4569ab12; }
.mini-icon { width: 35px; height: 35px; display: grid; place-items: center; background: #edf3ff; border-radius: 9px; color: #6f96df; }
.mini-icon .icon { width: 20px; height: 20px; }
.mini-line { display: block; height: 5px; border-radius: 3px; background: #dfe8f8; margin-top: 12px; width: 85px; }
.mini-line.line-short { width: 55px; height: 4px; margin-top: 7px; background: #eef2f9; }
.mini-card-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; }
.mini-dots { display: flex; }
.mini-dots i { width: 15px; height: 15px; background: #cddcf7; border: 2px solid white; border-radius: 50%; margin-right: -4px; }
.mini-dots i:nth-child(2) { background: #d9e5fb; }.mini-dots i:nth-child(3) { background: #e6edfc; }
.mini-check { width: 23px; height: 23px; display: grid; place-items: center; background: #e7f7f0; color: #70b29b; border-radius: 50%; }
.mini-check .icon { width: 13px; height: 13px; }
.visual-spark { position: absolute; color: #9fbcea; font-size: 19px; font-weight: 200; }
.spark-one { right: 3px; top: 18px; }.spark-two { bottom: 6px; left: 2px; font-size: 25px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin: 22px 0 28px; }
.stat-card { padding: 23px 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; border: 1px solid var(--border); background: #fff; border-radius: 11px; }
.stat-label { display: block; font-size: 12px; color: #8190a6; font-weight: 500; }
.stat-card strong { display: block; font-size: 29px; letter-spacing: -.8px; color: #2b3d5d; font-weight: 620; line-height: 1.2; margin-top: 10px; }
.stat-card p { font-size: 10px; color: #9aa5b5; margin-top: 8px; }
.stat-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; }
.stat-icon .icon { width: 18px; height: 18px; }
.stat-blue { color: #648de3; background: #eff4ff; }.stat-green { color: #56a88e; background: #ecf8f3; }.stat-amber { color: #c4a15c; background: #fdf7ec; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 23px 25px; border-bottom: 1px solid #edf0f5; }
.section-heading h2 { font-size: 13px; font-weight: 650; color: #3d4e69; letter-spacing: -.15px; }
.section-heading p { font-size: 11px; color: #97a2b3; margin-top: 6px; line-height: 1.6; }
.section-heading .text-button { font-size: 11px; }
.empty-state { padding: 63px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.empty-state .empty-icon { height: 57px; width: 57px; display: grid; place-items: center; border: 1px solid #e5edfb; border-radius: 17px; background: #f3f7ff; margin-bottom: 20px; color: #7e9ed7; box-shadow: 0 0 0 7px #f8faff; }
.empty-icon > .icon { height: 26px; width: 26px; }
.empty-state h2 { font-size: 16px; font-weight: 600; letter-spacing: -.35px; color: #4a5c78; line-height: 1.45; }
.empty-state p { font-size: 12px; color: #99a4b5; line-height: 1.85; margin-top: 9px; max-width: 450px; }
.empty-state .button { margin-top: 23px; min-height: 38px; font-size: 12px; }
.empty-compact { padding: 35px 20px 37px; }
.empty-compact .empty-icon { width: 43px; height: 43px; border-radius: 13px; margin-bottom: 16px; }
.empty-compact .empty-icon > .icon { width: 21px; height: 21px; }
.empty-compact h2 { font-size: 13px; }
.empty-compact p { font-size: 11px; }
.empty-compact .button { min-height: 34px; margin-top: 18px; font-size: 11px; }
.error-state { padding-top: 100px; gap: 14px; }
.error-state > .icon { color: #cb8c6a; width: 33px; height: 33px; }
.error-state .button { margin-top: 10px; }
.phase-note { display: flex; align-items: center; gap: 11px; padding: 18px 20px; border-radius: 9px; background: #eff3f9; border: 1px solid #e6ecf5; margin-top: 21px; }
.phase-note > .icon { width: 17px; height: 17px; color: #8198ba; }
.phase-note p { color: #8393aa; font-size: 11px; line-height: 1.8; }
.phase-note strong { color: #667e9f; font-weight: 600; }
.phase-label { margin-left: auto; white-space: nowrap; border-radius: 5px; border: 1px solid #d8e1ef; color: #8093b0; font-size: 10px; padding: 4px 8px; }

/* Records and filters */
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th { background: #fbfcfe; color: #94a0b2; font-size: 10px; font-weight: 550; letter-spacing: .25px; padding: 12px 25px; white-space: nowrap; }
td { padding: 17px 25px; border-top: 1px solid #f0f3f7; color: #5c6f8e; font-size: 12px; vertical-align: middle; }
tbody tr:hover { background: #fcfdff; }
.event-name-cell { display: flex; align-items: center; gap: 12px; min-width: 160px; }
.event-initial { width: 35px; height: 35px; border-radius: 9px; flex: 0 0 auto; display: grid; place-items: center; background: #edf3fd; color: #5d81bc; font-size: 12px; font-weight: 650; }
.event-name-cell strong { display: block; color: #415571; font-size: 13px; font-weight: 550; line-height: 1.5; overflow-wrap: anywhere; }
.event-name-cell div > span { font-size: 10px; display: block; color: #9ba7ba; margin-top: 3px; overflow-wrap: anywhere; }
.date-cell { color: #8996aa; white-space: nowrap; font-size: 11px; }
.actions-cell { text-align: right; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 5px; font-size: 10px; font-weight: 550; white-space: nowrap; }
.status-dot { width: 4px; height: 4px; background: currentColor; border-radius: 50%; }
.badge-active { color: #4b9b82; background: #edf8f3; }.badge-draft { color: #b08c47; background: #fcf6e9; }.badge-inactive { color: #8995a7; background: #f0f3f7; }
.list-toolbar { display: flex; align-items: center; gap: 13px; padding: 19px 23px; border-bottom: 1px solid #edf0f5; }
.search-field { display: flex; align-items: center; position: relative; width: 310px; max-width: 100%; }
.search-field .icon { position: absolute; left: 12px; width: 15px; height: 15px; color: #a2aec0; }
.search-field input { width: 100%; background: #fafbfd; border: 1px solid #e6eaf1; border-radius: 7px; padding: 10px 12px 10px 36px; color: #4b5f7c; font-size: 12px; min-height: 37px; }
.search-field input::placeholder { color: #9aa7ba; }
.filter-field select { min-height: 37px; border-color: #e6eaf1; padding-block: 8px; font-size: 12px; border-radius: 7px; color: #70819a; }
.result-count:empty { display: none; }
.count-pill { color: #8c9bb1; background: #f3f6fa; padding: 6px 9px; border-radius: 5px; font-size: 10px; white-space: nowrap; }
.organizer-initial { color: #6c83b1; background: #f0f3f9; }
.subtle-note { display: flex; align-items: center; gap: 8px; color: #98a5b8; font-size: 11px; line-height: 1.8; margin-top: 17px; padding-inline: 3px; }
.subtle-note > .icon { width: 14px; height: 14px; color: #97aac5; }
.audit-action { display: flex; align-items: center; gap: 9px; min-width: 160px; }
.audit-action > .icon { width: 15px; height: 15px; color: #9baecc; }
.audit-action strong { font-size: 12px; font-weight: 550; color: #536886; }
.audit-reference { display: block; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #99a5b8; font-size: 11px; font-family: ui-monospace, monospace; }

/* Dialogs and forms */
dialog { border: 1px solid #e0e7f2; width: min(610px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border-radius: 17px; box-shadow: 0 25px 100px #0a214a33; color: var(--ink); }
dialog::backdrop { background: #0b204d75; backdrop-filter: blur(3px); }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 26px 28px 22px; border-bottom: 1px solid #eaf0f7; gap: 15px; }
.dialog-header .eyebrow { font-size: 10px; }
.dialog-header h2 { font-size: 24px; font-weight: 620; letter-spacing: -.7px; margin-top: 7px; }
.dialog-header p { color: #8c99ac; font-size: 12px; line-height: 1.8; margin-top: 8px; }
.dialog-header .icon-button { margin: -5px -8px 0 0; }
.dialog-body { padding: 24px 28px 27px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 21px 18px; }
.field { min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field > label { display: block; font-size: 13px; line-height: 1.5; font-weight: 550; color: #52617b; margin-bottom: 8px; }
.required { color: #9bb0ce; }
.optional { color: #acb5c3; font-size: 11px; font-weight: 400; margin-left: 4px; }
.field input, .field textarea, .field select, .filter-field select { width: 100%; min-height: 43px; border: 1px solid #dfe6f0; padding: 11px 12px; background: #fff; color: #405674; border-radius: 7px; font-size: 14px; line-height: 1.5; transition: border-color .15s; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #becde3; }
.field input:focus, .field textarea:focus, .field select:focus, .search-field input:focus { border-color: #78a0ed; outline: 3px solid #e9f0ff; outline-offset: 0; }
.field input::placeholder, .field textarea::placeholder { color: #aeb8c7; font-size: 13px; }
.field textarea { display: block; resize: vertical; min-height: 88px; }
.field input[type="color"] { display: block; padding: 7px 10px; cursor: pointer; width: 100%; }
.field input[type="datetime-local"] { font-size: 13px; }
.field-help { color: #9ba8ba; font-size: 11px; line-height: 1.7; margin-top: 7px; }
.readonly-value { color: #7b8da7; border: 1px solid #e6ecf4; background: #f8fafd; border-radius: 7px; padding: 11px 12px; font-size: 13px; overflow-wrap: anywhere; }
.timezone-note { display: flex; align-items: center; gap: 6px; margin-top: -11px; }
.timezone-note .icon { width: 12px; height: 12px; }
.form-section-title { border-top: 1px solid #eaf0f7; padding-top: 22px; }
.form-section-title h3 { color: #637691; font-size: 14px; font-weight: 600; }
.form-section-title p { color: #9ca9bc; font-size: 11px; margin-top: 6px; line-height: 1.7; }
.dialog-callout { display: flex; align-items: flex-start; gap: 9px; padding: 14px; border: 1px solid #e2ebfa; background: #f4f8ff; border-radius: 8px; }
.dialog-callout > .icon { width: 16px; height: 16px; margin-top: 1px; color: #83a0cc; }
.dialog-callout p { color: #8a9bb4; font-size: 11px; line-height: 1.85; }
.dialog-callout strong { color: #6a83a9; font-weight: 600; }
.dialog-actions { padding: 18px 28px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid #e9eef6; background: #fcfdff; border-radius: 0 0 17px 17px; }
.dialog-actions > .button { min-height: 39px; font-size: 13px; }
.form-error { padding: 12px 14px; border: 1px solid #f0d7d7; background: #fff5f5; color: #ac5656; border-radius: 7px; font-size: 13px; line-height: 1.7; margin-bottom: 20px; }
#login-form .form-error { margin-bottom: 0; }
.toast { position: fixed; bottom: 25px; left: calc(50% + 120px); transform: translateX(-50%); z-index: 100; max-width: calc(100vw - 40px); width: max-content; padding: 14px 20px; border-radius: 10px; font-size: 14px; color: #fff; background: #18355f; border: 1px solid #476185; box-shadow: 0 7px 28px #13315a24; line-height: 1.6; }

@media (min-width: 1700px) {
  .page-content { padding-top: 45px; }
  .page-heading h1 { font-size: 31px; }
  .welcome-panel { min-height: 265px; padding-inline: 40px; }
  .welcome-content h2 { font-size: 31px; }
  .welcome-content > p { font-size: 14px; max-width: 390px; }
  .stat-card { padding-block: 28px; }
  .empty-compact { padding-block: 48px; }
}

@media (max-width: 1150px) {
  .sidebar { width: 216px; padding-inline: 15px; }
  .sidebar .brand-word { font-size: 20px; }
  .main-layout { margin-left: 216px; }
  .page-content { padding-inline: 25px; }
  .topbar { padding-inline: 25px; }
  .page-heading { gap: 15px; }
  .page-heading h1 { font-size: 23px; }
  .page-heading .button { padding-inline: 13px; font-size: 13px; }
  .welcome-visual { margin-right: 0; width: 210px; }
  .welcome-content h2 { font-size: 25px; }
  .welcome-panel { padding-inline: 25px; }
  .stat-card { padding: 20px 17px; }
  td, th { padding-inline: 20px; }
  .toast { left: calc(50% + 108px); }
}

@media (max-width: 900px) {
  .sidebar { width: 240px; transform: translateX(-100%); visibility: hidden; transition: transform .2s, visibility .2s; }
  .main-layout { margin-left: 0; }
  .mobile-menu { display: inline-grid; margin-left: -8px; margin-right: -3px; }
  .sidebar-scrim { display: block; visibility: hidden; opacity: 0; position: fixed; inset: 0; z-index: 19; background: #0d234b77; transition: opacity .2s, visibility .2s; }
  .menu-open { overflow: hidden; }
  .menu-open .sidebar { transform: translateX(0); visibility: visible; }
  .menu-open .sidebar-scrim { opacity: 1; visibility: visible; }
  .sidebar .brand-word { font-size: 22px; }
  .topbar { height: 65px; }
  .page-content { min-height: calc(100dvh - 65px); padding-top: 28px; }
  .toast { left: 50%; }
  .login-story { padding-inline: 11%; }
  .story-copy h1 { font-size: 31px; letter-spacing: -1px; }
  .story-copy > p { font-size: 14px; }
  .login-main { padding-inline: 40px; }
  .login-form-wrap h2 { font-size: 25px; }
  .login-subtitle { font-size: 13px; }
}

@media (max-width: 640px) {
  .login-layout { grid-template-columns: 1fr; }
  .login-story { display: none; }
  .login-main { padding: 45px 28px 100px; align-items: center; }
  .login-form-wrap { max-width: 365px; margin-top: 0; }
  .login-mobile-brand { display: flex; margin-bottom: 56px; color: #1c3d77; }
  .login-mobile-brand .brand-word > span { color: #617da9; }
  .login-form-wrap h2 { font-size: 28px; }
  .login-footer { bottom: 24px; }
  .topbar { padding-inline: 20px; }
  .topbar-location { gap: 10px; }
  .topbar-platform { display: none; }
  .topbar-location > .icon { display: none; }
  .secure-session { font-size: 0; gap: 0; }
  .secure-session .icon { width: 16px; height: 16px; }
  .topbar-right { gap: 13px; }
  .page-content { padding: 26px 19px 0; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; gap: 17px; margin-bottom: 23px; }
  .page-heading > div { flex: 1 1 100%; }
  .page-heading h1 { font-size: 25px; line-height: 1.35; max-width: 390px; }
  .page-heading p { font-size: 13px; }
  .page-heading .eyebrow { font-size: 10px; }
  .page-heading > .button { min-height: 39px; font-size: 13px; padding-inline: 14px; }
  .welcome-panel { padding: 25px 23px; min-height: 231px; }
  .welcome-content h2 { font-size: 25px; }
  .welcome-content > p { max-width: 290px; }
  .welcome-visual { display: none; }
  .stats-grid { gap: 9px; margin-top: 15px; margin-bottom: 22px; }
  .stat-card { padding: 15px 12px; position: relative; }
  .stat-label { font-size: 11px; max-width: 70px; line-height: 1.5; min-height: 27px; }
  .stat-card strong { font-size: 27px; margin-top: 9px; }
  .stat-card p { font-size: 10px; line-height: 1.6; min-height: 22px; margin-top: 5px; max-width: 90px; }
  .stat-icon { display: none; }
  .section-heading { padding: 19px 17px; gap: 10px; }
  .section-heading h2 { font-size: 14px; }
  .section-heading p { font-size: 10px; max-width: 195px; }
  .empty-state { padding: 48px 18px; }
  .empty-compact { padding: 35px 18px; }
  .empty-state h2 { font-size: 15px; }
  .empty-compact h2 { font-size: 13px; }
  .phase-note { padding: 14px 13px; align-items: flex-start; gap: 8px; }
  .phase-note p { font-size: 10px; }
  .phase-note > .icon { margin-top: 2px; width: 15px; height: 15px; }
  .phase-label { font-size: 10px; padding-inline: 5px; }
  .page-footer { font-size: 10px; padding-top: 26px; }
  .page-footer > span:last-child { display: none; }
  .list-toolbar { padding: 15px; flex-wrap: wrap; gap: 10px; }
  .search-field { width: 100%; }
  .filter-field { min-width: 155px; }
  .filter-field select { font-size: 12px; min-height: 35px; }
  th { padding: 12px 15px; }
  td { padding: 15px; }
  .event-name-cell { gap: 9px; min-width: 150px; }
  .event-name-cell strong { font-size: 12px; }
  .event-initial { height: 31px; width: 31px; font-size: 11px; }
  .subtle-note { align-items: flex-start; font-size: 10px; padding-inline: 0; }
  .subtle-note .icon { margin-top: 1px; }
  .count-pill { font-size: 10px; }
  dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 13px; }
  .dialog-header { padding: 23px 20px 19px; }
  .dialog-header h2 { font-size: 22px; }
  .dialog-body { padding: 21px 20px 24px; }
  .form-grid { grid-template-columns: 1fr; gap: 20px; }
  .field-full { grid-column: auto; }
  .dialog-actions { padding: 16px 20px; gap: 9px; border-radius: 0 0 13px 13px; }
  .dialog-actions .button { padding-inline: 13px; font-size: 12px; }
  .toast { bottom: 18px; font-size: 13px; padding: 13px 16px; max-width: calc(100vw - 30px); }
}

@media (max-height: 760px) and (min-width: 641px) {
  .login-story { padding-top: 38px; }
  .story-copy { margin-top: 65px; }
  .story-art { height: 150px; transform: scale(.8); margin-top: -7px; }
  .story-footer { bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Barracas, acesso e catálogo */
.main-layout, .page-content, #page-body, .panel { min-width: 0; }
.p2-page { font-size: 15px; line-height: 1.55; }
.p2-page .page-heading p, .p2-page .section-heading p { color: #66758c; font-size: 14px; line-height: 1.6; }
.p2-page .section-heading { flex-wrap: wrap; gap: 16px; }
.p2-page .section-heading h2 { color: #2d4568; font-size: 18px; }
.p2-page .button, [id^="p2-"] .button { min-height: 44px; font-size: 14px; }
.p2-event-picker { padding: 22px 26px; margin-bottom: 24px; display: flex; align-items: center; gap: 24px; }
.p2-event-picker .field { flex: 0 1 480px; min-width: 0; }
.p2-event-picker p { color: #6a7a92; font-size: 14px; }
.p2-event-picker select { min-height: 47px; font-size: 16px; color: #304968; }
.p2-stall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 265px), 1fr)); gap: 20px; padding: 24px; }
.p2-stall-card { border: 1px solid #e0e7f0; border-radius: 12px; padding: 23px; background: linear-gradient(145deg, #fff, #f8faff); min-width: 0; display: flex; align-items: flex-start; flex-direction: column; }
.p2-card-heading { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; }
.p2-stall-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #eaf1ff; color: #3266bd; }
.p2-stall-card h3 { margin-top: 22px; color: #2f4768; font-size: 21px; line-height: 1.4; overflow-wrap: anywhere; }
.p2-stall-card p { color: #6d7b90; font-size: 14px; line-height: 1.7; margin-top: 10px; margin-bottom: 22px; overflow-wrap: anywhere; flex: 1; }
.p2-stall-card .button { width: 100%; }
.p2-back { margin-bottom: 18px; }
.p2-back .icon { transform: rotate(180deg); }
.p2-stall-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; padding: 28px; margin-bottom: 24px; border-top: 3px solid #3e75d4; }
.p2-stall-summary > div { min-width: 0; }
.p2-stall-summary > div:last-child { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.p2-stall-summary h2 { font-size: 26px; line-height: 1.4; margin-top: 8px; color: #2a456b; overflow-wrap: anywhere; }
.p2-stall-summary p { color: #687a93; margin-top: 10px; font-size: 15px; max-width: 620px; overflow-wrap: anywhere; }
.p2-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.p2-tabs { display: flex; gap: 6px; margin-bottom: 20px; border-bottom: 1px solid #dce4ef; overflow-x: auto; }
.p2-tab { padding: 14px 19px; min-height: 49px; font-size: 15px; font-weight: 650; color: #65778e; background: transparent; border-bottom: 3px solid transparent; white-space: nowrap; }
.p2-tab:hover { color: #205dc3; background: #edf3fd; }
.p2-tab.is-active { color: #245fbe; border-bottom-color: #2863cc; }
.p2-page th { font-size: 12px; letter-spacing: .2px; }
.p2-page td { font-size: 14px; color: #435974; }
.p2-product-table { min-width: 760px; }
.p2-product-name { display: flex; flex-direction: column; gap: 6px; min-width: 150px; max-width: 300px; overflow-wrap: anywhere; }
.p2-product-name strong { font-size: 15px; color: #2d486c; }
.p2-product-name span { font-size: 13px; color: #708096; }
.p2-money { white-space: nowrap; font-weight: 650; }
.p2-status { display: inline-block; border-radius: 6px; padding: 5px 9px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.status-available { background: #eaf6ef; color: #2b7854; }
.status-sold_out { background: #fff3dd; color: #92621d; }
.status-unavailable { background: #f4eef9; color: #75518d; }
.status-inactive { background: #edf0f4; color: #647086; }
.p2-stock-values { display: flex; gap: 18px; margin: 0; }
.p2-stock-values div { display: flex; flex-direction: column; gap: 5px; }
.p2-stock-values dt { font-size: 11px; color: #738199; }
.p2-stock-values dd { margin: 0; font-size: 15px; font-weight: 700; color: #344f76; }
.p2-stock-values div:last-child dd { color: #236c54; }
.p2-stock-unlimited { color: #738199; font-size: 13px; white-space: nowrap; }
.p2-members { margin-top: 24px; }
.p2-callout { color: #47618a; background: #f1f6fe; border: 1px solid #dbe7f9; border-radius: 8px; padding: 15px 17px; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.panel > .p2-callout { margin: 0 24px 16px; }
.p2-empty h2 { color: #38577f; font-size: 20px; }
.p2-empty p { color: #708097; font-size: 14px; max-width: 440px; line-height: 1.8; }
.p2-stock-overview { margin-bottom: 23px; padding: 18px; border: 1px solid #e0e8f3; background: #f8faff; border-radius: 9px; }
.p2-stock-overview .p2-stock-values { justify-content: space-around; }
.p2-stock-overview .p2-stock-values dt { font-size: 13px; }
.p2-stock-overview .p2-stock-values dd { font-size: 23px; }
#p2-stock-form .p2-callout, #p2-invite-form .p2-callout { margin-top: 20px; }
.p2-history-title { font-size: 17px; color: #3d587d; margin-top: 30px; margin-bottom: 15px; }
.p2-movement-table { min-width: 440px; }
.p2-movement-table th, .p2-movement-table td { padding: 13px 12px; font-size: 12px; }
.p2-movement-table td:last-child { white-space: normal; overflow-wrap: anywhere; max-width: 240px; }
.p2-history-empty, .p2-copy-note { color: #657a95; font-size: 14px; line-height: 1.7; }
.p2-copy-note { margin-top: 12px; margin-bottom: 20px; }
.p5-page { display: flex; flex-direction: column; gap: 22px; }
.p5-page > .page-heading, .p5-page > .p2-callout { margin: 0; }
.p5-test-note { border-color: #ead6ac; background: #fffbef; color: #79551e; }
.p5-scope { display: flex; gap: 24px; padding: 24px 28px; }
.p5-scope > .field { flex: 1; min-width: 0; }
.p5-scope h2 { font-size: 23px; margin: 8px 0; }
.p5-scope p, .p5-pending p { font-size: 14px; line-height: 1.7; color: #64748b; }
.p5-fallback { padding: 25px 28px; display: flex; align-items: start; gap: 32px; }
.p5-fallback form { flex: 1 1 60%; min-width: 0; }
.p5-fallback .field { margin-bottom: 16px; }
.p5-fallback textarea, #p5-scanner-code { font-family: ui-monospace, monospace; font-size: 13px; resize: vertical; overflow-wrap: anywhere; }
.p5-image-field { flex: 1 1 40%; min-width: 0; }
.p5-image-field input { width: 100%; max-width: 100%; font-size: 13px; padding: 10px; }
.p5-image-field .field-help { margin-top: 10px; }
.p5-items { padding: 0 28px 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.p5-item { border: 1px solid #e1e8f2; border-radius: 12px; padding: 23px; background: #fff; min-width: 0; }
.p5-item-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 12px; }
.p5-item-heading .eyebrow { font-size: 9px; letter-spacing: .8px; }
.p5-item h3 { margin-top: 9px; font-size: 19px; overflow-wrap: anywhere; }
.p5-status { display: inline-flex; font-size: 11px; font-weight: 650; background: #edf3fe; color: #315f9b; border-radius: 20px; padding: 7px 10px; }
.p5-counters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0; padding: 18px 0; border-block: 1px solid #edf0f5; }
.p5-counters dt { color: #637792; font-size: 11px; }
.p5-counters dd { margin: 7px 0 0; color: #244572; font-size: 24px; font-weight: 700; }
.p5-item-actions { display: flex; align-items: end; gap: 13px; }
.p5-item-actions > .field { flex: 1; min-width: 95px; }
.p5-item-actions .field label { font-size: 11px; }
.p5-item-actions .field input { width: 100%; min-height: 44px; }
.p5-item-actions .button { min-height: 44px; font-size: 12px; padding-inline: 15px; }
.p5-pagination { border-top: 1px solid #edf0f5; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 19px 28px; color: #64748b; font-size: 13px; }
.p5-pagination .button { font-size: 12px; min-height: 38px; }
.p5-message { margin: 0; }
.p5-pending { padding: 25px 28px; border-color: #e9c475; }
.p5-pending h2 { font-size: 19px; }
.p5-pending p { margin-block: 12px 20px; }
.p5-success { background: #f0faf4; color: #326746; border-color: #c9e8d3; }
.p5-loading { display: flex; align-items: center; gap: 14px; font-size: 14px; color: #64748b; }
.p5-loading .spinner { width: 20px; height: 20px; }
.p5-camera { margin: 20px 0; aspect-ratio: 4 / 3; background: #10244d; border-radius: 12px; overflow: hidden; }
.p5-camera video { display: block; width: 100%; height: 100%; object-fit: cover; }
#p5-scanner-code-form { margin-block: 20px; }
#p5-scanner-code-form > .button { margin-top: 15px; }
.p5-confirm { margin-bottom: 18px; font-size: 22px; line-height: 1.5; overflow-wrap: anywhere; }
.p5-confirm + p { margin-bottom: 20px; font-size: 13px; color: #64748b; }
.p5-history td { overflow-wrap: anywhere; }
@media (max-width: 1100px) {
  .p5-items { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .p5-page { gap: 18px; }
  .p5-page .page-heading > .button { width: 100%; }
  .p5-scope, .p5-fallback { padding: 20px; flex-direction: column; gap: 22px; }
  .p5-scope > .field, .p5-fallback form, .p5-image-field { width: 100%; flex: auto; }
  .p5-items { padding: 0 17px 20px; }
  .p5-item { padding: 19px; }
  .p5-item-actions { flex-wrap: wrap; }
  .p5-item-actions .button { flex: 1 0 100%; }
  .p5-pagination { padding: 18px; }
  .p5-pagination > .p2-actions { width: 100%; }
  .p5-pagination .button { flex: 1; }
  .p5-fallback form > .button { width: 100%; }
  .p5-camera { aspect-ratio: 1; }
}
.p2-confirm-message { color: #536b89; font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
#p2-invite-link { font-family: ui-monospace, monospace; font-size: 13px; background: #f8faff; }
[id^="p2-"] .field label { font-size: 14px; color: #4f6380; }
[id^="p2-"] .field input, [id^="p2-"] .field select, [id^="p2-"] .field textarea { font-size: 16px; min-height: 46px; color: #344e70; }
[id^="p2-"] .field-help { font-size: 12px; color: #70809a; }
.p2-activation { min-height: 100dvh; padding: 54px 22px; background: radial-gradient(ellipse at top, #e8f0ff, #f7f9fc 60%); display: grid; place-items: center; }
.p2-activation-card { width: 100%; max-width: 550px; padding: 38px 42px; box-shadow: 0 20px 70px #1c3c6e0b; }
.p2-activation-mark { width: 52px; height: 52px; display: grid; place-items: center; color: #fff; background: #2863c9; border-radius: 14px; margin-bottom: 25px; }
.p2-activation .eyebrow { font-size: 10px; letter-spacing: 1.2px; }
.p2-activation h1 { color: #244572; font-size: 29px; line-height: 1.35; letter-spacing: -.6px; margin-top: 13px; margin-bottom: 14px; }
.p2-activation-card > p { color: #62738c; font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
.p2-activation-card .p2-expiry { font-size: 12px; color: #7c8ca2; margin-top: 10px; }
#p2-activation-form { display: flex; flex-direction: column; gap: 21px; margin-top: 27px; }
#p2-activation-form .form-error { margin-bottom: 0; }
#p2-activation-form .button { margin-top: 3px; min-height: 49px; }
.p2-activation-cancel { margin-top: 25px; font-size: 13px; white-space: normal; text-align: left; line-height: 1.6; min-height: 36px; }

@media (max-width: 640px) {
  .p2-page .page-heading h1 { font-size: 26px; }
  .p2-page .page-heading p { font-size: 14px; }
  .p2-event-picker { padding: 18px; display: block; margin-bottom: 19px; }
  .p2-event-picker p { margin-top: 11px; font-size: 12px; }
  .p2-stall-grid { padding: 17px; gap: 15px; }
  .p2-stall-card { padding: 22px; }
  .p2-stall-summary { flex-direction: column; padding: 22px; gap: 20px; }
  .p2-stall-summary h2 { font-size: 24px; }
  .p2-stall-summary > div:last-child { align-items: flex-start; width: 100%; }
  .p2-stall-summary .p2-actions { width: 100%; }
  .p2-stall-summary .p2-actions .button { flex: 1; }
  .p2-tabs { gap: 0; }
  .p2-tab { padding-inline: 15px; font-size: 14px; }
  .p2-page .section-heading h2 { font-size: 18px; }
  .p2-page .section-heading p { font-size: 13px; max-width: none; }
  .p2-page .section-heading > div { flex: 1 1 100%; }
  .p2-page .section-heading > .button { width: 100%; }
  .p2-page .subtle-note { font-size: 12px; }
  .p2-empty h2 { font-size: 18px; }
  .p2-empty p { font-size: 14px; }
  .panel > .p2-callout { margin-inline: 17px; }
  .p2-activation { padding: 24px 14px; }
  .p2-activation-card { padding: 28px 23px; }
  .p2-activation h1 { font-size: 27px; }
  .p2-activation .eyebrow { font-size: 9px; }
}
.p6-page { display: flex; flex-direction: column; gap: 22px; }
.p6-page > .page-heading, .p6-page > .p2-callout { margin: 0; }
.p6-page .page-heading > .p2-actions { flex-wrap: wrap; }
.p6-filters { padding: 24px 28px; }
.p6-filters > .field { max-width: 520px; margin-bottom: 23px; }
.p6-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: end; }
.p6-filter-grid > .p2-actions { grid-column: 1 / -1; flex-wrap: wrap; }
.p6-filters input, .p6-filters select { min-width: 0; width: 100%; }
.p6-filters .field-help { margin-top: 14px; line-height: 1.7; color: #64748b; font-size: 12px; }
.p6-stall-heading { margin-bottom: 26px; }
.p6-stall-heading h2 { margin-block: 10px 18px; color: #244572; }
.p6-stall-heading .p2-actions { flex-wrap: wrap; }
.p6-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.p6-metric.stat-card { display: flex; flex-direction: column; justify-content: flex-start; align-items: start; gap: 12px; padding: 24px; min-width: 0; }
.p6-metric .stat-label { font-size: 13px; line-height: 1.5; min-height: 3em; }
.p6-metric strong { font-size: clamp(22px, 2.1vw, 30px); color: #244572; letter-spacing: -.7px; overflow-wrap: anywhere; margin-top: 0; }
.p6-metric p { font-size: 11px; line-height: 1.7; color: #64748b; margin-top: 0; }
.p6-counts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.p6-counts .p6-metric { padding-block: 19px; }
.p6-counts strong { font-size: 25px; }
.p6-mode { border-color: #ead6ac; background: #fffbef; color: #79551e; }
.p6-mode, .p6-unavailable { line-height: 1.8; }
.p6-unavailable { background: #f4f7fc; }
.p6-page .form-error { margin: 0; }
.p6-loading { display: flex; align-items: center; gap: 12px; color: #64748b; font-size: 13px; }
.p6-loading .spinner { width: 19px; height: 19px; }
.p6-page table { min-width: 650px; }
.p6-page td { overflow-wrap: anywhere; max-width: 270px; }
.p6-operation-counts { padding: 0 28px 26px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.p6-operation-counts > div { display: flex; flex-direction: column; gap: 9px; padding: 18px; border-radius: 10px; background: #f6f9fd; }
.p6-operation-counts strong { font-size: 25px; color: #244572; }
.p6-operation-counts span { font-size: 12px; color: #64748b; }
.p6-export-note { font-size: 12px; color: #64748b; line-height: 1.7; }
@media (max-width: 1200px) {
  .p6-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p6-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .p6-page { gap: 17px; }
  .p6-filters { padding: 20px; }
  .p6-metrics { gap: 10px; }
  .p6-metric.stat-card { padding: 17px 14px; }
  .p6-metric strong { font-size: 22px; }
  .p6-metric .stat-label { font-size: 11px; }
  .p6-filter-grid { grid-template-columns: minmax(0, 1fr); }
  .p6-filter-grid > .p2-actions { grid-column: auto; }
  .p6-page .page-heading > .p2-actions { width: 100%; }
  .p6-page .page-heading > .p2-actions > .button { flex: 1; }
  .p6-operation-counts { padding: 0 17px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .p6-page .section-heading { padding: 22px 19px; }
}
