/* AILYS Lens 管理画面(管理画面専用。フロントには読み込まれない) */

.ailens-wrap {
	max-width: 960px;
}

/* 0. ヘッダー行(ロゴ+週次レポートトグル+Doctor導線) */
.ailens-header {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	padding-top: 10px;
}

.ailens-header h1 {
	margin: 0;
	padding: 0;
}

.ailens-weekly-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: 16px;
}

.ailens-weekly-toggle-label {
	font-size: 12px;
	color: #0b0b0b;
}

.ailens-switch {
	position: relative;
	width: 28px;
	height: 16px;
	border: none;
	border-radius: 8px;
	background: #8c8f94;
	cursor: pointer;
	padding: 0;
	flex: none;
	transition: background 0.15s ease;
}

.ailens-switch.is-on {
	background: #1d2327;
}

.ailens-switch-knob {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #fff;
	transition: left 0.15s ease;
}

.ailens-switch.is-on .ailens-switch-knob {
	left: 14px;
}

.ailens-switch:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 1px;
}

.ailens-doctor-cta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 0 auto;
	font-size: 12px;
	color: #0b0b0b;
}

.ailens-doctor-cta img {
	height: 25px;
	width: auto;
	display: block;
}

.ailens-card {
	background: #fcfcfb;
	border: 1px solid rgba(11, 11, 11, 0.1);
	border-radius: 8px;
	padding: 20px 24px;
	margin-top: 16px;
}

/* 1. ヒーロー */
.ailens-hero {
	font-size: 18px;
	color: #52514e;
}

.ailens-hero-number {
	font-size: 52px;
	font-weight: 600;
	color: #0b0b0b;
	line-height: 1.1;
	padding: 0 6px;
}

.ailens-hero-zero {
	font-size: 26px;
	font-weight: 600;
	color: #0b0b0b;
}

.ailens-hero-hint {
	margin: 8px 0 0;
	font-size: 13px;
	color: #52514e;
}

.ailens-notice {
	margin-top: 12px;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 13px;
}

.ailens-notice-warn {
	background: #fdf5e6;
	border: 1px solid #fab219;
	color: #0b0b0b;
}

.ailens-notice-warn .dashicons {
	color: #b07800;
}

/* 2. カテゴリカード */
.ailens-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin-top: 16px;
}

.ailens-cards .ailens-card {
	margin-top: 0;
}

.ailens-stat-label {
	font-size: 14px;
	font-weight: 600;
	color: #0b0b0b;
}

.ailens-stat-desc {
	font-size: 12px;
	color: #898781;
	margin-top: 2px;
}

.ailens-stat-value {
	font-size: 36px;
	font-weight: 600;
	color: #0b0b0b;
	margin-top: 8px;
	line-height: 1.1;
}

.ailens-delta {
	font-size: 12px;
	margin-top: 4px;
}

.ailens-delta-up {
	color: #006300;
}

.ailens-delta-down {
	color: #d03b3b;
}

/* 3. グラフ */
.ailens-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.ailens-card h2 {
	margin: 0 0 12px;
	font-size: 15px;
}

.ailens-periods {
	display: flex;
	gap: 4px;
}

.ailens-period {
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	text-decoration: none;
	color: #52514e;
}

.ailens-period:hover {
	background: rgba(11, 11, 11, 0.05);
}

.ailens-period-current {
	background: #0b0b0b;
	color: #fcfcfb;
	font-weight: 600;
}

.ailens-chart {
	width: 100%;
	height: auto;
	display: block;
	margin-top: 8px;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.ailens-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin-top: 10px;
	font-size: 12px;
	color: #52514e;
}

.ailens-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ailens-swatch {
	width: 10px;
	height: 10px;
	border-radius: 3px;
	display: inline-block;
}

/* 4-5. テーブル */
.ailens-table {
	margin-top: 4px;
}

.ailens-table .ailens-num {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.ailens-footnote-ref {
	text-decoration: none;
}

.ailens-footnotes {
	margin: 10px 0 0;
	font-size: 12px;
	color: #52514e;
}

.ailens-footnotes li {
	margin: 2px 0;
}

/* 6-7. 注記・フッター */
.ailens-notes ul {
	margin: 0;
	color: #52514e;
	font-size: 13px;
	list-style: disc;
	padding-left: 18px;
}

.ailens-muted {
	color: #898781;
}

.ailens-empty {
	margin: 24px 0;
	text-align: center;
}

.ailens-footer {
	margin: 24px 0 8px;
	font-size: 12px;
	color: #898781;
}

.ailens-footer a {
	color: #52514e;
}

/* インポート進捗 */
.ailens-progress {
	height: 10px;
	background: #e1e0d9;
	border-radius: 999px;
	overflow: hidden;
	margin: 8px 0 16px;
	max-width: 480px;
}

.ailens-progress-bar {
	height: 100%;
	background: #2a78d6;
	border-radius: 999px;
}

/* ヒーローの主役2数(週次レポートと同一語彙) */
.ailens-hero-reading {
	margin: 10px 0 0;
	font-size: 13px;
	color: #52514e;
}
