/* ========== 12-chat-config.css ========== */
/* Chat Settings page + Chat Config memory panel */
/* Visual style aligned with memory.css / memory-edit.html */

/* ===================================================
   CHAT SETTINGS PAGE — #screen-chat-settings
   =================================================== */

/* --- Toggle override: neutral dark to match gray-white scheme --- */
#screen-chat-settings .toggle {
	width: 51px;
	height: 31px;
	min-width: 51px;
	background: #e5e5ea;
	border-radius: 15.5px;
	position: relative;
	cursor: pointer;
	transition: background .25s ease;
	flex-shrink: 0;
}

#screen-chat-settings .toggle .toggle-knob {
	width: 27px;
	height: 27px;
	border-radius: 50%;
	background: #fff;
	position: absolute;
	top: 2px;
	left: 2px;
	transition: transform .25s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .06);
}

#screen-chat-settings .toggle.on {
	background: #1d1d1f;
}

#screen-chat-settings .toggle.on .toggle-knob {
	transform: translateX(20px);
}

#screen-chat-settings .toggle:active {
	opacity: .8;
}

/* Schedule Aware — disabled state when Time Awareness is off */
#screen-chat-settings .toggle.cs-toggle-disabled {
	background: #e5e5ea;
	opacity: .4;
	pointer-events: none;
}
#screen-chat-settings .toggle.cs-toggle-disabled .toggle-knob {
	transform: translateX(0);
}
.cs-row-disabled .cs-row-label,
.cs-row-disabled .cs-row-sublabel {
	opacity: .4;
}
.cs-schedule-aware-hint {
	padding: 4px 16px 12px;
	font-size: 12px;
	color: #ff9500;
	line-height: 1.4;
}

/* --- Number inputs (reply count) --- */
#screen-chat-settings .cs-num-input {
	text-align: right;
	max-width: 64px;
	font-size: 15px;
	font-weight: 500;
	color: #1d1d1f;
	background: transparent;
	border: none;
	outline: none;
	padding: 0;
	-moz-appearance: textfield;
}

#screen-chat-settings .cs-num-input::-webkit-inner-spin-button,
#screen-chat-settings .cs-num-input::-webkit-outer-spin-button {
	opacity: 1;
}

/* --- Hint text below sections --- */
.cs-hint {
	padding: 6px 16px 20px;
	font-size: 12px;
	color: #8e8e93;
	line-height: 1.5;
	letter-spacing: .1px;
}

/* --- Range slider row --- */
.cs-range-row {
	gap: 12px;
}

.cs-range-control {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
	max-width: 180px;
	justify-content: flex-end;
}

.cs-range {
	-webkit-appearance: none;
	appearance: none;
	flex: 1;
	height: 4px;
	background: #e5e5ea;
	border-radius: 2px;
	outline: none;
	margin: 0;
}

.cs-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid #e0e0e0;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
	cursor: pointer;
	transition: box-shadow .15s;
}

.cs-range::-webkit-slider-thumb:active {
	box-shadow: 0 1px 6px rgba(0, 0, 0, .18);
}

.cs-range::-moz-range-thumb {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid #e0e0e0;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
	cursor: pointer;
}

.cs-range::-moz-range-track {
	height: 4px;
	background: #e5e5ea;
	border-radius: 2px;
	border: none;
}

.cs-range-value {
	font-size: 15px;
	font-weight: 600;
	color: #1d1d1f;
	min-width: 24px;
	text-align: center;
	flex-shrink: 0;
}

/* --- Secondary button (Force Publish) --- */
.cs-btn-secondary {
	display: block;
	width: calc(100% - 32px);
	margin: 4px 16px 0;
	padding: 12px 0;
	background: #fff !important;
	color: #1d1d1f !important;
	border: 1px solid #e0e0e0 !important;
	border-radius: 12px !important;
	font-size: 15px;
	font-weight: 500;
	text-align: center;
	cursor: pointer;
	transition: all .15s;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
}

.cs-btn-secondary:active {
	background: #f5f5f5 !important;
	transform: scale(.98);
}

/* --- Danger button override for chat-settings --- */
#screen-chat-settings .form-btn.danger {
	margin: 0 16px;
	width: calc(100% - 32px);
	border-radius: 12px;
	padding: 14px 0;
	font-size: 15px;
	font-weight: 600;
}

/* --- Section header alignment override --- */
#screen-chat-settings .section-header {
	font-size: 12px;
	color: #8e8e93;
	font-weight: 600;
	letter-spacing: .5px;
	text-transform: uppercase;
	padding: 8px 16px 8px;
	margin: 0;
}

/* --- Form group override: card style matching memory-edit --- */
#screen-chat-settings .form-group {
	margin: 0 16px 0;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid #ececec;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .03);
}

#screen-chat-settings .form-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 13px 16px;
	min-height: 44px;
}

#screen-chat-settings .form-label {
	font-size: 15px;
	font-weight: 400;
	color: #1d1d1f;
	flex-shrink: 0;
	margin-right: 12px;
}

#screen-chat-settings .form-select {
	font-size: 15px;
	color: #8e8e93;
	background: transparent;
	border: none;
	outline: none;
	text-align: right;
	padding: 0;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	padding-right: 16px;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23c7c7cc' fill='none' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right center;
	background-size: 10px 6px;
}


/* ===================================================
   CONFIG MEMORY PANEL (used in chat-config screen)
   =================================================== */

.config-summary-bar {
	margin: 0 16px 16px;
	background: #fff;
	border-radius: 14px;
	padding: 16px;
	display: flex;
	align-items: center;
	gap: 14px;
	border: 1px solid #ececec;
}

.config-summary-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: #f2f2f7;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.config-summary-icon svg {
	width: 20px;
	height: 20px;
	stroke: #3a3a3c;
	fill: none;
	stroke-width: 1.5;
}

.config-summary-info {
	flex: 1;
}

.config-summary-info .csi-title {
	font-size: 15px;
	font-weight: 600;
	color: #1d1d1f;
}

.config-summary-info .csi-sub {
	font-size: 12px;
	color: #8e8e93;
	margin-top: 2px;
}

.config-mem-list {
	margin: 0 16px 16px;
}

.config-mem-item {
	background: #fff;
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 8px;
	border: 1px solid #ececec;
	cursor: pointer;
	transition: transform .12s;
}

.config-mem-item:active {
	transform: scale(.98);
}

.config-mem-item .cmi-title {
	font-size: 14px;
	font-weight: 600;
	color: #1d1d1f;
	margin-bottom: 4px;
}

.config-mem-item .cmi-text {
	font-size: 12px;
	color: #8e8e93;
	line-height: 1.4;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
}

.config-mem-item .cmi-date {
	font-size: 11px;
	color: #c7c7cc;
	margin-top: 6px;
}

/* ===== Config Memory Section Header ===== */
.cfg-mem-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border-bottom: 1px solid #f2f2f7;
}

.cfg-mem-section-header span {
	font-size: 14px;
	font-weight: 600;
	color: #1d1d1f;
}

.cfg-mem-section-header .cfg-mem-count {
	font-size: 12px;
	color: #8e8e93;
	font-weight: 400;
}

/* ===== Config Memory Type Tabs ===== */
.cfg-mem-type-tabs {
	display: flex;
	margin: 0 16px 12px;
	background: #e5e5ea;
	border-radius: 8px;
	padding: 2px;
}

.cfg-mem-type-tab {
	flex: 1;
	padding: 7px 10px;
	text-align: center;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all .2s;
	color: #8e8e93;
}

.cfg-mem-type-tab.active {
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
	color: #1d1d1f;
	font-weight: 600;
}
