656 lines
49 KiB
CSS
656 lines
49 KiB
CSS
:root {
|
|
--bg: #f5f6f8; --panel: #fff; --panel2: #eef0f4; --text: #14171c; --muted: #6a7280;
|
|
--line: #e0e3e9; --accent: #3d6bf0; --accent-t: #fff; --danger: #d4392f;
|
|
--nav-h: 58px; --rail-w: 76px;
|
|
--sat: env(safe-area-inset-top); --sab: env(safe-area-inset-bottom);
|
|
--sal: env(safe-area-inset-left); --sar: env(safe-area-inset-right);
|
|
}
|
|
@media (prefers-color-scheme: dark) {
|
|
:root { --bg: #0f1115; --panel: #181b21; --panel2: #20242c; --text: #eceef2; --muted: #8b93a3; --line: #272c35; --accent: #6a8cff; --accent-t: #0b1020; --danger: #ff6b60; }
|
|
}
|
|
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
|
|
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
|
|
font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
|
|
button, input, select { font: inherit; color: inherit; }
|
|
button { cursor: pointer; }
|
|
a { color: inherit; text-decoration: none; }
|
|
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
|
|
|
|
/* Mobile first: content on top, tab bar at the bottom */
|
|
#shell { display: flex; flex-direction: column; height: 100dvh; }
|
|
#view { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
|
|
padding: calc(var(--sat) + 16px) calc(var(--sar) + 16px) 24px calc(var(--sal) + 16px); }
|
|
#nav { order: 2; display: flex; background: var(--panel); border-top: 1px solid var(--line);
|
|
padding: 0 var(--sar) var(--sab) var(--sal); }
|
|
#nav a { flex: 1; min-height: var(--nav-h); display: flex; flex-direction: column; align-items: center;
|
|
justify-content: center; gap: 2px; font-size: 11px; color: var(--muted); }
|
|
#nav a.on { color: var(--accent); }
|
|
.brand { display: none; }
|
|
|
|
h1 { font-size: 28px; margin: 0 0 4px; letter-spacing: -.02em; }
|
|
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 28px 0 10px; }
|
|
.sub { color: var(--muted); margin: 0 0 8px; }
|
|
.wrap { max-width: 1100px; margin: 0 auto; }
|
|
|
|
.grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
|
|
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px;
|
|
display: flex; flex-direction: column; gap: 10px; min-height: 108px; text-align: left; }
|
|
.tile:active, .row:active { background: var(--panel2); }
|
|
.tile .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
|
|
.tile b { font-weight: 600; }
|
|
.tile small { color: var(--muted); font-size: 13px; word-break: break-all; }
|
|
|
|
.list { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
|
|
.row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 56px; width: 100%;
|
|
background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; }
|
|
.row:last-child { border-bottom: 0; }
|
|
.row .grow { flex: 1; min-width: 0; }
|
|
.row .grow b, .row .grow small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.row small { color: var(--muted); }
|
|
.row .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
|
|
.chev { color: var(--muted); width: 18px; height: 18px; }
|
|
|
|
.btn { background: var(--accent); color: var(--accent-t); border: 0; border-radius: 12px; padding: 0 16px;
|
|
min-height: 44px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
|
|
.btn.ghost { background: var(--panel2); color: var(--text); }
|
|
.btn.danger { background: transparent; color: var(--danger); border: 1px solid var(--line); }
|
|
.bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
|
|
|
|
[hidden] { display: none !important; }
|
|
input[type=text], input[type=password], input[type=url], input[type=email] { width: 100%; min-height: 48px; padding: 0 14px;
|
|
border-radius: 12px; border: 1px solid var(--line); background: var(--panel); font-size: 16px; }
|
|
label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }
|
|
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; max-width: 460px; }
|
|
.err { color: var(--danger); margin-top: 10px; }
|
|
|
|
.crumbs { display: flex; gap: 6px; align-items: center; overflow-x: auto; white-space: nowrap; margin: 8px 0 12px; scrollbar-width: none; }
|
|
.crumbs button { background: none; border: 0; padding: 6px 4px; color: var(--accent); min-height: 36px; }
|
|
.crumbs span { color: var(--muted); }
|
|
.empty { color: var(--muted); padding: 32px 16px; text-align: center; }
|
|
|
|
.frame { width: 100%; height: calc(100dvh - var(--nav-h) - var(--sat) - var(--sab) - 150px); min-height: 360px;
|
|
border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
|
|
|
|
/* Files: master/detail */
|
|
.files { display: block; }
|
|
.files .libs { display: block; }
|
|
.files.open .libs { display: none; }
|
|
.files .main { display: none; }
|
|
.files.open .main { display: block; }
|
|
.backbtn { display: inline-flex; }
|
|
|
|
#toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--sab) + 16px); transform: translate(-50%, 20px);
|
|
background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; opacity: 0; pointer-events: none;
|
|
transition: .2s; max-width: 90vw; z-index: 10; }
|
|
#toast.on { opacity: 1; transform: translate(-50%, 0); }
|
|
#toast.act { pointer-events: auto; display: flex; align-items: center; gap: 14px; }
|
|
#toast.act button { border: 0; background: none; color: var(--accent-fg, #7aa2ff); font-weight: 700; padding: 0 4px; font-size: 15px; }
|
|
|
|
/* Tablet / iPad (incl. 12.9" portrait 1024 + landscape 1366) and desktop: side rail */
|
|
@media (min-width: 768px) {
|
|
#shell { flex-direction: row; }
|
|
#nav { order: 0; flex-direction: column; width: var(--rail-w); border-top: 0; border-right: 1px solid var(--line);
|
|
padding: calc(var(--sat) + 12px) 0 12px var(--sal); gap: 4px; }
|
|
#nav a { flex: none; min-height: 64px; }
|
|
.brand { display: block; width: 36px; height: 36px; margin: 4px auto 12px; }
|
|
.brand img { width: 36px; height: 36px; border-radius: 10px; display: block; }
|
|
.brand span { display: none; }
|
|
#nav .spacer { flex: 1; }
|
|
#view { padding: calc(var(--sat) + 28px) 32px 40px; }
|
|
.grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
|
|
#toast { bottom: 24px; }
|
|
.frame { height: calc(100dvh - 190px); }
|
|
}
|
|
@media (min-width: 1024px) {
|
|
:root { --rail-w: 220px; }
|
|
#nav { padding: calc(var(--sat) + 16px) 12px 16px; }
|
|
#nav a { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 0 14px; border-radius: 12px; font-size: 15px; min-height: 48px; }
|
|
#nav a.on { background: var(--panel2); }
|
|
.brand { display: flex; align-items: center; gap: 10px; width: auto; height: auto; margin: 0 0 16px 6px; font-weight: 700; font-size: 18px; }
|
|
.brand span { display: inline; }
|
|
.brand img { width: 32px; height: 32px; border-radius: 9px; }
|
|
.grid { grid-template-columns: repeat(4, 1fr); }
|
|
.files { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
|
|
.files .libs, .files.open .libs, .files .main, .files.open .main { display: block; }
|
|
.backbtn { display: none; }
|
|
}
|
|
@media (hover: hover) { .tile:hover, .row:hover { background: var(--panel2); } }
|
|
|
|
/* Bottom sheet (mobile) / centered dialog (tablet+) */
|
|
#sheet { position: fixed; inset: 0; z-index: 20; }
|
|
#sheet .scrim { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .2s; }
|
|
#sheet .sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--panel); border-radius: 20px 20px 0 0;
|
|
padding: 8px 16px calc(var(--sab) + 16px); transform: translateY(100%); transition: transform .22s ease; max-height: 85dvh; overflow-y: auto; }
|
|
#sheet.on .scrim { opacity: 1; }
|
|
#sheet.on .sheet { transform: none; }
|
|
#sheet .grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 4px auto 12px; }
|
|
#sheet h3 { margin: 0 0 4px; font-size: 18px; word-break: break-all; }
|
|
#sheet .list { background: var(--panel2); border: 0; margin-top: 8px; }
|
|
#sheet .row.dng { color: var(--danger); }
|
|
@media (min-width: 768px) {
|
|
#sheet .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 420px; border-radius: 20px;
|
|
padding: 20px; transform: translate(-50%, -46%); opacity: 0; transition: .18s; }
|
|
#sheet.on .sheet { transform: translate(-50%, -50%); opacity: 1; }
|
|
#sheet .grip { display: none; }
|
|
}
|
|
|
|
/* Full-bleed editor: hide the tab bar/rail so the editor gets the screen */
|
|
body.editing #nav { display: none; }
|
|
body.editing #view { padding: 0; display: flex; flex-direction: column; }
|
|
.edbar { display: flex; align-items: center; gap: 12px; padding: calc(var(--sat) + 8px) calc(var(--sar) + 12px) 8px calc(var(--sal) + 12px); background: var(--panel); border-bottom: 1px solid var(--line); }
|
|
.edbar b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.edwrap { flex: 1; min-height: 0; position: relative; }
|
|
.edwrap iframe, .edwrap #oo { width: 100%; height: 100%; border: 0; }
|
|
|
|
/* Music */
|
|
#main { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
|
|
.seg { display: flex; gap: 6px; margin: 12px 0; overflow-x: auto; }
|
|
.seg a { padding: 8px 16px; border-radius: 999px; background: var(--panel2); color: var(--muted); white-space: nowrap; min-height: 40px; display: flex; align-items: center; }
|
|
.seg a.on { background: var(--accent); color: var(--accent-t); font-weight: 600; }
|
|
.agrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
|
|
.acard { display: block; min-width: 0; }
|
|
.acard .art { width: 100%; aspect-ratio: 1; border-radius: 12px; background: var(--panel2); object-fit: cover; display: block; }
|
|
.acard.round .art { border-radius: 50%; }
|
|
.acard b, .acard small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 6px; }
|
|
.acard small { color: var(--muted); margin-top: 0; font-size: 13px; }
|
|
.mhead { display: flex; gap: 16px; align-items: flex-end; margin-bottom: 8px; }
|
|
.mhead .art { width: 38vw; max-width: 200px; aspect-ratio: 1; border-radius: 14px; background: var(--panel2); object-fit: cover; flex: none; }
|
|
.mhead h1 { font-size: 24px; word-break: break-word; }
|
|
.num { width: 28px; text-align: right; color: var(--muted); flex: none; font-variant-numeric: tabular-nums; }
|
|
.row.playing b { color: var(--accent); }
|
|
input[type=search] { width: 100%; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); font-size: 16px; }
|
|
|
|
#player { background: var(--panel); border-top: 1px solid var(--line); }
|
|
#player[hidden] { display: none; }
|
|
.mini { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px calc(var(--sal) + 12px); position: relative; }
|
|
.mini .art { width: 44px; height: 44px; border-radius: 8px; background: var(--panel2); object-fit: cover; flex: none; }
|
|
.mini .meta { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 0; }
|
|
.mini .meta b, .mini .meta small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.mini .meta small { color: var(--muted); }
|
|
.ibtn { background: none; border: 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
|
|
.ibtn:active { background: var(--panel2); }
|
|
.ibtn.big { width: 64px; height: 64px; background: var(--accent); color: var(--accent-t); }
|
|
.ibtn.big svg { width: 30px; height: 30px; }
|
|
.mini .bar2 { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--line); cursor: pointer; touch-action: none; }
|
|
.mini .bar2::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; bottom: -8px; } /* a taller area to grab */
|
|
.mini .bar2 u { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--muted); opacity: .45; }
|
|
.mini .bar2 i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); width: 0; }
|
|
.mini .mtime { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; display: none; }
|
|
.mini .wide-only { display: none; }
|
|
.mini .ibtn.on { color: var(--accent); }
|
|
.mini .ibtn { position: relative; flex: none; }
|
|
.mini .ibtn[data-r="1"]::after { content: '1'; position: absolute; font-size: 10px; font-weight: 700; right: 8px; bottom: 6px; }
|
|
.mini { touch-action: pan-y; }
|
|
@media (min-width: 768px) { .mini .mtime { display: block; } .mini .wide-only { display: grid; } .mini .bar2 { height: 5px; } }
|
|
svg .spin, .spin { transform-origin: 12px 12px; animation: sp .8s linear infinite; }
|
|
@keyframes sp { to { transform: rotate(360deg); } }
|
|
.np { text-align: center; }
|
|
.np .art { width: min(72vw, 300px); aspect-ratio: 1; border-radius: 16px; object-fit: cover; background: var(--panel2); margin: 8px auto 16px; display: block; }
|
|
.np input[type=range] { width: 100%; accent-color: var(--accent); }
|
|
.np .times { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
|
|
.np .ctl { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 8px; }
|
|
|
|
/* File rows with an actions button */
|
|
.row.it { padding: 4px 4px 4px 16px; }
|
|
.row.it .rmain { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; background: none; border: 0; padding: 8px 0; text-align: left; min-height: 48px; }
|
|
.row.it .rmain .grow b, .row.it .rmain .grow small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
#sheet .sheet.wide { max-height: 92dvh; }
|
|
@media (min-width: 768px) { #sheet .sheet.wide { width: min(720px, 92vw); } }
|
|
#sheet input[readonly] { margin-top: 8px; }
|
|
|
|
.searchbar { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; margin: 12px 0 4px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
|
|
.card2 { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
|
|
.card2 .art { object-fit: cover; }
|
|
.row .art { object-fit: cover; flex: none; background: var(--panel2); }
|
|
|
|
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
|
|
|
|
/* Editor inside the Office tab: keep the nav, drop the page padding so the editor fills the space */
|
|
body.inedit #view { padding: 0; display: flex; flex-direction: column; }
|
|
|
|
/* Audiobooks frame lives outside #view so it keeps playing when you change tabs */
|
|
#audiowrap.off { position: fixed; left: -9999px; top: 0; width: 360px; height: 480px; overflow: hidden; }
|
|
#audiowrap.on { flex: 1; min-height: 0; padding: 0 calc(var(--sar) + 16px) 16px calc(var(--sal) + 16px); }
|
|
#audiowrap iframe { width: 100%; height: 100%; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
|
|
body.onaudio #view { flex: none; overflow: visible; padding-bottom: 0; }
|
|
.abbar { display: flex; align-items: center; gap: 4px; padding: 6px calc(var(--sar) + 16px) 6px calc(var(--sal) + 16px); }
|
|
.abbar .grow { min-width: 0; display: flex; flex-direction: column; }
|
|
.abbar small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.abbar a.ibtn { display: inline-flex; align-items: center; justify-content: center; color: inherit; }
|
|
@media (min-width: 768px) { #audiowrap.on { padding-right: 32px; padding-left: 32px; padding-bottom: 24px; } }
|
|
|
|
/* Month calendar */
|
|
.mhdr { display: flex; align-items: center; gap: 6px; margin: 4px 0 10px; }
|
|
.cgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
|
|
.cgrid.wk { background: none; border: 0; border-radius: 0; margin-bottom: 4px; gap: 0; }
|
|
.cgrid.wk span { text-align: center; color: var(--muted); font-size: 12px; padding: 4px 0; }
|
|
.cday { background: var(--panel); border: 0; padding: 4px 2px 6px; min-height: 54px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; min-width: 0; }
|
|
.cday.dim { background: var(--bg); color: var(--muted); }
|
|
.cday .dn { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; }
|
|
.cday.today .dn { background: var(--accent); color: var(--accent-t); font-weight: 700; }
|
|
.cday.sel { outline: 2px solid var(--accent); outline-offset: -2px; }
|
|
.cday .dots { display: flex; gap: 3px; min-height: 6px; }
|
|
.cday .dots i { width: 6px; height: 6px; border-radius: 50%; }
|
|
.cday .chips { display: none; }
|
|
@media (min-width: 768px) {
|
|
.cday { min-height: 104px; align-items: stretch; padding: 6px; gap: 4px; }
|
|
.cday .dn { align-self: flex-start; }
|
|
.cday .dots { display: none; }
|
|
.cday .chips { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
|
|
.cday .chips em { font-style: normal; font-size: 12px; line-height: 1.25; padding: 1px 6px; border-radius: 5px; border-left: 3px solid var(--c); background: var(--panel2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
|
|
.cday .chips small { color: var(--muted); font-size: 11px; text-align: left; padding-left: 6px; }
|
|
}
|
|
|
|
select, textarea, input[type=date], input[type=datetime-local], input[type=time] { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); font-size: 16px; color: var(--text); }
|
|
textarea { padding: 12px 14px; resize: vertical; font-family: inherit; }
|
|
.chk { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 16px; margin: 14px 0 0; }
|
|
.chk input { width: 22px; height: 22px; }
|
|
.row input[type=checkbox] { width: 22px; height: 22px; }
|
|
|
|
/* Several kept-alive frames share #audiowrap; only the active one is shown (the others stay loaded, out of sight) */
|
|
#audiowrap iframe:not(.act) { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; }
|
|
|
|
/* Tasks */
|
|
.tick { flex: none; color: var(--muted); }
|
|
.tick svg { width: 26px; height: 26px; }
|
|
.donetask .rmain b { text-decoration: line-through; color: var(--muted); }
|
|
.donetask .tick { color: var(--accent); }
|
|
.donetask .tick circle { fill: var(--accent); stroke: var(--accent); }
|
|
.donetask .tick path { stroke: var(--accent-t); }
|
|
|
|
/* iOS home-screen app polish */
|
|
html { -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
|
|
body { -webkit-touch-callout: none; }
|
|
button, a, .row { -webkit-user-select: none; user-select: none; }
|
|
input, textarea, [contenteditable], .sheet p, .card p, #view .sub { -webkit-user-select: text; user-select: text; }
|
|
|
|
/* "A new version is available" notice */
|
|
#upd { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + var(--sab) + 70px); z-index: 30; display: flex; align-items: center; gap: 12px;
|
|
background: var(--text); color: var(--bg); padding: 8px 8px 8px 16px; border-radius: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.35); max-width: 92vw; }
|
|
#upd .btn { min-height: 36px; background: var(--accent); color: var(--accent-t); }
|
|
@media (min-width: 768px) { #upd { bottom: 24px; } }
|
|
|
|
.np .ibtn.on { color: var(--accent); }
|
|
.np .ibtn[data-r="1"]::after { content: '1'; position: absolute; font-size: 10px; font-weight: 700; margin: 0 0 -14px 14px; }
|
|
.np .ibtn { position: relative; }
|
|
|
|
/* Files: selection, drag and drop, upload progress */
|
|
.selbar { position: sticky; top: 0; z-index: 3; background: var(--bg); padding-bottom: 4px; }
|
|
.selbar .bar { margin: 0 0 8px; align-items: center; }
|
|
.selbar .selcount { margin-right: auto; }
|
|
.selbar .bar { gap: 6px; }
|
|
.selbar .btn { padding-left: 10px; padding-right: 10px; }
|
|
.row.fr { cursor: default; }
|
|
.row.fr.sel { background: var(--panel2); }
|
|
.row .ck { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; margin-left: 4px; }
|
|
.row .ck.on { background: var(--accent); border-color: var(--accent); color: var(--accent-t); }
|
|
.row .ck svg { width: 14px; height: 14px; }
|
|
.dropt { outline: 2px dashed var(--accent); outline-offset: -2px; background: var(--panel2); }
|
|
#fmain.dropt { border-radius: 16px; }
|
|
#upbar { position: fixed; z-index: 15; left: 50%; transform: translateX(-50%); top: calc(var(--sat) + 10px); width: min(520px, calc(100vw - 24px)); display: flex; align-items: center; gap: 8px;
|
|
background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; box-shadow: 0 8px 28px rgba(0,0,0,.25); }
|
|
#upbar .upm { flex: 1; min-width: 0; position: relative; padding-bottom: 6px; }
|
|
#upbar .upm b, #upbar .upm small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
#upbar .upm small { color: var(--muted); }
|
|
#upbar .upm i { position: absolute; left: 0; bottom: 0; height: 3px; border-radius: 2px; background: var(--accent); transition: width .2s; }
|
|
#fmain { min-height: 240px; }
|
|
|
|
/* Back / Forward bar */
|
|
#navbar { display: flex; align-items: center; gap: 2px; padding: calc(var(--sat) + 4px) calc(var(--sar) + 8px) 0 calc(var(--sal) + 8px); }
|
|
#navbar[hidden], body.editing #navbar { display: none; }
|
|
#navbar .ibtn { width: 40px; height: 40px; }
|
|
#navbar .ibtn:disabled { opacity: .3; cursor: default; }
|
|
#navbar #nvt { color: var(--muted); font-size: 13px; margin-left: 6px; }
|
|
body:not(.editing) #view { padding-top: 8px; }
|
|
@media (min-width: 768px) { #navbar { padding-left: 24px; } body:not(.editing) #view { padding-top: 12px; } }
|
|
|
|
/* Mail */
|
|
|
|
/* Collapsible menu (tablet / computer) */
|
|
.navtoggle { display: none; }
|
|
.navcol { display: none; }
|
|
@media (min-width: 768px) {
|
|
#nav { overflow-y: auto; scrollbar-width: none; }
|
|
.navtoggle { display: grid; }
|
|
body.nav-hidden #nav { display: none; }
|
|
body.nav-hidden #navbar { padding-left: 12px; }
|
|
}
|
|
@media (min-width: 1024px) {
|
|
.navcol { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; border: 0; background: none; border-radius: 12px; color: var(--muted); font-size: 14px; }
|
|
.navcol:hover { background: var(--panel2); color: var(--text); }
|
|
.navcol svg { width: 20px; height: 20px; }
|
|
body.nav-mini #nav { width: 76px; padding: calc(var(--sat) + 12px) 0 12px var(--sal); }
|
|
body.nav-mini #nav a { flex-direction: column; justify-content: center; gap: 2px; padding: 0; font-size: 10px; min-height: 50px; border-radius: 0; flex: none; }
|
|
body.nav-mini #nav a svg { width: 22px; height: 22px; }
|
|
body.nav-mini #nav a.on { background: none; }
|
|
body.nav-mini .brand { display: block; width: 36px; height: 36px; margin: 4px auto 12px; }
|
|
body.nav-mini .brand img { width: 36px; height: 36px; border-radius: 10px; }
|
|
body.nav-mini .brand span { display: none; }
|
|
body.nav-mini .navcol { flex-direction: column; justify-content: center; gap: 2px; padding: 0; min-height: 56px; font-size: 11px; }
|
|
body.nav-mini .navcol svg { transform: rotate(180deg); }
|
|
body.nav-mini .navcol span { display: none; }
|
|
}
|
|
|
|
/* Unread badge on the menu */
|
|
#nav a { position: relative; }
|
|
.nbadge { background: var(--danger); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; line-height: 18px; min-width: 18px; padding: 0 5px; border-radius: 9px; text-align: center; position: absolute; top: 4px; left: calc(50% + 6px); }
|
|
@media (min-width: 1024px) { body:not(.nav-mini) #nav .nbadge { position: static; margin-left: auto; } }
|
|
|
|
/* Signal */
|
|
.sgwrap { max-width: 1200px; }
|
|
.sg { display: block; }
|
|
.sg .sgm { display: none; }
|
|
.sg.open .sgl { display: none; }
|
|
.sg.open .sgm { display: flex; }
|
|
.sghead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
|
|
.sghead h1 { margin: 0; }
|
|
.sglist { margin-top: 10px; }
|
|
.sgrow { padding: 10px 14px; }
|
|
.sgrow.on { background: var(--panel2); }
|
|
.sgav { width: 42px; height: 42px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
|
|
.sgav svg { width: 22px; height: 22px; }
|
|
.sgside { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
|
|
.sgm { flex-direction: column; height: calc(100dvh - 210px); min-height: 360px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
|
|
.sgbar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
|
|
.sgbar .grow { min-width: 0; } .sgbar b, .sgbar small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sgbar small { color: var(--muted); }
|
|
.sgmsgs { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 4px; -webkit-overflow-scrolling: touch; }
|
|
.sgday { align-self: center; color: var(--muted); font-size: 12px; margin: 10px 0 4px; }
|
|
.sgb { max-width: min(78%, 520px); padding: 8px 12px 6px; border-radius: 16px; background: var(--panel2); align-self: flex-start; word-break: break-word; position: relative; cursor: pointer; }
|
|
.sgb.out { align-self: flex-end; background: var(--accent); color: var(--accent-t); border-bottom-right-radius: 4px; }
|
|
.sgb.in { border-bottom-left-radius: 4px; }
|
|
.sgb .who { display: block; font-weight: 700; font-size: 12px; margin-bottom: 2px; }
|
|
.sgt a { color: inherit; text-decoration: underline; }
|
|
.sgmeta { display: block; text-align: right; font-size: 11px; opacity: .7; margin-top: 2px; }
|
|
.sgmeta .rd { color: #8be28b; font-weight: 700; }
|
|
.sgb.out .sgmeta .rd { color: #fff; }
|
|
.sgimg { display: block; max-width: 100%; max-height: 320px; border-radius: 10px; margin-bottom: 4px; }
|
|
.sgb audio, .sgb video { max-width: 100%; display: block; margin-bottom: 4px; }
|
|
.sgfile { display: flex; align-items: center; gap: 8px; text-decoration: underline; margin-bottom: 4px; }
|
|
.sgfile svg { width: 18px; height: 18px; }
|
|
.sgq { border-left: 3px solid currentColor; opacity: .85; padding: 2px 8px; margin-bottom: 6px; font-size: 13px; }
|
|
.sgq b, .sgq span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.sgdel { opacity: .7; }
|
|
.sgre { position: absolute; right: 8px; bottom: -12px; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 0 6px; font-size: 13px; }
|
|
.sgb:has(.sgre) { margin-bottom: 12px; }
|
|
.sgrep, .sgtray { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-top: 1px solid var(--line); background: var(--panel2); }
|
|
.sgrep[hidden], .sgtray[hidden] { display: none; }
|
|
.sgrep .grow { min-width: 0; border-left: 3px solid var(--accent); padding-left: 8px; } .sgrep b, .sgrep small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.sgtray { overflow-x: auto; }
|
|
.sgchip { display: flex; align-items: center; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 2px 4px 2px 8px; flex: none; max-width: 200px; }
|
|
.sgchip img { width: 32px; height: 32px; object-fit: cover; border-radius: 6px; } .sgchip small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 110px; } .sgchip .ibtn { width: 32px; height: 32px; }
|
|
.sgc { display: flex; align-items: flex-end; gap: 4px; padding: 8px; border-top: 1px solid var(--line); }
|
|
.sgc textarea { flex: 1; min-height: 44px; max-height: 140px; resize: none; border-radius: 22px; border: 1px solid var(--line); background: var(--bg); padding: 11px 14px; font-size: 16px; }
|
|
.sgsend { background: var(--accent); color: var(--accent-t); }
|
|
.sgsend:disabled { opacity: .5; }
|
|
.sgemo { display: flex; justify-content: space-around; } .sgemo .ibtn { font-size: 26px; width: 52px; height: 52px; }
|
|
.sgsteps { margin: 0 0 6px; padding-left: 20px; }
|
|
@media (min-width: 1024px) {
|
|
.sgwrap .sg { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
|
|
.sgwrap .sg .sgl, .sgwrap .sg.open .sgl, .sgwrap .sg .sgm, .sgwrap .sg.open .sgm { display: flex; }
|
|
.sgwrap .sg .sgl { flex-direction: column; }
|
|
.sgwrap .sgback { display: none; }
|
|
.sgwrap .sgm { height: calc(100dvh - 150px); }
|
|
}
|
|
|
|
/* The floating chat (desktop): a button on every screen that opens Signal over it */
|
|
#sgfab { position: fixed; z-index: 14; right: 22px; bottom: calc(var(--ph, 0px) + 22px); width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-t); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.35); cursor: pointer; }
|
|
#sgfab svg { width: 26px; height: 26px; }
|
|
#sgfab .nbadge { top: -2px; left: auto; right: -2px; position: absolute; }
|
|
#sgfab[hidden], #sgdock[hidden], body.editing #sgfab, body.editing #sgdock { display: none; }
|
|
#sgdock { position: fixed; z-index: 14; right: 22px; bottom: calc(var(--ph, 0px) + 88px); width: 400px; max-width: calc(100vw - 44px); height: min(640px, calc(100dvh - var(--ph, 0px) - 120px)); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.4); overflow: hidden; }
|
|
.sgdtop { display: flex; align-items: center; gap: 2px; padding: 4px 6px 4px 14px; border-bottom: 1px solid var(--line); }
|
|
.sgdtop .ibtn { width: 38px; height: 38px; } .sgdtop svg { width: 20px; height: 20px; }
|
|
.sgdbody { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
|
|
.sgdockin { padding: 10px; flex: 1; min-height: 0; display: flex; flex-direction: column; }
|
|
.sgdockin .sg { flex: 1; min-height: 0; display: flex; flex-direction: column; }
|
|
.sgdockin .sg .sgl { display: block; } .sgdockin .sg.open .sgl { display: none; }
|
|
.sgdockin .sg .sgm { display: none; } .sgdockin .sg.open .sgm { display: flex; flex: 1; height: auto; min-height: 0; border: 0; border-radius: 0; background: none; }
|
|
.sgdockin .sgbar { padding-left: 0; }
|
|
.sgdt { font-size: 15px; }
|
|
.sgdockin .sgm .sgmsgs { padding: 8px 4px; }
|
|
.sgdockin .sgb { max-width: 86%; }
|
|
@media (display-mode: standalone) { #sgfab { bottom: calc(var(--ph, 0px) + 22px + var(--sab, 0px)); } }
|
|
|
|
/* Now Playing card on the Music tab */
|
|
.npcard { display: grid; grid-template-columns: 112px 1fr; grid-template-areas: "art text" "art seek" "art ctl"; gap: 4px 18px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin: 12px 0 20px; }
|
|
.npc-art { grid-area: art; border: 0; padding: 0; background: var(--panel2); width: 112px; height: 112px; border-radius: 14px; overflow: hidden; cursor: pointer; align-self: start; }
|
|
.npc-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
|
|
.npc-text { grid-area: text; min-width: 0; align-self: end; }
|
|
.npc-text b, .npc-text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.npc-text b { font-size: 18px; } .npc-text small { color: var(--muted); }
|
|
.npc-lbl { font-size: 11px; letter-spacing: .08em; color: var(--accent) !important; font-weight: 700; margin-bottom: 2px; }
|
|
.npc-seek { grid-area: seek; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
|
|
.npc-seek input { flex: 1; accent-color: var(--accent); min-width: 0; }
|
|
.npc-ctl { grid-area: ctl; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
|
|
.npc-ctl .ibtn.on { color: var(--accent); position: relative; }
|
|
.npc-ctl .ibtn { position: relative; }
|
|
.npc-ctl .ibtn[data-r="1"]::after { content: '1'; position: absolute; font-size: 10px; font-weight: 700; right: 8px; bottom: 6px; }
|
|
.npc-ctl .ibtn.big { width: 52px; height: 52px; } .npc-ctl .ibtn.big svg { width: 26px; height: 26px; }
|
|
.npc-q { margin-left: auto; min-height: 38px; font-size: 14px; }
|
|
@media (max-width: 560px) {
|
|
.npcard { grid-template-columns: 76px 1fr; grid-template-areas: "art text" "seek seek" "ctl ctl"; padding: 12px; gap: 8px 12px; }
|
|
.npc-art { width: 76px; height: 76px; border-radius: 12px; align-self: center; }
|
|
.npc-text { align-self: center; } .npc-text b { font-size: 16px; }
|
|
.npc-ctl { justify-content: space-between; } .npc-q { display: none; }
|
|
}
|
|
|
|
/* Lyrics and karaoke */
|
|
body.lyropen { overflow: hidden; }
|
|
#lyr { position: fixed; inset: 0; z-index: 18; background: var(--bg); display: flex; flex-direction: column; padding-top: var(--sat); overflow: hidden; }
|
|
.lyrbg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(46px) saturate(1.3); opacity: .35; pointer-events: none; }
|
|
#lyr > * { position: relative; }
|
|
.lyrtop { display: flex; align-items: center; gap: 10px; padding: 10px 16px; }
|
|
.lyrart { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--panel2); flex: none; }
|
|
.lyrtop .grow { min-width: 0; } .lyrtop b, .lyrtop small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lyrtop small { color: var(--muted); font-size: 12px; }
|
|
.lyrtop .ibtn { font-weight: 700; font-size: 15px; }
|
|
.lyrmode[aria-pressed="true"] { background: var(--accent); color: var(--accent-t); }
|
|
.lyrbody { flex: 1; overflow-y: auto; padding: 24vh 20px 30vh; text-align: center; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
|
|
.lyrbody::-webkit-scrollbar { display: none; }
|
|
.lyrbody .empty { padding-top: 10vh; }
|
|
.ll { font-size: var(--lf, 30px); font-weight: 700; line-height: 1.3; margin: 0 auto 18px; max-width: 900px; color: var(--text); opacity: .32; transition: opacity .3s, transform .3s; transform-origin: center; cursor: pointer; }
|
|
.ll.past { opacity: .22; }
|
|
.ll.on { opacity: 1; transform: scale(1.04); }
|
|
.lgap { height: 24px; }
|
|
.ll .lt { color: inherit; }
|
|
.ll.on .lt { background: linear-gradient(90deg, var(--accent) calc(var(--p, 0) * 100%), var(--text) calc(var(--p, 0) * 100%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
|
|
.ll.on .lt:has(.w) { background: none; color: inherit; }
|
|
.ll .w { color: inherit; }
|
|
.ll.on .w { background: linear-gradient(90deg, var(--accent) calc(var(--p, 0) * 100%), var(--text) calc(var(--p, 0) * 100%)); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: pre-wrap; }
|
|
.ll.on .w.sung { background: none; color: var(--accent); }
|
|
#lyr.kar .lyrbody { display: flex; flex-direction: column; justify-content: center; padding: 8vh 24px; overflow: hidden; }
|
|
#lyr.kar .ll { display: none; font-size: calc(var(--lf, 30px) * 1.7); opacity: .5; }
|
|
#lyr.kar .ll.on { display: block; opacity: 1; transform: none; }
|
|
#lyr.kar .ll.upnext { display: block; font-size: calc(var(--lf, 30px) * 1.05); opacity: .45; margin-top: 8px; }
|
|
#lyr.kar .ll.past, #lyr.kar .lgap { display: none; }
|
|
.lyrfoot { display: flex; align-items: center; gap: 6px; padding: 10px 16px calc(12px + var(--sab)); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 80%, transparent); }
|
|
.lyrfoot .grow { flex: 1; }
|
|
.lyrnudge { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); } .lyrnudge[hidden] { display: none; } .lyrnudge .ibtn { width: 36px; height: 36px; font-size: 20px; }
|
|
.lyrfoot .ibtn.big { width: 56px; height: 56px; }
|
|
.npc-l { min-height: 38px; font-size: 14px; }
|
|
@media (max-width: 560px) { .lyrtop .lyrmode { display: none; } .lyrfoot #lyrs { padding: 0 10px; font-size: 13px; } .npc-l { display: inline-flex; } .npc-ctl { gap: 0; } .npc-q { display: none; } }
|
|
.lyrnudge small, .lyrfoot #lyrs { white-space: nowrap; }
|
|
|
|
/* Command palette */
|
|
#pal { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: center; align-items: flex-start; padding: calc(var(--sat) + 12vh) 12px 12px; }
|
|
#pal .scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
|
|
.palbox { position: relative; width: min(560px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); overflow: hidden; }
|
|
.palbox input { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 16px 18px; font-size: 17px; outline: none; }
|
|
#pall { max-height: min(50vh, 420px); overflow-y: auto; padding: 6px; }
|
|
.palrow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
|
|
.palrow .grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.palrow small { color: var(--muted); flex: none; }
|
|
.palrow.on { background: var(--panel2); }
|
|
.palrow svg { width: 20px; height: 20px; color: var(--muted); }
|
|
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
|
|
|
|
/* Offline notice, skip link, keyboard focus */
|
|
#offline { position: fixed; left: 0; right: 0; top: 0; z-index: 70; padding: calc(var(--sat) + 6px) 16px 6px; text-align: center; font-size: 13px; background: #b26a00; color: #fff; }
|
|
.skip { position: fixed; left: 8px; top: -60px; z-index: 80; padding: 10px 14px; border-radius: 10px; background: var(--accent); color: var(--accent-t); }
|
|
.skip:focus { top: calc(var(--sat) + 8px); }
|
|
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
|
|
.row.subtask { padding-left: 34px; }
|
|
.row.subtask .tick { transform: scale(.88); }
|
|
|
|
/* Calendar week and day views */
|
|
.tgwrap { overflow: auto; max-height: 68vh; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
|
|
.tg { position: relative; }
|
|
.tgg { width: 44px; flex: none; }
|
|
.tghead, .tgad, .tgbody { display: flex; }
|
|
.tgtop { position: sticky; top: 0; z-index: 3; background: var(--panel); border-bottom: 1px solid var(--line); }
|
|
.tgd { flex: 1; border: 0; background: none; padding: 6px 0; display: flex; flex-direction: column; align-items: center; gap: 0; color: var(--muted); min-width: 0; }
|
|
.tgd b { font-size: 17px; color: var(--text); width: 30px; height: 30px; line-height: 30px; border-radius: 50%; }
|
|
.tgd.today b { background: var(--accent); color: var(--accent-t); }
|
|
.tgad { border-bottom: 1px solid var(--line); }
|
|
.tgad .tgg { font-size: 10px; color: var(--muted); padding: 6px 4px 0; }
|
|
.tgad > div { flex: 1; min-width: 0; padding: 3px 2px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
|
|
.tgchip { border: 0; text-align: left; font-size: 12px; padding: 2px 6px; border-radius: 6px; background: color-mix(in srgb, var(--c) 28%, transparent); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.tgh { position: relative; }
|
|
.tgh span { position: absolute; top: -8px; right: 6px; font-size: 10px; color: var(--muted); }
|
|
.tgcol { flex: 1; position: relative; min-width: 0; border-left: 1px solid var(--line); cursor: cell; background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 48px; }
|
|
.tgcol.today { background-color: color-mix(in srgb, var(--accent) 5%, transparent); }
|
|
.tgev { position: absolute; border: 0; border-left: 3px solid var(--c); border-radius: 6px; padding: 2px 5px; text-align: left; overflow: hidden; font-size: 12px; line-height: 1.25; background: color-mix(in srgb, var(--c) 24%, var(--panel)); color: var(--text); cursor: pointer; }
|
|
.tgev b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.tgev small { color: var(--muted); font-size: 11px; }
|
|
.tgnow { position: absolute; left: 0; right: 0; height: 2px; background: var(--danger); z-index: 2; pointer-events: none; }
|
|
|
|
/* Mail */
|
|
.mailapp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-height: 70dvh; }
|
|
.mlist, .mread { min-width: 0; }
|
|
.mailapp .mfold { display: none; }
|
|
.mailapp[data-mode="list"] .mread, .mailapp[data-mode="read"] .mlist { display: none; }
|
|
.mtool { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
|
|
.mtool select { width: auto; max-width: 42%; }
|
|
.mtool input[type=search] { flex: 1; min-width: 120px; margin: 0; }
|
|
.mrow { align-items: flex-start; }
|
|
.mrow .grow { min-width: 0; display: flex; flex-direction: column; }
|
|
.mrow b, .mrow .msub, .mrow small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
|
|
.mrow .msub { font-size: 14px; }
|
|
.mrow:not(.unread) b { font-weight: 500; }
|
|
.mrow:not(.unread) .msub { color: var(--muted); }
|
|
.mrow.unread b::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 6px; }
|
|
.mrow.sel { background: var(--panel2); }
|
|
.mmeta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; color: var(--muted); }
|
|
.mmeta svg { width: 14px; height: 14px; }
|
|
.mread { min-width: 0; display: flex; flex-direction: column; }
|
|
.mrhead { padding: 4px 0 8px; }
|
|
.msubj { margin: 8px 0 4px; font-size: 20px; text-transform: none; letter-spacing: 0; color: var(--text); }
|
|
.mfrom, .mto { margin: 0 0 2px; }
|
|
.mact, .matt { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
|
|
.mact .btn, .matt .btn { min-height: 38px; }
|
|
.mimg { background: var(--panel2); border-radius: 10px; padding: 8px 12px; font-size: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
|
|
.mbody { width: 100%; flex: 1; min-height: 55dvh; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
|
|
@media (min-width: 1024px) {
|
|
.mailapp { grid-template-columns: 340px minmax(0, 1fr); height: calc(100dvh - 40px); min-height: 0; }
|
|
.mailapp[data-mode] .mlist, .mailapp[data-mode] .mread { display: block; }
|
|
.mailapp[data-mode] .mread { display: flex; }
|
|
.mlist, .mread { overflow-y: auto; min-height: 0; }
|
|
.mback { display: none; }
|
|
.mbody { min-height: 0; }
|
|
}
|
|
@media (min-width: 1500px) {
|
|
.mailapp { grid-template-columns: 190px 340px minmax(0, 1fr); }
|
|
.mailapp .mfold { display: flex; flex-direction: column; gap: 2px; }
|
|
.mfold a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; color: var(--muted); }
|
|
.mfold a.on { background: var(--panel2); color: var(--text); font-weight: 600; }
|
|
.mtool select { display: none; }
|
|
}
|
|
|
|
/* Menu groups (desktop rail) */
|
|
.ngrp { margin: 8px 12px 2px; border-top: 1px solid var(--line); padding-top: 8px; }
|
|
.ngrp span { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
|
|
body.nav-mini .ngrp { margin: 6px 14px; padding-top: 0; }
|
|
body.nav-mini .ngrp span { display: none; }
|
|
|
|
|
|
/* Planner toolbar: one row (wraps on phones) */
|
|
.ptop { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; margin: 0 0 12px; }
|
|
.ptop h1 { margin: 0 4px 0 0; font-size: 24px; }
|
|
.pspace { flex: 1; }
|
|
.sgrp { display: inline-flex; background: var(--panel2); border-radius: 999px; padding: 3px; gap: 2px; max-width: 100%; overflow-x: auto; }
|
|
.sgrp a { padding: 6px 14px; border-radius: 999px; color: var(--muted); font-size: 14px; white-space: nowrap; min-height: 32px; display: flex; align-items: center; }
|
|
.sgrp a.on { background: var(--accent); color: var(--accent-t); font-weight: 600; }
|
|
.psel { width: auto; min-height: 38px; padding: 0 12px; border-radius: 999px; font-size: 14px; }
|
|
@media (max-width: 560px) { .ptop h1 { width: 100%; } .pspace { display: none; } .ptop .btn { margin-left: auto; } }
|
|
|
|
/* Text preview and editing */
|
|
.ptxt { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 60dvh; overflow: auto; background: var(--panel2); border-radius: 12px; padding: 12px 14px; font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; margin: 8px 0; }
|
|
.ptxt-edit { width: 100%; height: 55dvh; font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); resize: vertical; }
|
|
|
|
/* Movies & TV */
|
|
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; margin-top: 10px; }
|
|
.vrow { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
|
|
.vcard { display: block; min-width: 0; color: inherit; }
|
|
.vcard.wide { flex: none; width: 250px; }
|
|
.vcard b, .vcard small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.vcard b { margin-top: 6px; font-size: 14px; } .vcard small { color: var(--muted); }
|
|
.vimg { position: relative; display: block; width: 100%; border-radius: 10px; overflow: hidden; background: var(--panel2); }
|
|
.vimg img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
|
|
.vimg > i:not(.vprog) { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
|
|
.vseen { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; display: grid; place-items: center; }
|
|
.vseen svg { width: 14px; height: 14px; }
|
|
.vprog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0, 0, 0, .5); display: block; }
|
|
.vprog b { display: block; height: 100%; background: var(--accent); }
|
|
.vdetail .vhead { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
|
|
.vpost { width: 150px; flex: none; }
|
|
.vinfo { flex: 1; min-width: 220px; }
|
|
.vsum { line-height: 1.6; max-width: 70ch; }
|
|
.vhero { position: relative; }
|
|
.vbg { position: absolute; inset: -8px -16px auto -16px; width: calc(100% + 32px); height: 220px; object-fit: cover; opacity: .18; z-index: -1; mask-image: linear-gradient(#000, transparent); -webkit-mask-image: linear-gradient(#000, transparent); }
|
|
.vep { align-items: flex-start; }
|
|
.vwrap { max-width: 1280px; margin: 0 auto; }
|
|
.vtitle { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.vnext { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--panel2); }
|
|
.vnext b { flex: 1; min-width: 160px; }
|
|
@media (min-width: 768px) { .vgrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } .vpost { width: 190px; } }
|
|
|
|
.vrow { scrollbar-width: thin; }
|
|
.vrow::-webkit-scrollbar { height: 6px; } .vrow::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
|
|
|
|
|
|
/* Movies & TV player controls */
|
|
.vstage { position: relative; background: #000; border-radius: 12px; overflow: hidden; user-select: none; -webkit-user-select: none; }
|
|
.vstage video { width: 100%; max-height: 78dvh; display: block; background: #000; }
|
|
.vstage.vhide { cursor: none; }
|
|
.vtop, .vctl { position: absolute; left: 0; right: 0; z-index: 3; color: #fff; transition: opacity .25s; }
|
|
.vtop { top: 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px 28px; background: linear-gradient(rgba(0, 0, 0, .7), transparent); }
|
|
.vctl { bottom: 0; padding: 26px 12px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); }
|
|
.vstage.vhide .vtop, .vstage.vhide .vctl { opacity: 0; pointer-events: none; }
|
|
.vtop .btn { background: rgba(255, 255, 255, .15); color: #fff; border: 0; min-height: 38px; }
|
|
.vtitle { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.vseek { display: flex; align-items: center; gap: 10px; font-size: 13px; font-variant-numeric: tabular-nums; }
|
|
.vseek input { flex: 1; margin: 0; }
|
|
.vctl input[type=range] { -webkit-appearance: none; appearance: none; height: 22px; background: transparent; accent-color: var(--accent); cursor: pointer; }
|
|
.vctl input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .35); }
|
|
.vctl input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; margin-top: -5px; }
|
|
.vctl input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .35); }
|
|
.vctl input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
|
|
.vrow2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
|
|
.vleft, .vright { display: flex; align-items: center; gap: 4px; }
|
|
.vb { border: 0; background: transparent; color: #fff; min-width: 44px; height: 44px; border-radius: 10px; display: inline-grid; place-items: center; cursor: pointer; font: inherit; }
|
|
.vb:hover { background: rgba(255, 255, 255, .18); }
|
|
.vb:disabled { opacity: .35; cursor: default; }
|
|
.vb svg { width: 24px; height: 24px; }
|
|
.vb.big { width: 54px; height: 54px; background: rgba(255, 255, 255, .2); border-radius: 50%; } .vb.big svg { width: 28px; height: 28px; }
|
|
.vb.txt { padding: 0 10px; font-size: 14px; }
|
|
.vskip { position: relative; display: grid; place-items: center; } .vskip em { position: absolute; font-style: normal; font-size: 9px; font-weight: 700; top: 8px; }
|
|
.vright input[type=range] { width: 80px; }
|
|
.vflash { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(.9); z-index: 4; padding: 10px 18px; border-radius: 30px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 22px; opacity: 0; pointer-events: none; }
|
|
.vflash.on { animation: vflash .7s ease-out; } @keyframes vflash { 0% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%) scale(1.05); } }
|
|
.vspin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; pointer-events: none; }
|
|
.vspin i { display: block; width: 44px; height: 44px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: vspin 1s linear infinite; } @keyframes vspin { to { transform: rotate(360deg); } }
|
|
#vnextbox { position: absolute; right: 12px; bottom: 96px; z-index: 5; max-width: calc(100% - 24px); }
|
|
#vnextbox .vnext { background: rgba(20, 22, 28, .92); color: #fff; margin: 0; }
|
|
.vstage.vfull { position: fixed; inset: 0; z-index: 90; border-radius: 0; }
|
|
.vstage.vfull video, .vstage:fullscreen video { height: 100dvh; max-height: none; object-fit: contain; }
|
|
.vstage:fullscreen { border-radius: 0; background: #000; width: 100%; height: 100%; }
|
|
.vstage:fullscreen video { height: 100%; }
|
|
@media (max-width: 560px) { .vright input[type=range], #vmute { display: none; } .vb { min-width: 40px; } .vb.txt { font-size: 13px; padding: 0 6px; } }
|
|
|
|
.vnav { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-bottom: 10px; }
|
|
.vcrumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
|
|
.vcrumbs a { color: var(--muted); } .vcrumbs a:hover { color: var(--text); } .vcrumbs i { font-style: normal; opacity: .6; }
|
|
.vnav .sgrp { margin-left: auto; }
|
|
.vtop .vcrumbs { color: rgba(255, 255, 255, .8); } .vtop .vcrumbs a { color: rgba(255, 255, 255, .8); }
|
|
@media (max-width: 700px) { .vtop .vtc { display: none; } .vnav .sgrp { margin-left: 0; } }
|