.window-base {
	width: 100%;
	height: 100%;
	background: transparent;
}

.chat-header {
	padding: 8px 16px;
	background: var(--bg-elevated);
	border-bottom: 1px solid var(--border-subtle);
	font-weight: 500;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.chat-messages {
	flex: 1;
	overflow-y: auto;
	display: flex;
	flex-direction: column-reverse;
}

.chat-messages-list {
	flex: 1 0 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.message {
	display: flex;
	gap: 12px;
}

.message-avatar {
	width: 36px;
	height: 36px;
	border-radius: var(--radius-full);
	background: var(--bg-hover);
	flex-shrink: 0;
}

.message-body {
	flex: 1;
	min-width: 0;
}

.message-header {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 4px;
}

.message-name {
	font-weight: 500;
	color: var(--text-primary);
}

.message-time {
	font-size: 11px;
	color: var(--text-faint);
}

.message-content {
	color: var(--text-secondary);
	line-height: 1.5;
	word-break: break-word;
}

.message-edited {
	font-size: 10px;
	color: var(--text-faint);
}

.chat-input {
	padding: 12px 16px;
	background: var(--bg-elevated);
	border-top: 1px solid var(--border-subtle);
}

.chat-input textarea {
	width: 100%;
	padding: 10px 12px;
	resize: none;
	max-height: 25lh;
	overflow-y: hidden;
	box-sizing: border-box;
	line-height: 1.5;
	height: auto;
	min-height: 2lh;
}

.theatre-notice {
	padding: 16px;
	text-align: center;
	color: var(--text-muted);
	font-style: italic;
}

.profile-banner {
	height: 145px;
	background: linear-gradient(135deg, var(--bg-overlay) 0%, var(--bg-hover) 100%);
	background-size: cover;
	background-position: center;
	cursor: pointer;
}

.profile-info {
	padding: 16px 24px;
	flex: 1;
}

.profile-avatar-wrap {
	margin-top: -48px;
	margin-bottom: 12px;
}

.profile-avatar {
	width: 96px;
	height: 96px;
	border-radius: var(--radius-full);
	background: var(--bg-hover);
	border: 3px solid var(--bg-surface);
	overflow: hidden;
}

.profile-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
    border-radius: var(--radius-full);

}

.profile-name {
	font-size: 24px;
	display: flex;
	font-weight: 500;
	user-select: text;
	margin-bottom: 4px;
}

.profile-tag {
	color: var(--text-faint);
	margin-bottom: 12px;
}

.profile-pin {
	font-family: var(--font-mono);
	color: var(--text-faint);
	font-size: 12px;
	margin-bottom: 24px;
}

.profile-actions {
	display: flex;
	gap: 8px;
}

.status-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: var(--radius-sm);
	font-size: 12px;
	margin-bottom: 12px;
}

.status-AVAIL {
	background: var(--success);
	color: var(--success-text);
	height: 1.5lh;
}

.status-TBD {
	background: var(--warning);
	color: var(--warning-text);
	height: 1.5lh;
}

.status-NEGL {
	background: var(--danger);
	color: var(--danger-text);
	height: 1.5lh;
}

.welcome-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	text-align: center;
	padding: 32px;
}

.welcome-container h1 {
	font-size: 28px;
	font-weight: 300;
	margin-bottom: 12px;
	color: var(--text-primary);
}

.welcome-container p {
	color: var(--text-muted);
	max-width: 400px;
	line-height: 1.6;
}

.welcome-pin {
	margin-top: 24px;
	background: var(--bg-elevated);
	padding: 12px 24px;
	border-radius: var(--radius-lg);
	font-family: var(--font-mono);
	font-size: 16px;
	color: var(--text-muted);
}

.settings-container {
	padding: 24px;
	max-width: 100%;
}

.settings-container h2 {
	font-size: 20px;
	font-weight: 400;
	margin-bottom: 24px;
}

.setting-group {
	margin-bottom: 24px;
}

.setting-label {
	font-size: 12px;
	color: var(--text-muted);
	margin-bottom: 8px;
	text-transform: uppercase;
	user-select: none;
	letter-spacing: 0.05em;
}

.setting-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0;
	border-bottom: 1px solid var(--border-subtle);
}

.setting-name {
	user-select: none;
	font-weight: 500;
}

.setting-desc {
	font-size: 12px;
	color: var(--text-muted);
	margin-top: 4px;
}

.info-row {
	padding: 12px 0;
	border-bottom: 1px solid var(--border-subtle);
}

.info-label {
	font-size: 12px;
	color: var(--text-muted);
	user-select: none;
}

.info-value {
	font-family: var(--font-mono);
	margin-top: 4px;
}

.overlay-mask {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
	z-index: 1;
}
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 10000;
}

.modal-container {
	background: var(--bg-elevated);
	width: 400px;
	border-radius: var(--radius-lg);
	border: 1px solid var(--border-subtle);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

html.phone .modal-container {
	width: calc(100% - 32px) !important;
	max-height: calc(100% - 32px);
}

html.phone .modal-body {
	flex: 1 1 auto;
	min-height: 0;
}

.modal-header {
	padding: 16px;
	border-bottom: 1px solid var(--border-subtle);
	font-weight: 600;
	display: flex;
	justify-content: space-between;
}

.modal-body {
	max-height: calc(9 * 48px);
	overflow-y: auto;
	padding: 8px;
}

.modal-footer {
	padding: 12px 16px;
	border-top: 1px solid var(--border-subtle);
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}

.modal-friend-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 12px;
	border-radius: var(--radius-md);
	cursor: pointer;
	height: 48px;
	box-sizing: border-box;
}

@media (hover: hover) {
	.modal-friend-row:hover {
		background: var(--bg-hover);
	}
}

.modal-friend-avatar {
	width: 32px;
	height: 32px;
	border-radius: var(--radius-full);
	object-fit: cover;
}

.modal-friend-name {
	flex: 1;
	font-size: 14px;
	font-weight: 500;
}

.modal-friend-check {
	width: 18px;
	height: 18px;
	cursor: pointer;
}

.file-error-bubble {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--danger);
	color: var(--danger-text);
	padding: 8px 12px;
	border-radius: var(--radius-md);
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 500;
	border: 1px solid var(--danger-bg);
}

.file-error-bubble .err-icon {
	width: 18px;
	height: 18px;
	background: var(--danger-text);
	color: var(--danger);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
}

.preview-msg-wrap {
	position: relative;
	overflow: hidden;
}
.drag-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	pointer-events: none;
	color: white;
	font-size: 24px;
	font-weight: 600;
}

.drag-overlay img {
	width: 100px;
	height: 100px;
	margin-bottom: 20px;
	filter: brightness(0) invert(1);
}

.chat-wrap.dragging .drag-overlay {
	display: flex;
}

.chat-wrap {
	position: relative;
}
.video-embed-wrapper {
	height: auto;
	width: 100%;
	margin: 0 auto;
	line-height: 0;
}

.video-embed-wrapper iframe {
	display: block;
	width: 100%;
}
