/* How ChatGPT works */
.ck-text, #nw-mine { width: 100%; font-size: 16px !important; line-height: 1.5; }
.ck-slider { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.ck-slider input { flex: 1; min-width: 160px; }
.ck-mt { margin-top: 14px; }
.tk-out { display: flex; flex-wrap: wrap; gap: 3px; padding: 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); min-height: 56px; }
.tk { padding: 3px 6px; border-radius: 6px; background: hsl(var(--h) 85% 88%); color: hsl(var(--h) 60% 22%); font: 600 15px "JetBrains Mono", monospace; white-space: pre; }
.tk-learned { display: flex; flex-wrap: wrap; gap: 4px; }
.tk-learned span { padding: 2px 7px; border-radius: 6px; background: var(--teal-tint); font: 13px "JetBrains Mono", monospace; }
.ck-mine { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 10px; }
.ck-prompt { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.ck-prompt input { font-size: 18px !important; }
.nw-bars { display: flex; flex-direction: column; gap: 5px; }
.nw-bar { display: grid; grid-template-columns: minmax(80px, 30%) 1fr 46px; align-items: center; gap: 8px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font-size: 14px; cursor: pointer; text-align: left; }
.nw-bar:hover { border-color: var(--teal); }
.nw-bar span { font-weight: 700; }
.nw-bar i { height: 12px; border-radius: 999px; background: rgb(var(--c-ink) / .08); overflow: hidden; }
.nw-bar b { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #0d9488, #8b5cf6); transition: width .25s; }
.nw-bar em { font-style: normal; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.nw-out { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; }
.nw-out p { margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--soft); font-size: 15px; }
.nw-t { margin-right: 6px; padding: 1px 6px; border-radius: 999px; background: #fef3c7; color: #92400e; font: 600 11px system-ui; }
.ck-list { margin: 0 0 6px; padding-left: 20px; list-style: disc; font-size: 14px; }
.wm-map { width: 100%; height: auto; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.ck-key { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: 13px; color: var(--muted); }
.ck-key i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: -10px; }
.wm-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0; font-size: 18px; font-weight: 700; }
.wm-res { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; }
.wm-res span { padding: 6px 10px; border-radius: 10px; background: var(--soft); font-weight: 600; }
.wm-res span.is-top { background: #dcfce7; color: #14532d; font-size: 18px; }
.wm-res small { font-weight: 400; color: var(--muted); }
.cb-log { display: flex; flex-direction: column; gap: 8px; height: 260px; overflow-y: auto; padding: 10px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.cb-me, .cb-bot { max-width: 85%; padding: 8px 12px; border-radius: 14px; font-size: 15px; }
.cb-me { align-self: flex-end; background: var(--teal); color: #fff; border-bottom-right-radius: 4px; }
.cb-bot { align-self: flex-start; background: var(--soft); border-bottom-left-radius: 4px; }
.cb-form { display: flex; gap: 6px; margin-top: 8px; }
.cb-form input { flex: 1; min-width: 0; }
.cb-steps { margin: 8px 0 0; padding-left: 0; list-style: none; font-size: 13px; color: var(--muted); }
.qz { margin: 0 0 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; }
.qz legend { padding: 0 4px; font-weight: 700; font-size: 14px; }
.qz label { display: block; padding: 2px 0; font-size: 14px; cursor: pointer; }
.qz[data-state="ok"] { border-color: #22c55e; background: #f0fdf4; }
.qz[data-state="bad"] { border-color: #f87171; background: #fef2f2; }
