.tg { display:flex; flex-direction:column; height:100%; background:#fafafc; color:#23262f; font:14px/1.5 -apple-system,BlinkMacSystemFont,sans-serif; }
.tg-tabs { display:flex; gap:4px; padding:8px 10px 0; border-bottom:1px solid #dcdee6; background:#f0f1f6; flex:none; flex-wrap:wrap; }
.tg-tab { border:0; background:none; padding:8px 14px; border-radius:8px 8px 0 0; font:inherit; cursor:pointer; color:#555; }
.tg-tab.is-on { background:#fafafc; color:#111; font-weight:600; box-shadow:0 1px 0 #fafafc; }
.tg-tab:focus-visible, .tg-btn:focus-visible, .tg-mini:focus-visible, .tg-chip:focus-within, .tg-opt:focus-within { outline:2px solid #2f6fe0; outline-offset:2px; }
.tg-pane { padding:16px 18px 28px; overflow:auto; flex:1; min-height:0; }
.tg-pane h2 { margin:0 0 8px; font-size:18px; }
.tg-goal { font-size:15px; max-width:62ch; }
.tg-where, .tg-note { color:#555; font-size:13px; max-width:68ch; }
.tg-steps { padding-left:20px; color:#595959; } .tg-steps .is-done { color:#25846a; } .tg-steps .is-now { color:#111; font-weight:600; }
.tg-btn { border:1px solid #b6bccb; background:#fff; border-radius:8px; padding:7px 12px; font:inherit; cursor:pointer; }
.tg-btn:hover { background:#f1f3f9; } .tg-primary { background:#25946a; color:#fff; border-color:#1d7554; margin-top:12px; } .tg-primary:hover { background:#1d7554; }
.tg-cards { list-style:none; margin:12px 0 0; padding:0; display:grid; gap:10px; }
.tg-card { border:1px solid #dcdee6; border-radius:10px; padding:10px 12px; background:#fff; } .tg-card.is-saved { border-color:#25946a; background:#f2fbf7; }
.tg-card p { margin:4px 0 8px; } .tg-card-t span { color:#666; font-size:12.5px; }
.tg-claim { border:1px solid #dcdee6; border-radius:10px; margin:14px 0; padding:8px 12px 12px; background:#fff; } .tg-claim legend { font-weight:600; padding:0 6px; }
.tg-opt { display:flex; gap:8px; align-items:flex-start; padding:5px 2px; cursor:pointer; } .tg-opt input { margin-top:4px; }
.tg-row { display:flex; flex-wrap:wrap; gap:6px 8px; align-items:center; margin-top:8px; } .tg-lab { font-size:12.5px; color:#555; }
.tg-chip { display:inline-flex; gap:5px; align-items:center; border:1px solid #cfd3de; border-radius:14px; padding:3px 10px; font-size:12.5px; background:#f6f7fb; cursor:pointer; }
.tg-chron { padding-left:20px; } .tg-chron li { display:flex; gap:6px; align-items:center; padding:3px 0; } .tg-chron li span { flex:1; }
.tg-mini { border:1px solid #b6bccb; background:#fff; border-radius:6px; padding:2px 8px; font:inherit; font-size:12px; cursor:pointer; } .tg-mini:disabled { opacity:.4; cursor:default; }
.tg-msg { color:#a33; min-height:1.2em; }
.tg-total { font-size:22px; font-weight:650; margin:4px 0 8px; }
.tg-table { border-collapse:collapse; margin:6px 0 10px; } .tg-table th, .tg-table td { text-align:left; padding:3px 18px 3px 0; font-weight:normal; } .tg-table th { color:#555; }
.tg-rev { border:1px solid #dcdee6; border-radius:8px; padding:6px 10px; margin:6px 0; background:#fff; } .tg-rev summary { cursor:pointer; font-weight:600; } .tg-rev p { max-width:68ch; }
.tg-gloss { margin-top:14px; } .tg-gloss dt { font-weight:600; margin-top:6px; } .tg-gloss dd { margin:0; color:#444; max-width:68ch; }
.sys-result { width:min(560px,92vw); padding:20px 26px; border:1px solid #ffffff50; border-radius:22px; background:#142139d0; text-align:left; margin-bottom:16px; }
.sys-result h2 { margin:0 0 6px; font-size:20px; } .sys-result p { margin:4px 0; line-height:1.5; font-size:14px; } .sys-result .sys-score { font-size:34px; font-weight:650; margin:6px 0; }
.sys-result .sys-row { display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }

.tg-card-act { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.tg-card-act .tg-btn { margin:0; }
.tg-btn-ghost { background:#fff; }
