/* ===================== TÍNH NĂNG (.ft-) ===================== */
.ft-form { display: flex; flex-direction: column; gap: 12px; }
.ft-input { width: 100%; padding: 10px 12px; border-radius: var(--r-md); border: 1.5px solid var(--border); background: var(--surface-2); color: var(--text); outline: 0; resize: vertical; }
.ft-input:focus { border-color: var(--accent); background: var(--surface); }
.ft-label { font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); }
.ft-muted { color: var(--text-3); font-size: var(--fs-sm); }
.ft-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; align-self: flex-start; }
.ft-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.ft-poll-opts { display: flex; flex-direction: column; gap: 8px; }
.ft-poll-opt { display: flex; gap: 6px; align-items: center; }
.ft-switches { display: grid; gap: 6px; }
.ft-switch { display: flex; align-items: center; justify-content: space-between; padding: 6px 2px; }
.ft-center { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px; }
.ft-page { height: 100%; overflow-y: auto; background: var(--bg); }
.ft-page__head { max-width: 720px; margin: 0 auto; padding: 22px 20px 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ft-page__head h2 { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.02em; }
.ft-page > .kit-tabs { max-width: 720px; margin: 0 auto 6px; padding: 0 20px; }
.ft-page__body { max-width: 720px; margin: 0 auto; padding: 8px 20px 40px; display: flex; flex-direction: column; gap: 10px; }
.ft-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.ft-card.is-done .ft-card__txt strong { text-decoration: line-through; color: var(--text-3); }
.ft-card__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ft-card__txt small { color: var(--text-3); display: inline-flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.ft-card__txt p { margin: 0; color: var(--text-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; word-break: break-word; }
.ft-star { cursor: pointer; } .ft-star:hover { border-color: var(--accent); }
.ft-star .kit-icon { color: #f5b301; }
.ft-check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; color: #fff; flex: none; }
.ft-check.is-on { background: var(--success); border-color: var(--success); }
.ft-keys { display: inline-flex; gap: 4px; }
kbd { display: inline-block; min-width: 24px; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--border-strong); border-bottom-width: 2px; background: var(--surface-2); font: 600 12px/1.5 var(--mono); text-align: center; color: var(--text-2); }
.ft-sc { display: grid; gap: 14px; } .ft-sc h4 { margin: 0 0 6px; color: var(--accent); }
.ft-sc__row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--border); }

/* Bảng lệnh */
.ft-cmd-wrap { position: fixed; inset: 0; z-index: 1200; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 0; background: var(--overlay); opacity: 0; transition: opacity var(--dur-fast); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ft-cmd-wrap.is-in { opacity: 1; }
.ft-cmd { width: min(620px, 100%); background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-3); border: 1px solid var(--border); overflow: hidden; transform: translateY(-8px) scale(.98); transition: transform var(--dur) var(--ease); }
.ft-cmd-wrap.is-in .ft-cmd { transform: none; }
.ft-cmd__bar { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--border); color: var(--text-3); }
.ft-cmd__input { flex: 1; height: 56px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: var(--fs-lg); }
.ft-cmd__list { max-height: 50vh; overflow-y: auto; padding: 8px; }
.ft-cmd__item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--r-md); cursor: pointer; }
.ft-cmd__item.is-sel { background: var(--accent-soft); }
.ft-cmd__item small { color: var(--text-3); }
.ft-cmd__label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.ft-cmd__ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); }
.ft-cmd__empty { padding: 28px; text-align: center; color: var(--text-3); }
.ft-cmd__foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--border); color: var(--text-3); font-size: var(--fs-xs); background: var(--bg-sunken); }

/* Tìm kiếm toàn cục */
.ft-gs { display: flex; flex-direction: column; gap: 10px; min-height: 380px; }
.ft-gs__types, .ft-gs__recent { display: flex; gap: 6px; flex-wrap: wrap; }
.ft-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--text-2); font-size: var(--fs-sm); font-weight: 600; }
.ft-pill.is-on { background: var(--accent); color: var(--accent-text); }
.ft-gs__out { display: flex; flex-direction: column; gap: 2px; max-height: 52vh; overflow-y: auto; }
.ft-gs__item { display: flex; gap: 12px; padding: 10px; border-radius: var(--r-md); cursor: pointer; }
.ft-gs__item:hover { background: var(--hover); }
.ft-gs__txt { flex: 1; min-width: 0; }
.ft-gs__top { display: flex; gap: 4px; align-items: baseline; flex-wrap: wrap; } .ft-gs__top small { margin-left: auto; color: var(--text-3); }
.ft-gs__txt p { margin: 2px 0 0; color: var(--text-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.ft-gs__txt mark, mark.kit-hl { background: hsl(48 100% 60% / .5); color: inherit; border-radius: 3px; }
