/* Closed beta additions on top of styles.css: simulated clock, pseudo wallet menu, access gate. */
.beta-tag { font: 600 .6875rem/1 var(--sans); letter-spacing: .02em; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: .2rem .45rem; vertical-align: middle; margin-left: .35rem; }
.bar-in { row-gap: .35rem; padding-block: .35rem; max-width: 80rem; }   /* four sections, clock, language, theme and wallet fit in one row */
.bar-right { margin-left: auto; display: inline-flex; align-items: center; gap: .5rem .75rem; flex-wrap: wrap; }

.clock { display: inline-flex; align-items: baseline; gap: .45rem; font-size: .8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; padding: .3rem .6rem; border: 1px dashed var(--line-strong); border-radius: var(--r-ctl); white-space: nowrap; }
.clock b { font-weight: 600; color: var(--ink); }
.clock-x { font-size: .75rem; color: var(--muted); }

.wallet { position: relative; display: inline-flex; }
#connect { display: inline-flex; align-items: baseline; gap: .55rem; }
#connect .w-addr { font-family: var(--mono, ui-monospace, monospace); font-size: .8125rem; }
#connect .w-bal { color: var(--muted); font-size: .75rem; }
.wmenu { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 40; display: grid; gap: .45rem; min-width: 18rem; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-ctl); box-shadow: 0 6px 24px rgba(0, 0, 0, .12); }
.wmenu[hidden] { display: none; }
.wmenu code { font-size: .75rem; word-break: break-all; color: var(--ink); }
.wmenu .fine { margin: 0; }
.wmenu-act { display: flex; gap: .5rem; margin-top: .25rem; }

.gate { max-width: 40rem; margin: 2rem 0 3rem; }
.gate[hidden] { display: none; }
.gate h1 { font: 600 2rem/1.15 var(--serif); letter-spacing: -.015em; margin: 0 0 1rem; }
.gate h2 { font: 600 1.375rem/1.2 var(--serif); margin: 0 0 .5rem; }
.gate p { font-size: 1.0625rem; color: var(--ink-2); margin: 0 0 1.25rem; }
.gate .fine { font-size: .8125rem; }
.gate code { font-size: .8125rem; word-break: break-all; }
.gate-form { display: grid; gap: .9rem; max-width: 26rem; }
.gate-form label { display: grid; gap: .35rem; font-size: .875rem; }

.beta-foot { margin-top: 3rem; max-width: 44rem; }
.views[hidden], .clock[hidden] { display: none; }

@media (max-width: 760px) {
  .bar-right { margin-left: 0; width: 100%; justify-content: space-between; padding-bottom: .5rem; }
  .clock-d { display: none; }
}

/* interest by holding time (entry page) */
.tp-loyal { margin: .9rem 0 0; max-width: 46rem; font-size: .9375rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tp-loyal b { color: var(--ink); font-weight: 600; }
.tp-loyal .fine { display: block; margin-top: .3rem; }

/* operator page */
#app section { margin-bottom: 2.75rem; }
#app h2 { font: 600 1.375rem/1.2 var(--serif); margin: 0 0 .9rem; }
.adm-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem .75rem; margin: 1rem 0; }
.adm-row label { display: grid; gap: .3rem; font-size: .8125rem; }
.adm-scroll { overflow-x: auto; }
.adm-table { width: 100%; font-size: .8125rem; }
.adm-table td, .adm-table th { white-space: nowrap; padding: .45rem .6rem; }
.adm-link { font-size: .75rem; }
.lvl { display: inline-flex; align-items: baseline; gap: .4rem; padding: .3rem .65rem; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); font-size: .8125rem; color: var(--ink-2); white-space: nowrap; cursor: help; } .lvl b { font-weight: 600; color: var(--gain); font-variant-numeric: tabular-nums; }   /* header: the member's interest rate */
.lvl { gap: .3rem; padding: .3rem .5rem; } .bar-right { gap: .5rem; }   /* the rate chip fits in one header row */
.lvl { position: relative; gap: .35rem; } .lvl-k { color: var(--muted); } .lvl b + .lvl-k { margin-left: .35rem; }
.lvl-box { display: none; position: absolute; z-index: 40; top: calc(100% + .45rem); right: 0; width: max-content; max-width: 22rem; padding: .55rem .7rem; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: .8125rem; line-height: 1.45; white-space: normal; box-shadow: 0 6px 18px rgb(0 0 0 / .25); }
.lvl-box > span { display: block; white-space: nowrap; } .lvl-box b { color: var(--gain); } .lvl-box small { display: block; margin-top: .3rem; color: var(--muted); font-size: .75rem; }
.lvl:hover .lvl-box, .lvl:focus .lvl-box { display: block; }
.clock-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; opacity: .7; background: color-mix(in srgb, var(--surface) 75%, transparent); backdrop-filter: blur(6px); border-style: solid; transition: opacity .15s; } .clock-float:hover { opacity: 1; }   /* simulated clock as an overlay, out of the header */
.langs[hidden] { display: none; }   /* language switch: no UI element, the language still follows the browser */
.pts { color: var(--accent); } .pts .pts-i { display: inline-flex; align-self: center; } .pts > b { color: var(--ink); font-weight: 600; }
.pts-box { width: 20rem; } .pts-h { font-weight: 600; margin-bottom: .3rem; } .pts-grid { display: grid; grid-template-columns: 1fr auto; gap: .1rem 1rem; } .pts-grid b { color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.pts-box > .pts-grid { display: grid; white-space: normal; }
.act-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; } .act-head h2 { margin: 0; }
.act-table td { padding-top: .4rem; padding-bottom: .4rem; vertical-align: top; } .act-table td:first-child { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; } .act-table td.up { color: var(--gain); }   /* activity page */
.views a { padding-inline: .6rem; }   /* five sections fit next to rate, points, theme and wallet */
.act-table tr.act-start td { background: var(--accent-soft); color: var(--ink); font-weight: 600; } .act-table tr.act-start td:first-child { box-shadow: inset 3px 0 0 var(--accent); }   /* the two start lines */
.ex-fig { margin: .5rem 0 1.5rem; } .ex-fig figcaption { font-size: .875rem; color: var(--ink-2); margin-bottom: .4rem; max-width: 52rem; } .ex-svg { width: 100%; height: auto; display: block; }
.ex-s1 { fill: #2a78d6; } .ex-s2 { fill: #eb6834; } .ex-s3 { fill: #1baf7a; } .ex-s4 { fill: #eda100; } .ex-all { fill: var(--ink-2); }   /* the sizes, as in the operator's repayment chart */
.ex-next rect { opacity: .4; } .ex-outline { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 4 3; }
.ex-grid { stroke: var(--line); stroke-width: 1; } .ex-base { stroke: var(--line-strong); stroke-width: 1; }
.ex-ax { fill: var(--muted); font-size: 11px; font-family: var(--sans); } .ex-strong { fill: var(--ink); font-weight: 600; }
.ex-link { fill: none; stroke: var(--ink-2); stroke-width: 1.2; } .ex-linkall { stroke-width: 1.6; } .ex-dot { fill: var(--ink); }
.ex-boxr { fill: var(--surface); stroke: var(--line-strong); } .ex-bt { fill: var(--ink); font-size: 12px; font-weight: 600; font-family: var(--sans); } .ex-bs { fill: var(--muted); font-size: 10.5px; font-family: var(--sans); }
.rm-group { margin: 1.6rem 0 0; padding-top: 1rem; border-top: 2px solid var(--line-strong); } .rm-grouph { margin: 0; font-size: 1.15rem; } .rm-groupsub { margin: .2rem 0 .6rem; }
.rm-betting { border-top-color: var(--accent); } .rm-betting .rm-grouph { color: var(--accent); } .rm-over { opacity: .9; } .rm-weekh { margin: .6rem 0 .2rem; font-size: .95rem; }   /* predictions: open, running, past */
.mark-pp { display: inline-flex; flex-direction: column; gap: .15rem; line-height: 1; } .mark-name { display: inline-flex; align-items: center; } .mark-sub { font: 500 .6875rem/1 var(--sans); letter-spacing: .02em; color: var(--muted); }   /* name: PiPaPo, below it the long form */
.theme[hidden] { display: none; }   /* light / dark now in the wallet menu */
.wmenu-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; } .wmenu-nick { display: grid; gap: .35rem; margin: .2rem 0; } .wmenu-nick label { display: grid; gap: .2rem; }
.wmenu-nick input { font: inherit; padding: .35rem .5rem; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); background: var(--field); color: var(--ink); } .wmenu-nick .btn { justify-self: start; }
.wmenu-seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); overflow: hidden; } .wmenu-seg button { font: 500 .8125rem/1 var(--sans); padding: .35rem .6rem; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.wmenu-seg button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.clock-float { right: auto; left: 1rem; }   /* the feedback bubble takes the right corner */
.fb-btn { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60; display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border: 0; border-radius: 50%; background: var(--accent); color: var(--surface); box-shadow: 0 6px 20px rgb(0 0 0 / .3); cursor: pointer; transition: transform .15s; }
.fb-btn:hover, .fb-btn[aria-expanded="true"] { transform: scale(1.06); } .fb-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.fb-panel { position: fixed; right: 1.25rem; bottom: 5.6rem; z-index: 60; display: grid; gap: .6rem; width: min(22rem, calc(100vw - 2.5rem)); padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 10px 30px rgb(0 0 0 / .3); }
.fb-panel[hidden] { display: none; } .fb-h { margin: 0; font-size: 1.05rem; } .fb-l { display: grid; gap: .35rem; } .fb-l .fine { margin: 0; }
.fb-panel textarea { font: inherit; font-size: .9rem; padding: .5rem .6rem; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); background: var(--field); color: var(--ink); resize: vertical; min-height: 6rem; }
.fb-check { display: flex; align-items: center; gap: .45rem; font-size: .875rem; color: var(--ink-2); } .fb-panel .btn { justify-self: start; } .fb-msg { margin: 0; }
@media print { .fb-btn, .fb-panel { display: none; } }
.fb-text { min-width: 18rem; max-width: 34rem; white-space: normal; } .fb-shot img { display: block; max-width: 100%; margin-top: .5rem; border: 1px solid var(--line-strong); border-radius: 6px; } tr.fb-done td { opacity: .55; }   /* admin: feedback */
.rm-card tr.rm-mine td { background: var(--accent-soft); color: var(--ink); font-weight: 600; } .rm-card tr.rm-mine td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.rm-card tr.rm-mine td:nth-last-child(2) { color: var(--accent); } .rm-card-mine { border-color: var(--accent); }   /* predictions: rows and markets with an own stake */
