Files
Brad ArantandClaude Sonnet 5 b8f7793773 Add global music player, invoicing/payment system, account subpages, mail account admin, and the qualityiron.vegas Jet 2.0 port
Jet interpreter (Tag.cpp, __call.cpp, __imap*.cpp/h, __smtpsend.cpp/h,
__imapemptyfolder.cpp/h - new): assorted parser/tag fixes found across
this work - a stray literal-tag-in-comment and backslash-quote parser
corruption class, a dangling-pointer fix, a __call.cpp fd leak, IMAP
folder-management tags, multi-account/per-host IMAP support, and a
smtpsend Message-ID fix.

barant.com site (jetc/barant-site/):
- A site-wide persistent music player (header band, playlist/queue,
  stereo FFT EQ, session-persisted state) fed by new library/
  ianslibrary/music song-list subpages.
- /account split into info/phones/invoices subpages; a full invoicing
  and Square payment system (create/edit/copy/pay/email invoice);
  admin invoice management and mail-account management subpages.
- /services split into overview/hosting/siptrunking/documents
  subpages, retiring the old standalone pages.
- SIPPHONE.tag: a Jet 2.0 WebRTC softphone tag.
- main.css/spa.js/email.js: the SPA loading indicator, the music
  player band styling, and assorted fixes accumulated alongside this
  work.

qualityiron-site/: the qualityiron.vegas job/contractor/customer/
document management app, ported from its original Jet 1.4 codebase to
Jet 2.0 as barant.coms APIServers second multi-tenant site.

wcwc/wcwc.jet: the WCWC site Jet source (wcwc.jtc build output not
included).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-06 17:42:01 +00:00

1379 lines
35 KiB
CSS

.rotate {
animation: rotation 1s infinite linear;
}
@keyframes rotation {
from {
transform: rotate(0deg);
}
to {
transform: rotate(359deg);
}
}
@font-face {
font-family: avenir;
src: url('https://barant.com/assets/AvenirLTStd-Light.ttf');
}
@font-face {
font-family: source;
src: url('https://barant.com/assets/jackinput.TTF');
}
@font-face {
font-family: exo2;
src: url('https://barant.com/assets/Exo2-RegularCondensed.otf');
}
:root {
--bond-bg: #0a0a0d;
--bond-bg-2: #131318;
--bond-panel: #16161c;
--bond-panel-2: #1c1c24;
--bond-line: rgba(197, 164, 90, 0.28);
--bond-line-soft: rgba(255, 255, 255, 0.07);
--bond-gold: #c5a45a;
--bond-gold-bright: #e3c47e;
--bond-ice: #6fb8c9;
--bond-text: #e7e4dc;
--bond-text-dim: #8d8c92;
--bond-red: #a13a3a;
}
* { box-sizing: border-box; }
* {
scrollbar-width: thin;
scrollbar-color: var(--bond-gold) var(--bond-bg);
}
::-webkit-scrollbar {
width: 11px;
height: 11px;
}
::-webkit-scrollbar-track {
background: var(--bond-bg);
}
::-webkit-scrollbar-thumb {
background-color: var(--bond-gold);
background-image: linear-gradient(180deg, var(--bond-gold-bright), var(--bond-gold));
background-clip: padding-box;
border: 2px solid var(--bond-bg);
border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
background-image: linear-gradient(180deg, var(--bond-gold-bright), var(--bond-gold-bright));
}
::-webkit-scrollbar-corner {
background: var(--bond-bg);
}
body {
background: radial-gradient(ellipse at top, #1a1a20 0%, #0a0a0d 60%, #060607 100%);
background-attachment: fixed;
font-family: exo2;
color: var(--bond-text);
margin: 10px 10px 10px 10px;
width: 98%;
}
a:link, a:visited { text-decoration: none; color: var(--bond-gold); }
a:hover { text-decoration: none; color: var(--bond-gold-bright); }
h1 {
font: 20pt exo2;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--bond-text);
text-shadow: 0 0 0.6em rgba(197, 164, 90, 0.25);
opacity: 0.95;
}
h2 {
font: 14pt exo2;
letter-spacing: 0.06em;
color: var(--bond-gold-bright);
}
h3 {
font: 12pt exo2;
letter-spacing: 0.05em;
color: var(--bond-text);
}
p { font-family: 8pt exo2; color: var(--bond-text); }
ul { font-family: 8pt exo2; }
li { font-family: 8pt exo2; color: var(--bond-text); }
.project_header {
background: linear-gradient(180deg, #1c1c24, #101014);
color: var(--bond-gold-bright);
padding: 5px;
font-weight: 400;
font-size: 14px;
border-bottom: 1px solid var(--bond-line);
}
.pageclass {
background: var(--bond-bg-2);
border-radius: 6px;
border: 1px solid var(--bond-line);
box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 20px 60px rgba(0,0,0,0.65);
border-spacing: 0px;
padding: 0px;
max-width: 1050px;
min-width: 1050px;
min-height: calc(100vh - 150px);
box-sizing: border-box;
display: flex;
flex-direction: column;
margin: auto;
font-family: exo2;
font-size: 10pt;
color: var(--bond-text);
overflow: hidden;
}
/* The email client is the one page whose own content (a long message
list) can outgrow the viewport - everywhere else .pageclass is meant
to grow taller than the viewport for long content (normal document
scroll). Scoped to only this page via :has() so no other page's
layout changes: caps .pageclass at the same height it already uses
as a floor, so #email-list/#email-reading-pane's own overflow-y:auto
scrolls instead of the whole page growing past the viewport. */
.pageclass:has(#email-app) {
height: calc(100vh - 150px);
overflow: hidden;
}
input {
background: #101014;
color: var(--bond-text);
border: 1px solid var(--bond-line-soft);
font-family: exo2;
font-size: 14px;
min-height: 18px;
display: block;
margin-bottom: 3px;
margin-top: 0px;
outline: none;
padding: 2px 6px;
border-radius: 2px;
}
input:focus {
border-color: var(--bond-gold);
box-shadow: 0 0 0 1px rgba(197, 164, 90, 0.35);
}
select {
background: #101014;
color: var(--bond-text);
font-family: exo2;
font-size: 14px;
min-height: 18px;
display: block;
margin-bottom: 3px;
margin-top: 0px;
outline: none;
border: 1px solid var(--bond-line-soft);
padding: 1px 2px 1px 2px;
border-radius: 2px;
}
textarea.fieldinput {
background: #101014;
color: var(--bond-text);
resize: none;
font-family: exo2;
border: 1px solid var(--bond-line-soft);
font-size: 14px;
min-height: 18px;
display: block;
margin-bottom: 3px;
margin-top: 0px;
outline: none;
padding: 2px 2px 2px 5px;
border-radius: 2px;
}
textarea.fieldinputerror {
background: #241213;
color: var(--bond-text);
resize: none;
font-family: exo2;
border: 1px solid var(--bond-red);
font-size: 14px;
min-height: 18px;
display: block;
margin-bottom: 3px;
margin-top: 0px;
outline: none;
padding: 2px 2px 2px 5px;
border-radius: 2px;
}
.sectionframe {
position: relative;
font-family: exo2;
border: 1px solid var(--bond-line-soft);
font-size: 10pt;
margin: 3px;
background: var(--bond-panel);
padding: 0px;
border-radius: 3px;
}
.sectionframe:after{
content: '';
position: absolute;
top: 1px;
left: 1px;
width: calc(100% - 2px);
height: 1px;
background: var(--bond-line);
}
.user-badge {
display: inline-block;
padding: 3px 12px;
margin-bottom: 4px;
border-radius: 6px;
border: 1px solid var(--bond-gold);
background: linear-gradient(180deg, rgba(197, 164, 90, 0.28), rgba(197, 164, 90, 0.12));
box-shadow: 0 0 0.5em rgba(197, 164, 90, 0.25);
color: var(--bond-gold-bright);
font-weight: 600;
letter-spacing: 0.03em;
}
.sectionframecontents {
padding: 10px;
text-align: justify;
color: var(--bond-text);
border-top: 1px solid var(--bond-line-soft);
background-color: var(--bond-panel);
}
.sectionframeheading {
background: linear-gradient(180deg, #1c1c24, #131318);
color: var(--bond-gold-bright);
border-bottom: 1px solid var(--bond-line);
vertical-align: middle;
padding: 6px 10px;
margin: 0px;
font-family: 12pt avenir;
letter-spacing: 0.08em;
text-transform: uppercase;
font-size: 10pt;
border-radius: 3px 3px 0px 0px;
}
.sectionframeheading2 {
background: var(--bond-panel-2);
color: var(--bond-gold-bright);
font-family: exo2;
font-size: 20pt;
letter-spacing: 0.06em;
padding: 3px;
border-radius: 3px;
}
.heading {
background: linear-gradient(180deg, #131318, #0d0d10);
border-radius: 5px 5px 0px 0px;
border-bottom: 1px solid var(--bond-line);
max-height: 125px;
}
.entryform {
background: #232330;
padding: 6px;
margin: 0px;
border: 1px solid rgba(197, 164, 90, 0.5);
border-radius: 3px;
}
.entryform table {
font: 12px exo2;
background: transparent;
border: 0pt solid black;
color: var(--bond-text);
}
.footer {
background: linear-gradient(180deg, #0a0a0d, #000);
border-top: 1px solid var(--bond-line);
font: 8pt verdana;
letter-spacing: 0.05em;
color: var(--bond-gold);
text-align: center;
padding: 6px 0;
border-radius: 0px 0px 5px 5px;
}
.menubar {
background: #0a0a0d;
border-bottom: 1px solid var(--bond-line);
padding: 0px 0px 0px 0px;
margin: 0px;
}
.baritem {
background: transparent;
color: var(--bond-text-dim);
position: relative;
font-family: exo2;
font-weight: 600;
letter-spacing: 0.06em;
font-size: 8pt;
padding: 6px 10px;
margin: 6px 0px 0px 0px;
border: none;
border-bottom: 2px solid transparent;
border-radius: 0px;
transition: color 0.25s ease, border-color 0.25s ease;
}
.baritem:after{
content: none;
}
.baritemselected {
/* Deliberately styled to read as the same surface as the content
panel it opens into (matching background, gold border wrapping
only the top/sides) - the open bottom edge is the same color as
its own background rather than a hard line, so it visually reads
as "raised up out of the black bar, connected to the page below"
rather than just another highlighted nav item. */
background: var(--bond-panel);
color: var(--bond-gold-bright);
font-family: exo2;
font-weight: 600;
letter-spacing: 0.06em;
font-size: 8pt;
padding: 7px 10px 8px 10px;
margin: 4px 0px 0px 0px;
border: 1px solid var(--bond-gold);
border-bottom: 1px solid var(--bond-panel);
border-radius: 5px 5px 0px 0px;
box-shadow: 0 -2px 8px rgba(197, 164, 90, 0.18);
text-shadow: 0 0 0.5em rgba(197, 164, 90, 0.35);
}
.baritem:hover {
color: var(--bond-gold-bright);
border-bottom: 2px solid var(--bond-line);
transition: color 0.2s ease, border-color 0.2s ease;
}
/* Every entry in a page's own sidebar submenu (e.g. opensource.menu's
list of subpages) shares this same box model - selected and
unselected alike - so the only thing that changes when an item
becomes active is its background/border, never its box size or the
position of its own text. Giving only the active item padding/margin
(the original approach) made its text visibly shift the moment it
was selected, since the unselected items sat flush with none. */
#panelmenu a {
display: block;
padding: 2px 6px;
margin: 2px 0;
}
/* The currently-active entry - a background highlight rather than
baritemselected's "raised tab" treatment, since these are plain
links stacked in a list, not tabs sitting on a bar edge. Applied
server-side (see opensource.menu) by comparing each linkbutton's own
subpage against $[SUBPAGE] - spa.js also applies it instantly client-
side on click (see its #panelmenu click listener) and then
re-confirms it from the server's own #_spa_panelmenu markup once the
fetch resolves, so this stays correct either way. */
.submenuitem-active {
background: var(--bond-panel-2);
color: var(--bond-gold-bright) !important;
border-radius: 3px;
box-shadow: inset 0 0 0 1px var(--bond-gold);
}
/* Every menu entry's own markup is <linkbutton...></linkbutton><br> - that
<br> was needed to force a line break after an inline link, but every
entry is display:block now (its own implicit line break), so the
trailing <br> doubles up into a blank line for every item, not just
the active one. */
#panelmenu a + br {
display: none;
}
.panel {
background: var(--bond-panel);
margin: 10px;
padding: 3px;
border: 1px solid var(--bond-line-soft);
border-radius: 3px;
}
#panelmenu-resizer {
flex-shrink: 0;
width: 9px;
cursor: col-resize;
position: relative;
background: var(--bond-line-soft);
border-radius: 3px;
}
#panelmenu-resizer:hover, #panelmenu-resizer.resizing {
background: var(--bond-gold);
}
#panelmenu-resizer svg {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 12px;
height: 12px;
color: var(--bond-gold-bright);
pointer-events: none;
}
.panel table {
font: 12px exo2;
padding: 5px;
background: var(--bond-panel-2);
border: 1px solid var(--bond-line-soft);
border-radius: 6px;
color: var(--bond-text);
}
.panel table th {
background: #101014;
color: var(--bond-gold-bright);
padding: 2px 3px 3px 3px;
border: 0pt;
letter-spacing: 0.04em;
}
.panel table td {
background: transparent;
color: var(--bond-text);
padding: 2px 3px 3px 3px;
border: 0pt;
}
.left {
text-align: right;
padding-left: 20px;
border-radius: 6px 0px 0px 6px;
}
.right {
border-radius: 0px 6px 6px 0px;
padding-right: 20px;
}
.featured { background: var(--bond-panel); }
.buttonbay {
width: 100%;
text-align: center;
}
.fieldinput {
font-family: exo2;
border-radius: 3px;
padding: 2px 2px 2px 5px;
border: 1px solid var(--bond-line-soft);
background: #101014;
color: var(--bond-text);
}
.fieldinputerror {
font-family: exo2;
border-radius: 3px;
padding: 2px 2px 2px 5px;
background: #241213;
border: 1px solid var(--bond-red);
color: var(--bond-text);
}
.fieldprompt {
font-size: 10pt;
text-align: right;
color: var(--bond-gold-bright);
background: transparent;
}
.message { font: bold 10pt verdana; color: #d97a7a; }
.collection_heading { font: bold 12pt verdana; color: var(--bond-gold-bright); }
.collection_text { font: 10pt verdana; color: var(--bond-text); }
.collection_tracks_background { font: 8pt bold verdana; color: var(--bond-text); background: #101014; }
.warning { font: 10pt verdana; background: #3a1414; color: #e0a0a0; text-align: justify; border: 1px solid var(--bond-red); }
.button {
position: relative;
display: inline-block;
font-size: 10pt;
font-weight: 600;
letter-spacing: 0.04em;
color: var(--bond-gold-bright);
border: 1px solid var(--bond-gold);
background: linear-gradient(180deg, #1c1c24, #131318);
padding: 2px 10px 3px 10px;
margin: 0px;
border-radius: 3px;
box-shadow: 0 0 0.5em rgba(197, 164, 90, 0.3), 0 0 0.15em rgba(227, 196, 126, 0.4);
transition: box-shadow 0.2s ease, background 0.2s ease;
}
.button:hover {
box-shadow: 0 0 0.9em rgba(197, 164, 90, 0.55), 0 0 0.3em rgba(227, 196, 126, 0.6);
background: linear-gradient(180deg, #24242e, #1a1a20);
}
.button:after{
content: none;
}
.code {
font-family: source;
font-weight: 400;
font-size: 10pt;
border: 1px solid var(--bond-line-soft);
background: #101014;
color: var(--bond-gold-bright);
padding: 5px;
}
/* SPA content-swap fade transition */
#content {
transition: opacity 0.18s ease;
}
#content.spa-fading {
opacity: 0;
}
/* Shopping cart */
.cart-notice {
background: var(--bond-panel-2);
border: 1px solid var(--bond-line);
border-left: 3px solid var(--bond-gold);
color: var(--bond-text);
padding: 8px 12px;
margin: 0 0 10px 0;
border-radius: 3px;
font-size: 9pt;
}
.cart-wrap {
border: 1px solid var(--bond-line);
border-radius: 4px;
overflow: hidden;
background: var(--bond-panel);
}
.cart-header {
display: grid;
grid-template-columns: 1fr 90px 90px 100px 70px;
gap: 8px;
align-items: center;
padding: 8px 14px;
background: linear-gradient(180deg, #1c1c24, #131318);
border-bottom: 1px solid var(--bond-line);
color: var(--bond-gold-bright);
font-size: 8pt;
letter-spacing: 0.08em;
text-transform: uppercase;
font-weight: 600;
}
.cart-header .cart-col-price,
.cart-header .cart-col-qty,
.cart-header .cart-col-total {
text-align: right;
}
.cart-items {
max-height: 420px;
overflow-y: auto;
}
.cart-row {
display: grid;
grid-template-columns: 1fr 90px 90px 100px 70px;
gap: 8px;
align-items: center;
padding: 10px 14px;
border-bottom: 1px solid var(--bond-line-soft);
color: var(--bond-text);
font-size: 9pt;
transition: background 0.15s ease;
}
.cart-row:last-child { border-bottom: none; }
.cart-row:hover {
background: rgba(197, 164, 90, 0.06);
}
.cart-row .cart-col-desc {
font-weight: 500;
color: var(--bond-text);
}
.cart-row .cart-col-price,
.cart-row .cart-col-total {
text-align: right;
font-variant-numeric: tabular-nums;
}
.cart-row .cart-col-total {
color: var(--bond-gold-bright);
font-weight: 600;
}
.cart-row .cart-col-qty {
text-align: right;
}
.cart-qty-input {
width: 60px !important;
text-align: center;
margin: 0 !important;
display: inline-block !important;
}
.cart-col-remove {
text-align: right;
}
.cart-remove-link {
color: var(--bond-text-dim) !important;
font-size: 8pt;
letter-spacing: 0.04em;
text-transform: uppercase;
border: 1px solid var(--bond-line-soft);
border-radius: 3px;
padding: 3px 8px;
transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.cart-remove-link:hover {
color: #d97a7a !important;
border-color: var(--bond-red);
background: rgba(161, 58, 58, 0.12);
}
.cart-summary {
padding: 12px 14px;
background: linear-gradient(180deg, #131318, #0d0d10);
border-top: 1px solid var(--bond-line);
}
.cart-summary-row {
display: flex;
justify-content: space-between;
align-items: baseline;
color: var(--bond-text);
font-size: 10pt;
}
.cart-summary-total {
color: var(--bond-gold-bright);
font-size: 14pt;
font-weight: 700;
letter-spacing: 0.02em;
}
.cart-empty {
text-align: center;
padding: 50px 20px;
color: var(--bond-text-dim);
}
.cart-empty-icon {
font-size: 40pt;
opacity: 0.5;
margin-bottom: 8px;
}
.cart-empty-title {
font-size: 13pt;
color: var(--bond-text);
letter-spacing: 0.04em;
margin-bottom: 4px;
}
.cart-empty-text {
font-size: 9pt;
color: var(--bond-text-dim);
}
/* Checkout */
.checkout-header {
display: grid;
grid-template-columns: 1fr 90px 70px 100px;
gap: 8px;
align-items: center;
padding: 8px 14px;
background: linear-gradient(180deg, #1c1c24, #131318);
border-bottom: 1px solid var(--bond-line);
color: var(--bond-gold-bright);
font-size: 8pt;
letter-spacing: 0.08em;
text-transform: uppercase;
font-weight: 600;
}
.checkout-header .checkout-col-qty {
text-align: right;
}
.checkout-row {
display: grid;
grid-template-columns: 1fr 90px 70px 100px;
gap: 8px;
align-items: center;
padding: 10px 14px;
border-bottom: 1px solid var(--bond-line-soft);
color: var(--bond-text);
font-size: 9pt;
}
.checkout-row:last-child { border-bottom: none; }
.checkout-row .checkout-col-qty {
text-align: right;
color: var(--bond-text-dim);
}
.checkout-pay-wrap {
max-width: 380px;
margin: 0 auto;
padding: 6px 0 4px 0;
}
.checkout-pay-label {
font-size: 8pt;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--bond-text-dim);
margin-bottom: 6px;
}
.checkout-card-input {
background: var(--bond-panel-2);
border: 1px solid var(--bond-line);
border-radius: 4px;
padding: 10px;
min-height: 40px;
margin-bottom: 14px;
}
.checkout-pay-btn {
display: block;
width: 100%;
font-size: 11pt;
padding: 9px 10px 10px 10px;
text-align: center;
color: #0a0a0d;
background: linear-gradient(180deg, var(--bond-gold-bright), var(--bond-gold));
border: 1px solid var(--bond-gold);
cursor: pointer;
}
.checkout-pay-btn:hover {
background: linear-gradient(180deg, #f0d89a, var(--bond-gold-bright));
box-shadow: 0 0 0.6em rgba(197, 164, 90, 0.45);
}
.checkout-pay-btn:disabled {
cursor: default;
opacity: 0.55;
background: linear-gradient(180deg, #1c1c24, #131318);
color: var(--bond-text-dim);
box-shadow: none;
}
.checkout-processing {
visibility: hidden;
background: var(--bond-panel-2);
border: 1px solid var(--bond-line);
border-left: 3px solid var(--bond-gold);
color: var(--bond-text);
padding: 8px 12px;
margin-top: 12px;
border-radius: 3px;
font-size: 9pt;
}
.checkout-error {
color: #d97a7a;
font-size: 9pt;
margin-top: 12px;
min-height: 1.2em;
}
/* Site-wide floating file transfer manager (see documents.js) - lives
outside #content in mainpagetemplate.jet so it survives SPA
navigation, letting an upload/download keep running while browsing
to a different page. */
#filemgr-panel {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 9000;
font-family: exo2;
font-size: 9pt;
}
#filemgr-toggle {
width: 44px; height: 44px;
border-radius: 50%;
display: flex; align-items: center; justify-content: center;
position: relative;
cursor: pointer;
border: 1px solid var(--bond-gold);
background: linear-gradient(180deg, #1c1c24, #131318);
color: var(--bond-gold-bright);
box-shadow: 0 0 0.6em rgba(197, 164, 90, 0.35);
transition: box-shadow 0.2s ease, background 0.2s ease;
margin-left: auto;
}
#filemgr-toggle:hover {
box-shadow: 0 0 1em rgba(197, 164, 90, 0.6), 0 0 0.3em rgba(227, 196, 126, 0.6);
background: linear-gradient(180deg, #24242e, #1a1a20);
}
#filemgr-toggle svg { width: 20px; height: 20px; }
#filemgr-badge {
position: absolute; top: -4px; right: -4px;
min-width: 16px; height: 16px; padding: 0 3px;
border-radius: 8px;
background: var(--bond-gold-bright);
color: #131318;
font-size: 8pt; font-weight: bold;
display: flex; align-items: center; justify-content: center;
}
#filemgr-badge:empty { display: none; }
#filemgr-body {
display: none;
width: 320px;
max-height: 400px;
margin-bottom: 10px;
margin-left: auto;
border-radius: 8px;
border: 1px solid var(--bond-line);
background: var(--bond-bg-2);
box-shadow: 0 10px 40px rgba(0,0,0,0.6);
overflow: hidden;
display: flex;
flex-direction: column;
}
#filemgr-panel.filemgr-expanded #filemgr-body { display: flex; }
#filemgr-header {
display: flex; align-items: center; justify-content: space-between;
padding: 8px 12px;
border-bottom: 1pt solid var(--bond-line-soft);
color: var(--bond-gold-bright);
font-weight: 600;
}
#filemgr-clear { font-weight: normal; font-size: 8pt; color: var(--bond-text-dim); cursor: pointer; }
#filemgr-clear:hover { color: var(--bond-text); }
#filemgr-list { overflow-y: auto; padding: 6px; }
#filemgr-empty { color: var(--bond-text-dim); padding: 10px; text-align: center; }
.filemgr-item { padding: 8px; border-radius: 6px; margin-bottom: 4px; background: rgba(255,255,255,0.03); }
.filemgr-item-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.filemgr-item-icon { flex-shrink: 0; width: 14px; height: 14px; color: var(--bond-gold-bright); }
.filemgr-item-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filemgr-item-status { flex-shrink: 0; font-size: 8pt; color: var(--bond-text-dim); }
.filemgr-item.filemgr-failed .filemgr-item-status { color: #c66; }
.filemgr-item.filemgr-done .filemgr-item-status { color: var(--bond-gold-bright); }
.filemgr-progress-track { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.08); overflow: hidden; }
.filemgr-progress-fill { height: 100%; width: 0%; background: var(--bond-gold-bright); transition: width 0.15s ease; }
.filemgr-item.filemgr-done .filemgr-progress-fill { background: #6c6; }
.filemgr-item.filemgr-failed .filemgr-progress-fill { background: #c66; }
/* Fades in during an SPA navigation fetch - lives outside #content (a
content.innerHTML swap would just wipe it out otherwise), positioned
relative to the viewport rather than the resizable content column so
dragging #panelmenu-resizer narrower/wider never throws its centering
off. The transition duration alone (no separate timer) is what keeps
a fast load from ever showing it at a noticeable opacity before the
class comes back off. */
.spa-loading-indicator {
position: fixed;
top: 90px;
left: 50%;
transform: translateX(-50%);
color: var(--bond-text-dim);
font-size: 10pt;
letter-spacing: 1px;
opacity: 0;
transition: opacity 0.6s ease;
pointer-events: none;
z-index: 500;
}
.spa-loading-indicator.spa-loading-visible {
opacity: 1;
}
/* Fades in during an SPA navigation fetch - lives outside #content (a
content.innerHTML swap would just wipe it out otherwise), positioned
relative to the viewport rather than the resizable content column so
dragging #panelmenu-resizer narrower/wider never throws its centering
off. The transition duration alone (no separate timer) is what keeps
a fast load from ever showing it at a noticeable opacity before the
class comes back off. */
.spa-loading-indicator {
position: fixed;
top: 90px;
left: 50%;
transform: translateX(-50%);
color: var(--bond-text-dim);
font-size: 10pt;
letter-spacing: 1px;
opacity: 0;
transition: opacity 0.6s ease;
pointer-events: none;
z-index: 500;
}
.spa-loading-indicator.spa-loading-visible {
opacity: 1;
}
/* Keeps the music/library/ianslibrary subpages pinned to the browser
window's height (footer always visible, no whole-page scroll) while
the song list itself scrolls internally - the exact same pattern
already proven for the email app's own message list
(.pageclass:has(#email-app)), just scoped to this marker instead and
adapted for <sectionframe>'s own heading-then-contents structure
(the heading needs to stay a fixed size above the scrolling list,
not get swept into the same scroll region). height:100% has to be
set explicitly at every level down to .music-song-list itself -
percentage heights only resolve against an ancestor with its own
definite height, and a plain block element's default is auto, which
does not count, so skipping any one level here would silently break
the whole chain. #main-subpage (main.page's generic per-subpage
wrapper, between #content and .sectionframe) is exactly that kind of
skip - missing it let .sectionframe's height:100% resolve to auto,
so .music-song-list sized itself to its full content height instead
of a scrollable box, and the overflow got clipped by .pageclass's
own overflow:hidden with no scrollbar to show for it. */
.pageclass:has(.music-song-list) {
height: calc(100vh - 150px);
overflow: hidden;
}
#content:has(.music-song-list) {
height: 100%;
overflow: hidden;
}
#main-subpage:has(.music-song-list) {
height: 100%;
overflow: hidden;
}
.sectionframe:has(.music-song-list) {
height: 100%;
display: flex;
flex-direction: column;
overflow: hidden;
box-sizing: border-box;
}
.sectionframe:has(.music-song-list) .sectionframecontents {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
overflow: hidden;
}
.music-song-list {
flex: 1;
min-height: 0;
overflow-y: auto;
}
/* Fades in during an SPA navigation fetch - lives outside #content (a
content.innerHTML swap would just wipe it out otherwise), positioned
relative to the viewport rather than the resizable content column so
dragging #panelmenu-resizer narrower/wider never throws its centering
off. The transition duration alone (no separate timer) is what keeps
a fast load from ever showing it at a noticeable opacity before the
class comes back off. */
.spa-loading-indicator {
position: fixed;
top: 90px;
left: 50%;
transform: translateX(-50%);
color: var(--bond-text-dim);
font-size: 10pt;
letter-spacing: 1px;
opacity: 0;
transition: opacity 0.6s ease;
pointer-events: none;
z-index: 500;
}
.spa-loading-indicator.spa-loading-visible {
opacity: 1;
}
/* Global persistent music player band - slides open only while playing */
.globalplayer-band {
max-height: 0;
overflow: hidden;
display: flex;
align-items: center;
gap: 10px;
background: var(--bond-panel);
border-bottom: 1pt solid var(--bond-line);
padding: 0 16px;
box-sizing: border-box;
transition: max-height 0.3s ease, padding 0.3s ease;
}
.globalplayer-band.globalplayer-open {
max-height: 54px;
padding: 10px 16px;
}
.globalplayer-title {
position: relative;
flex: 1;
/* A flex item's default min-width is its content's own min-content
size, not 0 - without this, a long song name would force the whole
LCD panel wider (squeezing the volume slider/buttons) rather than
actually truncating against the space it is given. */
min-width: 0;
display: flex;
flex-direction: column;
justify-content: center;
background: #000;
border: 1px solid #333;
border-radius: 4px;
padding: 4px 10px;
box-sizing: border-box;
box-shadow: inset 0 0 8px rgba(26,143,196,0.12), inset 0 2px 4px rgba(0,0,0,0.8);
}
.globalplayer-duration {
position: absolute;
top: 4px;
right: 8px;
font-family: 'Consolas', 'Courier New', monospace;
font-size: 10pt;
color: #1a8fc4;
text-shadow: 0 0 4px rgba(26,143,196,0.7);
opacity: 0.85;
}
.globalplayer-random-indicator {
position: absolute;
top: 20px;
right: 8px;
font-family: 'Consolas', 'Courier New', monospace;
font-size: 7pt;
letter-spacing: 1px;
color: #1a8fc4;
text-shadow: 0 0 4px rgba(26,143,196,0.7);
opacity: 0.85;
display: none;
}
.globalplayer-random-indicator.globalplayer-random-indicator-visible {
display: block;
}
.globalplayer-title-text {
font-family: 'Consolas', 'Courier New', monospace;
font-size: 20pt;
line-height: 1.1;
color: #1a8fc4;
text-shadow: 0 0 5px rgba(26,143,196,0.8), 0 0 1px rgba(26,143,196,0.9);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.globalplayer-progress {
position: relative;
height: 8px;
width: 100%;
background: rgba(26,143,196,0.15);
border-radius: 4px;
margin-top: 4px;
box-sizing: border-box;
cursor: pointer;
touch-action: none;
}
.globalplayer-progress-fill {
height: 100%;
width: 0%;
background: #1a8fc4;
border-radius: 4px 0 0 4px;
box-shadow: 0 0 4px rgba(26,143,196,0.8);
transition: width 0.2s linear;
pointer-events: none;
}
.globalplayer-progress-handle {
position: absolute;
top: 50%;
left: 0%;
width: 12px;
height: 12px;
border-radius: 50%;
background: radial-gradient(circle at 35% 30%, #fff6d0 0%, #d4af37 55%, #6b5313 100%);
border: 1px solid #5a4410;
box-shadow: 0 1px 3px rgba(0,0,0,0.7);
transform: translate(-50%, -50%);
transition: left 0.2s linear;
pointer-events: none;
}
.globalplayer-progress.globalplayer-progress-dragging .globalplayer-progress-fill,
.globalplayer-progress.globalplayer-progress-dragging .globalplayer-progress-handle {
transition: none;
}
/* Square, touch-tone-style buttons for the player band - same dished
gold-on-black look as the sipphone tag's dialpad keys. */
.globalplayer-btn {
flex-shrink: 0;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 8px;
background: radial-gradient(circle at 50% 50%, #8a6a22 0%, #b8903a 32%, #d4af37 55%, #ecce79 80%, #fff6d0 100%);
border: 1px solid #5a4410;
box-shadow:
0 2px 0 #4a3a0f,
0 3px 5px rgba(0,0,0,0.5),
inset 0 3px 5px rgba(0,0,0,0.45),
inset 0 -1px 1px rgba(255,255,255,0.5);
color: #3a2d05;
cursor: pointer;
transition: transform 0.06s ease, box-shadow 0.06s ease;
}
.globalplayer-btn svg { width: 16px; height: 16px; }
.globalplayer-btn:active {
transform: translateY(2px);
box-shadow:
inset 0 4px 8px rgba(0,0,0,0.6),
inset 0 -1px 1px rgba(255,255,255,0.3);
}
.globalplayer-btn-text {
width: auto;
padding: 0 12px;
font-size: 10px;
font-weight: bold;
letter-spacing: 1px;
white-space: nowrap;
}
/* Stereo FFT-style bar graph - left channel above the midline, right
channel below it, drawn directly onto a small canvas. */
.globalplayer-eq {
flex-shrink: 0;
width: 60px;
height: 32px;
background: #000;
border: 1px solid #333;
border-radius: 4px;
}
/* Playlist dropdown - its own independent sliding strip directly below
the player band, NOT nested inside it: the band's own overflow:hidden
(needed for its slide animation) would otherwise clip anything
positioned to pop out below it, which is why this was invisible
before despite the open/close class toggling correctly in JS. */
.globalplayer-queue {
max-height: 0;
overflow: hidden;
background: var(--bond-panel-2);
border-bottom: 1pt solid var(--bond-line);
transition: max-height 0.25s ease;
}
.globalplayer-queue.globalplayer-queue-open {
max-height: 240px;
overflow-y: auto;
}
.globalplayer-queue-item {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin: 6px 10px;
padding: 8px 14px;
border: 1px solid var(--bond-line);
border-radius: 8px;
background: rgba(255,255,255,0.03);
color: var(--bond-text-dim);
}
.globalplayer-queue-name {
font-size: 18pt;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.globalplayer-queue-left {
display: flex;
align-items: center;
gap: 8px;
flex: 1;
min-width: 0;
}
.globalplayer-queue-handle {
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
width: 16px;
height: 16px;
color: var(--bond-text-dim);
cursor: grab;
}
.globalplayer-queue-handle svg {
width: 14px;
height: 14px;
}
.globalplayer-queue-item.globalplayer-queue-dragging {
opacity: 0.4;
}
.globalplayer-queue-item.globalplayer-queue-dragover {
border-top: 2px solid var(--bond-gold-bright);
}
.globalplayer-queue-right {
flex-shrink: 0;
display: flex;
align-items: center;
gap: 8px;
}
.globalplayer-queue-duration {
flex-shrink: 0;
font-size: 9pt;
opacity: 0.75;
}
.globalplayer-queue-remove {
flex-shrink: 0;
display: inline-flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
padding: 0;
margin: 0;
border-radius: 6px;
border: 1px solid var(--bond-line);
background: linear-gradient(180deg, #1c1c24, #131318);
color: var(--bond-text-dim);
cursor: pointer;
transition: box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.globalplayer-queue-remove svg {
width: 12px;
height: 12px;
display: block;
}
.globalplayer-queue-remove:hover {
border-color: var(--bond-red);
color: var(--bond-red);
box-shadow: 0 0 0.5em rgba(161,58,58,0.35);
background: linear-gradient(180deg, #24242e, #1a1a20);
}
.globalplayer-queue-item.globalplayer-queue-current {
color: var(--bond-gold-bright);
font-weight: 600;
border-color: var(--bond-gold);
background: rgba(212,175,55,0.08);
}
/* Tactile feedback for clicking a song to queue it: an immediate flash
on the row, plus a lasting checkmark so it is clear at a glance which
songs are already in the queue. */
/* Scoped to the name span, not the row itself: the row is a flex
container with justify-content:space-between, and a ::before on it
directly becomes its own flex item - with 3 items instead of 2, the
name ends up looking centered between the checkmark and the duration/
remove group instead of staying left-aligned. Putting it on the name
span keeps it as ordinary inline content inside that one flex item. */
.song-queued .music-song-name::before {
content: "\2713 ";
color: var(--bond-gold-bright);
}
.song-queued-flash {
animation: songQueuedFlash 0.6s ease;
}
@keyframes songQueuedFlash {
0% { background: var(--bond-gold-bright); color: var(--bond-bg); }
100% { background: transparent; }
}
/* Song-picker rows (music/jukebox subpages) - same boxed, rounded-corner
look as the playlist dropdown's own entries, for visual consistency
between "songs you can pick" and "what's in the queue". */
.music-song-row {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 10px;
margin: 4px 0;
padding: 5px 10px;
border: 1px solid var(--bond-line);
border-radius: 8px;
background: rgba(255,255,255,0.03);
color: var(--bond-text-dim);
cursor: pointer;
}
.music-song-row:hover {
border-color: var(--bond-gold);
background: rgba(255,255,255,0.06);
}
.music-song-name {
font-size: 12pt;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.music-song-duration {
flex-shrink: 0;
font-size: 8pt;
opacity: 0.75;
}
/* Volume slider - a small gold knob riding a thin gold-tinted track */
.globalplayer-volume {
-webkit-appearance: none;
appearance: none;
flex-shrink: 0;
width: 70px;
height: 4px;
border-radius: 2px;
background: var(--bond-line);
outline: none;
cursor: pointer;
}
.globalplayer-volume::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 14px;
height: 14px;
border-radius: 50%;
background: radial-gradient(circle at 35% 30%, #fff6d0 0%, #d4af37 55%, #6b5313 100%);
border: 1px solid #5a4410;
box-shadow: 0 1px 2px rgba(0,0,0,0.6);
cursor: pointer;
}
.globalplayer-volume::-moz-range-track {
height: 4px;
border-radius: 2px;
background: var(--bond-line);
}
.globalplayer-volume::-moz-range-thumb {
width: 14px;
height: 14px;
border-radius: 50%;
background: radial-gradient(circle at 35% 30%, #fff6d0 0%, #d4af37 55%, #6b5313 100%);
border: 1px solid #5a4410;
box-shadow: 0 1px 2px rgba(0,0,0,0.6);
cursor: pointer;
}