/* 6.171 — Funis */
:root { --k38-line: #F5A623; }
.k38-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.k38-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 22px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; }
.k38-card:hover { border-color: var(--accent); }
.k38-card small { color: var(--text-muted); font-size: 12.5px; }
.k38-mini { display: flex; align-items: center; gap: 0; height: 64px; margin-bottom: 8px; padding: 0 10px; border-radius: 14px; background: var(--surface-muted); overflow: hidden; }
.k38-mini i { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, var(--surface)); color: var(--c); }
.k38-mini b { flex: 1 1 10px; max-width: 18px; height: 2px; background: var(--k38-line); }
.k38-head { align-items: center; }
.k38-title { outline: none; border-radius: 8px; } .k38-title[contenteditable]:focus { box-shadow: 0 0 0 2px var(--accent); }
.k38-acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.k38-acts .icon-btn[disabled] { opacity: .35; pointer-events: none; }
.k38-wrap { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 16px; height: calc(100vh - 230px); min-height: 520px; }
.k38-wrap.ro { grid-template-columns: minmax(0, 1fr); }
.k38-pal { display: flex; flex-direction: column; min-height: 0; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); overflow: hidden; }
.k38-ph { padding: 16px 16px 10px; display: flex; flex-direction: column; gap: 3px; }
.k38-ph b { font-size: 15px; } .k38-ph small { color: var(--text-muted); font-size: 12.5px; }
.k38-search { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 0 12px; height: 38px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface-subtle); color: var(--text-muted); }
.k38-search input { flex: 1; border: 0; background: transparent; outline: none; height: 100%; padding: 0; color: var(--text); min-width: 0; }
.k38-pl { flex: 1; overflow: auto; padding: 0 8px 12px; }
.k38-g summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; padding: 10px 8px 6px; font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.k38-g summary::-webkit-details-marker { display: none; } .k38-g summary span { font-weight: 500; }
.k38-pi2 { display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; width: 100%; padding: 7px 8px; border: 0; border-radius: 14px; background: transparent; text-align: left; cursor: grab; color: var(--text); }
.k38-pi2:hover { background: var(--surface-muted); }
.k38-pi2 > span { grid-row: 1 / 3; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, var(--surface)); color: var(--c); }
.k38-pi2 b { font-size: 13.5px; line-height: 1.2; } .k38-pi2 small { font-size: 11.5px; color: var(--text-muted); line-height: 1.25; }
.k38-pi2[hidden] { display: none; }
.k38-c { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid var(--border); background-color: var(--surface-subtle);
  background-image: radial-gradient(circle, color-mix(in srgb, var(--text) 18%, transparent) 1px, transparent 1.3px); background-size: 22px 22px; outline: none; touch-action: none; cursor: default; }
.k38-c.grab { cursor: grabbing; }
.k38-L { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.k38-E { position: absolute; left: 0; top: 0; overflow: visible; }
.k38-el { fill: none; stroke: var(--k38-line); stroke-width: 2; }
.k38-eh { fill: none; stroke: transparent; stroke-width: 14; cursor: pointer; }
.k38-e.on .k38-el { stroke: var(--text); stroke-width: 3; }
.k38-elt { font: 600 11px Inter, system-ui, sans-serif; fill: var(--text-muted); paint-order: stroke; stroke: var(--surface-subtle); stroke-width: 4px; }
.k38-tmp { fill: none; stroke: var(--k38-line); stroke-width: 2; stroke-dasharray: 6 5; }
.k38-n { position: absolute; user-select: none; -webkit-user-select: none; background: var(--surface); border: 1.5px solid var(--border); color: var(--text); cursor: grab; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.k38-n.on { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.k38-n.drop { border-color: var(--k38-line); box-shadow: 0 0 0 4px color-mix(in srgb, var(--k38-line) 30%, transparent); }
.k38-card2 { width: 176px; height: 56px; border-radius: 16px; display: flex; align-items: center; gap: 9px; padding: 0 10px; }
.k38-ci { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 15%, var(--surface)); color: var(--c); }
.k38-ct { display: flex; flex-direction: column; min-width: 0; }
.k38-ct b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .k38-ct small { font-size: 10.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k38-page { width: 172px; height: 150px; border-radius: 10px; display: flex; flex-direction: column; align-items: stretch; overflow: visible; }
.k38-dots { display: flex; gap: 3px; padding: 6px 8px; background: var(--surface-muted); border-radius: 9px 9px 0 0; } .k38-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--text-muted); opacity: .5; }
.k38-pt { font-size: 11.5px; padding: 6px 10px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k38-pi { align-self: center; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 13%, var(--surface)); color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.k38-ln { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 10px 0; } .k38-ln i { height: 3px; border-radius: 2px; background: var(--border); width: 90%; } .k38-ln i:nth-child(2) { width: 70%; } .k38-ln i:nth-child(3) { width: 50%; }
.k38-cta { margin: auto 8px 8px; height: 20px; border-radius: 5px; background: var(--c); color: #fff; font-size: 8.5px; font-weight: 800; letter-spacing: .02em; display: grid; place-items: center; white-space: nowrap; overflow: hidden; }
.k38-note { width: 176px; min-height: 70px; border-radius: 10px; padding: 10px 12px; background: #FEF3C7; border-color: #FCD34D; color: #713F12; display: flex; flex-direction: column; gap: 3px; }
.k38-note b { font-size: 12.5px; } .k38-note small { font-size: 11px; color: #92400E; }
.k38-num { position: absolute; right: 6px; bottom: -20px; font-style: normal; font-size: 11px; font-weight: 700; color: color-mix(in srgb, var(--c) 70%, var(--text)); white-space: nowrap; }
.k38-x { position: absolute; right: -9px; top: -9px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--surface); background: #DC2626; color: #fff; display: grid; place-items: center; cursor: pointer; z-index: 2; padding: 0; }
.k38-h { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--k38-line); opacity: 0; transition: opacity .12s; }
.k38-n:hover .k38-h, .k38-n.on .k38-h { opacity: 1; }
.k38-h.r { right: -7px; top: calc(50% - 6px); cursor: crosshair; } .k38-h.l { left: -7px; top: calc(50% - 6px); pointer-events: none; } .k38-h.t { top: -7px; left: calc(50% - 6px); pointer-events: none; } .k38-h.b { bottom: -7px; left: calc(50% - 6px); pointer-events: none; }
.k38-h.r { width: 14px; height: 14px; right: -8px; top: calc(50% - 7px); }
.k38-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--text-muted); pointer-events: none; }
.k38-empty[hidden] { display: none; }
.k38-zoom { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 5px 8px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.k38-zoom > span { width: 1px; height: 18px; background: var(--border); margin: 0 4px; } .k38-zoom b { min-width: 44px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.k38-mm { position: absolute; right: 14px; bottom: 14px; width: 150px; height: 96px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.k38-mm svg { width: 100%; height: 100%; display: block; }
.k38-addm { display: none; position: absolute; left: 14px; top: 14px; }
.k38-tip { margin: 10px 2px 0; }
.k38-dl { max-height: 60vh; overflow: auto; } .k38-dl p { margin: 10px 0 2px; }
/* apresentar */
.k38-show { position: fixed; inset: 0; z-index: 400; background: #F7F5F1; color: #1A1206; outline: none; display: flex; flex-direction: column; --surface: #fff; --surface-muted: #F1EEE8; --surface-subtle: #F7F5F1; --border: #E5E1D8; --text: #1A1206; --text-muted: #6B6458; }
.k38-sb { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid #E5E1D8; background: #fff; }
.k38-sb b { font-size: 16px; } .k38-sb > span:not(.k38-sbb) { flex: 1; font-size: 14px; color: #6B6458; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k38-sbb { display: flex; gap: 6px; } .k38-sbb button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #E5E1D8; background: #fff; display: grid; place-items: center; cursor: pointer; color: #1A1206; }
.k38-sc { position: relative; flex: 1; overflow: hidden; cursor: pointer; }
.k38-show .k38-n { cursor: pointer; transition: opacity .25s, box-shadow .25s; }
.k38-show .k38-n.past { opacity: .45; }
.k38-show .k38-n.hot { border-color: var(--k38-line); box-shadow: 0 0 0 5px color-mix(in srgb, var(--k38-line) 28%, transparent), 0 10px 30px rgba(0,0,0,.12); }
.k38-show .k38-e.hot .k38-el { stroke-width: 3.5; }
.k38-sn { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: 90vw; }
.k38-sn span { padding: 8px 14px; border-radius: 99px; background: #1A1206; color: #fff; font-size: 13.5px; } .k38-sn em { font-style: normal; color: #F5A623; font-weight: 700; }
.k38-sp { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0,0,0,.06); } .k38-sp i { display: block; height: 100%; background: #F5A623; transition: width .2s; }
@media (max-width: 900px) {
  .k38-wrap { grid-template-columns: minmax(0, 1fr); height: calc(100vh - 210px); min-height: 420px; }
  .k38-pal { display: none; } .k38-addm { display: inline-flex; }
  .k38-mm { display: none; }
  .k38-acts .btn span, .k38-acts #k38st { display: none; }
}
