.jcl-page-shell {
	min-height: 65vh;
	padding: clamp(32px, 6vw, 88px) 20px;
	background: #f5f8fb;
}

.jcl-portal {
	--jcl-blue: #0f4c81;
	--jcl-blue-dark: #0a365d;
	--jcl-blue-soft: #e8f1f8;
	--jcl-ink: #172634;
	--jcl-muted: #607283;
	--jcl-line: #dce5ec;
	--jcl-surface: #ffffff;
	width: min(1160px, calc(100% - 32px));
	margin: clamp(28px, 5vw, 72px) auto;
	color: var(--jcl-ink);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.55;
}

.jcl-page-shell .jcl-portal {
	margin-top: 0;
	margin-bottom: 0;
}

.jcl-portal *,
.jcl-portal *::before,
.jcl-portal *::after {
	box-sizing: border-box;
}

.jcl-portal .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.jcl-hero {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 32px;
	padding: clamp(28px, 5vw, 56px);
	border-radius: 20px;
	background: linear-gradient(130deg, #0f4c81 0%, #143d62 100%);
	box-shadow: 0 18px 48px rgba(17, 52, 80, 0.16);
	color: #ffffff;
}

.jcl-hero h1,
.jcl-login-card h1 {
	margin: 4px 0 12px;
	font-size: clamp(30px, 4vw, 48px);
	line-height: 1.12;
	letter-spacing: -0.035em;
}

.jcl-hero p {
	max-width: 720px;
	margin: 0;
	color: rgba(255, 255, 255, 0.82);
}

.jcl-eyebrow {
	margin: 0;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.jcl-hero .jcl-eyebrow {
	color: #b9d8ef;
}

.jcl-text-link {
	flex: 0 0 auto;
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.jcl-text-link:hover,
.jcl-text-link:focus {
	color: #ffffff;
	border-color: #ffffff;
}

.jcl-search {
	margin: 24px 0 36px;
	padding: 20px;
	border: 1px solid var(--jcl-line);
	border-radius: 14px;
	background: var(--jcl-surface);
	box-shadow: 0 8px 30px rgba(19, 53, 79, 0.06);
}

.jcl-search > label {
	display: block;
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 750;
}

.jcl-search-controls {
	display: flex;
	gap: 10px;
}

.jcl-search input[type="search"] {
	min-width: 0;
	width: 100%;
	height: 46px;
	padding: 0 14px;
	border: 1px solid #b9c8d5;
	border-radius: 9px;
	background: #ffffff;
	color: var(--jcl-ink);
	font: inherit;
}

.jcl-search input[type="search"]:focus,
.jcl-login-card input:focus {
	border-color: var(--jcl-blue);
	outline: 3px solid rgba(15, 76, 129, 0.16);
	outline-offset: 1px;
}

.jcl-button,
.jcl-login-card input[type="submit"] {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border: 1px solid var(--jcl-blue);
	border-radius: 999px;
	background: var(--jcl-blue);
	color: #ffffff;
	font: inherit;
	font-size: 14px;
	font-weight: 750;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.jcl-button:hover,
.jcl-button:focus,
.jcl-login-card input[type="submit"]:hover,
.jcl-login-card input[type="submit"]:focus {
	border-color: var(--jcl-blue-dark);
	background: var(--jcl-blue-dark);
	color: #ffffff;
	transform: translateY(-1px);
}

.jcl-button-secondary {
	border-color: #b9c8d5;
	background: #ffffff;
	color: var(--jcl-blue);
}

.jcl-button-secondary:hover,
.jcl-button-secondary:focus {
	border-color: var(--jcl-blue);
	background: var(--jcl-blue-soft);
	color: var(--jcl-blue-dark);
}

.jcl-button-small {
	min-height: 36px;
	padding: 8px 14px;
	font-size: 13px;
}

.jcl-client + .jcl-client {
	margin-top: 48px;
}

.jcl-section-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 16px;
}

.jcl-section-heading h2 {
	margin: 0;
	color: var(--jcl-ink);
	font-size: clamp(22px, 3vw, 30px);
	line-height: 1.25;
}

.jcl-count {
	color: var(--jcl-muted);
	font-size: 14px;
}

.jcl-folder-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.jcl-folder {
	min-width: 0;
	padding: 20px;
	border: 1px solid var(--jcl-line);
	border-radius: 16px;
	background: var(--jcl-surface);
	box-shadow: 0 8px 28px rgba(19, 53, 79, 0.055);
}

.jcl-folder-title {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 16px;
}

.jcl-folder-title h3 {
	margin: 0;
	font-size: 18px;
	line-height: 1.35;
}

.jcl-folder-title p {
	margin: 3px 0 0;
	color: var(--jcl-muted);
	font-size: 12px;
}

.jcl-folder-icon {
	position: relative;
	display: block;
	flex: 0 0 34px;
	width: 34px;
	height: 26px;
	margin-top: 3px;
	border-radius: 4px;
	background: #d9a923;
}

.jcl-folder-icon::before {
	position: absolute;
	top: -5px;
	left: 2px;
	width: 15px;
	height: 7px;
	border-radius: 4px 4px 0 0;
	background: #e5bd50;
	content: "";
}

.jcl-file-list {
	display: grid;
	gap: 8px;
}

.jcl-file {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	min-width: 0;
	padding: 11px;
	border: 1px solid #e8eef3;
	border-radius: 10px;
	background: #fbfcfd;
}

.jcl-file-type {
	display: flex;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: var(--jcl-blue-soft);
	color: var(--jcl-blue);
	font-size: 9px;
	font-weight: 850;
	letter-spacing: 0.04em;
	overflow: hidden;
}

.jcl-file-info {
	min-width: 0;
}

.jcl-file-name,
.jcl-file-meta {
	margin: 0;
}

.jcl-file-name {
	color: var(--jcl-ink);
	font-size: 14px;
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.jcl-file-meta {
	margin-top: 2px;
	color: var(--jcl-muted);
	font-size: 12px;
}

.jcl-status {
	padding: 5px 9px;
	border-radius: 999px;
	background: #eef1f4;
	color: #657585;
	font-size: 12px;
	font-weight: 700;
}

.jcl-notice {
	margin: 18px 0;
	padding: 15px 18px;
	border: 1px solid #d5e0e8;
	border-left: 4px solid #8298aa;
	border-radius: 10px;
	background: #f8fafc;
}

.jcl-notice p {
	margin: 0;
}

.jcl-notice-warning {
	border-color: #ead9aa;
	border-left-color: #b48100;
	background: #fffaf0;
}

.jcl-notice-error {
	border-color: #edc6c6;
	border-left-color: #b43d3d;
	background: #fff7f7;
}

.jcl-empty-small,
.jcl-footnote {
	margin: 8px 0 0;
	color: var(--jcl-muted);
	font-size: 13px;
}

.jcl-share > .jcl-file-list {
	padding: 20px;
	border: 1px solid var(--jcl-line);
	border-radius: 16px;
	background: var(--jcl-surface);
}

.jcl-login {
	width: min(520px, calc(100% - 32px));
}

.jcl-login-card {
	padding: clamp(28px, 6vw, 48px);
	border: 1px solid var(--jcl-line);
	border-top: 5px solid var(--jcl-blue);
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 18px 55px rgba(19, 53, 79, 0.12);
}

.jcl-login-card .jcl-eyebrow {
	color: var(--jcl-blue);
}

.jcl-login-card > p:not(.jcl-eyebrow) {
	color: var(--jcl-muted);
}

.jcl-login-card form {
	margin-top: 28px;
}

.jcl-login-card form p {
	margin: 0 0 16px;
}

.jcl-login-card label {
	display: block;
	margin-bottom: 6px;
	color: var(--jcl-ink);
	font-size: 14px;
	font-weight: 700;
}

.jcl-login-card input[type="text"],
.jcl-login-card input[type="password"] {
	width: 100%;
	height: 46px;
	padding: 0 13px;
	border: 1px solid #b9c8d5;
	border-radius: 9px;
	font: inherit;
}

.jcl-login-card .login-remember label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
}

.jcl-login-card .login-submit {
	margin-top: 22px;
}

.jcl-login-card input[type="submit"] {
	width: 100%;
}

.jcl-login-help {
	margin: 20px 0 0 !important;
	text-align: center;
}

.jcl-login-help a {
	color: var(--jcl-blue);
	font-weight: 650;
}

@media (max-width: 760px) {
	.jcl-portal {
		width: min(100% - 24px, 1160px);
		margin-top: 24px;
		margin-bottom: 32px;
	}

	.jcl-page-shell {
		padding: 24px 0 40px;
	}

	.jcl-hero {
		flex-direction: column;
		padding: 28px 22px;
	}

	.jcl-folder-grid {
		grid-template-columns: 1fr;
	}

	.jcl-search-controls {
		flex-wrap: wrap;
	}

	.jcl-search input[type="search"] {
		flex-basis: 100%;
	}
}

@media (max-width: 480px) {
	.jcl-file {
		grid-template-columns: 38px minmax(0, 1fr);
	}

	.jcl-file-type {
		width: 38px;
		height: 38px;
	}

	.jcl-file .jcl-button,
	.jcl-file .jcl-status {
		grid-column: 2;
		justify-self: start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jcl-button,
	.jcl-login-card input[type="submit"] {
		transition: none;
	}
}
