/* English Diary Coach: the writing box (question pages and the homepage card). Everything is under .edcq or
   .edcq-card so the theme isn't affected; key looks use !important because themes style buttons and boxes. */

.edcq, .edcq-card { --edcq-green: #43a047; --edcq-green-d: #388e3c; --edcq-ink: #16202E; --edcq-muted: #5b6573; box-sizing: border-box; font-family: inherit; text-align: left; }
.edcq *, .edcq-card * { box-sizing: border-box; }
.edcq [hidden], .edcq-card [hidden] { display: none !important; }

/* Question pages: a soft green panel. In the homepage card: no panel (the card is the panel). */
.edcq { margin: 10px 0 16px; padding: 14px 15px; border: 1px solid #c8e6c9; background: #f4fbf4; border-radius: 10px; max-width: 680px; color: var(--edcq-ink); }
.answer-box-outer .edcq { margin: 17px 0 4px; }
.edcq-card .edcq { margin: 0; padding: 0; border: 0; background: none; max-width: none; }
.edcq-lead { font-weight: bold; margin: 0 0 8px; }

.edcq .edcq-text {
	display: block !important; width: 100% !important; min-height: 88px; margin: 0 0 6px !important; padding: 10px 12px !important;
	border: 2px solid #cfd8dc !important; border-radius: 10px !important; background: #fff repeating-linear-gradient(transparent, transparent 27px, #eef2f5 27px, #eef2f5 28px) !important;
	background-position: 0 9px !important; color: var(--edcq-ink) !important; font: inherit; font-size: 16px !important; line-height: 28px !important; resize: vertical; box-shadow: none !important;
}
.edcq .edcq-text:focus { outline: none !important; border-color: var(--edcq-green) !important; box-shadow: 0 0 0 3px rgba(67, 160, 71, .18) !important; }

.edcq-tools { display: flex; flex-direction: column; gap: 6px; margin: 0 0 8px; font-size: 13px; color: var(--edcq-muted); line-height: 1.35; }
.edcq-meter b { color: #2e7d32; }
.edcq-dots { display: inline-flex; gap: 4px; margin-right: 7px; vertical-align: -1px; }
.edcq-dots i { width: 10px; height: 10px; border-radius: 50%; background: #dfe5ea; display: inline-block; transition: background .3s, transform .3s; }
.edcq-dots i.on { background: var(--edcq-green); transform: scale(1.15); }
.edcq-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.edcq-chips-l { font-weight: 600; color: var(--edcq-ink); }
.edcq .edcq-chip { display: inline-block !important; margin: 0 !important; padding: 5px 11px !important; border: 1.5px solid #a5d6a7 !important; border-radius: 999px !important; background: #fff !important; color: #1b5e20 !important; font: inherit; font-size: 14px !important; font-weight: 600 !important; line-height: 1.2 !important; cursor: pointer; box-shadow: none !important; text-transform: none !important; letter-spacing: normal !important; }
.edcq .edcq-chip:hover { background: #e8f5e9 !important; }

.edcq-nudge { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: #fff8e1; border: 1px solid #ffe082; animation: edcq-pop .3s ease-out; }
.edcq-nudge-t { font-weight: 700; margin-bottom: 8px; }
.edcq-nudge-t span { font-weight: 600; color: #6d4c00; }
.edcq-nudge-b { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.edcq-ex { font-size: 14px; line-height: 1.4; color: var(--edcq-muted); margin: 0 0 12px; }
.edcq del, .edcq-card del { color: #c62828; text-decoration: line-through; background: none; }
.edcq ins, .edcq-card ins { color: #1565c0; font-weight: 700; text-decoration: none; background: none; }

.edcq-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.edcq-free { font-size: 13px; color: var(--edcq-muted); }

/* The 3D green button (pressing motion and a shine that follows the cursor). */
.edcq .edcq-btn {
	display: inline-block !important; position: relative; overflow: hidden; cursor: pointer; margin: 0 !important; padding: 9px 16px !important;
	border: 2px solid var(--edcq-green-d) !important; border-radius: 10px !important; background: linear-gradient(to bottom, #66bb6a, #43a047) !important;
	box-shadow: 0 4px var(--edcq-green-d) !important; color: #fff !important; font: inherit; font-weight: bold !important; font-size: 16px !important; line-height: 1.3 !important;
	text-transform: none !important; letter-spacing: normal !important; text-decoration: none !important; transition: transform .2s, box-shadow .2s;
}
.edcq .edcq-btn::before { content: ""; position: absolute; top: 0; left: 0; width: 120%; height: 120%; background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255, 255, 255, .4), transparent 20%); pointer-events: none; opacity: 0; transition: opacity .2s; }
.edcq .edcq-btn:hover::before { opacity: 1; }
.edcq .edcq-btn:active { transform: translateY(3px); box-shadow: 0 1px #2e7d32 !important; }
.edcq .edcq-btn:focus-visible { outline: 3px solid var(--edcq-ink); outline-offset: 3px; }
.edcq .edcq-btn[disabled] { background: #9e9e9e !important; border-color: #757575 !important; box-shadow: none !important; cursor: default; }
.edcq .edcq-btn-s { padding: 7px 13px !important; font-size: 15px !important; }
.edcq .edcq-link { display: inline !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; color: #2e7d32 !important; font: inherit; font-size: 15px !important; font-weight: 600 !important; text-decoration: underline !important; cursor: pointer; text-transform: none !important; }

.edcq-checking { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-weight: 600; }
.edcq-wiz i { display: inline-block; font-style: normal; font-size: 22px; animation: edcq-fade 1.5s infinite; margin-right: 3px; }
.edcq-wiz i:nth-child(2) { animation-delay: .5s; }
.edcq-wiz i:nth-child(3) { animation-delay: 1s; }
.edcq-msg { margin-top: 10px; font-size: 15px; color: #b71c1c; }
.edcq-msg.is-good { color: #2e7d32; }

/* The result. */
.edcq-result { position: relative; animation: edcq-pop .35s ease-out; }
.edcq-res-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.edcq-stamp { flex: none; width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #d7263d; border: 3px solid #d7263d; box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px #d7263d; font-weight: 800; font-size: 12px; letter-spacing: .04em; transform: rotate(-12deg); animation: edcq-stamp .5s cubic-bezier(.3, 1.4, .5, 1) .15s both; background: rgba(255, 255, 255, .7); }
.edcq-score { font-size: 19px; font-weight: 800; line-height: 1.25; }
.edcq-bits { font-size: 14px; color: var(--edcq-muted); margin-top: 2px; }
.edcq-bits span { white-space: nowrap; }
.edcq-xpb { color: #b7791f; font-size: 16px; }
.edcq-special { margin: 0 0 8px; padding: 6px 10px; border-radius: 8px; background: #fff3cd; font-weight: 700; font-size: 15px; }
.edcq-praise { margin: 0 0 10px; font-size: 15px; }
.edcq-fix { background: #fff; border: 1px solid #e3e8ec; border-radius: 10px; padding: 9px 12px; margin: 0 0 8px; font-size: 16px; line-height: 1.45; }
.edcq-fix p { margin: 0 0 3px; }
.edcq-c span { color: #1565c0; font-weight: 700; }
.edcq-expl { color: #6a1b9a; font-size: 15px; }
.edcq-expl1 { color: #6a1b9a; font-size: 14px; opacity: .85; }
.edcq-tag { display: inline-block; font-size: 12px; font-weight: 700; background: #eceff1; border-radius: 999px; padding: 2px 8px; margin-bottom: 4px; }
.edcq-yours { margin: 0 0 10px; font-size: 16px; font-style: italic; }
.edcq-saved { margin: 10px 0; font-size: 15px; color: #2e7d32; font-weight: 600; }
.edcq-saved a { color: #2e7d32 !important; }
.edcq-lite { margin: 12px 0; padding: 12px; border-radius: 10px; background: #e3f2fd; border: 1px solid #bbdefb; }
.edcq-lite-t { font-weight: 800; margin-bottom: 8px; }
.edcq-lite-row { display: flex; flex-wrap: wrap; gap: 8px; }
.edcq .edcq-email { flex: 1 1 200px; min-width: 0; margin: 0 !important; padding: 9px 12px !important; border: 2px solid #cfd8dc !important; border-radius: 10px !important; background: #fff !important; color: var(--edcq-ink) !important; font: inherit; font-size: 16px !important; box-shadow: none !important; }
.edcq .edcq-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.edcq-lite-fine { font-size: 12.5px; color: var(--edcq-muted); margin-top: 8px; line-height: 1.4; }
.edcq-lite-msg { margin-top: 8px; font-weight: 600; color: #b71c1c; }
.edcq-lite-msg.is-good { color: #2e7d32; }
.edcq-next { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; }
.edcq-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.edcq-confetti i { position: absolute; top: -10px; width: 7px; height: 12px; border-radius: 2px; opacity: 0; animation: edcq-fall 1.8s ease-in forwards; }
.edcq-confetti i:nth-child(5n+1) { background: #ff5d8f; } .edcq-confetti i:nth-child(5n+2) { background: #ffd23f; } .edcq-confetti i:nth-child(5n+3) { background: #3bceac; } .edcq-confetti i:nth-child(5n+4) { background: #4d96ff; } .edcq-confetti i:nth-child(5n) { background: #9b5de5; }
.edcq-confetti i:nth-child(1) { left: 5%; animation-delay: .05s; } .edcq-confetti i:nth-child(2) { left: 12%; animation-delay: .3s; } .edcq-confetti i:nth-child(3) { left: 20%; animation-delay: .1s; } .edcq-confetti i:nth-child(4) { left: 28%; animation-delay: .45s; } .edcq-confetti i:nth-child(5) { left: 35%; animation-delay: .2s; } .edcq-confetti i:nth-child(6) { left: 43%; animation-delay: .5s; } .edcq-confetti i:nth-child(7) { left: 50%; animation-delay: .15s; } .edcq-confetti i:nth-child(8) { left: 57%; animation-delay: .35s; } .edcq-confetti i:nth-child(9) { left: 64%; animation-delay: .05s; } .edcq-confetti i:nth-child(10) { left: 72%; animation-delay: .4s; } .edcq-confetti i:nth-child(11) { left: 79%; animation-delay: .25s; } .edcq-confetti i:nth-child(12) { left: 86%; animation-delay: .1s; } .edcq-confetti i:nth-child(13) { left: 92%; animation-delay: .3s; } .edcq-confetti i:nth-child(14) { left: 97%; animation-delay: .2s; }

/* The homepage card. */
.edcq-card { color: var(--edcq-ink); }
.edcq-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin: 0 0 8px; }
.edcq-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #2e7d32; }
.edcq-live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #2e7d32; background: #e8f5e9; border-radius: 999px; padding: 3px 10px 3px 8px; }
.edcq-live i { width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 0 rgba(46, 204, 113, .6); animation: edcq-pulse 1.8s infinite; }
.edcq-paper { position: relative; margin: 0 0 12px; padding: 12px 14px 12px 16px; background: #fffbea; border-radius: 4px 12px 12px 4px; border-left: 4px solid #f9a825; box-shadow: 0 1px 0 rgba(0, 0, 0, .04); }
.edcq-card .edcq-card-q { margin: 0 !important; font-size: 19px !important; line-height: 1.35 !important; font-weight: 800 !important; color: var(--edcq-ink) !important; }
.edcq-trust { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--edcq-muted); }
.edcq-card .edcq-go { animation: edcq-glow 3.5s ease-in-out 2s infinite; }

@keyframes edcq-fade { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
@keyframes edcq-pop { from { opacity: 0; transform: translateY(6px); } }
@keyframes edcq-stamp { 0% { transform: scale(2.4) rotate(-35deg); opacity: 0; } 60% { transform: scale(.92) rotate(-10deg); opacity: 1; } 100% { transform: scale(1) rotate(-12deg); } }
@keyframes edcq-fall { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(260px) rotate(540deg); } }
@keyframes edcq-pulse { 0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, .6); } 70% { box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); } }
@keyframes edcq-glow { 0%, 80%, 100% { outline: 0 solid rgba(67, 160, 71, 0); outline-offset: 2px; } 90% { outline: 6px solid rgba(67, 160, 71, .25); outline-offset: 2px; } }
@media (prefers-reduced-motion: reduce) {
	.edcq-result, .edcq-stamp, .edcq-confetti i, .edcq-live i, .edcq-card .edcq-go, .edcq-nudge, .edcq-wiz i { animation: none !important; }
	.edcq-confetti { display: none; }
}
