/* mail.dad-look.com - DMail: a warm paper inbox with a coral envelope */
body { margin: 0; background: #f7f5f2; color: #1f1f1f; font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; }
[hidden] { display: none !important; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #ec6e6a; outline-offset: 2px; }
.ml-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }
.ml-small { font-size: 13px; color: #6b6762; }

/* App frame: header, folders, mailbox */
.ml-app { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 240px minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 82vh; }
.ml-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; padding: 10px 16px; }
.ml-logo { display: flex; align-items: center; gap: 10px; width: 210px; text-decoration: none; }
.ml-logo span { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: #4a4642; }
.ml-search { flex: 1; max-width: 720px; }
.ml-search input { box-sizing: border-box; width: 100%; height: 48px; padding: 0 20px; border: 0; border-radius: 24px; background: #ebe7e1; font: inherit; font-size: 16px; }
.ml-search input:focus { background: #ffffff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15); outline: none; }
.ml-me { width: 40px; height: 40px; margin-left: auto; border-radius: 50%; object-fit: cover; object-position: 50% 86%; }

.ml-nav { padding: 6px 16px 16px 8px; }
.ml-compose-button { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 24px 0 18px; margin: 4px 0 14px; border: 0; border-radius: 16px; background: #ffd8d4; color: #1f1f1f; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.ml-compose-button:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); }
.ml-compose-button span { font-size: 20px; }
.ml-nav ul { margin: 0; padding: 0; list-style: none; }
.ml-folder { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 34px; padding: 0 12px 0 24px; border: 0; border-radius: 0 17px 17px 0; background: none; color: inherit; font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.ml-folder:hover { background: #ebe7e1; }
.ml-folder[aria-current="true"] { background: #ffd8d4; font-weight: 800; }
.ml-folder b { font-size: 12px; }
.ml-storage { margin: 24px 0 0 24px; font-size: 13px; }
.ml-storage p { margin: 0 0 6px; }
.ml-storage-bar { height: 4px; border-radius: 2px; background: #e2ddd5; overflow: hidden; margin-bottom: 6px; }
.ml-storage-bar span { display: block; width: 100%; height: 100%; background: #ec6e6a; }

.ml-main { margin: 0 16px 16px 0; border-radius: 16px; background: #ffffff; min-width: 0; overflow: hidden; }
.ml-toolbar { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 16px 20px 10px; border-bottom: 1px solid #efebe5; }
.ml-toolbar h1 { margin: 0; font-size: 20px; font-weight: 600; }
.ml-toolbar p { margin: 0; }

/* The list */
.ml-list { margin: 0; padding: 0; list-style: none; }
.ml-row { display: flex; align-items: center; border-bottom: 1px solid #f1eee9; background: #f8f6f3; }
.ml-row.is-unread { background: #ffffff; }
.ml-row:hover { box-shadow: inset 1px 0 0 #dad5cd, inset -1px 0 0 #dad5cd, 0 1px 3px rgba(0, 0, 0, 0.12); position: relative; z-index: 1; }
.ml-star { flex: none; width: 40px; height: 40px; margin-left: 6px; border: 0; background: none; color: #c4beb5; font-size: 18px; cursor: pointer; }
.ml-star[aria-pressed="true"] { color: #f2b636; }
.ml-row-link { flex: 1; min-width: 0; display: grid; grid-template-columns: 170px minmax(0, 1fr) 70px; align-items: center; gap: 14px; padding: 10px 16px 10px 4px; text-decoration: none; font-size: 14px; }
.ml-from { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-subject { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-subject b { font-weight: 400; }
.is-unread .ml-from, .is-unread .ml-subject b, .is-unread .ml-time { font-weight: 800; }
.ml-snippet { color: #6b6762; }
.ml-time { text-align: right; font-size: 12px; color: #6b6762; }
.ml-label { display: inline-block; margin-right: 8px; padding: 1px 7px; border-radius: 4px; background: #efebe5; color: #4a4642; font-size: 12px; font-weight: 700; vertical-align: 1px; }
.ml-draft { color: #c4473c; }
.ml-empty { margin: 0; padding: 40px 20px; text-align: center; color: #6b6762; }

/* Reading an email */
.js .ml-read-view { display: none; }
.js .ml-main.is-reading .ml-read-view { display: block; }
.js .ml-main.is-reading .ml-list-view { display: none; }
.js .ml-email { display: none; }
.js .ml-email.is-open { display: block; }
.ml-email { padding: 16px 24px 28px; border-bottom: 1px solid #efebe5; }
.ml-back { padding: 6px 12px; margin-left: -12px; border: 0; border-radius: 16px; background: none; font: inherit; font-size: 14px; cursor: pointer; }
.ml-back:hover { background: #f1eee9; }
html:not(.js) .ml-back { display: none; }
.ml-email h2 { margin: 14px 0 18px; font-size: 22px; font-weight: 400; line-height: 1.3; }
.ml-sender { display: flex; align-items: center; gap: 12px; }
.ml-sender p { margin: 0; font-size: 14px; }
.ml-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 86%; }
.ml-body { margin: 18px 0 0 52px; font-size: 15px; line-height: 1.6; }
.ml-body p { margin: 0 0 8px; }
.ml-actions { margin: 16px 0 0 52px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ml-actions .ml-small { margin: 0 6px 0 0; }
.ml-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border: 1px solid #c4beb5; border-radius: 18px; background: #ffffff; font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.ml-chip:hover { background: #f8f6f3; }
.ml-chip-strong { border-color: #ec6e6a; background: #ec6e6a; color: #ffffff; }
.ml-chip-strong:hover { background: #d95450; }
.ml-action-note { flex-basis: 100%; margin: 4px 0 0; font-size: 14px; font-weight: 700; color: #c4473c; }
.ml-action-note:empty { display: none; }
.ml-reply { margin: 24px 0 0 52px; padding: 12px; border: 1px solid #dad5cd; border-radius: 12px; }
.ml-reply textarea, .ml-compose textarea, .ml-compose input { box-sizing: border-box; width: 100%; border: 0; font: inherit; font-size: 15px; resize: vertical; background: none; }
.ml-reply textarea:focus, .ml-compose textarea:focus, .ml-compose input:focus { outline: none; }
.ml-reply-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.ml-send { min-height: 38px; padding: 0 24px; border: 0; border-radius: 19px; background: #c4473c; color: #ffffff; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.ml-send:hover { background: #a93a31; }
.ml-reply-note { margin: 0; font-size: 14px; font-weight: 700; color: #c4473c; }
.ml-reply-note a { color: inherit; }

/* Compose window and toast */
.ml-compose { position: fixed; right: 24px; bottom: 0; z-index: 10; width: 480px; max-width: calc(100% - 32px); border-radius: 12px 12px 0 0; background: #ffffff; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3); overflow: hidden; }
.ml-compose-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #f1eee9; }
.ml-compose-head h2 { margin: 0; font-size: 14px; font-weight: 700; }
.ml-compose-close { width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; font-size: 22px; cursor: pointer; }
.ml-compose form { padding: 0 14px 14px; }
.ml-compose-to { margin: 0; padding: 10px 0; border-bottom: 1px solid #efebe5; font-size: 14px; }
.ml-compose input { padding: 10px 0; border-bottom: 1px solid #efebe5; }
.ml-compose textarea { padding: 10px 0; }
.ml-toast { position: fixed; left: 24px; bottom: 24px; z-index: 11; margin: 0; padding: 14px 20px; border-radius: 6px; background: #2b2926; color: #ffffff; font-size: 14px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); }
.ml-toast:empty { display: none; }
.ml-row.is-new { background: #fff3ef; }

/* Bottom */
.ml-bottom { max-width: 1000px; margin: 0 auto; padding: 56px 20px 48px; display: flex; flex-direction: column; gap: 28px; }
.ml-cta { padding: 40px 24px; border-radius: 20px; background: #ffffff; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); }
.ml-cta-avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: 50% 86%; box-shadow: 0 0 0 4px #ffd8d4; }
.ml-cta h2 { margin: 6px 0 0; font-size: 30px; letter-spacing: -0.01em; }
.ml-cta p { margin: 0; max-width: 580px; font-size: 17px; line-height: 1.5; }
.ml-cta-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; box-sizing: border-box; width: 100%; max-width: 560px; min-height: 72px; padding: 18px 24px; border-radius: 999px; background: #ec6e6a; color: #ffffff; font-size: 21px; font-weight: 900; text-transform: uppercase; text-decoration: none; }
.ml-cta-button:hover { background: #d95450; }
.ml-cta-arrow { display: inline-block; }
.ml-share { min-height: 48px; padding: 0 22px; border: 2px solid #1f1f1f; border-radius: 999px; background: none; color: #1f1f1f; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.ml-share:hover { background: #1f1f1f; color: #ffffff; }
.ml-status { margin: 0; font-size: 14px; font-weight: 700; color: #2e7d32; }
.ml-status:empty { display: none; }
.ml-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; line-height: 1.5; color: #6b6762; border-top: 1px solid #e2ddd5; padding-top: 14px; }

@media (max-width: 860px) {
	.ml-app { grid-template-columns: minmax(0, 1fr); }
	.ml-top { gap: 12px; padding: 10px 12px; }
	.ml-logo { width: auto; }
	.ml-logo span { display: none; }
	.ml-search input { height: 42px; }
	.ml-nav { padding: 0 12px 10px; display: flex; gap: 8px; align-items: center; overflow-x: auto; scrollbar-width: none; }
	.ml-nav::-webkit-scrollbar { display: none; }
	.ml-compose-button { flex: none; min-height: 34px; margin: 0; padding: 0 14px; border-radius: 17px; font-size: 14px; box-shadow: none; }
	.ml-compose-button span { font-size: 15px; }
	.ml-nav ul { display: flex; gap: 6px; }
	.ml-folder { width: auto; height: 34px; gap: 8px; padding: 0 14px; border-radius: 17px; background: #ebe7e1; white-space: nowrap; }
	.ml-storage { display: none; }
	.ml-main { margin: 0 8px 8px; }
	.ml-row-link { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 2px 10px; padding: 12px 14px 12px 0; }
	.ml-from { grid-column: 1; grid-row: 1; }
	.ml-time { grid-column: 2; grid-row: 1; }
	.ml-subject { grid-column: 1 / -1; grid-row: 2; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
	.ml-email { padding: 14px 16px 24px; }
	.ml-body, .ml-actions, .ml-reply { margin-left: 0; }
	.ml-compose { right: 16px; }
	.ml-bottom { padding: 40px 12px; }
	.ml-cta h2 { font-size: 24px; }
	.ml-cta-button { font-size: 18px; min-height: 64px; }
}

/* Animations - only with JavaScript and when the visitor allows motion */
@media (prefers-reduced-motion: no-preference) {
	.js .ml-row { animation: ml-in 0.35s ease both; }
	.js .ml-row:nth-child(2) { animation-delay: 0.04s; }
	.js .ml-row:nth-child(3) { animation-delay: 0.08s; }
	.js .ml-row:nth-child(4) { animation-delay: 0.12s; }
	.js .ml-row:nth-child(n+5) { animation-delay: 0.16s; }
	.ml-row.is-new { animation: ml-drop 0.5s cubic-bezier(0.2, 0.8, 0.2, 1.2) both; }
	.ml-email.is-open { animation: ml-in 0.3s ease both; }
	.ml-compose:not([hidden]) { animation: ml-up 0.25s ease both; }
	.ml-toast:not(:empty) { animation: ml-up 0.25s ease both; }
	.ml-star[aria-pressed="true"] span { display: inline-block; animation: ml-pop 0.3s ease; }
	.ml-reply.is-bounced { animation: ml-shake 0.4s ease; }
	.ml-cta-button { animation: ml-glow 2.2s ease-in-out infinite; transition: transform 0.15s ease; }
	.ml-cta-button:hover { transform: scale(1.02); }
	.ml-cta-arrow { animation: ml-nudge 1.1s ease-in-out infinite; }
}

@keyframes ml-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ml-drop { from { opacity: 0; transform: translateY(-16px); background: #ffd8d4; } to { opacity: 1; transform: none; } }
@keyframes ml-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes ml-pop { 0% { transform: scale(1); } 50% { transform: scale(1.5); } 100% { transform: scale(1); } }
@keyframes ml-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes ml-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(236, 110, 106, 0.5); } 50% { box-shadow: 0 0 0 12px rgba(236, 110, 106, 0); } }
@keyframes ml-nudge { 0%, 100% { transform: none; } 50% { transform: translateX(8px); } }
