/* Child Correspondence — cool coastal theme */

:root {
	--cc-ink: #0f2a32;
	--cc-ink-soft: #3d5a63;
	--cc-paper: #f3f8f9;
	--cc-surface: rgba(255, 255, 255, 0.88);
	--cc-surface-solid: #ffffff;
	--cc-line: #c5dde3;
	--cc-teal: #0d7c8f;
	--cc-teal-deep: #065a69;
	--cc-aqua: #1aa6b8;
	--cc-mint: #d8f2f0;
	--cc-sky: #e8f4f7;
	--cc-coral: #c45c4a;
	--cc-coral-deep: #9e3f30;
	--cc-slate: #5b6f76;
	--cc-radius: 12px;
	--cc-radius-sm: 8px;
	--cc-font: "Manrope", "Segoe UI", sans-serif;
	--cc-display: "Fraunces", Georgia, serif;
	--cc-shadow: 0 10px 30px rgba(6, 90, 105, 0.08);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body.cc-app {
	margin: 0;
	padding: 0;
	font-family: var(--cc-font);
	font-size: 16px;
	line-height: 1.5;
	color: var(--cc-ink);
	min-height: 100vh;
	background:
		radial-gradient(ellipse 80% 50% at 10% -10%, rgba(26, 166, 184, 0.28), transparent 55%),
		radial-gradient(ellipse 70% 45% at 100% 0%, rgba(13, 124, 143, 0.18), transparent 50%),
		linear-gradient(165deg, #eaf6f8 0%, #f3f8f9 42%, #e4eef2 100%);
	background-attachment: fixed;
}

/* Header */
.cc-header {
	position: relative;
	overflow: hidden;
	padding: 22px 0 20px;
	color: #fff;
	background:
		linear-gradient(120deg, #065a69 0%, #0d7c8f 48%, #1aa6b8 100%);
	border-bottom: 3px solid rgba(255, 255, 255, 0.18);
}

.cc-header::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.16), transparent 35%),
		radial-gradient(circle at 8% 80%, rgba(216, 242, 240, 0.12), transparent 40%);
	pointer-events: none;
}

.cc-header .container-fluid {
	position: relative;
	z-index: 1;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
	text-align: center;
}

.cc-brand {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.cc-brand-mark {
	display: inline-block;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.55);
	background:
		radial-gradient(circle at 35% 30%, #d8f2f0, #1aa6b8 55%, #065a69);
	box-shadow: inset 0 0 0 4px rgba(6, 90, 105, 0.15);
}

.cc-title {
	margin: 0;
	font-family: var(--cc-display);
	font-size: clamp(1.35rem, 3vw, 1.9rem);
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.2;
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.cc-subtitle {
	margin: 0;
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.85;
}

.cc-main {
	padding: 22px 14px 40px;
	max-width: 1100px;
	margin: 0 auto;
}

/* Fluid tables */
table {
	max-width: 100% !important;
	width: 100% !important;
	border-collapse: collapse;
}

table[width],
td[width],
th[width] {
	width: auto !important;
}

img,
video {
	max-width: 100%;
	height: auto;
}

/* Forms */
.cc-form-panel,
.fieldSet,
fieldset.fieldSet {
	background: var(--cc-surface);
	backdrop-filter: blur(8px);
	border: 1px solid var(--cc-line);
	border-radius: var(--cc-radius);
	padding: 20px;
	margin-bottom: 18px;
	box-shadow: var(--cc-shadow);
}

.cc-form-panel h2,
.cc-form-panel legend,
.fieldSet legend {
	font-family: var(--cc-display);
	color: var(--cc-teal-deep);
	font-weight: 600;
	margin-top: 0;
}

.cc-form-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin-bottom: 14px;
}

.cc-form-row label,
.cc-label {
	flex: 0 0 160px;
	font-weight: 600;
	color: var(--cc-ink-soft);
}

.cc-form-row .form-control,
.cc-form-row select,
.cc-form-row input[type="text"],
.cc-form-row input[type="password"],
.cc-form-row input[type="file"],
.cc-form-row input[type="number"],
select,
input[type="text"],
input[type="password"],
input[type="file"],
input[type="number"],
textarea {
	max-width: 100%;
	width: 100%;
	min-height: 42px;
	padding: 8px 12px;
	font-family: var(--cc-font);
	font-size: 16px;
	color: var(--cc-ink);
	border: 1.5px solid var(--cc-line);
	border-radius: var(--cc-radius-sm);
	background: var(--cc-surface-solid);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cc-form-row .form-control:focus,
select:focus,
input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
	outline: none;
	border-color: var(--cc-aqua);
	box-shadow: 0 0 0 3px rgba(26, 166, 184, 0.2);
}

.cc-input-wrap {
	flex: 1 1 220px;
	min-width: 0;
}

/* Buttons */
.cc-btn,
.button,
input[type="submit"],
input[type="button"],
button {
	display: inline-block;
	width: auto;
	min-width: 0;
	max-width: 100%;
	min-height: 46px;
	padding: 11px 18px;
	margin: 6px 4px;
	font-family: var(--cc-font);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	border: none;
	border-radius: var(--cc-radius-sm);
	background: linear-gradient(180deg, var(--cc-aqua) 0%, var(--cc-teal) 100%);
	color: #fff;
	cursor: pointer;
	text-decoration: none;
	-webkit-appearance: none;
	appearance: none;
	transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}

.cc-btn:hover,
.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
button:hover {
	filter: brightness(1.05);
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
}

.cc-btn:active,
.button:active {
	transform: translateY(0);
}

.cc-btn-secondary {
	background: linear-gradient(180deg, #7a9097 0%, var(--cc-slate) 100%);
}

.cc-btn-danger {
	background: linear-gradient(180deg, #d97868 0%, var(--cc-coral) 100%);
}

.cc-btn-danger:hover {
	background: linear-gradient(180deg, #d97868 0%, var(--cc-coral-deep) 100%);
}

.cc-btn-block {
	display: block;
	width: 100%;
	margin-left: 0;
	margin-right: 0;
}

/* Main menu */
.cc-welcome {
	display: flex;
	justify-content: center;
	margin: 0 0 18px;
}

.cc-welcome-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--cc-mint);
	border: 1px solid var(--cc-line);
	color: var(--cc-teal-deep);
	font-size: 0.92rem;
	font-weight: 600;
}

.cc-welcome-chip strong {
	font-weight: 800;
}

.cc-menu-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 14px;
	margin-top: 8px;
}

.cc-menu-grid .cc-btn,
.cc-menu-grid input[type="button"],
.cc-menu-grid input[type="submit"],
.cc-menu-grid button,
.cc-menu-grid a.cc-btn {
	width: 100%;
	margin: 0;
	min-height: 72px;
	padding: 16px 14px;
	line-height: 1.3;
	white-space: normal;
	border-radius: var(--cc-radius);
	box-shadow: var(--cc-shadow);
	background: var(--cc-surface-solid);
	color: var(--cc-teal-deep);
	border: 1px solid var(--cc-line);
	font-weight: 700;
}

.cc-menu-grid .cc-btn:hover,
.cc-menu-grid a.cc-btn:hover {
	background: linear-gradient(180deg, #ffffff 0%, var(--cc-mint) 100%);
	border-color: var(--cc-aqua);
	color: var(--cc-teal-deep);
	filter: none;
}

.cc-menu-grid .cc-btn-danger,
.cc-menu-grid a.cc-btn-danger {
	background: linear-gradient(180deg, #fff5f3 0%, #fde8e4 100%);
	color: var(--cc-coral-deep);
	border-color: #efc4bc;
}

.cc-menu-grid .cc-btn-danger:hover,
.cc-menu-grid a.cc-btn-danger:hover {
	background: linear-gradient(180deg, #ffe8e3 0%, #f9d4cd 100%);
	color: var(--cc-coral-deep);
}

.cc-menu-grid .cc-btn:disabled,
.cc-menu-grid button:disabled {
	opacity: 0.45;
	transform: none;
	cursor: not-allowed;
}

/* Login */
body.cc-login .cc-main {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: calc(100vh - 120px);
}

.cc-login-wrap {
	width: 100%;
	max-width: 420px;
	margin: 24px auto;
	padding: 28px 26px 24px;
	background: var(--cc-surface);
	backdrop-filter: blur(10px);
	border: 1px solid var(--cc-line);
	border-radius: 18px;
	box-shadow: var(--cc-shadow);
}

.cc-login-wrap h2 {
	margin: 0 0 6px;
	font-family: var(--cc-display);
	font-size: 1.7rem;
	font-weight: 600;
	color: var(--cc-teal-deep);
	text-align: center;
}

.cc-login-lead {
	margin: 0 0 20px;
	text-align: center;
	color: var(--cc-ink-soft);
	font-size: 0.95rem;
}

.cc-login-wrap .cc-form-row label {
	flex: 0 0 100%;
}

.cc-login-wrap .cc-actions {
	margin-top: 8px;
}

.cc-login-wrap .cc-btn-block {
	min-height: 48px;
	font-size: 1.05rem;
	border-radius: 10px;
}

/* Account panels */
div#amakoona,
.wakati {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	min-height: 0;
	margin: 0 0 16px;
	background: var(--cc-surface) !important;
	border: 1px solid var(--cc-line);
}

.panel1,
.panel2 {
	min-width: 0 !important;
	width: 100% !important;
	min-height: 0 !important;
	height: auto !important;
}

.cc-table-scroll {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	background: var(--cc-surface);
	border: 1px solid var(--cc-line);
	border-radius: var(--cc-radius);
	box-shadow: var(--cc-shadow);
	padding: 8px;
}

table.Eyokubiri {
	min-width: 640px;
}

table.Eyokubiri th {
	background: var(--cc-teal-deep) !important;
	color: #fff !important;
}

table.Eyokubiri tr:nth-child(odd) td {
	background-color: var(--cc-sky) !important;
}

/* Utility */
.cc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.cc-alert {
	padding: 12px 16px;
	border-radius: var(--cc-radius-sm);
	margin: 12px 0;
	font-weight: 600;
}

.cc-alert-error {
	background: #fdecea;
	color: #8a2f24;
	border: 1px solid #f0c2bb;
}

.cc-alert-success {
	background: var(--cc-mint);
	color: var(--cc-teal-deep);
	border: 1px solid var(--cc-line);
}

.cc-alert-info {
	background: var(--cc-sky);
	color: var(--cc-teal-deep);
	border: 1px solid var(--cc-line);
}

@media (max-width: 767px) {
	.cc-title {
		font-size: 1.25rem;
	}

	.cc-main {
		padding: 14px 10px 28px;
	}

	.cc-form-row label,
	.cc-label {
		flex: 0 0 100%;
	}

	.cc-menu-grid {
		grid-template-columns: 1fr;
	}

	.cc-login-wrap {
		margin: 12px 8px;
		padding: 22px 18px;
	}

	.cc-main table tr {
		display: block;
		margin-bottom: 10px;
	}

	.cc-main table td {
		display: block;
		width: 100% !important;
		padding: 4px 0;
	}

	.cc-main table.Eyokubiri tr,
	.cc-table-scroll table tr {
		display: table-row;
	}

	.cc-main table.Eyokubiri td,
	.cc-main table.Eyokubiri th,
	.cc-table-scroll table td,
	.cc-table-scroll table th {
		display: table-cell;
		width: auto !important;
	}
}

@media (min-width: 768px) and (max-width: 991px) {
	.cc-menu-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

input:disabled,
button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

/* Soft entrance */
.cc-form-panel,
.cc-login-wrap,
.cc-menu-grid .cc-btn {
	animation: cc-rise 0.45s ease both;
}

.cc-menu-grid .cc-btn:nth-child(2) { animation-delay: 0.04s; }
.cc-menu-grid .cc-btn:nth-child(3) { animation-delay: 0.08s; }
.cc-menu-grid .cc-btn:nth-child(4) { animation-delay: 0.12s; }
.cc-menu-grid .cc-btn:nth-child(5) { animation-delay: 0.16s; }
.cc-menu-grid .cc-btn:nth-child(6) { animation-delay: 0.2s; }
.cc-menu-grid .cc-btn:nth-child(7) { animation-delay: 0.24s; }
.cc-menu-grid .cc-btn:nth-child(8) { animation-delay: 0.28s; }
.cc-menu-grid .cc-btn:nth-child(9) { animation-delay: 0.32s; }
.cc-menu-grid .cc-btn:nth-child(10) { animation-delay: 0.36s; }

@keyframes cc-rise {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.cc-form-panel,
	.cc-login-wrap,
	.cc-menu-grid .cc-btn,
	.cc-btn {
		animation: none;
		transition: none;
	}
}

/* ===== App shell dashboard ===== */
body.cc-dashboard {
	background:
		radial-gradient(ellipse 70% 40% at 0% 0%, rgba(26, 166, 184, 0.16), transparent 50%),
		linear-gradient(180deg, #eef5f7 0%, #f5fafb 100%);
}

body.cc-dashboard .app-root {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	min-height: 100vh;
}

.app-sidebar {
	position: sticky;
	top: 0;
	align-self: start;
	height: 100vh;
	display: flex;
	flex-direction: column;
	padding: 18px 14px;
	background: linear-gradient(180deg, #053b45 0%, #065a69 55%, #0a6f80 100%);
	color: #e8f6f8;
	overflow-y: auto;
}

.app-brand {
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 6px 8px 18px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	margin-bottom: 14px;
}

.app-brand-mark {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.45);
	background: radial-gradient(circle at 35% 30%, #d8f2f0, #1aa6b8 60%, #033843);
	flex-shrink: 0;
}

.app-brand strong {
	display: block;
	font-family: var(--cc-display);
	font-size: 1.05rem;
	line-height: 1.2;
}

.app-brand small {
	display: block;
	opacity: 0.75;
	font-size: 0.78rem;
}

.app-nav-label {
	margin: 14px 8px 6px;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	opacity: 0.55;
}

.app-nav a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 10px;
	margin-bottom: 2px;
	border-radius: 10px;
	color: rgba(255, 255, 255, 0.88);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.94rem;
}

.app-nav a:hover,
.app-nav a.is-active {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	text-decoration: none;
}

.nav-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #7fd0d8;
	flex-shrink: 0;
}

.app-side-foot {
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.app-user strong {
	display: block;
	font-size: 0.95rem;
}

.app-user span {
	display: block;
	font-size: 0.8rem;
	opacity: 0.7;
	margin-bottom: 10px;
}

.app-signout {
	display: inline-block;
	padding: 8px 12px;
	border-radius: 8px;
	border: 1px solid rgba(255, 200, 190, 0.45);
	color: #ffd7d0;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.88rem;
}

.app-signout:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	text-decoration: none;
}

.app-content {
	padding: 20px 22px 36px;
	min-width: 0;
}

.app-topbar {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 18px;
}

.app-topbar h1 {
	margin: 0 0 4px;
	font-family: var(--cc-display);
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	color: var(--cc-teal-deep);
}

.app-topbar p {
	margin: 0;
	color: var(--cc-ink-soft);
}

.app-menu-btn {
	display: none;
	min-height: 40px;
	padding: 8px 12px;
	border-radius: 8px;
	border: 1px solid var(--cc-line);
	background: #fff;
	color: var(--cc-teal-deep);
	font-weight: 700;
}

.app-top-cta {
	display: inline-block;
	padding: 11px 16px;
	border-radius: 10px;
	background: linear-gradient(180deg, var(--cc-aqua), var(--cc-teal));
	color: #fff !important;
	text-decoration: none;
	font-weight: 800;
	white-space: nowrap;
}

.app-top-cta:hover {
	filter: brightness(1.05);
	text-decoration: none;
	color: #fff;
}

.app-banner {
	margin-bottom: 14px;
	padding: 12px 14px;
	border-radius: 10px;
	background: #fff4e8;
	border: 1px solid #f0d2ae;
	color: #7a4b12;
	font-weight: 600;
}

.kpi-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 16px;
}

.kpi-card {
	background: #fff;
	border: 1px solid var(--cc-line);
	border-radius: 14px;
	padding: 14px 16px;
	box-shadow: var(--cc-shadow);
}

.kpi-card span {
	display: block;
	font-size: 0.78rem;
	font-weight: 750;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--cc-teal);
	margin-bottom: 6px;
}

.kpi-card strong {
	display: block;
	font-family: var(--cc-display);
	font-size: 1.8rem;
	color: var(--cc-teal-deep);
	line-height: 1.1;
}

.kpi-card small {
	display: block;
	margin-top: 4px;
	color: var(--cc-ink-soft);
	font-size: 0.84rem;
}

.chart-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 16px;
}

.chart-card {
	background: #fff;
	border: 1px solid var(--cc-line);
	border-radius: 16px;
	padding: 16px;
	box-shadow: var(--cc-shadow);
}

.chart-card-head h2 {
	margin: 0 0 4px;
	font-family: var(--cc-display);
	font-size: 1.15rem;
	color: var(--cc-teal-deep);
}

.chart-card-head p {
	margin: 0 0 12px;
	color: var(--cc-ink-soft);
	font-size: 0.9rem;
}

.chart-wrap {
	position: relative;
	height: 240px;
}

.chart-wrap-sm {
	height: 220px;
}

.chart-empty {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 16px;
	text-align: center;
	color: var(--cc-ink-soft);
	font-size: 0.92rem;
	background: rgba(248, 252, 253, 0.9);
	border-radius: 10px;
}

.insight-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.insight-card {
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid var(--cc-line);
	border-radius: 16px;
	padding: 16px;
	box-shadow: var(--cc-shadow);
}

.insight-card h2 {
	margin: 0 0 8px;
	font-family: var(--cc-display);
	font-size: 1.12rem;
	color: var(--cc-teal-deep);
}

.insight-card p,
.insight-card li {
	color: var(--cc-ink-soft);
	font-size: 0.92rem;
	line-height: 1.5;
}

.insight-card ul {
	margin: 10px 0 0;
	padding-left: 1.1rem;
}

.insight-steps {
	margin: 0;
	padding-left: 1.15rem;
}

.insight-steps li + li {
	margin-top: 8px;
}

.insight-steps a {
	color: var(--cc-teal-deep);
	font-weight: 700;
}

.insight-flow {
	padding: 10px 12px;
	border-radius: 10px;
	background: var(--cc-mint);
	border: 1px solid var(--cc-line);
	color: var(--cc-teal-deep) !important;
	font-weight: 700;
}

/* legacy home-* kept unused; app shell replaces it */
body.cc-dashboard .cc-main {
	max-width: 1180px;
	padding-top: 20px;
}

.home-shell {
	animation: cc-rise 0.4s ease both;
}

.home-shell {
	animation: cc-rise 0.4s ease both;
}

.home-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 20px;
	margin-bottom: 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--cc-line);
}

.home-eyebrow {
	margin: 0 0 6px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--cc-teal);
}

.home-title {
	margin: 0 0 6px;
	font-family: var(--cc-display);
	font-size: clamp(1.7rem, 3.2vw, 2.35rem);
	font-weight: 600;
	color: var(--cc-teal-deep);
	line-height: 1.15;
}

.home-sub {
	margin: 0;
	max-width: 34rem;
	color: var(--cc-ink-soft);
	font-size: 1rem;
	line-height: 1.5;
}

.home-userbar {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.home-role {
	display: inline-block;
	padding: 8px 12px;
	border-radius: 8px;
	background: var(--cc-mint);
	border: 1px solid var(--cc-line);
	color: var(--cc-teal-deep);
	font-size: 0.85rem;
	font-weight: 800;
}

.home-logout {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 8px;
	background: transparent;
	border: 1px solid #e0b4ac;
	color: var(--cc-coral-deep);
	font-weight: 700;
	text-decoration: none;
}

.home-logout:hover {
	background: #fdecea;
	color: var(--cc-coral-deep);
	text-decoration: none;
}

.home-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.9fr);
	gap: 20px;
	align-items: start;
}

.home-featured {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	gap: 14px;
	margin-bottom: 16px;
}

.home-feature {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 8px;
	min-height: 168px;
	padding: 22px;
	border-radius: 16px;
	text-decoration: none;
	color: #fff;
	background:
		linear-gradient(155deg, rgba(15, 42, 50, 0.25), rgba(6, 90, 105, 0.15)),
		linear-gradient(135deg, #0a6b7c 0%, #1493a5 100%);
	border: 1px solid rgba(255, 255, 255, 0.12);
	transition: transform 0.18s ease, filter 0.18s ease;
}

.home-feature-primary {
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 40%),
		linear-gradient(135deg, #065a69 0%, #0d7c8f 48%, #1aa6b8 100%);
	min-height: 190px;
}

.home-feature:hover {
	transform: translateY(-2px);
	filter: brightness(1.04);
	color: #fff;
	text-decoration: none;
}

.home-feature-label {
	font-size: 0.72rem;
	font-weight: 750;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.8;
}

.home-feature strong {
	font-family: var(--cc-display);
	font-size: 1.55rem;
	font-weight: 600;
	line-height: 1.15;
}

.home-feature span:last-child {
	font-size: 0.95rem;
	line-height: 1.45;
	opacity: 0.92;
	max-width: 28rem;
}

.home-panel {
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid var(--cc-line);
	border-radius: 16px;
	padding: 18px 18px 8px;
	box-shadow: var(--cc-shadow);
}

.home-panel-head {
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--cc-line);
}

.home-panel-head h3 {
	margin: 0 0 4px;
	font-family: var(--cc-display);
	font-size: 1.35rem;
	color: var(--cc-teal-deep);
}

.home-panel-head p {
	margin: 0;
	color: var(--cc-ink-soft);
	font-size: 0.94rem;
}

.home-tools {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px 18px;
}

.home-tool-col h4 {
	margin: 0 0 8px;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cc-teal);
}

.home-tool-col a,
.home-tool-locked {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 11px 10px;
	margin: 0 0 6px;
	border-radius: 10px;
	text-decoration: none;
	color: var(--cc-ink);
	border: 1px solid transparent;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.home-tool-col a:hover {
	background: var(--cc-sky);
	border-color: var(--cc-line);
	color: var(--cc-ink);
	text-decoration: none;
}

.home-tool-col a span,
.home-tool-locked span {
	font-weight: 750;
	color: var(--cc-teal-deep);
}

.home-tool-col a em,
.home-tool-locked em {
	font-style: normal;
	font-size: 0.86rem;
	color: var(--cc-ink-soft);
}

.home-tool-locked {
	opacity: 0.5;
	cursor: not-allowed;
}

.home-side {
	display: grid;
	gap: 14px;
}

.home-side-card {
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid var(--cc-line);
	border-radius: 16px;
	padding: 18px;
	box-shadow: var(--cc-shadow);
}

.home-side-muted {
	background: linear-gradient(180deg, #f3fbfb 0%, #eef6f8 100%);
}

.home-side-card h3 {
	margin: 0 0 8px;
	font-family: var(--cc-display);
	font-size: 1.25rem;
	color: var(--cc-teal-deep);
}

.home-side-lead {
	margin: 0 0 14px;
	color: var(--cc-ink-soft);
	font-size: 0.94rem;
	line-height: 1.5;
}

.home-flow {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: flow;
}

.home-flow li {
	counter-increment: flow;
	display: grid;
	grid-template-columns: 28px 1fr;
	gap: 10px;
	align-items: start;
	padding: 10px 0;
	border-top: 1px solid rgba(197, 221, 227, 0.7);
}

.home-flow li:first-child {
	border-top: 0;
	padding-top: 0;
}

.home-flow li::before {
	content: counter(flow);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: var(--cc-teal-deep);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 800;
}

.home-flow strong {
	display: block;
	color: var(--cc-teal-deep);
	font-size: 0.95rem;
}

.home-flow span {
	display: block;
	color: var(--cc-ink-soft);
	font-size: 0.86rem;
	line-height: 1.4;
}

.home-notes {
	margin: 0;
	padding-left: 1.1rem;
	color: var(--cc-ink-soft);
	font-size: 0.9rem;
	line-height: 1.5;
}

.home-notes li + li {
	margin-top: 6px;
}

@media (max-width: 991px) {
	.home-layout {
		grid-template-columns: 1fr;
	}

	.home-tools {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.home-top {
		flex-direction: column;
		align-items: flex-start;
	}

	.home-featured {
		grid-template-columns: 1fr;
	}

	.home-feature,
	.home-feature-primary {
		min-height: 0;
	}
}

@media (max-width: 1100px) {
	.kpi-row,
	.insight-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	body.cc-dashboard .app-root {
		grid-template-columns: 1fr;
	}

	.app-sidebar {
		position: fixed;
		inset: 0 auto 0 0;
		width: min(280px, 86vw);
		z-index: 40;
		transform: translateX(-105%);
		transition: transform 0.22s ease;
		box-shadow: 8px 0 24px rgba(0, 0, 0, 0.18);
	}

	body.sidebar-open .app-sidebar {
		transform: translateX(0);
	}

	.app-menu-btn {
		display: inline-block;
	}

	.chart-grid {
		grid-template-columns: 1fr;
	}

	.app-topbar {
		flex-wrap: wrap;
		align-items: center;
	}
}

@media (max-width: 640px) {
	.kpi-row,
	.insight-row {
		grid-template-columns: 1fr;
	}

	.app-content {
		padding: 14px 12px 28px;
	}
}
