.maken-client-login,
.maken-client-portal {
	position: relative;
	z-index: 2;
}

.maken-client-login,
.maken-client-portal {
	--maken-ink: #181d23;
	--maken-blue: #0058e6;
	--maken-blue-dark: #0045b5;
	--maken-text: #575a5f;
	--maken-muted: #96989b;
	--maken-border: #eaeaeb;
	--maken-surface: #ffffff;
	--maken-soft: #f6f8fb;
	box-sizing: border-box;
	color: var(--maken-text);
	font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 15px;
	line-height: 1.6;
	max-width: 1180px;
	margin: 32px auto;
	padding: 0 20px 48px;
}

.maken-client-portal h2,
.maken-client-portal h3,
.maken-client-portal h4,
.maken-client-login h2 {
	color: var(--maken-ink);
	font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.maken-client-login {
	background: var(--maken-surface);
	border: 1px solid var(--maken-border);
	border-radius: 16px;
	box-shadow: 0 18px 50px rgba(24, 29, 35, 0.08);
	margin: 56px auto;
	max-width: 480px;
	padding: 38px;
}

.maken-client-login h2 {
	font-size: 28px;
	margin: 0 0 24px;
}

.maken-client-login label {
	color: var(--maken-ink);
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
}

.maken-client-login input {
	background: #fff;
	border: 1px solid #d5d5d7;
	border-radius: 6px;
	color: var(--maken-ink);
	font: inherit;
	outline: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.maken-client-login input:focus {
	border-color: var(--maken-blue);
	box-shadow: 0 0 0 3px rgba(0, 88, 230, .14);
}

.maken-client-login button,
.maken-client-portal button {
	background: var(--maken-blue);
	border: 0;
	border-radius: 6px;
	color: #fff;
	font: 600 14px/1.2 Montserrat, sans-serif;
	transition: background .2s ease, transform .2s ease;
}

.maken-project-detail-row td { background: #fbfcfe; padding-top: 0; }
.maken-project-detail-row details summary { color: var(--maken-blue); cursor: pointer; font-size: 12px; font-weight: 600; padding: 10px 0; }
.maken-project-detail { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 12px 0 18px; }
.maken-project-detail div { background: #fff; border: 1px solid var(--maken-border); border-radius: 8px; padding: 10px 12px; }
.maken-project-detail span, .maken-project-detail strong { display: block; }
.maken-project-detail span { color: var(--maken-muted); font-size: 11px; }
.maken-project-detail strong { color: var(--maken-ink); font-size: 13px; margin-top: 3px; }

.maken-client-login button:hover,
.maken-client-portal button:hover {
	background: var(--maken-blue-dark);
	transform: translateY(-1px);
}

.maken-login-help { font-size: 13px; margin-bottom: 0; text-align: center; }
.maken-login-help a { color: var(--maken-blue); text-decoration: none; }
.maken-login-help a:hover { text-decoration: underline; }

.maken-client-portal > h2 {
	font-size: 34px;
	margin: 0 0 18px;
}

.maken-client-portal > p,
.maken-client-portal nav {
	margin-bottom: 24px;
}

.maken-client-portal nav {
	border-bottom: 1px solid var(--maken-border);
	padding-bottom: 18px;
}

.maken-client-portal nav a {
	color: var(--maken-blue);
	font-size: 13px;
	font-weight: 600;
	margin-right: 16px;
	text-decoration: none;
}

.maken-client-portal nav a:hover { color: var(--maken-blue-dark); }

.maken-dashboard,
.maken-projects,
.maken-client-portal > #documents,
.maken-client-portal > #documents-list,
.maken-client-portal > #tasks,
.maken-client-portal > #updates,
.maken-client-portal > #messages {
	background: var(--maken-surface);
	border: 1px solid var(--maken-border);
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(24, 29, 35, .05);
	margin: 18px 0;
	padding: 24px;
}

.maken-dashboard-summary {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.maken-dashboard-summary p {
	background: var(--maken-soft);
	border-left: 4px solid var(--maken-blue);
	border-radius: 8px;
	margin: 0;
	padding: 18px;
}

.maken-dashboard-summary strong {
	color: var(--maken-ink);
	display: block;
	font-size: 30px;
	line-height: 1.1;
}
.maken-deadlines { border-top: 1px solid var(--maken-border); margin-top: 24px; padding-top: 18px; }
.maken-deadlines h4 { margin: 0 0 10px; }
.maken-deadlines ul { list-style: none; margin: 0; padding: 0; }
.maken-deadlines li { align-items: center; border-bottom: 1px solid var(--maken-border); display: flex; gap: 12px; padding: 10px 0; }
.maken-deadline-date { color: var(--maken-blue); font-size: 12px; font-weight: 700; min-width: 42px; }
.maken-deadlines li span:nth-child(2) { display: flex; flex: 1; flex-direction: column; }
.maken-deadlines small { color: var(--maken-muted); }
.maken-deadlines em { color: var(--maken-muted); font-size: 11px; font-style: normal; }

.maken-client-portal table {
	border-collapse: collapse;
	width: 100%;
}

.maken-client-portal th,
.maken-client-portal td {
	border-bottom: 1px solid var(--maken-border);
	padding: 13px 12px;
	text-align: left;
}

.maken-client-portal th {
	color: var(--maken-ink);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.maken-status {
	background: #eef4ff;
	border-radius: 999px;
	color: var(--maken-blue-dark);
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
}

.maken-status-approved,
.maken-status-completed { background: #e8f7ef; color: #18794e; }
.maken-status-rejected { background: #fff0f0; color: #b42318; }
.maken-task-status-in_progress { background: #fff6df; color: #9a6700; }
.maken-task-status-completed { background: #e8f7ef; color: #18794e; }
.maken-progress { background: #e9edf3; border-radius: 999px; height: 8px; margin: 0 0 5px; min-width: 120px; overflow: hidden; }
.maken-progress span { background: var(--maken-blue); border-radius: inherit; display: block; height: 100%; }
.maken-section-heading { align-items: center; display: flex; justify-content: space-between; }
.maken-section-heading h3 { margin-bottom: 3px; }
.maken-section-heading p { margin-top: 0; }
.maken-section-heading .maken-link-button { background: transparent; color: var(--maken-blue); font-size: 12px; min-height: auto; padding: 0; }
.maken-section-icon { align-items: center; background: #e8f7ef; border-radius: 50%; color: #18794e; display: flex; font-size: 20px; height: 42px; justify-content: center; width: 42px; }
.maken-task-list { display: grid; gap: 14px; }
.maken-task-card { background: var(--maken-soft); border: 1px solid var(--maken-border); border-left: 4px solid var(--maken-blue); border-radius: 10px; padding: 18px; }
.maken-task-top { align-items: flex-start; display: flex; gap: 16px; justify-content: space-between; }
.maken-task-top h4 { font-size: 17px; margin: 0 0 4px; }
.maken-task-top small { color: var(--maken-muted); }
.maken-task-description { color: var(--maken-text); margin: 15px 0; }
.maken-task-controls { align-items: center; display: flex; gap: 10px; margin-bottom: 10px; }
.maken-task-controls select { flex: 1; }
.maken-empty-state { align-items: center; background: var(--maken-soft); border-radius: 10px; color: var(--maken-muted); display: flex; gap: 10px; padding: 18px; }
.maken-empty-state span { color: #18794e; font-size: 20px; }
.maken-profile-card { align-items: center; background: var(--maken-ink); border-radius: 14px; color: #fff; display: flex; gap: 30px; justify-content: space-between; margin: 18px 0; padding: 24px; }
.maken-profile-card h3, .maken-profile-card p { color: #fff; margin: 4px 0; }
.maken-profile-company { background: rgba(255, 255, 255, .1); border-radius: 10px; display: flex; flex-direction: column; min-width: 230px; padding: 14px 16px; }
.maken-eyebrow { color: rgba(255, 255, 255, .65); display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.maken-profile-company strong { margin-top: 4px; }
.maken-profile-company small { color: rgba(255, 255, 255, .7); margin-top: 3px; }

.maken-client-portal ul { margin: 0; padding-left: 20px; }
.maken-client-portal li { margin: 0 0 14px; }
.maken-client-portal form { margin-top: 10px; }
.maken-client-portal textarea,
.maken-client-portal select {
	border: 1px solid #d5d5d7;
	border-radius: 6px;
	font: inherit;
	padding: 9px 10px;
}
.maken-client-portal textarea { display: block; min-height: 80px; width: min(100%, 520px); }

.maken-chat-widget { position: relative; }
.maken-chat-toggle { align-items: center; border-radius: 999px !important; bottom: 24px; box-shadow: 0 12px 28px rgba(0, 88, 230, .25); display: inline-flex; gap: 8px; position: fixed; right: 24px; z-index: 20; }
.maken-chat-panel { background: #fff; border: 1px solid var(--maken-border); border-radius: 14px; bottom: 82px; box-shadow: 0 20px 60px rgba(24, 29, 35, .18); display: flex; flex-direction: column; max-height: min(620px, calc(100vh - 120px)); overflow: hidden; position: fixed; right: 24px; width: min(390px, calc(100vw - 32px)); z-index: 19; }
.maken-chat-panel[hidden] { display: none; }
.maken-chat-header { align-items: center; background: var(--maken-ink); color: #fff; display: flex; justify-content: space-between; padding: 16px 18px; }
.maken-chat-close { background: transparent !important; color: #fff !important; font-size: 24px !important; min-height: auto !important; padding: 0 !important; }
.maken-chat-body { flex: 1; overflow-y: auto; padding: 16px; }
.maken-chat-body ul { list-style: none; padding: 0; }
.maken-chat-body li { background: var(--maken-soft); border-radius: 10px; margin-bottom: 12px; padding: 11px 13px; }
.maken-chat-body p { margin: 4px 0; }
.maken-chat-body small { color: var(--maken-muted); font-size: 11px; }
.maken-chat-form { border-top: 1px solid var(--maken-border); padding: 14px; }
.maken-chat-form select, .maken-chat-form textarea { margin-bottom: 9px; width: 100%; }
.maken-chat-form textarea { min-height: 70px; }

.maken-file-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.maken-file-card { align-items: flex-start; background: var(--maken-soft); border: 1px solid var(--maken-border); border-radius: 10px; display: flex; gap: 13px; padding: 14px; }
.maken-file-icon { align-items: center; background: #fff; border-radius: 10px; display: flex; flex: 0 0 44px; font-size: 24px; height: 44px; justify-content: center; }
.maken-file-info { min-width: 0; }
.maken-file-info strong { color: var(--maken-ink); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.maken-file-info small { color: var(--maken-muted); display: block; font-size: 11px; margin: 3px 0 9px; }
.maken-file-actions { display: flex; gap: 12px; }
.maken-file-actions a { color: var(--maken-blue); font-size: 12px; font-weight: 600; text-decoration: none; }

@media (max-width: 700px) {
	.maken-chat-toggle { bottom: 16px; right: 16px; }
	.maken-chat-panel { bottom: 72px; right: 16px; }
}

@media (max-width: 700px) {
	.maken-client-login,
	.maken-client-portal { margin: 24px auto; padding-left: 14px; padding-right: 14px; }
	.maken-client-login { padding: 24px; }
	.maken-dashboard-summary { grid-template-columns: 1fr; }
	.maken-client-portal table { display: block; overflow-x: auto; }
	.maken-task-top, .maken-task-controls { align-items: stretch; flex-direction: column; }
	.maken-profile-card { align-items: stretch; flex-direction: column; }
	.maken-profile-company { min-width: 0; }
	.maken-project-detail { grid-template-columns: 1fr; }
}

.maken-client-login input,
.maken-client-login button,
.maken-client-portal input,
.maken-client-portal textarea,
.maken-client-portal select,
.maken-client-portal button {
	box-sizing: border-box;
	max-width: 100%;
	pointer-events: auto !important;
	user-select: text !important;
}

.maken-client-login input {
	display: block;
	width: min(100%, 420px);
	min-height: 44px;
	padding: 10px 12px;
	cursor: text !important;
}

.maken-client-login button,
.maken-client-portal button {
	min-height: 40px;
	padding: 8px 16px;
	cursor: pointer !important;
}
