/* Talk It Through */
.tlk-app {
	--tlk-primary: #1b365d;
	--tlk-accent: #008b80;
	--tlk-gold: #c9942a;
	--tlk-ink: #1d2a3b;
	--tlk-muted: #5a6878;
	--tlk-line: #e3e0d8;
	--tlk-line-2: #cfd6dd;
	--tlk-bg: #f7f5f0;
	--tlk-accent-ink: #00675f;
	--tlk-a: #2b5797;
	--tlk-b: #a8761a;
	--tlk-a-soft: #e6eef8;
	--tlk-b-soft: #f7ecd6;
	--tlk-both: #e9f3f1;
	color: var(--tlk-ink);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
.tlk-app *, .tlk-app *::before, .tlk-app *::after { box-sizing: border-box; }
.tlk-wrap { max-width: 880px; margin: 0 auto; }
.tlk-app p { margin: 0 0 12px; }
.tlk-app svg { width: 1em; height: 1em; vertical-align: -0.14em; flex: 0 0 auto; }
.tlk-loading { color: var(--tlk-muted); }
.tlk-muted { color: var(--tlk-muted); }
.tlk-small { font-size: 0.88em; }
.tlk-center { text-align: center; justify-content: center; }
.tlk-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 0; }
.tlk-gap { margin-top: 14px; }

/* Buttons: base look; colors are also pinned inline by the script so themes can't override them. */
.tlk-app.tlk-app button { font: inherit; cursor: pointer; line-height: 1.25; text-align: inherit; margin: 0; }
.tlk-app.tlk-app.tlk-app button::before, .tlk-app.tlk-app.tlk-app button::after { content: none !important; display: none !important; }
.tlk-btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; border-radius: 12px; padding: 12px 20px; transition: transform .08s ease, filter .15s ease; }
.tlk-btn:hover { filter: brightness(0.96); }
.tlk-btn:active { transform: translateY(1px); }
.tlk-btn.tlk-sm { padding: 8px 14px; font-size: 0.9em; }
.tlk-app button:focus-visible, .tlk-input:focus-visible { outline: 3px solid var(--tlk-gold); outline-offset: 2px; }
.tlk-link { font-weight: 600; font-size: 0.9em; }

/* Hero */
.tlk-hero { text-align: center; padding: 8px 0 18px; }
.tlk-hero-ic { color: var(--tlk-gold); font-size: 44px; line-height: 1; margin-bottom: 8px; }
.tlk-hero-ic svg { width: 52px; height: 48px; }
.tlk-title { margin: 0 0 8px; font-size: 2.05em; line-height: 1.15; font-weight: 800; color: var(--tlk-primary); letter-spacing: -0.01em; }
.tlk-intro { max-width: 680px; margin: 0 auto 6px !important; color: var(--tlk-ink); font-size: 1.02em; text-align: left; }
.tlk-intro-show { margin: 0 auto 12px !important; max-width: 680px; text-align: left; font-size: .9em; }
.tlk-couple { font-weight: 700; }
.tlk-amp { color: var(--tlk-gold); margin: 0 4px; }
.tlk-who { font-weight: 800; }
.tlk-who-a { color: var(--tlk-a); }
.tlk-who-b { color: var(--tlk-b); }
.tlk-prog { max-width: 420px; margin: 12px auto 0; }
.tlk-prog-bar { height: 10px; background: #e7ebef; border-radius: 99px; overflow: hidden; }
.tlk-prog-bar span { display: block; height: 100%; background: var(--tlk-accent); border-radius: 99px; transition: width .3s ease; }
.tlk-prog-t { margin-top: 6px; font-size: 0.9em; color: var(--tlk-muted); }

/* Cards and headings */
.tlk-card { background: #fff; border: 1.5px solid var(--tlk-line); border-radius: 18px; padding: 24px 26px; margin: 18px 0; }
.tlk-h { margin: 0 0 12px; font-size: 1.25em; font-weight: 800; color: var(--tlk-primary); display: flex; align-items: center; gap: 8px; }
.tlk-h svg { color: var(--tlk-accent); }
.tlk-h4 { margin: 22px 0 8px; font-size: 1.02em; font-weight: 800; color: var(--tlk-primary); }
.tlk-sec { margin: 26px 0 10px; font-size: 1.3em; font-weight: 800; color: var(--tlk-primary); }
.tlk-eyebrow { display: inline-block; font-size: 0.8em; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tlk-accent-ink); margin-bottom: 6px; }
.tlk-whead { text-align: center; margin: 10px 0 6px; }
.tlk-setup { border-color: var(--tlk-gold); }
.tlk-ritual { background: var(--tlk-bg); }

/* Numbered lists */
.tlk-steps, .tlk-prompts { list-style: none; counter-reset: tlk; margin: 0; padding: 0; }
.tlk-steps li, .tlk-prompts li { counter-increment: tlk; position: relative; padding: 4px 0 8px 40px; }
.tlk-steps li::before, .tlk-prompts li::before { content: counter(tlk); position: absolute; left: 0; top: 3px; width: 28px; height: 28px; border-radius: 50%; background: var(--tlk-both); color: var(--tlk-accent-ink); font-weight: 800; font-size: 0.85em; display: flex; align-items: center; justify-content: center; }
.tlk-prompts li::before { background: var(--tlk-b-soft); color: var(--tlk-b); }

.tlk-verse { margin: 16px 0 0; padding: 16px 20px; background: #fbf6ea; border-radius: 14px; font-style: italic; color: #3c3a33; border: 0; quotes: none; }
.tlk-verse cite { display: block; margin-top: 6px; font-style: normal; font-weight: 700; font-size: 0.85em; color: var(--tlk-b); }

/* Weeks grid */
.tlk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tlk-wk { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 16px; text-align: left; min-height: 150px; }
.tlk-wk:hover { box-shadow: 0 6px 18px rgba(27, 54, 93, 0.10) !important; }
.tlk-wk-n { font-size: 0.78em; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tlk-accent-ink); }
.tlk-wk-t { font-size: 1.12em; font-weight: 800; color: var(--tlk-primary); }
.tlk-wk-s { font-size: 0.92em; color: var(--tlk-muted); }
.tlk-wk-f { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; font-size: 0.85em; font-weight: 700; color: var(--tlk-muted); }
.tlk-wk-done .tlk-wk-st { color: var(--tlk-accent-ink); display: inline-flex; gap: 4px; align-items: center; }
.tlk-wk-going .tlk-wk-st { color: var(--tlk-b); }
.tlk-wk-d { color: var(--tlk-muted); font-weight: 600; }

/* Navigation */
.tlk-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.tlk-nav-r { display: flex; gap: 8px; flex-wrap: wrap; }

/* Forms */
.tlk-label { display: block; font-weight: 700; font-size: 0.92em; margin: 10px 0 4px; color: var(--tlk-ink); }
.tlk-app .tlk-input { display: block; width: 100%; max-width: 100%; font: inherit; font-size: 1em; color: var(--tlk-ink); background: #fff; border: 1.5px solid var(--tlk-line-2); border-radius: 10px; padding: 10px 12px; margin: 0 0 8px; box-shadow: none; line-height: 1.45; min-height: 0; height: auto; }
.tlk-app textarea.tlk-input { resize: vertical; }
.tlk-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.tlk-q { margin: 14px 0 6px; }
.tlk-qt { font-weight: 700; margin-bottom: 2px !important; }
.tlk-tool { margin-top: 14px; padding-top: 6px; border-top: 1px dashed var(--tlk-line); }

/* Agreement rules */
.tlk-rules { list-style: none; margin: 0; padding: 0; }
.tlk-rules li { margin: 0; }
.tlk-check, .tlk-custom { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; font-weight: 600; }
.tlk-custom { padding: 6px 0; }
.tlk-custom .tlk-link { margin-left: auto; }
.tlk-box { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--tlk-line-2); display: inline-flex; align-items: center; justify-content: center; color: #fff; margin-top: 1px; }
.tlk-on .tlk-box, .tlk-box.tlk-on { background: var(--tlk-accent); border-color: var(--tlk-accent); }
.tlk-check:not(.tlk-on) span:last-child { color: var(--tlk-muted); text-decoration: line-through; }
.tlk-addrow { display: flex; gap: 8px; margin-top: 10px; align-items: flex-start; }
.tlk-addrow .tlk-input { margin: 0; }

/* Timer */
.tlk-timer { text-align: center; border-radius: 18px; padding: 20px; background: var(--tlk-a-soft); transition: background .2s; margin-top: 10px; }
.tlk-timer[data-who="b"] { background: var(--tlk-b-soft); }
.tlk-floor { display: flex; flex-direction: column; align-items: center; }
.tlk-floor-l { font-size: 0.78em; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tlk-muted); }
.tlk-floor-n { font-size: 1.7em; font-weight: 800; color: var(--tlk-a); }
.tlk-timer[data-who="b"] .tlk-floor-n { color: var(--tlk-b); }
.tlk-floor-r { font-size: 0.88em; color: var(--tlk-muted); }
.tlk-clock { font-size: 3.6em; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--tlk-primary); line-height: 1.1; margin: 6px 0 4px; }
.tlk-ding .tlk-clock { color: #b03a3a; animation: tlk-pulse 1s ease 3; }
@keyframes tlk-pulse { 50% { transform: scale(1.06); } }
.tlk-tip { background: var(--tlk-bg); border-radius: 14px; padding: 14px 16px; font-size: 0.94em; }
.tlk-tip ul { margin: 6px 0 0; padding-left: 18px; }

.tlk-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.tlk-pill { font-size: 0.9em; font-weight: 600; }

/* Gentle start-ups */
.tlk-rws { list-style: none; margin: 0; padding: 0; }
.tlk-rw { padding: 10px 0; border-bottom: 1px solid var(--tlk-line); }
.tlk-harsh, .tlk-gentle { margin: 0 0 4px !important; }
.tlk-tag { display: inline-block; font-size: 0.72em; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; padding: 2px 8px; border-radius: 99px; margin-right: 8px; vertical-align: 2px; }
.tlk-tag-bad { background: #f8e3e3; color: #9b2c2c; }
.tlk-tag-good { background: #dff1ec; color: #0b6b5a; }
.tlk-builder { background: var(--tlk-bg); border-radius: 14px; padding: 14px 16px 6px; margin-top: 6px; }
.tlk-preview { background: #fff; border-radius: 10px; padding: 12px 14px; border: 1.5px dashed var(--tlk-line-2); font-size: 1.02em; }

/* Tables */
.tlk-scroll { overflow-x: auto; margin: 8px 0 12px; }
.tlk-table { width: 100%; border-collapse: collapse; font-size: 0.92em; min-width: 520px; }
.tlk-table th, .tlk-table td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--tlk-line); }
.tlk-table thead th { font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tlk-muted); border-bottom: 2px solid var(--tlk-line-2); }
.tlk-table td.tlk-good { color: #0b6b5a; font-weight: 600; }
.tlk-table td.tlk-bad { color: #9b2c2c; }

/* Feelings */
.tlk-feelings { display: grid; gap: 12px; margin-top: 12px; }
.tlk-fg { display: grid; grid-template-columns: 90px 1fr; gap: 10px; align-items: start; }
.tlk-fg-h { font-weight: 800; color: var(--tlk-primary); padding-top: 6px; }
.tlk-fg-w { display: flex; flex-wrap: wrap; gap: 6px; }
.tlk-feel { font-size: 0.88em; font-weight: 600; }
.tlk-pill-a.tlk-on { background-color: var(--tlk-a) !important; border-color: var(--tlk-a) !important; }
.tlk-pill-b.tlk-on { background-color: var(--tlk-b) !important; border-color: var(--tlk-b) !important; }
.tlk-today { border-radius: 12px; padding: 10px 14px; background: var(--tlk-a-soft); }
.tlk-today-b { background: var(--tlk-b-soft); }

.tlk-callout { background: var(--tlk-both); border-radius: 12px; padding: 12px 16px; margin: 12px 0; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.tlk-callout svg { color: var(--tlk-accent); }

/* Daily habit */
.tlk-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.tlk-day { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 0.85em; font-weight: 700; text-align: center; min-height: 58px; justify-content: center; }
.tlk-day svg { width: 18px; height: 18px; }

/* End of week */
.tlk-end { margin: 24px 0 8px; }
.tlk-done-msg { text-align: center; color: var(--tlk-accent-ink); font-weight: 800; font-size: 1.1em; }

.tlk-safety { margin: 26px 0 8px; padding: 14px 18px; border-radius: 14px; background: #f3f4f6; font-size: 0.86em; color: #3f4a57; }
.tlk-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 16px 0 0; font-size: 0.85em; color: var(--tlk-muted); }

/* Agreement certificate */
.tlk-cert { position: relative; background: #fff; border: 2px solid var(--tlk-gold); border-radius: 22px; padding: 34px 38px; margin: 16px 0; box-shadow: inset 0 0 0 6px #fff, inset 0 0 0 7px rgba(201, 148, 42, 0.45); text-align: center; }
.tlk-cert-ic { color: var(--tlk-gold); }
.tlk-cert-ic svg { width: 46px; height: 42px; }
.tlk-cert-t { margin: 6px 0 8px; font-size: 1.8em; font-weight: 800; color: var(--tlk-primary); }
.tlk-cert-sub { max-width: 560px; margin: 0 auto 14px !important; }
.tlk-cert-l { text-align: left; max-width: 600px; margin: 0 auto 18px; padding-left: 22px; }
.tlk-cert-l li { margin: 4px 0; }
.tlk-cert-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 auto 18px; max-width: 660px; }
.tlk-cert-grid div { background: var(--tlk-bg); border-radius: 12px; padding: 10px; }
.tlk-cert-grid span { display: block; font-size: 0.76em; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tlk-muted); }
.tlk-sigs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; max-width: 560px; margin: 8px auto 6px; }
.tlk-sig { display: block; min-height: 40px; border-bottom: 1.5px solid var(--tlk-ink); font-family: "Brush Script MT", "Segoe Script", "Snell Roundhand", cursive; font-size: 1.7em; color: var(--tlk-primary); }
.tlk-sig-l { display: block; font-size: 0.82em; color: var(--tlk-muted); margin-top: 4px; }
.tlk-cert-d { font-size: 0.86em; color: var(--tlk-muted); }
.tlk-cert .tlk-verse { max-width: 560px; margin: 10px auto 0; }

/* Print page answers */
.tlk-ans { background: var(--tlk-bg); border-radius: 10px; padding: 8px 12px; }
.tlk-ans p:last-child { margin: 0; }
.tlk-lines span { display: block; height: 28px; border-bottom: 1px solid #b9c2cc; }
.tlk-blank { display: inline-block; width: 85%; border-bottom: 1px solid #b9c2cc; height: 1.2em; }

/* Phones */
@media (max-width: 640px) {
	.tlk-app { font-size: 16px; }
	.tlk-card { padding: 18px 16px; border-radius: 16px; }
	.tlk-grid, .tlk-two, .tlk-cert-grid, .tlk-sigs { grid-template-columns: minmax(0, 1fr); }
	.tlk-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.tlk-fg { grid-template-columns: minmax(0, 1fr); gap: 4px; }
	.tlk-title { font-size: 1.65em; }
	.tlk-cert { padding: 26px 18px; }
	.tlk-clock { font-size: 3em; }
}

/* Print (from the program's own clean print page) */
@media print {
	@page { size: letter; margin: 0.5in; }
	.tlk-app, .tlk-app * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
	.tlk-print-doc .tlk-app { font-size: 12.5px; }
	.tlk-printing .tlk-card { break-inside: auto; padding: 14px 16px; margin: 10px 0; }
	.tlk-printing .tlk-q, .tlk-printing .tlk-rw, .tlk-printing .tlk-steps li, .tlk-printing .tlk-prompts li, .tlk-printing .tlk-cert { break-inside: avoid; }
	.tlk-printing .tlk-h, .tlk-printing .tlk-h4 { break-after: avoid; }
	.tlk-printing .tlk-cert { margin: 0; }
	.tlk-printing .tlk-pb { break-before: page; }
	.tlk-printing .tlk-table { min-width: 0; }
	.tlk-printing .tlk-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tlk-printing .tlk-days { grid-template-columns: repeat(7, minmax(0, 1fr)); }
	.tlk-printing .tlk-day { min-height: 40px; border: 1.5px solid var(--tlk-line-2); border-radius: 10px; }
	.tlk-printing .tlk-day.tlk-on { background: var(--tlk-accent); color: #fff; border-color: var(--tlk-accent); }
}
