/* ---------- tokens ---------- */
@property --c1 { syntax: '<color>'; inherits: true; initial-value: #B9B1A7; }
@property --c2 { syntax: '<color>'; inherits: true; initial-value: #DCD5CB; }
@property --c3 { syntax: '<color>'; inherits: true; initial-value: #EFEAE3; }
@property --p1 { syntax: '<color>'; inherits: true; initial-value: #B9B1A7; }
@property --p2 { syntax: '<color>'; inherits: true; initial-value: #DCD5CB; }

:root {
  --bg: #F3EFE9;
  --ink: #151413;
  --muted: #8A847C;
  --soft: #E7E1D8;
  --field: #EFEAE3;
  --card: #FAF7F2;
  --nav: #161514;
  --nav-ink: #8F8981;
  --red: #B3164B;
  --red-2: #E86B92;
  --st: env(safe-area-inset-top, 0px);
  --sb: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", system-ui, sans-serif;
  color-scheme: light;
  transition: --p1 1.2s ease, --p2 1.2s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
body { -webkit-user-select: none; user-select: none; -webkit-text-size-adjust: 100%; -webkit-touch-callout: none; overflow: hidden; }
textarea, input { font: inherit; font-size: 16px; -webkit-user-select: text; user-select: text; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
svg { display: block; }

/* ---------- shell ---------- */
.ambient {
  position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 28% at 78% 18%, color-mix(in srgb, var(--p2) 40%, transparent), transparent 70%),
    radial-gradient(45% 32% at 12% 88%, color-mix(in srgb, var(--p1) 16%, transparent), transparent 70%);
}
#app { position: fixed; inset: 0; display: flex; flex-direction: column; padding-top: var(--st); transition: filter .25s; }

.top { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 20px; flex-shrink: 0; }
.icon-btn, .icon-spacer { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; }
.icon-btn { display: grid; place-items: center; background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:active { transform: scale(.94); }
.badge { font: inherit; display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.45); color: var(--muted); font-size: 12px; }
.badge svg { width: 13px; height: 13px; }

#views { position: relative; flex: 1; overflow: hidden; touch-action: pan-y; }
.track { display: flex; height: 100%; transition: transform .42s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.track.drag { transition: none; }
.view { position: relative; flex: 0 0 100%; height: 100%; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 0 20px calc(116px + var(--sb)); }

/* ---------- today ---------- */
.today { display: flex; flex-direction: column; align-items: center; min-height: 100%; }
.eyebrow { font-size: 13px; color: var(--muted); }
.cycle-line { font-size: 15px; font-weight: 500; letter-spacing: -.01em; margin-top: 4px; min-height: 20px; text-align: center; }
.feel { margin-top: 10px; font-size: 14px; color: #6F6961; letter-spacing: .01em; }

.orb-stage {
  position: relative; width: min(68vw, 300px, 31dvh); aspect-ratio: 1; margin: 6px auto 0; flex-shrink: 0;
  transition: --c1 1.1s ease, --c2 1.1s ease, --c3 1.1s ease;
}
.orb { position: absolute; inset: 0; }
.orb i { position: absolute; border-radius: 50%; will-change: transform; }
.orb .o1 { inset: 6%; background: radial-gradient(circle at 50% 50%, var(--c3) 0 20%, var(--c2) 46%, color-mix(in srgb, var(--c2) 40%, transparent) 62%, transparent 72%); filter: blur(14px); animation: breathe 9s ease-in-out infinite; }
.orb .o2 { width: 52%; height: 52%; left: 8%; top: 12%; background: radial-gradient(circle, var(--c1) 0 32%, color-mix(in srgb, var(--c1) 45%, transparent) 55%, transparent 70%); filter: blur(16px); animation: drift1 13s ease-in-out infinite alternate; }
.orb .o3 { width: 46%; height: 46%; right: 6%; bottom: 10%; background: radial-gradient(circle, var(--c1) 0 26%, var(--c2) 52%, transparent 70%); filter: blur(14px); animation: drift2 11s ease-in-out infinite alternate; mix-blend-mode: multiply; opacity: .9; }
.orb .o4 { width: 30%; height: 30%; right: 18%; top: 14%; background: radial-gradient(circle, var(--c3) 0 30%, transparent 70%); filter: blur(10px); animation: drift1 15s ease-in-out -4s infinite alternate-reverse; }

.mood-row { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 4px; width: 100%; margin-top: 2px; }
.arrow { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--ink);
  background: rgba(255,255,255,.72); box-shadow: 0 6px 18px rgba(40,30,20,.10), inset 0 0 0 1px rgba(0,0,0,.04);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .15s, background .2s; }
.arrow svg { width: 22px; height: 22px; }
.arrow:active { transform: scale(.9); background: #fff; }
.mood-word { padding: 0 4px; font-size: 50px; font-weight: 500; letter-spacing: -.035em; line-height: 1.05; text-transform: uppercase; text-align: center; white-space: nowrap; overflow: hidden; min-width: 0; transition: opacity .3s; cursor: pointer; }
.mood-word.unset { opacity: .26; }
.mood-word.swap { animation: swap .32s ease; }
.next-line { margin-top: 6px; font-size: 14px; color: var(--muted); min-height: 20px; text-align: center; }

.week { display: grid; grid-template-columns: repeat(7, 1fr); width: 100%; margin-top: 16px; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0 12px; border-radius: 999px; transition: background .2s; }
.wd .dot { width: 8px; height: 8px; border-radius: 50%; background: #DCD5CB; }
.wd .dot.ring { background: transparent; box-shadow: inset 0 0 0 1.5px var(--red-2); }
.wd .dot.fert { background: transparent; box-shadow: inset 0 0 0 1.5px #8FC9A6; }
.wd small { font-size: 13px; color: var(--muted); }
.wd b { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wd.today { background: rgba(0,0,0,.055); }
.wd.future b { color: #B2ABA2; }
.wd:active:not(:disabled) { background: rgba(0,0,0,.08); }

.wave { width: 100%; height: 64px; margin-top: 0; overflow: hidden; }
.wave line { stroke: #CFC8BE; stroke-width: 1; stroke-dasharray: 3 5; }
.wave .line { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.wave .now { fill: var(--ink); stroke: var(--bg); stroke-width: 3; }
.wave-cap { font-size: 12px; color: var(--muted); margin-top: 2px; }

.hint { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.6); border-radius: 20px; padding: 14px 14px 14px 16px; margin: 4px 0 6px; font-size: 13px; line-height: 1.45; color: #4F4A44; }
.hint b { color: var(--ink); font-weight: 600; }
.hint button { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--field); font-size: 16px; line-height: 1; }

/* ---------- tab bar ---------- */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 10;
  bottom: max(14px, calc(var(--sb) - 4px));
  width: min(calc(100% - 40px), 264px); height: 64px; padding: 0 8px;
  display: flex; align-items: center; justify-content: space-around;
  background: var(--nav); border-radius: 999px; box-shadow: 0 14px 34px rgba(0,0,0,.2);
}
.tab { width: 60px; height: 48px; display: grid; place-items: center; color: var(--nav-ink); border-radius: 999px; transition: color .2s, transform .15s; }
.tab svg { width: 24px; height: 24px; }
.tab.active { color: #fff; }
.tab.add { color: #6FD3A2; }
.tab.add svg { width: 26px; height: 26px; }
.tab:active { transform: scale(.92); }

/* ---------- sheet ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 40; }
.backdrop { position: absolute; inset: 0; background: rgba(20,18,16,.3); opacity: 0; transition: opacity .3s; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--card); border-radius: 30px 30px 0 0; padding: 10px 20px calc(24px + var(--sb));
  transform: translateY(105%); transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.sheet-wrap.open .backdrop { opacity: 1; }
.sheet-wrap.open .sheet { transform: none; }
.grabber { width: 40px; height: 5px; border-radius: 3px; background: #DDD6CC; margin: 0 auto 14px; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sheet-head h3 { font-size: 32px; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; margin-top: 2px; }
.sheet-head .icon-btn { background: var(--field); font-size: 20px; }
.field { margin-top: 24px; }
.label { font-size: 13px; color: var(--muted); margin: 24px 0 10px; }
.field .label { margin-top: 0; }
.sub-label { font-size: 12px; color: var(--muted); margin: 8px 4px 0; line-height: 1.4; }

.flows { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.flow { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 0 12px; border-radius: 22px; background: var(--field); font-size: 14px; transition: background .2s, color .2s; }
.flow i { width: 36px; height: 36px; border-radius: 50%; background: radial-gradient(circle, var(--red) 0 30%, var(--red-2) 58%, transparent 72%); transform: scale(var(--s, 1)); filter: blur(1px); }
.flow i.none { background: none; box-shadow: inset 0 0 0 1.5px #CFC7BC; filter: none; transform: scale(.55); }
.flow.on { background: var(--ink); color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: var(--field); font-size: 15px; transition: background .2s, color .2s; }
.chip i { width: 10px; height: 10px; border-radius: 50%; }
.chip.on { background: var(--ink); color: #fff; }
.chip em { font-style: normal; color: var(--muted); font-size: 13px; }
textarea { width: 100%; border: 0; border-radius: 20px; background: var(--field); padding: 14px 16px; resize: none; color: var(--ink); outline: none; line-height: 1.4; }
.primary { display: block; width: 100%; height: 56px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 17px; font-weight: 500; margin-top: 28px; }
.primary:active { transform: scale(.98); }
.text-btn { display: block; margin: 14px auto 0; padding: 8px 16px; color: var(--muted); font-size: 15px; }

.list { background: var(--field); border-radius: 22px; overflow: hidden; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 10px 16px; text-align: left; font-size: 16px; }
.row + .row { border-top: 1px solid #E2DBD1; }
.row .chev { color: var(--muted); }
.row.danger { color: var(--red); }
.mini-stepper { display: flex; align-items: center; gap: 12px; }
.mini-stepper button { width: 36px; height: 36px; border-radius: 50%; background: var(--card); font-size: 20px; line-height: 1; }
.mini-stepper b { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.priv { font-size: 13px; color: var(--muted); line-height: 1.55; margin-top: 20px; }

/* ---------- calendar ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 18px; }
.cal-head h2 { font-size: 40px; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.cal-head h2 span { color: var(--muted); font-weight: 400; font-size: 20px; letter-spacing: 0; margin-left: 4px; }
.cal-nav { display: flex; gap: 8px; }
.cal-nav .icon-btn svg { width: 10px; height: 10px; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.cal-dow span { font-size: 12px; color: var(--muted); padding-bottom: 8px; }
.cal-grid { row-gap: 4px; }
.cd { position: relative; isolation: isolate; aspect-ratio: 1; display: grid; place-items: center; font-size: 17px; font-variant-numeric: tabular-nums; }
.cd .m { position: absolute; inset: 10%; border-radius: 50%; z-index: -1; }
.cd .has { position: absolute; bottom: 9%; width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.cd.future { color: #A9A299; }
.cd.period { color: #fff; font-weight: 600; }
.cd.period .m { background: radial-gradient(circle, var(--red) 0 34%, var(--red-2) 62%, transparent 74%); filter: blur(2.5px); inset: 2%; }
.cd.period .has { background: rgba(255,255,255,.8); }
.cd.pred { color: var(--red); }
.cd.pred .m { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--red-2) 70%, transparent); background: color-mix(in srgb, var(--red-2) 10%, transparent); }
.cd.fertile .m { background: radial-gradient(circle, #CBEBD8 0 46%, transparent 72%); filter: blur(1.5px); inset: 4%; }
.cd.ovu .m { background: radial-gradient(circle, #E6D85C 0 32%, #C7EBC9 58%, transparent 74%); filter: blur(2px); inset: 2%; }
.cd.today::after { content: ''; position: absolute; inset: 9%; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); }
.cd:active:not(:disabled) { transform: scale(.92); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 20px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 50%; }
.lg-period { background: radial-gradient(circle, var(--red) 0 40%, var(--red-2) 75%); }
.lg-pred { box-shadow: inset 0 0 0 1.5px var(--red-2); }
.lg-fert { background: #CBEBD8; }
.lg-ovu { background: radial-gradient(circle, #E6D85C 0 45%, #C7EBC9 80%); }
.card { margin-top: 20px; background: rgba(255,255,255,.55); border-radius: 22px; padding: 16px 18px; font-size: 15px; line-height: 1.45; }
.card p + p { margin-top: 4px; }
.card .muted { color: var(--muted); font-size: 13px; }

/* ---------- insights ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; border-radius: 34px; min-height: 290px; padding: 26px 24px; display: flex; flex-direction: column; justify-content: flex-end; margin-top: 6px; }
.hero::before { content: ''; position: absolute; inset: -25%; z-index: -1; background: radial-gradient(circle at 58% 38%, var(--p1) 0 14%, var(--p2) 38%, color-mix(in srgb, var(--p2) 35%, var(--bg)) 58%, var(--bg) 78%); filter: blur(8px); animation: breathe 12s ease-in-out infinite; }
.hero .k { font-size: 15px; color: #3A3632; }
.hero .big { font-size: 68px; font-weight: 500; letter-spacing: -.045em; line-height: 1; margin-top: 4px; }
.hero .sub { font-size: 15px; color: #3A3632; margin-top: 8px; }
.words { margin-top: 22px; }
.words p { font-size: 32px; letter-spacing: -.035em; line-height: 1.18; font-weight: 400; }
.words p span { color: var(--muted); }
.hist-row { display: grid; grid-template-columns: 96px 1fr 44px; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--soft); font-size: 14px; }
.hist-row .len { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.bar { position: relative; height: 10px; border-radius: 6px; background: #E5DFD6; overflow: hidden; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(90deg, var(--red), var(--red-2)); }
.bar u { position: absolute; top: 0; bottom: 0; width: 6px; border-radius: 3px; background: #D9CF5A; }
.note { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 22px; }
.empty { color: var(--muted); font-size: 14px; padding: 8px 0; }

/* ---------- full screens ---------- */
.screen { position: fixed; inset: 0; z-index: 60; isolation: isolate; overflow: hidden; background: var(--bg); display: flex; flex-direction: column; padding: calc(var(--st) + 24px) 24px calc(var(--sb) + 24px); }
.halos { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.halo { position: absolute; aspect-ratio: 1; border-radius: 50%; filter: blur(12px); animation: float 16s ease-in-out infinite alternate; }
.ob-inner { flex: 1; display: flex; flex-direction: column; }
.ob-inner > * { position: relative; }
.spacer { flex: 1; }
.ob-title { font-size: 46px; font-weight: 500; letter-spacing: -.04em; line-height: 1.02; }
.ob-title.sm { font-size: 36px; }
.ob-text { font-size: 16px; color: #57514A; line-height: 1.45; margin-top: 14px; max-width: 330px; }
.ob-panel { background: rgba(250,247,242,.72); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-radius: 30px; padding: 22px 20px 18px; margin: 0 -8px; }
.date-input { display: block; width: 100%; height: 58px; margin-top: 18px; border: 0; border-radius: 18px; background: var(--field); padding: 0 16px; font-size: 18px; color: var(--ink); -webkit-appearance: none; appearance: none; }
.stepper { display: flex; align-items: center; justify-content: space-between; background: var(--field); border-radius: 22px; padding: 10px; margin-top: 12px; }
.stepper button { width: 48px; height: 48px; border-radius: 50%; background: var(--card); font-size: 24px; line-height: 1; }
.stepper div { text-align: center; }
.stepper b { display: block; font-size: 28px; font-weight: 500; font-variant-numeric: tabular-nums; }
.stepper small { color: var(--muted); font-size: 13px; }

.lock-inner { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.lock-inner .ob-text { margin: 10px auto 0; text-align: center; min-height: 44px; }
.pin-dots { display: flex; gap: 18px; justify-content: center; margin: 22px 0 30px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); transition: background .15s; }
.pin-dots i.on { background: var(--ink); }
.pin-dots.busy i { animation: pulse .8s ease-in-out infinite; }
.keypad { display: grid; grid-template-columns: repeat(3, 76px); gap: 16px 26px; justify-content: center; }
.key { width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 30px; font-weight: 400; display: grid; place-items: center; }
.key:active { background: rgba(255,255,255,.95); }
.key.ghost { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; font-size: 15px; color: #57514A; }
.key svg { width: 26px; height: 26px; }
.shake { animation: shake .42s ease; }

/* ---------- misc ---------- */
.toast { position: fixed; left: 50%; bottom: calc(96px + var(--sb)); z-index: 90; transform: translate(-50%, 16px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* privacy veil while app is in background / app switcher */
body.veil #app, body.veil .sheet-wrap { filter: blur(28px); }
body.veil::after { content: ''; position: fixed; inset: 0; z-index: 100; background: var(--bg); opacity: .55; }

@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(9%, 7%) scale(1.08); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(-8%, -6%) scale(.94); } }
@keyframes float { from { transform: translate(0,0); } to { transform: translate(5vw, 3vh); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes shake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-10px); } 40%,80% { transform: translateX(10px); } }
@keyframes pulse { 50% { opacity: .3; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
@media (max-height: 700px) {
  .feel { margin-top: 10px; }
  .mood-word { font-size: 44px; }
  .week { margin-top: 14px; }
}

.wordmark { font-size: 20px; font-weight: 600; letter-spacing: -.03em; margin-bottom: 18px; }

/* ---------- status badge ---------- */
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #CFC7BC; margin-right: 2px; order: -1; }
.badge[data-status="ok"]::before { background: #3FA67A; }
.badge[data-status="syncing"]::before { background: #E3B23C; animation: pulse 1s ease-in-out infinite; }
.badge[data-status="pending"]::before, .badge[data-status="offline"]::before { background: #E3B23C; }
.badge[data-status="error"]::before { background: var(--red); }
.badge svg { order: 0; }

/* ---------- auth ---------- */
.auth .ob-title { margin-bottom: 14px; }
.input { display: block; width: 100%; height: 54px; margin-top: 10px; border: 0; border-radius: 18px; background: var(--field); padding: 0 16px; font-size: 17px; color: var(--ink); outline: none; -webkit-appearance: none; appearance: none; }
.input:focus { box-shadow: inset 0 0 0 1.5px var(--ink); }
.input::placeholder { color: #A39C93; }
.form-msg { min-height: 20px; margin-top: 12px; font-size: 14px; color: var(--red); }
.form-msg.info { color: var(--muted); }
.fine { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 10px; text-align: center; }
.auth .primary { margin-top: 14px; }
.auth .primary:disabled { opacity: .5; }
.auth .text-btn { margin-top: 6px; }
.row .val { color: var(--muted); font-size: 15px; }

/* ---------- живой шар (WebGL) ---------- */
#orbCanvas { position: absolute; inset: -10%; width: 120%; height: 120%; display: none; pointer-events: none; }
.orb-stage.gl #orbCanvas { display: block; }
.orb-stage.gl .orb { display: none; }

/* медленно дрейфующий фон */
.ambient { animation: ambientDrift 26s ease-in-out infinite alternate; }
@keyframes ambientDrift {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate(-4%, 3%) rotate(8deg) scale(1.08); }
  100% { transform: translate(3%, -2%) rotate(-6deg) scale(1.04); }
}

/* ---------- админ ---------- */
.acct { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
.acct + .acct { border-top: 1px solid #E2DBD1; }
.acct-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; }
.acct-main b { font-size: 17px; font-weight: 600; }
.acct-main small { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.acct-act { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--ink); color: #fff; }
.mini { height: 36px; padding: 0 14px; border-radius: 999px; background: var(--card); font-size: 14px; font-weight: 500; }
.mini.danger { color: var(--red); }
.mini.ghost { background: transparent; color: var(--muted); }
.mini:disabled { opacity: .5; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .02em; }
.cred { margin-top: 18px; background: var(--ink); color: #fff; border-radius: 24px; padding: 18px; }
.cred .eyebrow { color: #B9B2A9; margin-bottom: 10px; }
.cred-line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 15px; }
.cred-line span { color: #9C958C; }
.cred-line b { font-weight: 500; word-break: break-all; text-align: right; }
.cred-act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.cred .mini { background: rgba(255,255,255,.12); color: #fff; }
.cred .mini.ghost { background: transparent; color: #B9B2A9; }
.cred .fine { color: #9C958C; }
.fine.left { text-align: left; }
.adm-form { padding: 6px 12px 12px; }
.adm-form .input { background: var(--card); }
.pw-gen { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 10px 12px 10px 16px; border-radius: 18px; background: var(--card); }
.pw-gen small { display: block; font-size: 12px; color: var(--muted); }
.pw-gen .mono { font-size: 15px; white-space: nowrap; }
.adm-form .primary { margin-top: 12px; }
.adm-form .primary:disabled { opacity: .5; }
.pw-form .primary { margin-top: 14px; }
.force-text { margin: 0 0 6px; font-size: 15px; }
.row b { font-weight: 600; }
