.ma-app {
	--ma-blue: #1f5fd6;
	--ma-blue-dark: #1747a6;
	--ma-navy: #0b1f44;
	--ma-tint: #e8f0fd;
	--ma-tint-strong: #c9dafa;
	--ma-gold: #f5b700;
	--ma-ink: #12213d;
	--ma-muted: #5f6b80;
	--ma-line: #dde4ef;
	--ma-card: #ffffff;
	--ma-soft: #f3f6fb;
	max-width: 760px;
	margin: 0 auto;
	color: var(--ma-ink);
	font-size: 16px;
	line-height: 1.45;
}
.ma-app *, .ma-app *::before, .ma-app *::after { box-sizing: border-box; }
.ma-app .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Ticker */
.ma-ticker {
	display: flex; align-items: stretch;
	background: var(--ma-navy); color: #e8f0fd;
	border-radius: 12px; overflow: hidden;
	font-size: .9em; margin-bottom: 14px;
}
.ma-live {
	flex: none; display: flex; align-items: center; gap: 7px;
	padding: 9px 14px; background: var(--ma-blue); color: #fff;
	font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .78em;
}
.ma-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ma-gold); animation: ma-pulse 1.6s ease-in-out infinite; }
@keyframes ma-pulse { 50% { opacity: .35; } }
.ma-ticker-window { flex: 1; overflow: hidden; display: flex; align-items: center; }
.ma-ticker-track { display: flex; gap: 32px; white-space: nowrap; width: max-content; padding-left: 16px; animation: ma-tick var(--ma-tick-dur, 40s) linear infinite; }
.ma-ticker:hover .ma-ticker-track { animation-play-state: paused; }
@keyframes ma-tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ma-tick-item { color: #e8f0fd !important; text-decoration: none !important; }
.ma-tick-item:hover { text-decoration: underline !important; }
.ma-tick-votes { color: #8fb4f5; font-weight: 700; margin-right: 6px; }
.ma-tick-badge { background: var(--ma-gold); color: #3a2a00; font-weight: 700; font-size: .78em; padding: 1px 7px; border-radius: 999px; margin-right: 6px; text-transform: uppercase; }
.ma-tick-date { color: #8fb4f5; margin-left: 4px; }
@media (prefers-reduced-motion: reduce) {
	.ma-ticker-track { animation: none; }
	.ma-ticker-window { overflow-x: auto; }
}

/* Propose bar */
.ma-submit { background: var(--ma-tint); border-radius: 12px; padding: 12px; margin-bottom: 14px; }
.ma-propose { display: flex; gap: 8px; }
.ma-propose-sub { display: flex; gap: 10px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.ma-propose-sub input { flex: 0 1 300px; }
.ma-app input[type="text"], .ma-app input[type="email"], .ma-app input[type="date"] {
	min-width: 0; padding: 10px 12px;
	border: 1px solid var(--ma-tint-strong); border-radius: 10px;
	font: inherit; color: var(--ma-ink); background: #fff;
}
.ma-propose input[type="text"] { flex: 1; }
.ma-date-wrap { display: flex; flex: none; }
.ma-app input:focus { outline: 2px solid var(--ma-blue); outline-offset: 1px; border-color: transparent; }
.ma-btn {
	padding: 10px 18px; border: 0; border-radius: 10px;
	background: var(--ma-blue); color: #fff;
	font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.ma-btn:hover { background: var(--ma-blue-dark); }
.ma-btn:disabled { opacity: .6; cursor: default; }
.ma-btn-sm { padding: 7px 12px; font-size: .9em; }
.ma-how { font-size: .82em; color: var(--ma-muted); }
.ma-count { margin-left: 6px; }
.ma-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.ma-msg { margin: 8px 0 0; font-weight: 600; font-size: .92em; }
.ma-msg:empty { display: none; }
.ma-msg.is-ok { color: #157347; }
.ma-msg.is-error { color: #b42318; }

/* Tabs */
.ma-tabs { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.ma-tabs a {
	padding: 6px 13px; border-radius: 999px;
	text-decoration: none; color: var(--ma-ink);
	background: var(--ma-soft); font-weight: 600; font-size: .88em;
}
.ma-tabs a:hover { background: var(--ma-tint); }
.ma-tabs a.is-active { background: var(--ma-navy); color: #fff; }

/* Action cards */
.ma-list-wrap.is-loading { opacity: .6; transition: opacity .15s; }
.ma-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--ma-line); border-radius: 12px; overflow: hidden; background: var(--ma-card); }
.ma-item {
	display: flex; gap: 14px; align-items: center;
	padding: 12px 14px; border-top: 1px solid var(--ma-line);
	scroll-margin-top: 90px;
}
.ma-item:first-child { border-top: 0; }
.ma-item:target { background: var(--ma-tint); }
.ma-cal {
	flex: none; width: 48px; text-align: center;
	border-radius: 10px; background: var(--ma-tint); color: var(--ma-blue-dark);
	padding: 5px 0; line-height: 1.1;
}
.ma-cal-m { display: block; font-size: .7em; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.ma-cal-d { display: block; font-size: 1.3em; font-weight: 800; }
.ma-body { flex: 1; min-width: 0; }
.ma-text { margin: 0 0 6px; font-size: 1.02em; font-weight: 650; overflow-wrap: anywhere; }
.ma-badge {
	display: inline-block; margin-right: 6px; padding: 2px 8px;
	background: var(--ma-gold); color: #3a2a00; border-radius: 999px;
	font-size: .7em; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; vertical-align: 2px;
}
.ma-badge-muted { background: #d5dbe6; color: #3b4558; }
.ma-progress { height: 6px; background: var(--ma-soft); border-radius: 999px; overflow: hidden; }
.ma-progress span { display: block; height: 100%; background: var(--ma-blue); border-radius: 999px; transition: width .3s ease; }
.ma-meta { margin: 5px 0 0; font-size: .8em; color: var(--ma-muted); }
.ma-meta a { color: inherit; }
.ma-left { color: var(--ma-blue-dark); font-weight: 600; }
.ma-vote {
	flex: none; width: 56px;
	display: flex; flex-direction: column; align-items: center; gap: 1px;
	padding: 7px 0; border: 1.5px solid var(--ma-tint-strong); border-radius: 10px;
	background: #fff; color: var(--ma-blue-dark);
	font: inherit; cursor: pointer;
}
.ma-vote:hover:not(:disabled) { border-color: var(--ma-blue); background: var(--ma-tint); }
.ma-vote.is-voted { background: var(--ma-blue); border-color: var(--ma-blue); color: #fff; cursor: default; }
.ma-vote:disabled:not(.is-voted) { cursor: default; opacity: .55; }
.ma-arrow { font-size: .85em; line-height: 1; }
.ma-votes { font-weight: 800; font-size: .95em; }
.ma-item.is-triggered .ma-cal { background: var(--ma-gold); color: #3a2a00; }
.ma-item.is-triggered .ma-progress span { background: var(--ma-gold); }
.ma-item.is-expired { opacity: .7; }
.ma-item.is-expired .ma-progress span { background: var(--ma-muted); }
.ma-notify { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.ma-notify[hidden] { display: none; }
.ma-notify input { flex: 1 1 200px; padding: 7px 11px !important; }
.ma-notify-msg { font-size: .88em; font-weight: 600; color: #157347; }
.ma-empty { color: var(--ma-muted); text-align: center; padding: 26px 0; border: 1px dashed var(--ma-line); border-radius: 12px; margin: 0; }

@media (max-width: 560px) {
	.ma-propose { flex-wrap: wrap; }
	.ma-propose input[type="text"] { flex-basis: 100%; }
	.ma-date-wrap { flex: 1; }
	.ma-date-wrap input { width: 100%; }
	.ma-propose-sub input { flex-basis: 100%; }
	.ma-item { gap: 10px; padding: 10px; }
	.ma-cal { width: 42px; }
	.ma-vote { width: 48px; }
}
