/* ── GSA Platform — Design Tokens ───────────────────────────────────────── */
.porter-app {
	--pa: #f59e0b;
	--pa2: #fcd34d;
	--pad: #b45309;
	--pg:  rgba(245, 158, 11, 0.08);
	--pgb: rgba(245, 158, 11, 0.26);
	--ps:  rgba(16, 32, 56, 0.9);
	--pss: rgba(8, 18, 34, 0.97);
	--pi:  #f8fbff;
	--pm:  rgba(255, 255, 255, 0.40);
	--pgreen: #34d399;
	--pred:   #f87171;
	--ppurple:#a78bfa;
}

/* ── Base app container ──────────────────────────────────────────────────── */
.porter-app {
	background: #07111f;
	height: 100vh;
	height: 100dvh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	font-family: "Plus Jakarta Sans", sans-serif;
	color: var(--pi);
	position: relative;
}

/* ── Navigation ──────────────────────────────────────────────────────────── */
.porter-app .p-nav {
	background: rgba(3, 12, 24, 0.88);
	backdrop-filter: blur(24px) saturate(180%);
	-webkit-backdrop-filter: blur(24px) saturate(180%);
	border-bottom: 1px solid var(--pgb);
	padding: 12px 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 1px 0 rgba(245, 158, 11, 0.08) inset, var(--shadow-sm);
}
.porter-app .p-nav-logo {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background:
		center / 78% no-repeat url(/assets/logos/logo-white.png),
		linear-gradient(145deg, rgba(70, 201, 255, 0.95), rgba(13, 67, 152, 0.9));
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	box-shadow:
		0 0 0 1px rgba(213, 245, 255, 0.34),
		0 0 22px rgba(66, 200, 255, 0.38);
	flex-shrink: 0;
}
.porter-app .p-nav-logo svg {
	display: none;
}
.porter-app .p-nav-title {
	font-size: 14px;
	font-weight: 800;
	color: var(--pi);
}
.porter-app .p-nav-sub {
	font-size: 10px;
	color: var(--pa);
	font-weight: 700;
	margin-top: 1px;
}

/* ── Screen scroll container ─────────────────────────────────────────────── */
.porter-app .p-screen {
	flex: 1;
	min-height: 0;
	overflow-y: scroll;
	-webkit-overflow-scrolling: touch;
	touch-action: pan-y;
	padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
	position: relative;
	z-index: 2;
}

/* ── Glassmorphism card ──────────────────────────────────────────────────── */
.porter-app .p-card {
	background: linear-gradient(145deg, rgba(245, 158, 11, 0.08), var(--pss));
	border: 1px solid var(--pgb);
	border-radius: var(--r-lg);
	padding: 14px;
	margin-bottom: 8px;
	box-shadow:
		0 1px 0 rgba(245, 158, 11, 0.15) inset,
		0 -1px 0 rgba(0, 0, 0, 0.4) inset,
		var(--shadow-md);
	backdrop-filter: blur(16px) saturate(160%);
	-webkit-backdrop-filter: blur(16px) saturate(160%);
	position: relative;
	overflow: hidden;
}
.porter-app .p-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.5), transparent);
	pointer-events: none;
}
.porter-app .p-card.urgent {
	border-color: rgba(248, 113, 113, 0.5);
	background: linear-gradient(145deg, rgba(248, 113, 113, 0.08), var(--pss));
	box-shadow:
		0 1px 0 rgba(248, 113, 113, 0.15) inset,
		0 -1px 0 rgba(0, 0, 0, 0.4) inset,
		0 8px 28px rgba(248, 113, 113, 0.12);
}

/* ── Stat strip ──────────────────────────────────────────────────────────── */
.porter-app .p-stats {
	display: flex;
	background: linear-gradient(
		145deg,
		rgba(245, 158, 11, 0.08),
		rgba(7, 17, 31, 0.92)
	);
	border-bottom: 1px solid var(--pgb);
	padding: 10px 18px;
}
.porter-app .p-stat {
	flex: 1;
	text-align: center;
}
.porter-app .p-stat-val {
	font-size: 22px;
	font-weight: 800;
	color: var(--pa);
}
.porter-app .p-stat-lbl {
	font-size: 8px;
	font-weight: 700;
	color: var(--pm);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-top: 2px;
}
.porter-app .p-stat + .p-stat {
	border-left: 1px solid var(--pgb);
}

/* ── Status badge ────────────────────────────────────────────────────────── */
.porter-app .p-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 10px;
	font-weight: 800;
	padding: 4px 10px;
	border-radius: var(--r-pill);
	letter-spacing: 0.04em;
	white-space: nowrap;
}
.porter-app .p-badge.available {
	background: rgba(52, 211, 153, 0.10);
	border: 1px solid rgba(52, 211, 153, 0.26);
	color: var(--pgreen);
}
.porter-app .p-badge.busy {
	background: rgba(245, 158, 11, 0.10);
	border: 1px solid rgba(245, 158, 11, 0.26);
	color: var(--pa);
}
.porter-app .p-badge.break {
	background: rgba(167, 139, 250, 0.10);
	border: 1px solid rgba(167, 139, 250, 0.28);
	color: var(--ppurple);
}
.porter-app .p-badge.offline {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.10);
	color: var(--pm);
}

/* ── Primary / secondary buttons ─────────────────────────────────────────── */
.porter-app .p-btn {
	width: 100%;
	background: linear-gradient(135deg, var(--pad), var(--pa));
	color: #fff;
	border: none;
	padding: 14px;
	border-radius: var(--r-md);
	font-size: 16px;
	font-weight: 800;
	font-family: inherit;
	cursor: pointer;
	box-shadow: 0 0 18px rgba(245, 158, 11, 0.26), var(--shadow-sm);
	transition:
		opacity 0.15s var(--ease-out),
		transform 0.1s var(--ease-out);
	display: block;
	text-align: center;
}
.porter-app .p-btn:hover {
	opacity: 0.88;
}
.porter-app .p-btn:active {
	transform: scale(0.96);
}
.porter-app .p-btn.secondary {
	background: rgba(255, 255, 255, 0.055);
	color: var(--pa);
	border: 1px solid var(--pgb);
	box-shadow: none;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.porter-app .p-btn.secondary:hover {
	background: rgba(245, 158, 11, 0.08);
}
.porter-app .p-btn:disabled {
	background: rgba(255, 255, 255, 0.05);
	color: var(--pm);
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
	opacity: 0.6;
}

/* ── Inputs / Selects / Textareas ────────────────────────────────────────── */
.porter-app .p-input,
.porter-app .p-select {
	width: 100%;
	padding: 13px 15px;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: var(--r-md);
	font-size: 16px;
	font-family: inherit;
	outline: none;
	color: var(--pi);
	background: rgba(255, 255, 255, 0.04);
	box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.22);
	transition:
		border-color 0.2s var(--ease-out),
		box-shadow 0.2s var(--ease-out);
	-webkit-appearance: none;
	appearance: none;
}
.porter-app .p-input:focus,
.porter-app .p-select:focus {
	border-color: var(--pa);
	box-shadow:
		0 0 0 3px rgba(245, 158, 11, 0.12),
		inset 0 2px 8px rgba(0, 0, 0, 0.22);
}
.porter-app .p-input::placeholder {
	color: rgba(255, 255, 255, 0.25);
}
.porter-app .p-select option,
.porter-app .p-select optgroup,
.porter-app .p-input option,
.porter-app .p-input optgroup {
	background: #0d1a2e;
	color: #f8fbff;
}
.porter-app .p-label {
	display: block;
	font-size: 11px;
	font-weight: 800;
	color: rgba(255, 255, 255, 0.5);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 6px;
}
.porter-app .p-field {
	margin-bottom: 14px;
}

/* ── Modal sheet ─────────────────────────────────────────────────────────── */
.porter-app .p-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.68);
	z-index: 200;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.porter-app .p-sheet {
	background: linear-gradient(
		180deg,
		rgba(13, 27, 47, 0.97),
		rgba(5, 13, 25, 0.99)
	);
	border-top: 1px solid rgba(245, 158, 11, 0.18);
	border-left: 1px solid rgba(245, 158, 11, 0.10);
	border-right: 1px solid rgba(245, 158, 11, 0.10);
	border-radius: var(--r-xl) var(--r-xl) 0 0;
	padding: 8px 20px 36px;
	width: 100%;
	max-width: 600px;
	max-height: 85vh;
	overflow-y: auto;
	-webkit-backdrop-filter: blur(28px) saturate(180%);
	backdrop-filter: blur(28px) saturate(180%);
	box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
	animation: pSheetUp 0.28s ease both;
}
@keyframes pSheetUp {
	from {
		transform: translateY(24px);
		opacity: 0.4;
	}
	to {
		transform: none;
		opacity: 1;
	}
}
.porter-app .p-handle {
	width: 36px;
	height: 4px;
	background: rgba(255, 255, 255, 0.15);
	border-radius: var(--r-pill);
	margin: 12px auto 18px;
}

/* ── Progress track ──────────────────────────────────────────────────────── */
.porter-app .p-track {
	display: flex;
	align-items: center;
	margin: 12px 0;
}
.porter-app .p-track-dot {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	font-weight: 800;
	flex-shrink: 0;
	background: rgba(255, 255, 255, 0.06);
	border: 2px solid rgba(255, 255, 255, 0.15);
	color: var(--pm);
}
.porter-app .p-track-dot.done {
	background: var(--pa);
	border-color: var(--pa);
	color: #000;
}
.porter-app .p-track-dot.active {
	border-color: var(--pa);
	color: var(--pa);
	background: rgba(245, 158, 11, 0.12);
}
.porter-app .p-track-line {
	flex: 1;
	height: 2px;
	background: rgba(255, 255, 255, 0.08);
	margin: 0 4px;
}
.porter-app .p-track-line.done {
	background: linear-gradient(90deg, var(--pa), rgba(245, 158, 11, 0.3));
}

/* ── Bottom navigation ───────────────────────────────────────────────────── */
.porter-app .p-bottom-nav {
	position: fixed;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	max-width: 780px;
	background: rgba(3, 10, 22, 0.96);
	border-top: 1px solid rgba(245, 158, 11, 0.15);
	box-shadow: 0 -1px 0 rgba(245, 158, 11, 0.06) inset;
	-webkit-backdrop-filter: blur(24px) saturate(180%);
	backdrop-filter: blur(24px) saturate(180%);
	display: flex;
	z-index: 100;
	padding-bottom: env(safe-area-inset-bottom, 0px);
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
}
.porter-app .p-bottom-nav::-webkit-scrollbar {
	display: none;
}
.porter-app .p-tab {
	flex: 0 0 auto;
	min-width: 60px;
	text-align: center;
	padding: 8px 6px 8px;
	cursor: pointer;
	transition: color 0.2s var(--ease-out);
	user-select: none;
	position: relative;
}
.porter-app .p-tab.active {
	color: var(--pa);
	background: rgba(245, 158, 11, 0.08);
	border-radius: var(--r-sm);
}
/* Amber top-edge glow on active tab */
.porter-app .p-tab.active::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 28px;
	height: 2px;
	border-radius: 0 0 3px 3px;
	background: var(--pa);
	box-shadow:
		0 0 10px rgba(245, 158, 11, 0.7),
		0 0 20px rgba(245, 158, 11, 0.3);
}
.porter-app .p-tab-icon {
	font-size: 20px;
	display: block;
	margin-bottom: 2px;
}
.porter-app .p-tab.active .p-tab-icon {
	filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.55));
}
.porter-app .p-tab-label {
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.30);
	transition: color 0.2s var(--ease-out);
}
.porter-app .p-tab.active .p-tab-label {
	color: var(--pa);
}
.porter-app .p-tab-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--pa);
	color: #000;
	border-radius: var(--r-pill);
	font-size: 8px;
	font-weight: 800;
	padding: 1px 5px;
	margin-left: 2px;
}

/* ── Self-task floating action button ────────────────────────────────────── */
.porter-app .p-self-task-fab {
	position: fixed;
	bottom: calc(72px + env(safe-area-inset-bottom, 0px));
	right: 16px;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--pad), var(--pa));
	border: none;
	color: #fff;
	font-size: 24px;
	cursor: pointer;
	box-shadow:
		0 0 0 1px rgba(245, 158, 11, 0.28),
		0 8px 24px rgba(245, 158, 11, 0.40);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 110;
	transition:
		transform 0.15s var(--ease-out),
		box-shadow 0.15s var(--ease-out);
	line-height: 1;
}
.porter-app .p-self-task-fab:active {
	transform: scale(0.92);
}

/* ── Hero section ────────────────────────────────────────────────────────── */
.porter-app .p-hero {
	background: linear-gradient(
		145deg,
		rgba(245, 158, 11, 0.12),
		rgba(7, 17, 31, 0.9)
	);
	border-bottom: 1px solid var(--pgb);
	padding: 16px 18px 12px;
}
.porter-app .p-hero-name {
	font-size: 17px;
	font-weight: 800;
	color: var(--pi);
}
.porter-app .p-hero-group {
	font-size: 11px;
	color: var(--pa);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-top: 2px;
}

/* ── Section label ───────────────────────────────────────────────────────── */
.porter-app .p-section-lbl {
	font-size: 10px;
	font-weight: 800;
	color: rgba(255, 255, 255, 0.35);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 14px 18px 6px;
}

/* ── Role selection cards (home) ─────────────────────────────────────────── */
.porter-app .p-role-card {
	display: flex;
	align-items: center;
	gap: 14px;
	background: linear-gradient(145deg, rgba(16, 33, 56, 0.9), var(--pss));
	border: 1px solid rgba(245, 158, 11, 0.18);
	border-radius: var(--r-xl);
	padding: 16px;
	margin-bottom: 12px;
	cursor: pointer;
	box-shadow:
		0 1px 0 rgba(245, 158, 11, 0.12) inset,
		0 -1px 0 rgba(0, 0, 0, 0.3) inset,
		var(--shadow-md);
	-webkit-backdrop-filter: blur(16px) saturate(160%);
	backdrop-filter: blur(16px) saturate(160%);
	transition:
		border-color 0.24s var(--ease-out),
		transform 0.24s var(--ease-out),
		box-shadow 0.24s var(--ease-out);
	position: relative;
	overflow: hidden;
}
.porter-app .p-role-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.45), transparent);
	pointer-events: none;
}
.porter-app .p-role-card:hover {
	border-color: var(--pgb);
	transform: translateY(-3px);
	box-shadow:
		0 1px 0 rgba(245, 158, 11, 0.16) inset,
		0 -1px 0 rgba(0, 0, 0, 0.3) inset,
		0 18px 44px rgba(0, 0, 0, 0.38),
		0 0 28px rgba(245, 158, 11, 0.12);
}
.porter-app .p-role-card:active {
	transform: scale(0.97);
}
.porter-app .p-role-icon {
	width: 52px;
	height: 52px;
	border-radius: var(--r-lg);
	flex-shrink: 0;
	background: linear-gradient(145deg, var(--pa), var(--pad));
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	box-shadow:
		0 0 0 1px rgba(245, 158, 11, 0.28),
		0 0 18px rgba(245, 158, 11, 0.3);
}
.porter-app .p-role-title {
	font-size: 15px;
	font-weight: 800;
	color: var(--pi);
	margin-bottom: 3px;
}
.porter-app .p-role-sub {
	font-size: 12px;
	color: var(--pm);
	line-height: 1.4;
}

/* ── Department grid ─────────────────────────────────────────────────────── */
.porter-app .p-dept-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	padding: 0 18px 16px;
}
.porter-app .p-dept-btn {
	padding: 14px 10px;
	border-radius: var(--r-md);
	border: 1px solid rgba(245, 158, 11, 0.16);
	background: rgba(255, 255, 255, 0.03);
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.65);
	cursor: pointer;
	text-align: center;
	line-height: 1.3;
	transition: all 0.15s var(--ease-out);
}
.porter-app .p-dept-btn.active,
.porter-app .p-dept-btn:hover {
	border-color: var(--pa);
	color: var(--pa);
	background: rgba(245, 158, 11, 0.08);
}

/* ── Active job hero card ────────────────────────────────────────────────── */
.porter-app .p-task-hero {
	margin: 12px 18px;
	background: linear-gradient(145deg, rgba(245, 158, 11, 0.12), var(--pss));
	border: 1px solid rgba(245, 158, 11, 0.38);
	border-radius: var(--r-lg);
	padding: 16px;
	box-shadow:
		0 1px 0 rgba(245, 158, 11, 0.18) inset,
		0 -1px 0 rgba(0, 0, 0, 0.4) inset,
		var(--shadow-md),
		0 0 40px rgba(245, 158, 11, 0.05);
	-webkit-backdrop-filter: blur(16px) saturate(160%);
	backdrop-filter: blur(16px) saturate(160%);
	position: relative;
	overflow: hidden;
}
.porter-app .p-task-hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.55), transparent);
	pointer-events: none;
}
.porter-app .p-task-hero.urgent-hero {
	border-color: rgba(248, 113, 113, 0.5);
}
.porter-app .p-task-hero .task-ref {
	font-size: 10px;
	color: var(--pm);
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 4px;
}
.porter-app .p-task-hero .task-route {
	font-size: 15px;
	font-weight: 800;
	color: var(--pa2);
	margin-bottom: 2px;
}
.porter-app .p-task-hero.urgent-hero .task-route {
	color: var(--pred);
}
.porter-app .p-task-hero .task-meta {
	font-size: 11px;
	color: var(--pm);
	margin-bottom: 12px;
}
.porter-app .p-task-timer {
	font-size: 10px;
	font-weight: 700;
	color: var(--pm);
	text-align: right;
	margin-bottom: 8px;
}

/* ── Compact queue card ──────────────────────────────────────────────────── */
.porter-app .p-queue-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(245, 158, 11, 0.14);
	border-radius: var(--r-md);
	padding: 10px 14px;
	margin: 0 18px 6px;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	transition: border-color 0.15s var(--ease-out);
}
.porter-app .p-queue-card:hover {
	border-color: rgba(245, 158, 11, 0.26);
}
.porter-app .p-queue-card .q-route {
	font-size: 12px;
	font-weight: 700;
	color: var(--pi);
}
.porter-app .p-queue-card .q-meta {
	font-size: 10px;
	color: var(--pm);
	margin-top: 1px;
}
.porter-app .p-queue-card .q-next {
	font-size: 9px;
	font-weight: 800;
	color: var(--pa);
	text-transform: uppercase;
}

/* ── Admin tab strip ─────────────────────────────────────────────────────── */
.porter-app .p-admin-tabs {
	display: flex;
	overflow-x: auto;
	border-bottom: 1px solid rgba(245, 158, 11, 0.15);
	padding: 0 18px;
	gap: 0;
	scrollbar-width: none;
	flex-shrink: 0;
}
.porter-app .p-admin-tabs::-webkit-scrollbar {
	display: none;
}
.porter-app .p-admin-tab {
	padding: 10px 14px;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	cursor: pointer;
	color: var(--pm);
	white-space: nowrap;
	border-bottom: 2px solid transparent;
	transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);
	flex-shrink: 0;
	border-radius: var(--r-sm) var(--r-sm) 0 0;
}
.porter-app .p-admin-tab.active {
	color: var(--pa);
	border-bottom-color: var(--pa);
	background: rgba(245, 158, 11, 0.06);
}

/* ── KPI row ─────────────────────────────────────────────────────────────── */
.porter-app .p-kpi-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	padding: 16px 18px;
}
.porter-app .p-kpi {
	background: linear-gradient(
		145deg,
		rgba(245, 158, 11, 0.09),
		rgba(7, 17, 31, 0.88)
	);
	border: 1px solid rgba(245, 158, 11, 0.20);
	border-radius: var(--r-md);
	padding: 13px 10px;
	text-align: center;
	box-shadow:
		0 1px 0 rgba(245, 158, 11, 0.14) inset,
		var(--shadow-sm);
	-webkit-backdrop-filter: blur(12px) saturate(160%);
	backdrop-filter: blur(12px) saturate(160%);
	position: relative;
	overflow: hidden;
}
.porter-app .p-kpi::before {
	content: "";
	position: absolute;
	top: 0;
	left: 4px;
	right: 4px;
	height: 1px;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(245, 158, 11, 0.5),
		transparent
	);
}
.porter-app .p-kpi-val {
	font-size: 22px;
	font-weight: 900;
	color: var(--pa);
	letter-spacing: -0.02em;
}
.porter-app .p-kpi-lbl {
	font-size: 9px;
	font-weight: 700;
	color: var(--pm);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-top: 3px;
}

/* ── 7-day bar chart ─────────────────────────────────────────────────────── */
.porter-app .p-bar-chart {
	display: flex;
	align-items: flex-end;
	gap: 5px;
	height: 72px;
	padding: 0 18px 8px;
}
.porter-app .p-bar-wrap {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	height: 100%;
	justify-content: flex-end;
}
.porter-app .p-bar {
	width: 100%;
	background: linear-gradient(180deg, var(--pa2), var(--pad));
	border-radius: 4px 4px 0 0;
	min-height: 3px;
	transition: height 0.3s;
	box-shadow: 0 0 8px rgba(245, 158, 11, 0.25);
}
.porter-app .p-bar-lbl {
	font-size: 8px;
	color: var(--pm);
	font-weight: 700;
}

/* ── Live staff strip ────────────────────────────────────────────────────── */
.porter-app .p-staff-strip {
	padding: 0 18px;
}
.porter-app .p-staff-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.porter-app .p-staff-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}
.porter-app .p-staff-dot.available {
	background: var(--pgreen);
	box-shadow: 0 0 8px var(--pgreen);
}
.porter-app .p-staff-dot.busy {
	background: var(--pa);
	box-shadow: 0 0 8px var(--pa);
}
.porter-app .p-staff-dot.break {
	background: var(--ppurple);
}
.porter-app .p-staff-dot.offline {
	background: rgba(255, 255, 255, 0.2);
}
.porter-app .p-staff-name {
	font-size: 13px;
	font-weight: 700;
	color: var(--pi);
	flex: 1;
}
.porter-app .p-staff-detail {
	font-size: 10px;
	color: var(--pm);
	text-align: right;
}

/* ── Destination search dropdown ─────────────────────────────────────────── */
.porter-app .p-dest-list {
	max-height: 160px;
	overflow-y: auto;
	margin-top: 6px;
	border: 1px solid var(--pgb);
	border-radius: 10px;
	background: rgba(5, 14, 26, 0.95);
}
.porter-app .p-dest-item {
	padding: 10px 14px;
	cursor: pointer;
	font-size: 14px;
	color: var(--pi);
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
	transition: background 0.15s;
}
.porter-app .p-dest-item:hover {
	background: rgba(245, 158, 11, 0.08);
}
.porter-app .p-dest-item.active {
	background: rgba(245, 158, 11, 0.15);
	color: var(--pa);
	font-weight: 700;
}
.porter-app .p-dest-item:last-child {
	border-bottom: none;
}

/* ── Toast notification ──────────────────────────────────────────────────── */
.porter-app .p-toast {
	position: fixed;
	bottom: calc(90px + env(safe-area-inset-bottom, 0px));
	left: 50%;
	transform: translateX(-50%);
	background: rgba(16, 32, 56, 0.96);
	border: 1px solid rgba(245, 158, 11, 0.22);
	color: var(--pi);
	padding: 10px 20px;
	border-radius: var(--r-lg);
	font-size: 13px;
	font-weight: 700;
	-webkit-backdrop-filter: blur(22px) saturate(180%);
	backdrop-filter: blur(22px) saturate(180%);
	z-index: 300;
	box-shadow: var(--shadow-lg);
	white-space: nowrap;
	pointer-events: none;
	animation: pToastIn 0.24s ease both;
}
@keyframes pToastIn {
	from {
		opacity: 0;
		transform: translateX(-50%) translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateX(-50%) translateY(0);
	}
}

/* ── PIN entry grid ──────────────────────────────────────────────────────── */
.porter-app .p-pin-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	max-width: 280px;
	margin: 0 auto;
}
.porter-app .p-pin-btn {
	padding: 18px;
	border-radius: 14px;
	background: var(--ps);
	border: 1px solid var(--pgb);
	color: var(--pi);
	font-size: 20px;
	font-weight: 800;
	font-family: inherit;
	cursor: pointer;
	transition: all 0.15s;
	text-align: center;
}
.porter-app .p-pin-btn:hover {
	border-color: var(--pa);
	background: rgba(245, 158, 11, 0.1);
}
.porter-app .p-pin-btn:active {
	transform: scale(0.96);
}

/* ── Session / report table ──────────────────────────────────────────────── */
.porter-app .p-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12px;
}
.porter-app .p-table th {
	padding: 8px 6px;
	text-align: left;
	font-size: 9px;
	font-weight: 800;
	color: var(--pm);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	border-bottom: 1px solid rgba(245, 158, 11, 0.2);
	white-space: nowrap;
}
.porter-app .p-table td {
	padding: 8px 6px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
	color: var(--pi);
}

/* ── Break picker ────────────────────────────────────────────────────────── */
.porter-app .p-break-opt {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	cursor: pointer;
}
.porter-app .p-break-opt:last-child {
	border-bottom: none;
}
.porter-app .p-break-opt-label {
	font-size: 15px;
	font-weight: 700;
	color: var(--pi);
}
.porter-app .p-break-opt-sub {
	font-size: 11px;
	color: var(--pm);
	margin-top: 2px;
}
.porter-app .p-break-opt-icon {
	font-size: 24px;
}

/* ── Presence / availability picker ─────────────────────────────────────── */
.porter-app .p-avail-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 14px 18px;
}
.porter-app .p-avail-btn {
	flex: 1;
	min-width: 100px;
	padding: 12px 8px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.06);
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	color: var(--pm);
	cursor: pointer;
	text-align: center;
	transition: all 0.18s;
}
.porter-app .p-avail-btn.active-available {
	border-color: var(--pgreen);
	color: var(--pgreen);
	background: rgba(52, 211, 153, 0.1);
}
.porter-app .p-avail-btn.active-busy {
	border-color: var(--pa);
	color: var(--pa);
	background: rgba(245, 158, 11, 0.1);
}
.porter-app .p-avail-btn.active-break {
	border-color: var(--ppurple);
	color: var(--ppurple);
	background: rgba(167, 139, 250, 0.1);
}
.porter-app .p-avail-btn.active-offline {
	border-color: var(--pm);
	color: var(--pi);
	background: rgba(255, 255, 255, 0.08);
}

/* ── Urgency toggle ──────────────────────────────────────────────────────── */
.porter-app .p-urg-row {
	display: flex;
	gap: 8px;
}
.porter-app .p-urg-btn {
	flex: 1;
	padding: 11px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: all 0.15s;
	text-align: center;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: var(--pm);
}
.porter-app .p-urg-btn.active-normal {
	background: rgba(245, 158, 11, 0.15);
	border: 2px solid var(--pa);
	color: var(--pa);
}
.porter-app .p-urg-btn.active-urgent {
	background: rgba(248, 113, 113, 0.15);
	border: 2px solid var(--pred);
	color: var(--pred);
}

/* ── Schedule toggle ─────────────────────────────────────────────────────── */
.porter-app .p-sched-row {
	display: flex;
	gap: 8px;
	margin-bottom: 10px;
}
.porter-app .p-sched-btn {
	flex: 1;
	padding: 10px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	text-align: center;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: var(--pm);
	transition: all 0.15s;
}
.porter-app .p-sched-btn.active {
	background: rgba(245, 158, 11, 0.15);
	border: 2px solid var(--pa);
	color: var(--pa);
}

/* ── Sidebar / mobile-list toggle ───────────────────────────────────────── */
@media (max-width: 767px) {
	.porter-app .p-sidebar-content {
		display: none;
	}
	.porter-app .p-mobile-list {
		display: block;
	}
}
@media (min-width: 768px) {
	.porter-app .p-sidebar-content {
		display: block;
	}
	.porter-app .p-mobile-list {
		display: none;
	}
}

/* ── Large action buttons (right panel) ─────────────────────────────────── */
.porter-app .p-action-btn {
	width: 100%;
	background: linear-gradient(135deg, var(--pad), var(--pa));
	color: #1a1100;
	border: none;
	padding: 18px 16px;
	border-radius: var(--r-md);
	font-size: 15px;
	font-weight: 800;
	cursor: pointer;
	font-family: inherit;
	letter-spacing: 0.02em;
	transition: opacity 0.15s var(--ease-out), transform 0.1s var(--ease-out);
	display: block;
	box-shadow: 0 0 18px rgba(245, 158, 11, 0.24), var(--shadow-sm);
}
.porter-app .p-action-btn + .p-action-btn {
	margin-top: 10px;
}
.porter-app .p-action-btn:active {
	opacity: 0.82;
	transform: scale(0.96);
}
.porter-app .p-action-btn.secondary {
	background: rgba(255, 255, 255, 0.055);
	border: 1px solid rgba(255, 255, 255, 0.10);
	color: var(--pa);
	box-shadow: none;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.porter-app .p-action-btn.complete {
	background: linear-gradient(135deg, #047857, #10b981);
	color: #fff;
	box-shadow: 0 4px 18px rgba(16, 185, 129, 0.25);
}
.porter-app .p-action-btn:disabled {
	opacity: 0.32;
	cursor: not-allowed;
	transform: none;
}
/* ── Refresh button in nav ────────────────────────────────────────────────── */
.porter-app .p-nav-refresh {
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: var(--pm);
	font-size: 13px;
	cursor: pointer;
	padding: 7px 10px;
	border-radius: 8px;
	font-family: inherit;
	transition: all 0.15s;
	line-height: 1;
}
.porter-app .p-nav-refresh:hover {
	border-color: var(--pgb);
	color: var(--pa);
}

/* ── p-main-split: scrollable at all sizes, grid on desktop ─────────────── */
.porter-app .p-main-split {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

/* ── Responsive split layout (PC / large tablet ≥ 1024px) ───────────────── */
@media (min-width: 1024px) {
	.porter-app {
		max-width: 100%;
	}
	.porter-app .p-main-split {
		display: grid;
		grid-template-columns: 320px 1fr;
		overflow: hidden;
		padding-bottom: 0;
	}
	.porter-app .p-list-panel {
		border-right: 1px solid var(--pgb);
		overflow-y: auto;
		min-height: 0;
	}
	.porter-app .p-detail-panel {
		overflow-y: auto;
		padding: 28px 40px;
		padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
		min-height: 0;
	}
	.porter-app .p-list-panel {
		padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
	}
	.porter-app .p-bottom-nav {
		max-width: 100%;
	}
	.porter-app .p-self-task-fab {
		right: 32px;
		bottom: calc(72px + env(safe-area-inset-bottom, 0px) + 16px);
	}
	.porter-app .p-screen {
		padding-bottom: 24px;
		max-width: 960px;
		width: 100%;
		align-self: center;
	}
	.porter-app .p-kpi-row {
		grid-template-columns: repeat(4, 1fr);
	}
	/* Cap button width — prevents full-stretch on wide detail panel */
	.porter-app .p-btn {
		max-width: 480px;
	}
	/* Wider padding on desktop nav + sections */
	.porter-app .p-nav {
		padding: 14px 32px;
	}
	.porter-app .p-hero {
		padding: 16px 32px 12px;
	}
	.porter-app .p-admin-tabs {
		padding: 0 32px;
	}
	.porter-app .p-kpi-row {
		padding: 16px 32px;
	}
}

/* ── Ultra-wide screens (1440px+) — center content columns ──────────────── */
@media (min-width: 1440px) {
	/* Detail panel: center-pad content when panel is very wide */
	.porter-app .p-detail-panel {
		padding-left: max(40px, calc((100% - 860px) / 2));
		padding-right: max(40px, calc((100% - 860px) / 2));
	}
	/* Hero and list panel also get breathing room */
	.porter-app .p-hero {
		padding-left: 40px;
		padding-right: 40px;
	}
	.porter-app .p-list-panel {
		padding-left: 8px;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.porter-app {
		max-width: 100%;
	}
	.porter-app .p-main-split {
		display: grid;
		grid-template-columns: 300px 1fr;
		overflow: hidden;
		padding-bottom: 0;
	}
	.porter-app .p-list-panel {
		border-right: 1px solid var(--pgb);
		overflow-y: auto;
		padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
		min-height: 0;
	}
	.porter-app .p-detail-panel {
		overflow-y: auto;
		padding: 16px 24px;
		padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
		min-height: 0;
	}
	.porter-app .p-kpi-row {
		grid-template-columns: repeat(4, 1fr);
	}
	.porter-app .p-bottom-nav {
		max-width: 100%;
	}
}

@media (min-width: 640px) and (max-width: 767px) {
	.porter-app .p-kpi-row {
		grid-template-columns: repeat(4, 1fr);
	}
	.porter-app .p-bottom-nav {
		max-width: 100%;
	}
}

@media (max-width: 639px) {
	.porter-app .p-kpi-row {
		grid-template-columns: repeat(2, 1fr);
	}
	/* break countdown fits on small phones */
	.porter-app .avail-bar.break-active {
		flex-direction: column;
		gap: 10px;
	}
	.porter-app .avail-bar.break-active .btn-return-early {
		width: 100%;
		text-align: center;
	}
	.porter-app .break-countdown {
		font-size: 22px;
	}
	/* admin tab strip scrolls horizontally on small screens */
	.porter-app .p-admin-tabs {
		overflow-x: auto;
		flex-wrap: nowrap;
	}
	.porter-app .p-admin-tab {
		flex-shrink: 0;
	}
	/* stats row wraps nicely */
	.porter-app .p-stats {
		flex-wrap: wrap;
	}
}

/* ── Login screens — Glass Depth ────────────────────────────────────────── */
.porter-app .p-login-screen {
	flex: 1;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0 22px 24px;
	background: radial-gradient(
		ellipse at 35% 25%,
		#162540 0%,
		#07111f 45%,
		#050d18 100%
	);
}
.porter-app .p-login-top {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: 14px 0 0;
	display: flex;
	align-items: center;
	margin-bottom: 20px;
}
.porter-app .p-login-logo-wrap {
	position: relative;
	z-index: 2;
	width: 80px;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 6px;
}
.porter-app .p-login-title {
	position: relative;
	z-index: 2;
	font-size: 20px;
	font-weight: 900;
	color: #f0f8ff;
	letter-spacing: -0.02em;
	margin-top: 4px;
}
.porter-app .p-login-sub {
	position: relative;
	z-index: 2;
	font-size: 9px;
	font-weight: 700;
	color: rgba(245, 158, 11, 0.6);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-top: 4px;
	margin-bottom: 22px;
}
.porter-app .p-login-form {
	position: relative;
	z-index: 2;
	width: 100%;
}

/* ── Home screen — Glass Depth design ───────────────────────────────────── */
.porter-app .p-home-screen {
	flex: 1;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 36px 18px 24px;
	background: radial-gradient(
		ellipse at 35% 25%,
		#162540 0%,
		#07111f 45%,
		#050d18 100%
	);
}
/* Subtle grid overlay */
.porter-app .p-home-grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(245, 158, 11, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(245, 158, 11, 0.035) 1px, transparent 1px);
	background-size: 36px 36px;
	-webkit-mask-image: radial-gradient(
		ellipse 85% 60% at 50% 35%,
		black,
		transparent
	);
	mask-image: radial-gradient(ellipse 85% 60% at 50% 35%, black, transparent);
	pointer-events: none;
}
/* Bokeh orbs */
.porter-app .p-home-orb {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}
.porter-app .p-home-orb-1 {
	width: 140px;
	height: 110px;
	background: rgba(245, 158, 11, 0.18);
	filter: blur(36px);
	top: 2%;
	left: 4%;
	animation: pHomeOrbA 9s ease-in-out infinite alternate;
}
.porter-app .p-home-orb-2 {
	width: 90px;
	height: 90px;
	background: rgba(99, 102, 241, 0.15);
	filter: blur(26px);
	top: 18%;
	right: -4%;
	animation: pHomeOrbB 13s ease-in-out infinite alternate;
}
.porter-app .p-home-orb-3 {
	width: 150px;
	height: 110px;
	background: rgba(245, 158, 11, 0.1);
	filter: blur(38px);
	bottom: 18%;
	left: -6%;
	animation: pHomeOrbC 11s ease-in-out infinite alternate;
}
.porter-app .p-home-orb-4 {
	width: 70px;
	height: 70px;
	background: rgba(16, 185, 129, 0.13);
	filter: blur(20px);
	bottom: 30%;
	right: 2%;
	animation: pHomeOrbD 8s ease-in-out infinite alternate;
}
@keyframes pHomeOrbA {
	0% {
		transform: translate(0, 0) scale(1);
	}
	100% {
		transform: translate(14px, -20px) scale(1.2);
	}
}
@keyframes pHomeOrbB {
	0% {
		transform: translate(0, 0) scale(1);
	}
	100% {
		transform: translate(-18px, 14px) scale(1.15);
	}
}
@keyframes pHomeOrbC {
	0% {
		transform: translate(0, 0) scale(1);
	}
	100% {
		transform: translate(22px, -12px) scale(1.12);
	}
}
@keyframes pHomeOrbD {
	0% {
		transform: translate(0, 0) scale(1);
	}
	100% {
		transform: translate(-12px, 18px) scale(1.22);
	}
}

/* Logo orbit system */
.porter-app .p-home-logo-wrap {
	position: relative;
	z-index: 2;
	width: 100px;
	height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 4px;
}
.porter-app .p-home-ring-pulse {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 1px solid rgba(245, 158, 11, 0.32);
	animation: pHomeRingPulse 2.8s ease-in-out infinite;
}
@keyframes pHomeRingPulse {
	0%,
	100% {
		transform: scale(1);
		opacity: 0.4;
	}
	50% {
		transform: scale(1.1);
		opacity: 0.9;
	}
}
.porter-app .p-home-ring-mid {
	position: absolute;
	inset: 12px;
	border-radius: 50%;
	border: 1px solid rgba(245, 158, 11, 0.1);
}
.porter-app .p-home-orbit-track {
	position: absolute;
	inset: 4px;
	border-radius: 50%;
	animation: pHomeOrbit 12s linear infinite;
}
@keyframes pHomeOrbit {
	from {
		transform: rotate(0);
	}
	to {
		transform: rotate(360deg);
	}
}
.porter-app .p-home-orbit-dot {
	position: absolute;
	top: -4px;
	left: calc(50% - 4px);
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #f59e0b;
	box-shadow:
		0 0 10px #f59e0b,
		0 0 22px rgba(245, 158, 11, 0.5);
}
.porter-app .p-home-logo-inner {
	width: 64px;
	height: 64px;
	border-radius: 20px;
	background:
		center / 78% no-repeat url(/assets/logos/logo-white.png),
		linear-gradient(145deg, rgba(70, 201, 255, 0.95), rgba(13, 67, 152, 0.9));
	border: 1px solid rgba(213, 245, 255, 0.34);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow:
		0 8px 32px rgba(0, 0, 0, 0.55),
		inset 0 1px 0 rgba(255, 255, 255, 0.25),
		0 0 28px rgba(66, 200, 255, 0.28);
	position: relative;
	z-index: 2;
}
.porter-app .p-home-logo-inner svg {
	display: none;
}
@keyframes pHomeLogoGlow {
	from {
		filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.7))
			drop-shadow(0 0 14px rgba(245, 158, 11, 0.35));
	}
	to {
		filter: drop-shadow(0 0 12px rgba(245, 158, 11, 1))
			drop-shadow(0 0 28px rgba(245, 158, 11, 0.6));
	}
}

/* Glass role cards */
.porter-app .p-home-card {
	position: relative;
	z-index: 2;
	width: 100%;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 16px;
	padding: 12px 14px;
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 9px;
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	overflow: hidden;
	cursor: pointer;
	animation: pHomeCardIn 0.45s ease both;
	transition:
		background 0.2s,
		border-color 0.25s,
		transform 0.15s;
}
.porter-app .p-home-card:last-child {
	margin-bottom: 0;
}
.porter-app .p-home-card:hover {
	background: rgba(245, 158, 11, 0.08);
	border-color: rgba(245, 158, 11, 0.28);
	transform: translateX(2px);
}
/* Glass top-edge highlight */
.porter-app .p-home-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 10px;
	right: 10px;
	height: 1px;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.18),
		transparent
	);
}
/* Hover amber left stripe */
.porter-app .p-home-card::after {
	content: "";
	position: absolute;
	left: 0;
	top: 10px;
	bottom: 10px;
	width: 2px;
	background: linear-gradient(180deg, transparent, #f59e0b, transparent);
	border-radius: 2px;
	opacity: 0;
	transition: opacity 0.2s;
}
.porter-app .p-home-card:hover::after {
	opacity: 1;
}
@keyframes pHomeCardIn {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
.porter-app .p-home-card:nth-child(2) {
	animation-delay: 0.07s;
}
.porter-app .p-home-card:nth-child(3) {
	animation-delay: 0.14s;
}
.porter-app .p-home-card:nth-child(4) {
	animation-delay: 0.21s;
}
.porter-app .p-home-card-icon {
	width: 38px;
	height: 38px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.porter-app .p-home-card-title {
	font-size: 13px;
	font-weight: 800;
	color: #f0f8ff;
}
.porter-app .p-home-card-sub {
	font-size: 10.5px;
	color: rgba(255, 255, 255, 0.45);
	margin-top: 2px;
	line-height: 1.35;
}
.porter-app .p-home-card-arrow {
	margin-left: auto;
	font-size: 18px;
	color: rgba(255, 255, 255, 0.18);
	flex-shrink: 0;
	transition:
		color 0.2s,
		transform 0.2s;
}
.porter-app .p-home-card:hover .p-home-card-arrow {
	color: rgba(245, 158, 11, 0.55);
	transform: translateX(2px);
}

/* ── Porter Hub Screen ───────────────────────────────────────────────────── */
.porter-app .p-hub-screen {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding: 32px 20px 32px;
	min-height: 100vh;
	overflow: hidden;
	background: radial-gradient(
		ellipse at 35% 25%,
		#162540 0%,
		#07111f 45%,
		#050d18 100%
	);
}
.porter-app .p-hub-brand {
	position: relative;
	z-index: 3;
	text-align: center;
	margin-top: 0;
	animation: riseIn 0.8s ease both;
}
.porter-app .p-hub-brand-title {
	font-size: 30px;
	font-weight: 800;
	color: #f0f8ff;
	letter-spacing: 0.01em;
}
.porter-app .p-hub-brand-title span {
	color: #f59e0b;
	text-shadow: 0 0 28px rgba(245, 158, 11, 0.7);
}
.porter-app .p-hub-brand-sub {
	font-size: 10px;
	color: rgba(245, 158, 11, 0.5);
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin-top: 6px;
}

.porter-app .p-hub-stage {
	position: relative;
	width: min(400px, 88vw);
	aspect-ratio: 1 / 1;
	margin: 20px auto 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}
.porter-app .p-hub-ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 1px solid rgba(245, 158, 11, 0.25);
	animation: ringSpin 38s linear infinite;
}
.porter-app .p-hub-ring.r2 {
	inset: 14%;
	border-color: rgba(245, 158, 11, 0.15);
	animation-direction: reverse;
	animation-duration: 48s;
}
.porter-app .p-hub-ring.r3 {
	inset: 26%;
	border-color: rgba(245, 158, 11, 0.1);
	animation-duration: 60s;
}
.porter-app .p-hub-ring.glow {
	inset: -8%;
	border: 1.5px solid rgba(245, 158, 11, 0.2);
	box-shadow:
		0 0 100px rgba(245, 158, 11, 0.1) inset,
		0 0 80px rgba(245, 158, 11, 0.06);
	animation: pHubRingPulse 4.6s ease-in-out infinite;
}
@keyframes pHubRingPulse {
	0%,
	100% {
		box-shadow:
			0 0 80px rgba(245, 158, 11, 0.1) inset,
			0 0 60px rgba(245, 158, 11, 0.06);
		transform: scale(1);
	}
	50% {
		box-shadow:
			0 0 100px rgba(245, 158, 11, 0.22) inset,
			0 0 90px rgba(245, 158, 11, 0.12);
		transform: scale(1.02);
	}
}

.porter-app .p-hub-core {
	position: relative;
	width: 46%;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	background: radial-gradient(
		circle at 35% 35%,
		rgba(245, 158, 11, 0.18),
		rgba(245, 158, 11, 0.05) 60%,
		rgba(245, 158, 11, 0.01)
	);
	border: 1.5px solid rgba(245, 158, 11, 0.42);
	box-shadow:
		0 0 0 6px rgba(7, 17, 31, 0.9),
		0 0 36px rgba(245, 158, 11, 0.22),
		inset 0 1px 24px rgba(255, 255, 255, 0.06);
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
	z-index: 5;
	-webkit-user-select: none;
	user-select: none;
}
.porter-app .p-hub-core::before {
	content: "";
	position: absolute;
	inset: 17% 17% 35%;
	background: center / contain no-repeat url(/assets/logos/logo-white.png);
	filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
	pointer-events: none;
}
.porter-app .p-hub-core > svg {
	display: none;
}
.porter-app .p-hub-core::after {
	content: "";
	position: absolute;
	inset: -18%;
	border: 1.5px solid rgba(245, 158, 11, 0.16);
	border-radius: 50%;
	animation: coreRing 3s ease-in-out infinite;
}
.porter-app .p-hub-core .core-label {
	position: absolute;
	bottom: 18%;
	left: 0;
	right: 0;
	text-align: center;
	line-height: 1;
}
.porter-app .p-hub-core .core-label small {
	display: block;
	font-size: 9px;
	font-weight: 800;
	color: rgba(245, 158, 11, 0.85);
	letter-spacing: 0.2em;
	text-transform: uppercase;
}
.porter-app .p-hub-core:hover {
	transform: scale(1.07);
	box-shadow:
		0 0 0 9px rgba(6, 14, 28, 0.85),
		0 0 70px rgba(245, 158, 11, 0.5),
		0 0 140px rgba(245, 158, 11, 0.25),
		inset 0 3px 36px rgba(255, 255, 255, 0.12);
}
.porter-app .p-hub-core:active {
	transform: scale(0.95);
}
.porter-app .p-hub-core.expanded {
	transform: scale(0.76);
	filter: saturate(1.15) brightness(1.06);
}

.porter-app .p-hub-node {
	position: absolute;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	background: radial-gradient(
		circle at 40% 35%,
		rgba(245, 158, 11, 0.12),
		rgba(7, 17, 31, 0.9) 70%
	);
	border: 1.5px solid rgba(245, 158, 11, 0.3);
	box-shadow:
		0 12px 32px rgba(0, 0, 0, 0.5),
		0 0 20px rgba(245, 158, 11, 0.1);
	transition:
		transform 0.45s cubic-bezier(0.35, 1.6, 0.45, 1),
		opacity 0.35s ease,
		left 0.45s cubic-bezier(0.35, 1.6, 0.45, 1),
		top 0.45s cubic-bezier(0.35, 1.6, 0.45, 1);
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%) scale(0);
	opacity: 0;
	pointer-events: none;
	z-index: 4;
	-webkit-user-select: none;
	user-select: none;
}
.porter-app .p-hub-node .node-icon {
	font-size: 22px;
	line-height: 1;
	margin-bottom: 4px;
}
.porter-app .p-hub-node .node-label {
	font-size: 10px;
	font-weight: 800;
	color: #f0f8ff;
	letter-spacing: 0.03em;
	line-height: 1.1;
}
.porter-app .p-hub-node .node-sub {
	font-size: 8px;
	font-weight: 700;
	color: rgba(245, 158, 11, 0.6);
	letter-spacing: 0.05em;
	margin-top: 2px;
}
.porter-app .p-hub-node:hover {
	border-color: rgba(245, 158, 11, 0.8);
	box-shadow:
		0 18px 48px rgba(0, 0, 0, 0.5),
		0 0 44px rgba(245, 158, 11, 0.3),
		inset 0 1px 16px rgba(255, 255, 255, 0.08);
	transform: translate(-50%, -50%) scale(1.08) !important;
}
.porter-app .p-hub-node:active {
	transform: translate(-50%, -50%) scale(0.96) !important;
}

.porter-app .p-hub-stage.expanded .p-hub-node.n-req {
	left: 18%;
	top: 25%;
	transform: translate(-50%, -50%) scale(1);
	opacity: 1;
	pointer-events: auto;
	transition-delay: 0.05s;
}
.porter-app .p-hub-stage.expanded .p-hub-node.n-porter {
	left: 82%;
	top: 25%;
	transform: translate(-50%, -50%) scale(1);
	opacity: 1;
	pointer-events: auto;
	transition-delay: 0.12s;
}
.porter-app .p-hub-stage.expanded .p-hub-node.n-sup {
	left: 20%;
	top: 80%;
	transform: translate(-50%, -50%) scale(1);
	opacity: 1;
	pointer-events: auto;
	transition-delay: 0.19s;
}
.porter-app .p-hub-stage.expanded .p-hub-node.n-admin {
	left: 80%;
	top: 80%;
	transform: translate(-50%, -50%) scale(1);
	opacity: 1;
	pointer-events: auto;
	transition-delay: 0.26s;
}

.porter-app .p-hub-foot {
	position: relative;
	z-index: 3;
	margin-top: 20px;
	padding-bottom: 28px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
	animation: riseIn 0.9s ease both 0.35s;
}
.porter-app .p-hub-foot-tagline {
	display: flex;
	align-items: center;
	gap: 8px;
	color: rgba(245, 158, 11, 0.45);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.porter-app .p-hub-foot .dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #f59e0b;
	box-shadow: 0 0 12px #f59e0b;
	animation: pulse 1.8s infinite;
	flex-shrink: 0;
}

/* ── Reduced motion ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.porter-app *,
	.porter-app *::before,
	.porter-app *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

/* ── Print styles (PDF export) ───────────────────────────────────────────── */
@media print {
	.porter-app .p-nav,
	.porter-app .p-bottom-nav,
	.porter-app .p-admin-tabs,
	.porter-app .p-self-task-fab,
	.porter-app .p-btn,
	.porter-app .p-overlay {
		display: none !important;
	}
	body {
		background: #fff !important;
		color: #000 !important;
	}
	.porter-app .p-table th,
	.porter-app .p-table td {
		border: 1px solid #ccc !important;
		color: #000 !important;
	}
}

/* ── Mobile stats strip ─────────────────────────────────────────────────── */
.p-mob-stats-row {
	display: flex;
	gap: 0;
	overflow-x: auto;
	padding: 10px 16px 0;
	scrollbar-width: none;
}
.p-mob-stats-row::-webkit-scrollbar {
	display: none;
}
.p-mob-stat {
	flex: 0 0 auto;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	padding: 8px 14px;
	margin-right: 8px;
	text-align: center;
	min-width: 60px;
}
.p-mob-stat-val {
	font-size: 16px;
	font-weight: 900;
	line-height: 1;
}
.p-mob-stat-lbl {
	font-size: 9px;
	font-weight: 700;
	color: var(--pm);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-top: 3px;
}
@media (min-width: 768px) {
	.p-mob-stats-row {
		display: none;
	}
}

/* ── Notification bar (porter) ──────────────────────────────────────────── */
.porter-app .p-mobile-list .notif-status-bar {
	margin: 8px 16px 0;
	width: calc(100% - 32px);
}
.porter-app .notif-test-btn {
	background: rgba(66, 232, 180, 0.15);
	border: 1px solid rgba(66, 232, 180, 0.3);
	color: #42e8b4;
	border-radius: 7px;
	font-size: 11px;
	font-weight: 700;
	font-family: inherit;
	padding: 4px 10px;
	cursor: pointer;
	float: right;
}
.porter-app .notif-test-btn:hover {
	background: rgba(66, 232, 180, 0.25);
}

/* ── Compact task cards — denser lists without losing scan value ─────────── */
.porter-app .req-card {
	border-radius: 8px;
	margin-bottom: 6px !important;
	box-shadow:
		0 1px 0 rgba(132, 200, 255, 0.1) inset,
		0 -1px 0 rgba(0, 0, 0, 0.24) inset,
		0 6px 16px rgba(0, 0, 0, 0.22);
}
.porter-app .req-card-inner {
	padding: 7px 10px;
}
.porter-app .req-stripe {
	height: 2px;
}
.porter-app .req-top {
	gap: 4px;
	margin-bottom: 3px;
}
.porter-app .req-id {
	font-size: 9px;
	line-height: 1.2;
}
.porter-app .badge,
.porter-app .badge-urgent,
.porter-app .sla-badge {
	font-size: 8px;
	line-height: 1.1;
	padding: 2px 6px;
}
.porter-app .req-dept {
	font-size: 12px;
	line-height: 1.25;
	margin-bottom: 0;
}
.porter-app .req-room {
	font-size: 10px;
	line-height: 1.3;
	margin-bottom: 2px;
}
.porter-app .completion-summary {
	border-radius: 8px;
	margin: 5px 0;
	padding: 6px 8px;
}
.porter-app .completion-title {
	font-size: 10px;
	margin-bottom: 4px;
}
.porter-app .completion-row {
	gap: 8px;
	font-size: 10px;
	padding: 1px 0;
}
.porter-app .completion-row em {
	font-size: 9px;
}

/* ── Porter full-screen task alert overlay ──────────────────────────────── */
.p-alert-overlay {
	position: fixed;
	inset: 0;
	background: #07111f;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
