/* the edit box and bar controls in the full-screen viewer */
.tfv-hint{max-width:34ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--accent-deep)}
.tfv-edit[aria-pressed="true"]{border-color:var(--accent)}
.tfv-edit-box{position:fixed;z-index:2100;background:var(--card,#fff);color:var(--ink);border:1px solid var(--line-strong,var(--line));border-radius:14px;box-shadow:0 18px 50px rgba(40,50,74,.22);padding:14px;display:flex;flex-direction:column;gap:10px;animation:tebIn .25s var(--ease,ease) both}
.tfv-edit-box[hidden]{display:none}
@keyframes tebIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.teb-where{margin:0;color:var(--ink-soft);font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.tfv-edit-box textarea{width:100%;resize:vertical;min-height:72px;font:inherit;font-size:15px;line-height:1.5;padding:10px 12px;border:1px solid var(--line-strong,var(--line));border-radius:10px;background:var(--paper);color:var(--ink)}
.tfv-edit-box textarea:focus{outline:2px solid var(--accent);outline-offset:1px}
.teb-chips{display:flex;flex-wrap:wrap;gap:6px}
.teb-chips button{font:inherit;font-size:13px;padding:6px 10px;border-radius:999px;border:1px solid var(--line-strong,var(--line));background:transparent;color:var(--ink);cursor:pointer}
.teb-chips button:hover{border-color:var(--accent)}
.teb-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.teb-status{font-size:12px;color:var(--ink-soft);flex:1;min-width:0}
.teb-go{height:40px;padding:0 18px}
@media(max-width:700px){.tfv-hint{display:none}.tfv-edit,.tfv-undo{padding:0 12px;height:36px;font-size:13px}.tfv-share{display:none}}
@media(prefers-reduced-motion:reduce){.tfv-edit-box{animation:none}}
.tfv-bar [hidden]{display:none!important}
