.note-page {
	max-width: 720px;
	margin: 0 auto;
	padding: 24px 16px;

	&__header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 16px;
	}

	&__title {
		font-size: 1.25rem;
		font-weight: 700;
		color: var(--text-primary);
	}

	&__actions {
		display: flex;
		gap: 12px;
		align-items: center;
	}

	&__meta {
		font-size: 0.8125rem;
		color: var(--text-muted);
	}

	&__compose-btn {
		background: none;
		border: none;
		color: var(--text-link);
		font-size: 0.875rem;
		cursor: pointer;

		&:hover {
			text-decoration: underline;
		}
	}

	&__tabs {
		display: flex;
		gap: 0;
		border-bottom: 1px solid var(--border-default);
		margin-bottom: 16px;
		width: 100%;
	}

	&__tab {
		flex: 1 1 0;
		text-align: center;
		padding: 10px 18px;
		font-size: 0.875rem;
		font-weight: 600;
		color: var(--text-muted);
		text-decoration: none;
		border-bottom: 2px solid transparent;
		transition: color 0.15s, border-color 0.15s;

		&:hover {
			color: var(--text-primary);
		}

		&--active {
			color: var(--text-link);
			border-bottom-color: var(--text-link);
		}
	}

	&__list {
		display: flex;
		flex-direction: column;
		gap: 8px;
	}

	&__item {
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 12px 14px;
		border: 1px solid var(--border-default);
		border-radius: 8px;
		cursor: pointer;
		background: var(--bg-default);
		transition: background 0.15s, border-color 0.15s;

		&:hover {
			background: var(--bg-subtle);
		}

		&--unread {
			background: var(--color-blue-bg);
			border-color: var(--color-blue);
		}
	}

	&__item-body {
		flex: 1;
		min-width: 0;
		overflow: hidden;
	}

	&__item-top {
		display: flex;
		align-items: center;
		gap: 8px;
	}

	&__badge {
		font-size: 0.6875rem;
		background: var(--bg-subtle);
		padding: 2px 6px;
		border-radius: 4px;
		color: var(--text-muted);
	}

	&__badge--read {
		background: var(--color-blue-bg);
		color: var(--color-blue);
	}

	&__item-title {
		font-size: 0.875rem;
		color: var(--text-primary);
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;

		&--unread {
			font-weight: 700;
		}
	}

	&__item-sub {
		margin-top: 2px;
		font-size: 0.75rem;
		color: var(--text-muted);
		display: flex;
		align-items: center;
		gap: 6px;
		flex-wrap: wrap;
	}

	&__item-party {
		color: var(--text-primary);
		font-weight: 500;
	}

	&__item-handle {
		color: var(--text-muted);
		font-family: var(--font-geist-mono), monospace;
	}

	&__item-time {
		color: var(--text-muted);
	}

	&__item-dot {
		width: 8px;
		height: 8px;
		border-radius: 50%;
		background: var(--color-blue);
		flex-shrink: 0;
	}

	&__empty,
	&__loading {
		padding: 40px 0;
		text-align: center;
		color: var(--text-muted);
		font-size: 0.875rem;
	}

	&__pager {
		display: flex;
		justify-content: center;
		align-items: center;
		gap: 8px;
		margin-top: 16px;
	}

	&__pager-btn {
		padding: 6px 12px;
		border: 1px solid var(--border-default);
		background: var(--bg-default);
		border-radius: 6px;
		font-size: 0.8125rem;
		cursor: pointer;

		&:disabled {
			opacity: 0.5;
			cursor: not-allowed;
		}

		&:hover:not(:disabled) {
			background: var(--bg-subtle);
		}
	}

	&__pager-info {
		font-size: 0.8125rem;
		color: var(--text-muted);
	}
}
