/* Tanışmalıyız – Kaç Gün Kaldı (temadan bağımsız). */
.tmgs, .tmgs-list, .tmgs-hub, .tmgs-related {
	--g-ink: #1d2b44;
	--g-muted: #5d6b82;
	--g-line: #d9e0ea;
	--g-panel: #f4f7fa;
	--g-card: #ffffff;
	--g-accent: #c0392b;
	--g-accent-soft: #fdecea;
	--g-ok: #0f7b62;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--g-ink);
}
.tmgs *, .tmgs-list *, .tmgs-hub * { box-sizing: border-box; }

/* Ana sayaç */
.tmgs { background: var(--g-panel); border: 1px solid var(--g-line); border-radius: 12px; padding: 22px 20px; margin: 1.2em 0 1.6em; text-align: center; }
.tmgs__event { font-size: 1.05em; font-weight: 700; line-height: 1.35; }
.tmgs__date { color: var(--g-muted); font-size: 0.95em; margin: 2px 0 16px; }
.tmgs__est { display: inline-block; font-size: 12px; font-weight: 700; color: #7a5300; background: #fff6e0; border-radius: 99px; padding: 1px 9px; vertical-align: middle; }
.tmgs__clock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 560px; margin: 0 auto; }
.tmgs__unit { background: var(--g-card); border: 1px solid var(--g-line); border-radius: 10px; padding: 12px 4px 10px; display: grid; gap: 2px; }
.tmgs__num { font-size: clamp(30px, 8vw, 54px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.tmgs__unit:first-child .tmgs__num { color: var(--g-accent); }
.tmgs__lbl { font-size: 13px; color: var(--g-muted); font-weight: 600; }
.tmgs__clock.is-done .tmgs__num { color: var(--g-ok); }
.tmgs__sentence { font-size: 1.1em; font-weight: 700; margin: 16px 0 0; }
.tmgs__none { margin: 0; }
.tmgs__src { font-size: 13px; color: var(--g-muted); margin: 14px 0 0; }
.tmgs__table { width: 100%; max-width: 640px; margin: 18px auto 0; border-collapse: collapse; font-size: 14px; text-align: left; background: var(--g-card); border-radius: 8px; overflow: hidden; }
.tmgs__table th, .tmgs__table td { padding: 8px 10px; border-bottom: 1px solid var(--g-line); }
.tmgs__table th { font-size: 12.5px; color: var(--g-muted); font-weight: 700; }
.tmgs__table td:last-child, .tmgs__table th:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tmgs__table tr.is-past td { color: var(--g-muted); text-decoration: line-through; }

/* Listeler */
.tmgs-list { list-style: none !important; margin: 0 0 1.4em !important; padding: 0 !important; display: grid; gap: 8px; }
.tmgs-list li { display: flex; align-items: center; gap: 14px; margin: 0 !important; padding: 10px 12px; background: var(--g-card); border: 1px solid var(--g-line); border-radius: 10px; list-style: none !important; }
.tmgs-list li::before { content: none !important; }
.tmgs-list__days { flex: none; width: 64px; text-align: center; display: grid; line-height: 1.05; }
.tmgs-list__days b { font-size: 24px; font-weight: 800; color: var(--g-accent); font-variant-numeric: tabular-nums; }
.tmgs-list__days small { font-size: 11.5px; color: var(--g-muted); font-weight: 600; }
.tmgs-list__body { display: grid; gap: 2px; min-width: 0; }
.tmgs-list__body a { font-weight: 700; text-decoration: none; color: inherit; }
.tmgs-list__body a:hover { text-decoration: underline; }
.tmgs-list__body small { color: var(--g-muted); font-size: 13px; }
.tmgs-hub h2, .tmgs-related h2 { margin-top: 1.4em; }
.tmgs-tools { margin: 0 0 1.4em; padding-left: 1.2em; }

/* Araçlar */
.tmgs--tool { text-align: left; }
.tmgs-tool__form { display: grid; gap: 12px; max-width: 520px; margin: 0 auto 6px; }
.tmgs-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tmgs-f { display: grid; gap: 5px; }
.tmgs-f > span { font-size: 14px; font-weight: 600; }
.tmgs input[type="date"], .tmgs input[type="time"], .tmgs input[type="number"], .tmgs input[type="text"], .tmgs select {
	width: 100%; min-height: 44px; padding: 8px 12px; font: inherit; font-size: 16px; color: var(--g-ink);
	background: var(--g-card); border: 1px solid #b9c4d3; border-radius: 8px; margin: 0;
}
.tmgs input:focus, .tmgs select:focus { outline: 2px solid var(--g-accent); outline-offset: 1px; }
.tmgs-tool__out { text-align: center; margin-top: 16px; }
.tmgs-tool__out:empty { display: none; }
.tmgs-bar { height: 10px; max-width: 560px; margin: 16px auto 0; background: var(--g-card); border: 1px solid var(--g-line); border-radius: 99px; overflow: hidden; }
.tmgs-bar span { display: block; height: 100%; background: var(--g-ok); }
.tmgs-share { display: flex; gap: 8px; max-width: 560px; margin: 16px auto 0; }
.tmgs-share input { flex: 1; min-width: 0; font-size: 14px !important; }
.tmgs-btn { min-height: 44px; padding: 8px 16px; font: inherit; font-weight: 700; color: #fff; background: var(--g-ink); border: 0; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.tmgs-btn:focus-visible { outline: 2px solid var(--g-accent); outline-offset: 2px; }

@media (max-width: 480px) {
	.tmgs { padding: 16px 12px; }
	.tmgs__clock { gap: 6px; }
	.tmgs__unit { padding: 10px 2px 8px; }
	.tmgs-row2 { grid-template-columns: 1fr; }
	.tmgs-share { flex-direction: column; }
}

/* Karanlık mod (Manşet teması) */
html[data-theme="dark"] .tmgs, html[data-theme="dark"] .tmgs-list, html[data-theme="dark"] .tmgs-hub, html[data-theme="dark"] .tmgs-related {
	--g-ink: #e6ebf3; --g-muted: #a3afc2; --g-line: #334055; --g-panel: #1a2230; --g-card: #222c3c; --g-accent: #ff7b6e; --g-ok: #3cc49c;
}
