:root { --fatum-yes: #65d7a0; --fatum-no: #f37980; --fatum-gold: #dfbc79; --fatum-aether: #4cd1ff; --fatum-muted: #a9b2c3; }
.fatum-body { --ink: #eef0f7; --muted: #a9b2c3; --border: #8d99b755; --accent: #dfbc79; margin: 0; padding: 40px 18px 70px; color: #eef0f7; background: radial-gradient(ellipse at 50% 0, #101622, #030508 60%); font-family: Georgia, 'Times New Roman', serif; color-scheme: dark; }
.fatum-body *, .fatum-body *::before, .fatum-body *::after { box-sizing: border-box; }
.fatum-page { max-width: 1320px; margin: auto; }
.fatum-selection { margin: 18px 0; font: 14px/1.6 Arial, sans-serif; }
.fatum-cycle-box { display: grid; justify-items: center; gap: 10px; padding: clamp(18px, 3vw, 28px); margin-bottom: 16px; border: 1px solid #4cd1ff55; background: #080e18; box-shadow: 0 10px 28px #0006; text-align: center; }
.fatum-cycle-box .fatum-cycle-status { margin: 0; color: #d7edff; font-size: 16px; }
.fatum-cycle-timer { color: var(--fatum-aether); font: bold clamp(2rem, 5vw, 3.25rem)/1.3 Arial, sans-serif; font-variant-numeric: tabular-nums; text-shadow: 0 0 18px #4cd1ff55; overflow-wrap: anywhere; }
.fatum-cycle-timer[hidden] { display: none; }
.fatum-active-threads { display: grid; gap: 12px; margin-top: 16px; }
.fatum-thread { display: flex; align-items: center; gap: 16px; padding: clamp(14px, 3vw, 22px); border: 1px solid #4cd1ff55; background: #0b1726; }
.fatum-thread img { flex: 0 0 64px; width: 64px; height: 64px; object-fit: contain; }
.fatum-thread > div { min-width: 0; }
.fatum-thread strong { color: #9cddff; }
.fatum-thread p { margin: 6px 0 0; color: #c5cfde; font: 14px/1.6 Arial, sans-serif; }
.fatum-master-action[hidden] { display: none; }
.fatum-master-box { padding: clamp(16px, 3vw, 28px); margin: 24px 0; border: 1px solid #4cd1ff55; background: #080e18; color: #edf0f5; box-shadow: 0 10px 28px #0006; }
.fatum-master-box > h2 { color: #fff; margin-top: 0; }
.fatum-master-box > .fatum-help { color: #c5cfde; }
.fatum-master-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fatum-master-actions .fatum-master-action { display: flex; margin: 0; padding: 0; max-width: 100%; }
.fatum-master-actions .fatum-master-action[hidden] { display: none; }
.fatum-master-actions button { white-space: normal; margin: 0; }
.fatum-master-actions .fatum-master-finish-button { background: #103b64; border-color: #4cd1ff; color: #eef7ff; }
.fatum-proposals { padding: clamp(14px, 3vw, 26px); border: 1px solid var(--fatum-aether); background: #0b1726; }
.fatum-proposals[hidden], .fatum-active-threads[hidden] { display: none; }
.fatum-proposals h2 { color: #fff; margin-top: 0; }
.fatum-cycle-status, .fatum-active-threads { color: #9cddff; }
.fatum-proposal-list { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 12px; }
.fatum-proposal-button { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; padding: 14px; text-align: left; background: #080e18; border: 1px solid #4cd1ff55; color: #fff; font: 14px/1.5 Arial, sans-serif; cursor: pointer; }
.fatum-proposal-button img { flex: 0 0 48px; object-fit: contain; }
.fatum-proposal-label { flex: 1; min-width: 0; }
.fatum-proposal-label strong, .fatum-proposal-label small { display: block; }
.fatum-proposal-label small { color: var(--fatum-muted); margin-top: 5px; }
.fatum-proposal-count { white-space: nowrap; color: var(--fatum-aether); font-weight: bold; }
.fatum-proposal-button[aria-pressed=true] { border-color: #4cd1ff; box-shadow: 0 0 12px #4cd1ff55; }
.fatum-proposal-button:disabled { cursor: default; }
@media (max-width: 480px) { .fatum-proposal-button { grid-template-columns: 48px minmax(0, 1fr); } .fatum-proposal-count { grid-column: 2; } }
.fatum-heading { display: grid; place-items: center; min-height: 140px; margin-bottom: 20px; text-align: center; background: #080c13; box-shadow: 0 12px 24px #0006; }
.fatum-heading h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0; color: #fff; }
.fatum-help { color: var(--fatum-muted); line-height: 1.6; }
.fatum-eyebrow { color: var(--fatum-gold); font: 12px/1.5 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.fatum-chamber { background: radial-gradient(ellipse at 50% 15%, #0d14204d, transparent 65%), #04060b; border: 1px solid #dfbc7938; border-radius: 12px; padding: clamp(14px, 3vw, 30px); margin: 20px 0; color: #edf0f5; }
:root .fatum-chamber[data-frame="6"] { --ui-frame-width: clamp(24px, 4vw, 52px); --ui-frame-padding: clamp(18px, 3vw, 40px); }
.fatum-chamber-header, .fatum-sim-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.fatum-mode-badge { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; padding: 10px 14px; border: 1px solid var(--fatum-aether); border-radius: 8px; background: #4cd1ff08; }
.fatum-mode-icon { flex: 0 0 40px; width: 40px; height: 40px; object-fit: contain; }
.fatum-mode { min-width: 0; color: #fff; font: 22px/1.5 'Times New Roman', Times, serif; }
.fatum-simulation-badge { border: 1px solid #dfbc7960; border-radius: 30px; padding: 7px 12px; color: var(--fatum-gold); font: 12px/1.4 Arial, sans-serif; }
.fatum-graphic { max-width: 1100px; margin: 12px auto 0; }
.fatum-horseshoe { display: block; width: 100%; overflow: visible; }
.fatum-graphic-background { pointer-events: none; }
.fatum-power-segment--yes { filter: drop-shadow(0 0 4px #65d7a0cc) drop-shadow(0 0 9px #65d7a080); }
.fatum-power-segment--no { filter: drop-shadow(0 0 4px #f37980cc) drop-shadow(0 0 9px #f3798080); }
.fatum-horseshoe .fatum-seat { stroke: #101622; stroke-width: 2; transition: fill .15s; }
.fatum-horseshoe .fatum-seat--yes { filter: drop-shadow(0 0 5px #65d7a0b3) drop-shadow(0 0 10px #65d7a04d); }
.fatum-horseshoe .fatum-seat--no { filter: drop-shadow(0 0 5px #f37980b3) drop-shadow(0 0 10px #f379804d); }
.fatum-horseshoe .fatum-seat[role=button] { cursor: pointer; }
.fatum-seat:focus-visible { stroke: #fff; stroke-width: 4; outline: none; }
.fatum-svg-number { fill: #fff; font: 44px Arial, sans-serif; font-variant-numeric: tabular-nums; }
.fatum-svg-caption { fill: #a9b2c3; font: 13px Arial, sans-serif; }
.fatum-marker { stroke: #ffe3a6; stroke-width: 3; }
.fatum-marker-label { fill: #ffe3a6; font: bold 11px Arial, sans-serif; paint-order: stroke; stroke: #101622; stroke-width: 4; }
.fatum-outlook { margin: 12px 0 24px; text-align: center; }
.fatum-outlook[hidden] { display: none; }
.fatum-outlook .fatum-quorum { margin: 0 0 12px; color: #fff; font: 16px/1.6 Arial, sans-serif; }
.fatum-outlook .fatum-forecast { margin: 0; font: bold clamp(1.2rem, 2.8vw, 1.8rem)/1.5 Arial, sans-serif; }
.fatum-forecast[data-tone=warning] { color: #f5d45e; }
.fatum-forecast[data-tone=positive] { color: var(--fatum-yes); }
.fatum-forecast[data-tone=negative] { color: var(--fatum-no); }
.fatum-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 12px 0 24px; text-align: center; }
.fatum-totals--voices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fatum-total-card { min-width: 0; padding: 20px 12px; border: 1px solid currentColor; border-radius: 8px; background: #05080d; }
:root .fatum-total-card[data-frame="1"] { --ui-frame-width: 14px; --ui-frame-padding: 22px 14px; transition: background .2s, box-shadow .2s; }
:root .fatum-total-card.fatum-yes[data-frame="1"] { --ui-frame-filter: sepia(1) saturate(3.2) hue-rotate(110deg) brightness(1.1); --fatum-card-color: var(--fatum-yes); --fatum-card-glow: #65d7a080; --fatum-card-fill: #07170f; }
:root .fatum-total-card.fatum-no[data-frame="1"] { --ui-frame-filter: sepia(1) saturate(5) hue-rotate(310deg) brightness(1.1); --fatum-card-color: var(--fatum-no); --fatum-card-glow: #f3798080; --fatum-card-fill: #1c090d; }
.fatum-totals[data-leading=yes] .fatum-total-card.fatum-yes,
.fatum-totals[data-leading=no] .fatum-total-card.fatum-no { background: var(--fatum-card-fill); box-shadow: 0 0 18px var(--fatum-card-glow), inset 0 0 18px var(--fatum-card-glow); }
.fatum-totals[data-leading=yes] .fatum-total-card.fatum-yes strong,
.fatum-totals[data-leading=no] .fatum-total-card.fatum-no strong { text-shadow: 0 0 10px currentColor, 0 0 24px var(--fatum-card-glow); }
.fatum-totals[data-leading=yes] .fatum-total-card.fatum-yes small,
.fatum-totals[data-leading=no] .fatum-total-card.fatum-no small { text-shadow: 0 0 10px var(--fatum-card-color); }
.fatum-total-power { color: var(--fatum-aether); background: #4cd1ff08; }
.fatum-totals dt { font: bold 13px/1.5 Arial, sans-serif; letter-spacing: .04em; }
.fatum-totals dd { margin: 10px 0 0; }
.fatum-totals strong { display: block; font: bold clamp(1.8rem, 4vw, 3rem)/1.2 Arial, sans-serif; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fatum-totals small { display: block; margin-top: 10px; color: var(--fatum-muted); font: 12px/1.6 Arial, sans-serif; overflow-wrap: anywhere; }
@media (max-width: 620px) { .fatum-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .fatum-total-power { grid-column: 1 / -1; } }
.fatum-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; font: 13px Arial, sans-serif; color: var(--fatum-gold); }
.fatum-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.fatum-legend-icon { flex: 0 0 24px; width: 24px; height: 24px; object-fit: contain; }
.fatum-yes { color: var(--fatum-yes) !important; }
.fatum-no { color: var(--fatum-no) !important; }
.fatum-pending { color: #a9b2c3; }
.fatum-abstained { color: #c4cbd5; }
.fatum-open-dot { color: #5b6578; }
.fatum-help { font: 13px/1.6 Arial, sans-serif; margin: 14px 0; }
.fatum-chamber > .fatum-help { text-align: center; }
.fatum-timer-box { text-align: center; display: grid; gap: 6px; margin: 24px 0; color: var(--fatum-muted); font: 13px/1.5 Arial, sans-serif; }
.fatum-timer { font: clamp(36px, 5vw, 52px)/1.4 Arial, sans-serif; color: var(--fatum-gold); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fatum-vote-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 620px; margin: 12px auto 0; }
.fatum-button, .fatum-vote-buttons button { width: auto; border: 1px solid #8d99b755; border-radius: 6px; background: #252f42; color: #eef1f7; padding: 11px 18px; font: 14px/1.4 Arial, sans-serif; cursor: pointer; margin: 0; }
.fatum-vote-buttons button { display: flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box; width: 100%; min-width: 0; min-height: 54px; padding: 12px 8px; }
.fatum-vote-icon { flex: 0 0 28px; width: 28px; height: 28px; object-fit: contain; }
.fatum-vote-buttons button > span { min-width: 0; }
.fatum-vote-buttons .fatum-agree { background: #174b37; border-color: #65d7a080; color: #bdffdd; }
.fatum-vote-buttons .fatum-abstain { background: #343b48; border-color: #8792a5; color: #e1e5ed; }
.fatum-vote-buttons .fatum-disagree { background: #58272d; border-color: #f3798080; color: #ffd2d5; }
.fatum-button:disabled, .fatum-vote-buttons button:disabled { opacity: .45; cursor: default; }
.fatum-button:focus-visible, .fatum-vote-buttons button:focus-visible { outline: 2px solid var(--fatum-gold); outline-offset: 3px; }
.fatum-vote-buttons button[aria-pressed=true] { outline: 2px solid #fff; outline-offset: 3px; }
.fatum-vote-buttons .fatum-agree[aria-pressed=true] { background: #1b704c; border-color: #8effbf; box-shadow: 0 0 12px #65d7a0cc, 0 0 30px #65d7a080, inset 0 0 14px #65d7a04d; }
.fatum-vote-buttons .fatum-disagree[aria-pressed=true] { background: #862c39; border-color: #ffb1b6; box-shadow: 0 0 12px #f37980cc, 0 0 30px #f3798080, inset 0 0 14px #f379804d; }
.fatum-vote-buttons button[aria-pressed=true]:disabled { opacity: 1; }
.fatum-feedback { text-align: center; min-height: 1.5em; color: var(--fatum-gold); font: bold 16px/1.6 Arial, sans-serif; margin: 14px 0; }
.fatum-voters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fatum-voters section { border: 1px solid #8d99b733; border-radius: 6px; padding: 14px; min-height: 100px; }
.fatum-voters h3 { margin: 0 0 12px; font: 15px/1.4 Arial, sans-serif; }
.fatum-voters ul { list-style: none; padding: 0; margin: 0; max-height: 240px; overflow: auto; }
.fatum-voters li { padding: 7px 0; border-bottom: 1px solid #8d99b71f; font: 13px/1.5 Arial, sans-serif; overflow-wrap: anywhere; }
.fatum-voters .fatum-voter { display: flex; align-items: center; gap: 10px; }
.fatum-voter-avatar { flex: 0 0 36px; width: 36px; height: 36px; object-fit: cover; border-radius: 50% !important; border: 1px solid #8d99b755; background: #141b28; }
.fatum-voter-identity { flex: 1; min-width: 0; }
.fatum-voter-name { display: block; }
.fatum-voters li[draggable=true] { cursor: grab; }
.fatum-voters small { color: var(--fatum-muted); display: block; }
.fatum-decision { margin: 0 0 20px; padding: 22px; background: #090e18a0; border-left: 3px solid var(--fatum-gold); }
.fatum-decision > summary { cursor: pointer; list-style: none; }
.fatum-decision > summary::-webkit-details-marker { display: none; }
.fatum-decision > summary:focus-visible { outline: 2px solid var(--fatum-aether); outline-offset: 6px; }
.fatum-decision[open] .fatum-decision-closed-label,
.fatum-decision:not([open]) .fatum-decision-open-label { display: none; }
.fatum-decision h2 { margin: 10px 0; font-size: 1.5rem; }
.fatum-decision-heading, .fatum-catalog-heading { display: flex; align-items: center; gap: 16px; }
.fatum-decision-heading > div { min-width: 0; }
.fatum-decision-icon { flex: 0 0 64px; width: 64px; height: 64px; object-fit: contain; }
.fatum-decision-icon[hidden] { display: none; }
.fatum-catalog-heading h3 { margin: 0; }
.fatum-decision p { white-space: pre-line; color: #c2cbda; line-height: 1.7; }
.fatum-decision .fatum-requirements { padding-left: 22px; text-align: left; }
.fatum-requirements li + li { margin-top: 8px; }
.fatum-simulator { border: 1px solid #73a5d066; padding: clamp(14px, 3vw, 26px); border-radius: 10px; background: #080c13; margin: 20px 0 32px; }
.fatum-sim-heading h2 { margin: 8px 0; }
.fatum-simulation-badge { color: #a9d4ff; border-color: #73a5d080; }
.fatum-sim-notice { color: #bdd7f0 !important; background: #73a5d014; padding: 14px; border-radius: 6px; margin: 14px 0 !important; font: 14px/1.6 Arial, sans-serif; }
.fatum-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; margin: 22px 0; }
.fatum-controls label, .fatum-sim-clock label, .fatum-selected-label { display: grid; gap: 8px; color: #c5cfde; font: 13px/1.5 Arial, sans-serif; }
.fatum-controls input:not([type=checkbox]), .fatum-controls select, .fatum-sim-clock select, .fatum-selected-label select, .fatum-dummy-editor input, .fatum-dummy-editor select { box-sizing: border-box; width: 100%; min-width: 0; border: 1px solid #8d99b755; border-radius: 5px; padding: 10px; background: #0b111c; color: #edf0f7; font: 14px Arial, sans-serif; }
.fatum-control-actions { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; }
.fatum-sim-clock { display: grid; gap: 14px; background: #ffffff05; padding: 16px; border-radius: 6px; }
.fatum-sim-clock input[type=range] { width: 100%; accent-color: var(--fatum-gold); }
.fatum-sim-clock output, .fatum-sim-outcome { color: var(--fatum-gold); font: 14px/1.6 Arial, sans-serif; }
.fatum-selected-label { max-width: 340px; margin-top: 18px; }
.fatum-table-scroll { overflow: auto; max-height: 540px; }
.fatum-dummy-editor summary { cursor: pointer; padding: 14px 0; font-family: Arial, sans-serif; }
.fatum-dummy-editor table { width: 100%; border-collapse: collapse; font: 13px Arial, sans-serif; }
.fatum-dummy-editor th { text-align: left; padding: 10px; color: #a9b2c3; }
.fatum-dummy-editor td { padding: 6px; border-top: 1px solid #8d99b733; }
.fatum-dummy-editor td:first-child { min-width: 150px; }
.fatum-dummy-editor td:nth-child(2) { min-width: 140px; }
.fatum-settings-form { display: grid; gap: 20px; margin-top: 20px; }
.fatum-settings-form input[type=checkbox] { width: auto; margin-right: 8px; }
.fatum-settings-form > label { display: flex; align-items: center; gap: 10px; }
.fatum-history { font: 14px/1.6 Arial, Helvetica, sans-serif; }
.fatum-history-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.fatum-history-heading h2 { margin: 0; color: #fff; }
.fatum-history-list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.fatum-history-list > li, .fatum-history-result { min-width: 0; }
.fatum-history-entry { min-width: 0; border: 1px solid #4cd1ff44; background: #0b1726; }
.fatum-history-entry > summary { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; cursor: pointer; list-style: none; }
.fatum-history-entry > summary::-webkit-details-marker { display: none; }
.fatum-history-entry > summary:focus-visible { outline: 2px solid #4cd1ff; outline-offset: 3px; }
.fatum-history-entry > summary > img { width: 40px; height: 40px; object-fit: contain; }
.fatum-history-entry-title { min-width: 0; overflow-wrap: anywhere; }
.fatum-history-entry-title strong { display: block; color: #fff; font-size: 16px; }
.fatum-history-entry-title small, .fatum-history-table small { display: block; color: #a9b2c3; }
.fatum-history-status { padding: 4px 10px; border: 1px solid currentColor; }
.fatum-history-status--accepted { color: #65d7a0; }
.fatum-history-status--rejected { color: #f37980; }
.fatum-history-status--cancelled { color: #c4cbd5; }
.fatum-history-detail { min-width: 0; padding: 0 16px 18px; }
.fatum-history-result h3 { color: #fff; margin: 20px 0 12px; }
.fatum-history-description { white-space: pre-line; overflow-wrap: anywhere; }
.fatum-history-notice { padding: 12px; background: #dfbc7918; color: #dfbc79; }
.fatum-history-dates, .fatum-history-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; margin: 18px 0; }
.fatum-history-dates > div, .fatum-history-totals > div { padding: 12px; border: 1px solid #8d99b733; background: #080e18; }
.fatum-history dd { margin: 4px 0 0; }
.fatum-history-totals dd { font-weight: bold; }
.fatum-history-totals small { display: block; margin-top: 4px; font-weight: normal; }
.fatum-history-rules { padding-left: 22px; }
.fatum-history-table-scroll { overflow-x: auto; }
.fatum-history-table { width: 100%; border-collapse: collapse; min-width: 600px; text-align: left; }
.fatum-history-table th, .fatum-history-table td { padding: 10px; border-bottom: 1px solid #8d99b733; }
.fatum-history-table th { color: #a9b2c3; }
.fatum-history-table [data-history-choice="yes"] td:nth-child(2) { color: #65d7a0; }
.fatum-history-table [data-history-choice="no"] td:nth-child(2) { color: #f37980; }
.fatum-history-table [data-history-choice="abs"] td:nth-child(2) { color: #c4cbd5; }
.fatum-history-error { color: #f37980; }
.fatum-history [hidden] { display: none; }
@media (max-width: 620px) { .fatum-history-entry > summary { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; } .fatum-history-status { grid-column: 2; justify-self: start; } }
@media (max-width: 620px) { .fatum-voters { grid-template-columns: 1fr; } .fatum-voters ul { max-height: 170px; } .fatum-vote-buttons { gap: 8px; } .fatum-vote-buttons button { flex-direction: column; gap: 6px; } .fatum-chamber-header { justify-content: flex-start; text-align: left; } .fatum-timer { font-size: 26px; } }
@media (max-width: 360px) { .fatum-vote-buttons button { padding-inline: 4px; font-size: 12px; } }
