#eh-memo-app {
	max-width: 720px;
	margin: 0 auto;
	font-size: 1rem;
	line-height: 1.6;
}

.eh-memo-login-prompt {
	text-align: center;
	padding: 2em 1em;
}

.eh-memo-button {
	display: inline-block;
	padding: 0.6em 1.4em;
	border-radius: 4px;
	background: #2c3e50;
	color: #fff;
	text-decoration: none;
	transition: background 0.15s ease;
}

.eh-memo-button:hover {
	background: #1a2733;
}

.eh-memo-list-item {
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 1em;
	margin-bottom: 1em;
}

.eh-memo-list-title {
	font-weight: 600;
	font-size: 1.1em;
}

.eh-memo-list-poet {
	font-weight: 400;
	color: #666;
}

.eh-memo-progress-bar {
	background: #eee;
	border-radius: 3px;
	height: 8px;
	margin: 0.5em 0;
	overflow: hidden;
}

.eh-memo-progress-fill {
	background: #2c7a4b;
	height: 100%;
}

.eh-memo-list-meta {
	font-size: 0.9em;
	color: #666;
	margin-bottom: 0.6em;
}

.eh-memo-practice-btn,
.eh-memo-delete-btn,
.eh-memo-check-btn,
.eh-memo-add-form button {
	padding: 0.4em 1em;
	border-radius: 4px;
	border: 1px solid #2c3e50;
	background: #fff;
	color: #2c3e50;
	cursor: pointer;
}

.eh-memo-practice-btn,
.eh-memo-add-form button {
	background: #2c3e50;
	color: #fff;
}

.eh-memo-delete-btn {
	border-color: #a33;
	color: #a33;
}

.eh-memo-add-form {
	border-top: 2px solid #eee;
	padding-top: 1.5em;
	margin-top: 1.5em;
}

.eh-memo-add-form label {
	display: block;
	margin-bottom: 0.8em;
	font-weight: 500;
}

.eh-memo-add-form input[type="text"],
.eh-memo-add-form textarea {
	width: 100%;
	padding: 0.5em;
	font-family: inherit;
	font-size: 1em;
	box-sizing: border-box;
}

.eh-memo-optional {
	font-weight: 400;
	color: #888;
	font-size: 0.9em;
}

.eh-memo-header {
	margin-bottom: 1em;
}

.eh-memo-nav-row {
	display: flex;
	gap: 0.8em;
	margin-bottom: 0.6em;
}

.eh-memo-back-nav,
.eh-memo-add-nav {
	background: #fff;
	border: 1px solid #2c3e50;
	color: #2c3e50;
	cursor: pointer;
	padding: 0.3em 0.8em;
	border-radius: 4px;
	font-size: 0.9em;
	font-weight: 500;
}

.eh-memo-add-nav {
	background: #2c3e50;
	color: #fff;
}

.eh-memo-add-nav-top {
	display: block;
	margin: 0 0 1em 0;
}

.eh-memo-poet {
	color: #666;
	margin-top: -0.5em;
}

.eh-memo-practice-progress {
	color: #2c7a4b;
	font-weight: 600;
	margin-top: 0.4em;
}

.eh-memo-line {
	margin-bottom: 0.9em;
	line-height: 2.2;
}

.eh-memo-line-blank {
	height: 0.8em;
}

.eh-memo-word {
	color: #333;
}

.eh-memo-blank-wrap {
	display: inline-block;
}

.eh-memo-blank {
	border: none;
	border-bottom: 2px solid #999;
	text-align: center;
	font-family: inherit;
	font-size: 1em;
	padding: 0.1em 0.2em;
}

.eh-memo-blank.eh-memo-correct {
	border-bottom-color: #2c7a4b;
	color: #2c7a4b;
}

.eh-memo-blank.eh-memo-incorrect {
	border-bottom-color: #a33;
	color: #a33;
}

.eh-memo-btn-row {
	display: inline-flex;
	gap: 0.4em;
	margin-left: 0.6em;
}

.eh-memo-check-btn {
	font-size: 0.85em;
	padding: 0.15em 0.6em;
}

.eh-memo-back-btn,
.eh-memo-reset-btn {
	font-size: 0.85em;
	padding: 0.15em 0.6em;
	border: 1px solid #ccc;
	background: #fff;
	color: #666;
	border-radius: 4px;
	cursor: pointer;
}

.eh-memo-back-btn:disabled,
.eh-memo-reset-btn:disabled,
.eh-memo-check-btn:disabled {
	opacity: 0.5;
	cursor: default;
}

.eh-memo-line-reveal {
	background: #fafafa;
	padding: 0.2em 0.4em;
	border-radius: 3px;
}

.eh-memo-line-mastered {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.eh-memo-mastered-text {
	font-style: italic;
	color: #2c7a4b;
}

.eh-memo-hide-btn {
	font-size: 0.8em;
	padding: 0.1em 0.6em;
	border: 1px solid #ccc;
	background: #fff;
	color: #666;
	border-radius: 3px;
	cursor: pointer;
	margin-left: 1em;
	white-space: nowrap;
}

.eh-memo-blank:disabled {
	background: transparent;
	opacity: 1;
	-webkit-text-fill-color: inherit;
	color: inherit;
}

.eh-memo-blank.eh-memo-correct:disabled {
	color: #2c7a4b;
}

.eh-memo-blank.eh-memo-incorrect:disabled {
	color: #a33;
}

.eh-memo-recording-section {
	margin-top: 2.5em;
	padding-top: 1.5em;
	border-top: 2px solid #eee;
}

.eh-memo-recording-section h3 {
	margin: 0 0 0.6em 0;
	font-size: 1.1em;
}

.eh-memo-recording-note {
	color: #666;
	margin-bottom: 1em;
}

.eh-memo-recording-timer {
	font-size: 1.4em;
	font-weight: 600;
	color: #a33;
	margin: 0.4em 0 1em 0;
}

.eh-memo-recording-section audio {
	width: 100%;
	max-width: 420px;
	display: block;
	margin-bottom: 0.8em;
}

.eh-memo-record-btn {
	padding: 0.5em 1.4em;
	border-radius: 4px;
	border: 1px solid #2c3e50;
	background: #2c3e50;
	color: #fff;
	cursor: pointer;
	font-size: 0.95em;
}

.eh-memo-stop-btn {
	background: #a33;
	border-color: #a33;
}

.eh-memo-recording-controls {
	display: flex;
	gap: 0.6em;
	flex-wrap: wrap;
}

.eh-memo-delete-recording-btn {
	padding: 0.5em 1.2em;
	border-radius: 4px;
	border: 1px solid #a33;
	background: #fff;
	color: #a33;
	cursor: pointer;
	font-size: 0.95em;
}

.eh-memo-install-banner {
	display: flex;
	align-items: center;
	gap: 0.8em;
	background: #eaf1fb;
	border: 1px solid #c3d7f0;
	border-radius: 6px;
	padding: 0.7em 1em;
	margin: 0 0 1em 0;
	font-size: 0.92em;
	color: #1a3a5c;
}

.eh-memo-install-banner span {
	flex: 1;
}

.eh-memo-install-btn {
	padding: 0.4em 1em;
	border-radius: 4px;
	border: 1px solid #2c3e50;
	background: #2c3e50;
	color: #fff;
	cursor: pointer;
	font-size: 0.9em;
	white-space: nowrap;
}

.eh-memo-install-dismiss {
	background: none;
	border: none;
	font-size: 1.2em;
	line-height: 1;
	color: #1a3a5c;
	cursor: pointer;
	padding: 0 0.2em;
}

.eh-memo-embed-wrap {
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 1.5em;
	margin: 2em 0;
	background: #fafafa;
}

a.eh-memo-back-nav {
	text-decoration: none;
	display: inline-block;
}
