*{
	box-sizing: border-box;
}
body{
	margin: 0;
	background: #eef2f7;
	color: #172033;
	font-family: Arial, sans-serif;
	font-size: 14px;
}
a{
	color: var(--color-accent,#2563eb);
	text-decoration: none;
}
button,
.button,
input[type="submit"],
input[type="button"]{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-height: 42px;
	border: 0;
	border-radius: 12px;
	background: var(--color-accent,#2563eb);
	color: #fff;
	padding: 0 18px;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}
button:hover,
.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover{
	background: #1d4ed8;
	color: #fff;
}
input,
select,
textarea{
	width: 100%;
	min-height: 42px;
	border: 1px solid #d7deea;
	border-radius: 12px;
	background: #fff;
	color: #172033;
	padding: 10px 12px;
	font: inherit;
}
textarea{
	min-height: 110px;
	resize: vertical;
}
label span{
	display: block;
	margin: 0 0 7px;
	color: #64748b;
	font-size: 12px;
	font-weight: 700;
}
table{
	width: 100%;
	border-collapse: collapse;
	background: #fff;
}
th,
td{
	border-bottom: 1px solid #e5eaf2;
	padding: 14px 12px;
	text-align: left;
	vertical-align: top;
}
th{
	color: #64748b;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .04em;
	background: #f8fafc;
}
small{
	color: #64748b;
}
.login-page{
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: linear-gradient(135deg,#edf4ff,#f8fafc);
}
.login-box{
	width: 100%;
	max-width: 430px;
	background: #fff;
	border: 1px solid #e5eaf2;
	border-radius: 24px;
	box-shadow: 0 24px 70px rgba(15,23,42,.12);
	padding: 30px;
}
.login-box h1{
	margin: 8px 0 22px;
	font-size: 28px;
}
.login-box label{
	display: block;
	margin-bottom: 14px;
}
.login-box button{
	width: 100%;
}
.login-box p{
	color: #64748b;
	line-height: 1.5;
}
.logo,
.brand{
	font-weight: 900;
	letter-spacing: -.04em;
	color: var(--color-accent,#2563eb);
	font-size: 22px;
}
.alert{
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fecaca;
	border-radius: 12px;
	padding: 12px;
	margin-bottom: 14px;
}
.success-box{
	background: #dcfce7;
	color: #166534;
	border: 1px solid #bbf7d0;
	border-radius: 12px;
	padding: 12px;
	line-height: 1.5;
	margin-bottom: 18px;
}
.app{
	display: grid;
	grid-template-columns: 1fr;
	min-height: 100vh;
}
aside{
	background: #101827;
	color: #dce7f7;
	padding: 24px 18px;
	overflow: auto;
}
.brand{
	color: #fff;
	margin-bottom: 24px;
}
.portfolio-select{
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 18px;
	padding: 14px;
	margin-bottom: 18px;
}
.portfolio-select span{
	display: block;
	color: #93a4ba;
	font-size: 12px;
	margin-bottom: 8px;
	text-transform: uppercase;
}
.portfolio-select a{
	display: block;
	color: #fff;
	padding: 7px 0;
}
nav a{
	display: flex;
	color: #cbd5e1;
	border-radius: 12px;
	padding: 12px 14px;
	margin-bottom: 4px;
}
nav a.active,
nav a:hover{
	background: var(--color-accent,#2563eb);
	color: #fff;
}
main{
	padding: 14px;
	min-width: 0;
}
header{
	display: block;
	background: #fff;
	border: 1px solid #e5eaf2;
	border-radius: 18px;
	padding: 16px;
	margin-bottom: 20px;
}
header h1{
	margin: 0;
	font-size: 24px;
	letter-spacing: -.03em;
}
header p{
	margin: 6px 0 0;
	color: #64748b;
}
.exit{
	display: inline-flex;
	margin-top: 12px;
	color: #64748b;
}
.cards{
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	margin-bottom: 18px;
}
.card,
.panel{
	background: #fff;
	border: 1px solid #e5eaf2;
	border-radius: 22px;
	box-shadow: 0 10px 30px rgba(15,23,42,.05);
}
.card{
	padding: 20px;
}
.card span{
	display: block;
	color: #64748b;
	margin-bottom: 10px;
}
.card strong{
	display: block;
	font-size: 28px;
	letter-spacing: -.04em;
	margin-bottom: 6px;
}
.card p{
	margin: 0;
	color: #64748b;
}
.panel{
	padding: 20px;
	margin-bottom: 18px;
	overflow: auto;
}
.panel h2{
	margin: 0 0 16px;
	font-size: 20px;
}
.grid-two{
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}
.toolbar,
.view-switch,
.filters{
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 18px;
}
.view-switch a{
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	border: 1px solid #d7deea;
	border-radius: 999px;
	background: #fff;
	color: #64748b;
	padding: 0 16px;
	margin: 0;
}
.view-switch a.active{
	border-color: var(--color-accent,#2563eb);
	background: var(--color-accent,#2563eb);
	color: #fff;
}
.filters input{
	max-width: none;
}
.filters select{
	max-width: none;
}
.tabs{
	display: flex;
	gap: 8px;
	margin-bottom: 14px;
	overflow: auto;
}
.tabs a{
	display: inline-flex;
	white-space: nowrap;
	border: 1px solid #d7deea;
	border-radius: 999px;
	background: #fff;
	padding: 10px 14px;
	color: #334155;
}
.badge{
	display: inline-flex;
	border-radius: 999px;
	background: #e0e7ff;
	color: #3730a3;
	padding: 5px 10px;
	font-size: 12px;
	font-weight: 700;
}
.badge.success{
	background: #dcfce7;
	color: #166534;
}
.badge.warning{
	background: #fef3c7;
	color: #92400e;
}
.badge.danger{
	background: #fee2e2;
	color: #991b1b;
}
.form-grid{
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}
.form-grid.single{
	grid-template-columns: 1fr;
}
.form-grid .wide{
	grid-column: 1 / -1;
}
.field-error{
	margin-top: 6px;
	color: #dc2626;
	font-size: 12px;
}
.bars div{
	display: grid;
	grid-template-columns: 170px 1fr 40px;
	gap: 10px;
	align-items: center;
	margin-bottom: 12px;
}
.bars span{
	color: #475569;
}
.bars em{
	height: 10px;
	border-radius: 999px;
	background: #e2e8f0;
	overflow: hidden;
}
.bars i{
	display: block;
	height: 100%;
	background: var(--color-accent,#2563eb);
	border-radius: 999px;
}
.notice-list article{
	border: 1px solid #e5eaf2;
	border-radius: 16px;
	background: #fff;
	padding: 14px;
	margin-bottom: 10px;
}
.notice-list p{
	color: #475569;
	line-height: 1.5;
}
.notice-list span{
	color: #94a3b8;
	font-size: 12px;
}
.chat{
	display: grid;
	gap: 12px;
	max-width: 720px;
}
.chat div{
	background: #f1f5f9;
	border-radius: 16px;
	padding: 14px;
}
.chat p{
	margin: 8px 0;
}
.chat .answer{
	background: var(--color-accent,#2563eb);
	color: #fff;
	margin-left: 40px;
}
.chat-form{
	display: grid;
	gap: 12px;
	max-width: 720px;
	margin-top: 18px;
}
.actions{
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.actions form{
	margin: 0;
}
.modal{
	display: none;
	position: fixed;
	z-index: 50;
	inset: 0;
	background: rgba(15,23,42,.55);
	padding: 20px;
	overflow: auto;
}
.modal.is-open{
	display: block;
}
.modal-window{
	position: relative;
	width: 100%;
	max-width: 860px;
	background: #fff;
	border-radius: 24px;
	padding: 24px;
	margin: 30px auto;
	box-shadow: 0 30px 90px rgba(15,23,42,.25);
}
.modal-window h2{
	margin: 0 0 18px;
}
.modal-close{
	font-weight: normal;
	font-size: 20px;
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	min-height: 36px;
	border-radius: 999px;
	padding: 0;
	background: #e2e8f0;
	color: #172033;
}
@media (min-width: 760px){
	main{
		padding: 24px;
	}
	header{
		display: flex;
		justify-content: space-between;
		align-items: center;
		border-radius: 24px;
		padding: 20px 24px;
	}
	header h1{
		font-size: 28px;
	}
	.exit{
		margin-top: 0;
	}
	.cards{
		grid-template-columns: 1fr 1fr;
	}
	.form-grid{
		grid-template-columns: repeat(2,1fr);
	}
	.filters input{
		max-width: 360px;
	}
	.filters select{
		max-width: 220px;
	}
}
@media (min-width: 1100px){
	.app{
		grid-template-columns: 280px 1fr;
	}
	aside{
		position: sticky;
		top: 0;
		height: 100vh;
	}
	.cards{
		grid-template-columns: repeat(3,1fr);
	}
	.dashboard-cards{
		grid-template-columns: repeat(6,1fr);
	}
	.grid-two{
		grid-template-columns: 1fr 1fr;
	}
}
