/* NanoChat 2.6 UI calm-down: one button language, tidy top bar, simpler auth screens. Loaded last. */
.btn { background: var(--a); background-image: none; box-shadow: none; border-radius: 14px; padding: 12px 18px; font-weight: 600; font-size: 15px; letter-spacing: 0; transition: transform .12s ease, opacity .15s; }
.btn:active { transform: scale(.98); } .btn:hover { filter: none; opacity: .94; }
.btn.ghost { background: var(--fill); color: var(--txt); border: 1px solid var(--line); box-shadow: none; }
.btn:disabled { opacity: .5; filter: none; }
.btn.big, .login .btn.big { padding: 14px; font-size: 16px; border-radius: 14px; }
.btn.sm { padding: 8px 14px; font-size: 13px; border-radius: 12px; }

/* top bar */
#topbar { align-items: center; }
#topActions { gap: 8px; align-items: center; }
#topActions > button, #topActions .ibtn, #topActions .hubb, #topActions .fab {
  position: relative; width: 38px; height: 38px; min-width: 38px; border-radius: 50%; margin: 0; padding: 0; display: grid; place-items: center;
  background: var(--fill); border: 1px solid var(--line); box-shadow: none; color: var(--txt); backdrop-filter: none; -webkit-backdrop-filter: none; }
#topActions svg { width: 19px; height: 19px; opacity: .85; }
#topActions .hubb { font-size: 0; } #topActions .hubb svg { opacity: .85; }
#topActions .fab { right: auto; background: var(--a); border-color: transparent; color: #fff; }
#topActions .fab svg { opacity: 1; width: 20px; height: 20px; }
#topActions .itip { color: var(--txt); }
#topActions .ibtn:active, #topActions .hubb:active { transform: scale(.94); }
#title { font-size: 26px; letter-spacing: -.3px; }

/* login and sign-up */
.login .btns { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 6px; }
.login .btns .btn { width: 100%; }
.login .btn.pk, .login #lgPk { background: none; border: 0; box-shadow: none; color: var(--mut); font-weight: 500; font-size: 14px; padding: 8px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; }
.login .btn.pk svg { width: 16px; height: 16px; }
.login .forgot { margin: -2px 2px 2px; }
.login .box { box-shadow: 0 10px 40px rgba(20, 30, 70, .12); }
.login .logo { box-shadow: none; }
.login .field { box-shadow: none; }
.tab.on, .navbtn.on { box-shadow: none; }

/* bottom bar: no brightness flash on hover, no focus ring, flat calm indicator */
* { -webkit-tap-highlight-color: transparent; }
button:focus, a:focus, .tab:focus, .ibtn:focus { outline: none; }
button:focus-visible, .tab:focus-visible { outline: 2px solid color-mix(in srgb, var(--a) 60%, transparent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .ibtn:hover, .tab:hover, .btn:hover { filter: none; } #nav .tab:hover { color: var(--txt); } .ibtn:hover { background: var(--fill); } }
#nav { height: 62px; padding: 4px; box-shadow: 0 6px 24px rgba(20, 30, 70, .10); }
#nav .tab { font-size: 10.5px; font-weight: 600; gap: 3px; transition: color .2s; border-radius: 26px; }
#nav .tab svg { width: 22px; height: 22px; transition: transform .2s ease; }
#nav .tab:active { background: none; } #nav .tab:active svg { transform: scale(.9); }
#nav .tab.on svg { transform: none; stroke: var(--a); } #nav .tab.on { color: var(--a); }
#nav .ind { top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 6); border-radius: 26px; background: color-mix(in srgb, var(--a) 13%, transparent); box-shadow: none; border: 0; }
#searchPill { height: 46px; box-shadow: 0 4px 16px rgba(20, 30, 70, .08); }
#searchPill .sicon, #searchPill > span:first-child { box-shadow: none !important; background-image: none; }
#nav .tab.on { color: var(--txt); font-weight: 700; }
#searchPill > *:first-child { background: var(--a) !important; background-image: none !important; box-shadow: none !important; }

/* maintenance / update screen and announcement banner */
#ncBlock { position: fixed; inset: 0; z-index: 99999; display: none; place-items: center; padding: 24px; background: var(--bg, #f3f5fb); }
#ncBlock[style*="display: block"], #ncBlock[style*="display:block"] { display: grid !important; }
.ncb-box { max-width: 360px; text-align: center; } .ncb-ic { font-size: 54px; margin-bottom: 8px; } .ncb-box h2 { margin: 0 0 8px; font-size: 22px; } .ncb-box p { color: var(--mut); margin: 0 0 12px; line-height: 1.5; }
.ncb-eta b { color: var(--txt); } .ncb-box .btn { margin-top: 8px; min-width: 150px; }
#ncAnn { position: fixed; left: 10px; right: 10px; top: calc(var(--sat, 0px) + 6px); z-index: 9000; display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.4; background: var(--card, #fff); border: 1px solid var(--line); box-shadow: 0 6px 22px rgba(20, 30, 70, .14); }
#ncAnn .t { flex: 1; } #ncAnn button { background: none; border: 0; color: var(--mut); font-size: 15px; padding: 0 2px; } #ncAnn a { color: var(--a); font-weight: 600; }
#ncAnn.lv-warn { border-color: #e6a23c; background: color-mix(in srgb, #e6a23c 14%, var(--card, #fff)); } #ncAnn.lv-good { border-color: #1fa463; background: color-mix(in srgb, #1fa463 12%, var(--card, #fff)); }
html #nav .tab.on, html.light #nav .tab.on, html.dark #nav .tab.on { color: var(--txt) !important; } html #nav .tab.on svg { stroke: var(--a) !important; }
html #nav .tab.on svg { transform: none !important; filter: none !important; }
