* {
	box-sizing: border-box;
}
body {
	margin: 0;
	background: #f5f7fb;
	color: #17223b;
	font: 14px system-ui, "Microsoft YaHei", sans-serif;
}
.app {
	max-width: 920px;
	margin: auto;
	padding: 40px 20px;
}
.access-page {
	min-height: 100vh;
	display: grid;
	place-items: center;
	padding: 20px;
}
.access-card {
	width: min(100%, 380px);
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 28px;
	box-shadow: 0 10px 30px #1e293b12;
}
.access-card h1 {
	margin: 0 0 8px;
	text-align: center;
}
.access-card p {
	color: #64748b;
	margin: 0 0 18px;
	text-align: center;
}
.captcha-image {
	display: block;
	width: 210px;
	height: 58px;
	border-radius: 8px;
	margin-bottom: 8px;
}
.access-card button[type="submit"] {
	margin-top: 18px;
}
.hero {
	margin-bottom: 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-direction: column;
	text-align: center;
}
.hero h1 {
	font-size: 30px;
	margin: 0 0 8px;
}
.brand-logo {
	width: 52px;
	height: 52px;
	object-fit: cover;
	border: 1px solid #d9e5f4;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 6px 16px #1e3a5f18;
}
.access-card .brand-logo {
	display: block;
	margin: 0 auto 16px;
}
.hero p,
.hint,
.status {
	color: #64748b;
	line-height: 1.6;
	margin-top: 10px;
}
.hero p {
	margin: 0;
}
.grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 20px;
	box-shadow: 0 5px 20px #1e293b0a;
}
.wide {
	grid-column: 1/-1;
}
h2 {
	font-size: 16px;
	margin: 0 0 16px;
}
label {
	display: block;
	font-weight: 600;
	margin: 12px 0 6px;
}
textarea,
input,
select {
	width: 100%;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	padding: 11px;
	font: inherit;
	background: #fff;
}
textarea {
	min-height: 120px;
	resize: vertical;
}
.row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 30px;
}
.choice {
	display: flex;
	gap: 8px;
	align-items: center;
	border: 1px solid #dbe4f0;
	border-radius: 10px;
	padding: 10px;
	margin-top: 8px;
	cursor: pointer;
}
.choice input {
	position: absolute;
	opacity: 0;
}
.slot-order {
	display: inline-grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border: 1px solid #94a3b8;
	border-radius: 50%;
	color: #64748b;
	font-weight: 700;
	flex: none;
}
.slot-order.active {
	background: #2463eb;
	border-color: #2463eb;
	color: #fff;
}
button,
.button-link {
	border: 0;
	border-radius: 10px;
	padding: 11px 16px;
	background: #2463eb;
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
}
.button-link {
	display: inline-block;
	margin: 0;
}
[hidden] {
	display: none !important;
}
button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}
.cookie-actions {
	display: flex;
	gap: 8px;
	align-items: center;
}
.primary {
	background: #2463eb;
	color: #fff;
	text-align: center;
	height: 40px;
}
.secondary {
	background: #e9effa;
	color: #2463eb;
}
.ok {
	color: #16803c;
}
.bad {
	color: #c13838;
}
.tasks {
	display: grid;
	gap: 14px;
}
.logs {
	display: grid;
	gap: 14px;
	max-width: 980px;
	margin: 0 auto;
}
.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	max-width: 980px;
	margin: 20px auto 0;
}
.pagination button {
	padding: 8px 14px;
	border: 1px solid #cbd9e8;
	border-radius: 8px;
	background: #fff;
	color: #254b73;
	cursor: pointer;
}
.pagination button:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}
.pagination span {
	color: #5d7188;
	font-size: 13px;
}
.log-entry {
	overflow: hidden;
	background: #fff;
	border: 1px solid #dbe5f2;
	border-radius: 14px;
	box-shadow: 0 8px 26px #162d4a0f;
}
.log-header {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 54px;
	padding: 13px 18px;
	background: #122b49;
	color: #eaf3ff;
}
.method-pill,
.status-pill {
	border: 1px solid #ffffff2b;
	border-radius: 5px;
	padding: 4px 8px;
	font: 800 11px ui-monospace, SFMono-Regular, Consolas, monospace;
	letter-spacing: 0.6px;
}
.method-pill {
	background: #2d5c98;
	color: #dcecff;
}
.method-pill.post {
	background: #197a58;
	color: #e2fff3;
}
.status-pill {
	margin-left: auto;
	background: #732b40;
	color: #ffe8ee;
}
.status-pill.success {
	background: #1c7256;
	color: #e0fff2;
}
.log-header time {
	color: #bdd0e8;
	font-variant-numeric: tabular-nums;
	font-size: 12px;
}
.log-endpoint {
	margin: 0;
	padding: 16px 18px 13px;
	border-bottom: 1px solid #edf1f7;
	color: #183a61;
	font: 13px ui-monospace, SFMono-Regular, Consolas, monospace;
	line-height: 1.55;
	overflow-wrap: anywhere;
}
.log-meta-grid {
	background: #fbfcff;
}
.log-meta {
	display: flex;
	align-items: baseline;
	gap: 12px;
	padding: 11px 18px;
}
.log-meta span {
	color: #8494a8;
	font-size: 11px;
	letter-spacing: 0.3px;
}
.log-meta strong {
	overflow: hidden;
	color: #304961;
	font-size: 13px;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.log-response,
.log-request {
	margin: 0;
	border-top: 1px solid #e9eef5;
	background: #fff;
}
.log-response summary,
.log-request summary {
	display: flex;
	align-items: center;
	padding: 13px 18px;
	cursor: pointer;
	color: #405d7b;
	font-weight: 700;
	list-style: none;
}
.log-response summary::-webkit-details-marker,
.log-request summary::-webkit-details-marker {
	display: none;
}
.log-response summary:after,
.log-request summary:after {
	content: "";
	width: 7px;
	height: 7px;
	margin-left: auto;
	border-top: 1.5px solid #7e9ab8;
	border-right: 1.5px solid #7e9ab8;
	transform: rotate(45deg);
	transition: transform 0.18s ease;
}
.log-response[open] summary:after,
.log-request[open] summary:after {
	transform: rotate(135deg);
}
.log-response[open] summary,
.log-request[open] summary {
	border-bottom: 1px solid #e9eef5;
}
.log-response pre,
.log-request pre {
	max-height: 320px;
	overflow: auto;
	margin: 0;
	padding: 14px 18px;
	background: #f6f8fb;
	color: #38506c;
	font: 12px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
	white-space: pre-wrap;
}
.task {
	position: relative;
	overflow: hidden;
	background: #fff;
	border: 1px solid #dbe7f5;
	border-radius: 14px;
	box-shadow: 0 7px 18px #1e3a5f12;
	padding: 0;
}
.task:before,
.task:after {
	content: "";
	position: absolute;
	top: 76px;
	width: 16px;
	height: 16px;
	background: #f5f7fb;
	border-radius: 50%;
	z-index: 2;
}
.task:before {
	left: -8px;
}
.task:after {
	right: -8px;
}
.ticket-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 13px 15px;
	background: linear-gradient(120deg, #0c74b8, #38a1dd);
	color: #fff;
}
.ticket-title {
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 1px;
}
.ticket-sub {
	font-size: 11px;
	opacity: 0.82;
	margin-top: 3px;
}
.ticket-state {
	border: 1px solid #ffffff99;
	border-radius: 99px;
	padding: 4px 9px;
	font-size: 12px;
	font-weight: 700;
	background: #ffffff1f;
}
.task.success .ticket-head {
	background: linear-gradient(120deg, #16885b, #3fb77e);
}
.task.failed .ticket-head,
.task.error .ticket-head {
	background: linear-gradient(120deg, #bf3a45, #e66b73);
}
.ticket-body {
	padding: 14px 15px 12px;
}
.ticket-message {
	font-weight: 750;
	color: #17324d;
	margin-bottom: 9px;
}
.task-details {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px 14px;
	padding-top: 10px;
	border-top: 1px dashed #b8c9d9;
	line-height: 1.45;
	font-size: 13px;
}
.task-details .wide {
	grid-column: 1/-1;
}
.task-details .emphasis {
	font-weight: 700;
}
.task-label {
	display: inline-block;
	width: 64px;
	color: #71869a;
	font-size: 12px;
}
.ticket-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 11px;
	padding-top: 9px;
	border-top: 1px dashed #b8c9d9;
	color: #8a9bac;
	font-size: 11px;
}
.ticket-foot button {
	margin: 0;
	padding: 7px 10px;
	font-size: 12px;
}
.task.success {
	border-color: #a6d9bf;
}
.task.failed,
.task.error {
	border-color: #f0b5bb;
}
.w-full {
	width: 100%;
}
@media (max-width: 650px) {
	.app {
		padding: 24px 14px;
	}
	.grid {
		grid-template-columns: 1fr;
	}
	.wide {
		grid-column: auto;
	}
	.row {
		grid-template-columns: 1fr;
	}
	.task-details {
		grid-template-columns: 1fr;
	}
	.hero {
		flex-direction: column;
	}
	.log-header {
		flex-wrap: wrap;
		gap: 8px;
		padding: 13px 14px;
	}
	.log-meta-grid {
		grid-template-columns: 1fr;
	}
	.log-meta.desktop-only {
		display: none;
	}
}
