/* Shared building blocks: pills, toggles, badges, lists, modal, on-screen keyboard, toast, key legend. Focus is always the `.focused` class that FocusManager (or a VList) puts on the element. */ /* ---- buttons ---- */ .wide-btn { display: block; width: 100%; padding: 1.1rem 1.5rem; background: #2b2b2b; border-radius: 1rem; border: .2rem solid transparent; text-align: center; font-size: 1.7rem; position: relative; overflow: hidden; } .wide-btn.primary { background: var(--accent); } .wide-btn.focused, .pill-btn.focused, .round-btn.focused, .dock-btn.focused { border-color: #fff; box-shadow: 0 0 1.4rem rgba(30, 197, 234, .45); } .pill-btn { padding: 1rem 3rem; border-radius: var(--r-pill); background: #2b2b2b; border: .2rem solid transparent; font-size: 1.7rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; } .pill-btn.primary { background: var(--accent); } .pill-btn.is-selected { background: var(--accent); } .round-btn { width: 4.6rem; height: 4.6rem; border-radius: 1.4rem; background: var(--pill); display: inline-flex; align-items: center; justify-content: center; font-size: 2.4rem; border: .2rem solid transparent; } .badge-selected, .pill-tag { font-size: 1.1rem; letter-spacing: .05rem; padding: .3rem 1rem; border-radius: 1rem; background: rgba(0, 0, 0, .45); font-weight: 700; } /* ---- toggle switch ---- */ .row-toggle { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.5rem; background: #2b2b2b; border-radius: 1rem; border: .2rem solid transparent; font-size: 1.7rem; } .row-toggle.focused { border-color: #fff; box-shadow: 0 0 1.4rem rgba(30, 197, 234, .45); } .toggle { width: 5.6rem; height: 2.8rem; border-radius: var(--r-round); background: #fff; border: .2rem solid #777; position: relative; flex-shrink: 0; transition: background .2s; } .toggle::after { content: ''; position: absolute; top: .2rem; left: .2rem; width: 2.0rem; height: 2.0rem; border-radius: 50%; background: #777; transition: left .2s, background .2s; } .toggle.on { background: var(--accent); border-color: var(--accent); } .toggle.on::after { left: 3.0rem; background: #fff; } /* ---- windowed lists ---- */ .vlist { position: relative; overflow: hidden; } /* generic list row used by sidebars & channel lists */ .list-row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 1.2rem; font-size: 1.75rem; font-weight: 700; } .list-row .lr-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; } .list-row .lr-count { font-weight: 400; color: var(--text-2); font-size: 1.6rem; flex-shrink: 0; } .list-row .lr-ic { font-size: 2.2rem; margin-right: .8rem; flex-shrink: 0; } .vitem.selected .list-row { background: var(--accent); border-radius: .3rem; } .vitem.focused .list-row { background: var(--accent); box-shadow: inset 0 0 0 .2rem #fff; border-radius: .6rem; } /* ---- key legend ---- */ .key-legend { position: absolute; right: 3rem; bottom: 1.6rem; display: flex; gap: 2.4rem; font-size: 1.4rem; color: var(--text-2); align-items: center; } .legend-item { display: inline-flex; align-items: center; gap: .7rem; } .legend-chip { display: inline-block; width: 2.4rem; height: 1.1rem; border-radius: .3rem; } .legend-chip.red { background: var(--key-red); } .legend-chip.green { background: var(--key-green); } .legend-chip.yellow { background: var(--key-yellow); } .legend-chip.blue { background: var(--key-blue); } /* ---- modal ---- */ #modal-root { position: fixed; inset: 0; z-index: 200; } .modal-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .86); display: flex; align-items: center; justify-content: center; } .modal-box { min-width: 46rem; max-width: 70rem; padding: 3.5rem 4rem; border-radius: var(--r-lg); background: #141414; border: .15rem solid var(--border); text-align: center; } .modal-box.wide { max-width: 84rem; } .modal-title { font-size: 2.8rem; font-weight: 700; margin-bottom: 1.2rem; } .modal-message { color: var(--text-2); font-size: 1.7rem; margin-bottom: 1.6rem; line-height: 1.4; } .modal-buttons { display: flex; gap: 1.6rem; justify-content: center; margin-top: 2.4rem; } .modal-buttons .pill-btn { min-width: 14rem; justify-content: center; } .modal-buttons.vertical { flex-direction: column; align-items: stretch; max-height: 48rem; overflow-y: auto; } .modal-buttons.vertical .pill-btn { justify-content: space-between; } .qr-box { background: #fff; border-radius: 1.4rem; padding: 1.2rem; display: inline-block; } .qr-box img { width: 24rem; height: 24rem; } .qr-img { width: 15rem; height: 15rem; background: #fff; border-radius: 1.2rem; padding: .6rem; flex-shrink: 0; } /* ---- on-screen keyboard ---- */ .osk-root { position: fixed; left: 0; top: 0; bottom: 0; z-index: 150; display: flex; align-items: center; padding-left: 2.4rem; pointer-events: none; } .osk-panel { width: 46rem; padding: 1.6rem; background: rgba(12, 12, 12, .96); border: .15rem solid var(--border); border-radius: 1.6rem; } .osk-title { font-size: 1.5rem; color: var(--text-3); margin-bottom: .6rem; } .osk-display { min-height: 3.6rem; padding: .6rem 1rem; margin-bottom: 1rem; background: #1a1a1a; border-radius: .8rem; font-size: 1.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .osk-display.empty { color: #666; } .osk-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: .5rem; } .osk-key { height: 3.6rem; display: flex; align-items: center; justify-content: center; background: #2a2a2a; border: .1rem solid #444; border-radius: .5rem; font-size: 1.5rem; } .osk-key.wide { font-size: 1.2rem; } .osk-key.on { background: var(--accent); } .osk-key.accent { background: #333; } .osk-key.focused { background: var(--accent); border-color: #fff; } /* ---- toast ---- */ .toast { position: fixed; left: 50%; bottom: 7rem; transform: translateX(-50%); z-index: 300; padding: 1.2rem 2.6rem; background: rgba(30, 30, 30, .96); border: .1rem solid var(--border); border-radius: var(--r-pill); font-size: 1.6rem; max-width: 80rem; text-align: center; } /* ---- inline "dots" spinner used on Save buttons ---- */ .dots i { display: inline-block; width: .8rem; height: .8rem; margin: 0 .25rem; border-radius: 50%; background: #fff; animation: dot 1s infinite ease-in-out; } .dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; } @keyframes dot { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } } .center-msg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; font-size: 2rem; color: var(--text-2); max-width: 70rem; line-height: 1.5; } .center-msg .loader-spinner { margin: 0 auto 2rem; }