/* Synesis Graphic Editor — ön yüz */
.sge-embed { margin: 1.5em 0; }
.sge {
	--sge-text: #1B1F27; --sge-muted: #5B6474; --sge-faint: #8B93A1; --sge-line: #E3E7ED; --sge-chip: #F1F3F6; --sge-chip-on: #1B1F27; --sge-chip-on-text: #fff; --sge-accent: #2445A8;
	--sge-surface: transparent;
	position: relative; box-sizing: border-box; width: 100%; color: var(--sge-text);
	background: var(--sge-surface); font-size: 15px; line-height: 1.45; text-align: left;
}
.sge *, .sge *::before, .sge *::after { box-sizing: border-box; }
.sge[data-theme="dark"] {
	--sge-text: #E8EBF1; --sge-muted: #A4ACBA; --sge-faint: #6C7587; --sge-line: #2A303C; --sge-chip: #1E232D; --sge-chip-on: #E8EBF1; --sge-chip-on-text: #12151C; --sge-accent: #7FA2FF;
	--sge-surface: #12151C;
}
@media (prefers-color-scheme: dark) {
	.sge[data-theme="auto"] {
		--sge-text: #E8EBF1; --sge-muted: #A4ACBA; --sge-faint: #6C7587; --sge-line: #2A303C; --sge-chip: #1E232D; --sge-chip-on: #E8EBF1; --sge-chip-on-text: #12151C; --sge-accent: #7FA2FF;
		--sge-surface: #12151C;
	}
}
.sge.sge-has-bg { --sge-surface: var(--sge-bg); }
.sge[data-theme="dark"], .sge.sge-has-bg { padding: 20px 20px 14px; border-radius: 12px; }
.sge[data-font="system"] { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.sge[data-font="serif"] { font-family: Georgia, "Times New Roman", serif; }
.sge[data-font="mono"] { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.sge-head { margin: 0 0 12px; }
.sge-title { font-size: 1.32em; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 4px; color: var(--sge-text); }
.sge-sub { font-size: 0.98em; color: var(--sge-muted); margin: 0; white-space: pre-line; }

.sge-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 12px; }
.sge-ctl-label { font-size: 0.8em; font-weight: 600; color: var(--sge-muted); text-transform: uppercase; letter-spacing: .04em; }
.sge-select { font: inherit; font-size: 0.92em; color: var(--sge-text); background: var(--sge-chip); border: 1px solid var(--sge-line); border-radius: 8px; padding: 6px 30px 6px 10px; min-height: 34px; appearance: none; -webkit-appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--sge-muted) 50%), linear-gradient(135deg, var(--sge-muted) 50%, transparent 50%);
	background-position: calc(100% - 15px) 55%, calc(100% - 10px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.sge-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--sge-chip); border-radius: 10px; padding: 3px; }
.sge-seg-b { font: inherit; font-size: 0.88em; border: 0; background: transparent; color: var(--sge-muted); padding: 5px 12px; border-radius: 8px; cursor: pointer; transition: background .2s, color .2s; }
.sge-seg-b:hover { color: var(--sge-text); }
.sge-seg-b.on { background: var(--sge-chip-on); color: var(--sge-chip-on-text); font-weight: 600; }

.sge-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 10px; align-items: center; }
.sge-legend-bottom .sge-legend { margin: 10px 0 0; }
.sge-lg { font: inherit; font-size: 0.86em; display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; color: var(--sge-text); padding: 2px 0; cursor: pointer; transition: opacity .2s; }
.sge-lg:disabled { cursor: default; }
.sge-lg.off { opacity: .35; }
.sge-lg.off .sge-lg-sw { background: var(--sge-faint) !important; }
.sge-lg.dim { opacity: .4; }
.sge-lg b { font-weight: 700; margin-left: 2px; }
.sge-lg-sw { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; }
.sge-sw-sq { border-radius: 3px; }
.sge-sw-line { height: 3px; width: 16px; border-radius: 2px; }
.sge-sw-none { display: none; }
.sge-lg-grad { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82em; color: var(--sge-muted); }
.sge-lg-bar { display: inline-block; width: 150px; height: 10px; border-radius: 5px; }

.sge-stage { position: relative; width: 100%; min-height: 120px; }
.sge-chart { position: absolute; inset: 0; }
.sge-dom { position: relative; }
.sge-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--sge-muted); font-size: 0.92em; text-align: center; padding: 20px; }

.sge-player { display: flex; align-items: center; gap: 12px; margin: 10px 0 0; }
.sge-play { width: 38px; height: 38px; border-radius: 50%; padding: 0; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; background: var(--sge-chip-on) !important; color: var(--sge-chip-on-text) !important; }
.sge-ico-play { width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.sge-ico-pause { width: 11px; height: 13px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.sge-range { flex: 1 1 auto; accent-color: var(--sge-accent); min-width: 80px; }
.sge-step { font-weight: 700; min-width: 3.5em; text-align: right; font-variant-numeric: tabular-nums; }

.sge-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 16px; margin: 12px 0 0; font-size: 0.8em; color: var(--sge-muted); }
.sge-foot-l { flex: 1 1 260px; }
.sge-note { margin: 0 0 3px; }
.sge-source-k { font-weight: 600; }
.sge-source a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.sge-foot-r { display: flex; align-items: center; gap: 6px; }
.sge-credit { font-weight: 700; letter-spacing: .02em; color: var(--sge-faint); margin-left: 6px; }
.sge-btn { font: inherit; font-size: 0.92em; line-height: 1; border: 1px solid var(--sge-line); background: transparent; color: var(--sge-muted); padding: 6px 9px; border-radius: 7px; cursor: pointer; transition: background .2s, color .2s; }
.sge-btn:hover { background: var(--sge-chip); color: var(--sge-text); }
.sge-btn:focus-visible, .sge-lg:focus-visible, .sge-seg-b:focus-visible, .sge-select:focus-visible { outline: 2px solid var(--sge-accent); outline-offset: 2px; }

/* İpucu */
.sge-tip-h { font-weight: 700; font-size: 13px; margin: 0 0 6px; }
.sge-tip-sub { font-size: 12px; opacity: .7; margin: -3px 0 6px; }
.sge-tip-r { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin: 3px 0; }
.sge-tip-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.sge-tip-n { flex: 1 1 auto; opacity: .85; }
.sge-tip-v { font-weight: 600; font-variant-numeric: tabular-nums; margin-left: 12px; }
.sge-tip-v.b { font-weight: 800; }
.sge-tip-t { border-top: 1px solid rgba(127,127,127,.25); margin-top: 6px; padding-top: 4px; }

/* Tablo */
.sge-table { font-size: 0.92em; }
.sge-search { font: inherit; width: 100%; max-width: 280px; margin: 0 0 10px; padding: 8px 12px; border: 1px solid var(--sge-line); border-radius: 8px; background: var(--sge-chip); color: var(--sge-text); }
.sge-table-sc { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 8px; }
.sge-table table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0; font-variant-numeric: tabular-nums; }
.sge-table th { position: sticky; top: 0; background: var(--sge-surface, #fff); text-align: left; border-bottom: 2px solid var(--sge-text); padding: 0; white-space: nowrap; }
.sge:not([data-theme="dark"]) .sge-table th { background: #fff; }
.sge-table th button { font: inherit; font-weight: 700; color: var(--sge-text); background: none; border: 0; padding: 9px 10px; cursor: pointer; width: 100%; text-align: inherit; }
.sge-table th[aria-sort="ascending"] button::after { content: " ▲"; font-size: .7em; }
.sge-table th[aria-sort="descending"] button::after { content: " ▼"; font-size: .7em; }
.sge-table th.num, .sge-table td.num { text-align: right; }
.sge-table td { padding: 8px 10px; border-bottom: 1px solid var(--sge-line); color: var(--sge-text); }
.sge-table tr.hl td { font-weight: 700; }
.sge-table tr.hl td:first-child { box-shadow: inset 3px 0 0 var(--sge-accent); }
.sge-table tbody tr:hover td { filter: brightness(0.97); }
.sge-cb { position: relative; min-width: 90px; height: 22px; display: flex; align-items: center; justify-content: flex-end; }
.sge-cb span { position: absolute; left: 0; top: 2px; bottom: 2px; border-radius: 4px; }
.sge-cb em { position: relative; font-style: normal; padding: 0 6px; }
.sge-pager { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin: 10px 0 0; color: var(--sge-muted); }

/* Erişilebilirlik / statik yedek */
.sge-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sge-static table { border-collapse: collapse; font-size: 14px; }
.sge-static th, .sge-static td { border: 1px solid #ddd; padding: 4px 8px; }

@media (max-width: 560px) {
	.sge { font-size: 14px; }
	.sge[data-theme="dark"], .sge.sge-has-bg { padding: 14px 12px 10px; }
	.sge-title { font-size: 1.2em; }
	.sge-lg-bar { width: 100px; }
}
@media print { .sge-foot-r, .sge-player, .sge-controls { display: none; } }
.sge-embed .sge-root:empty { min-height: calc(var(--sge-h, 460px) + 90px); }
.sge-missing { color: #b32d2e; }
.sge-embed.sge-align-center { margin-left: auto; margin-right: auto; }
.sge-embed.sge-align-left { float: left; width: 100%; margin: .4em 1.6em 1em 0; }
.sge-embed.sge-align-right { float: right; width: 100%; margin: .4em 0 1em 1.6em; }
@media (max-width: 600px) { .sge-embed.sge-align-left, .sge-embed.sge-align-right { float: none; margin-left: 0; margin-right: 0; max-width: none !important; } }
