/* Top bar «Заметка отдельно» (owner's choice, 17.11.2026). Every icon stays: search,
   notifications, theme and refresh share one quiet capsule; the quick note follows as a
   separate, softly highlighted action (assistant-capture.js puts it after the capsule).
   On a PC the search keeps its wide field; up to 1024 px it becomes the capsule's first icon.
   Sizes in px: the Android WebView keeps textZoom at 100. */
:root body[data-interface=emerald] .v2-topbar .v2-top-actions{display:flex;align-items:center;gap:8px;flex:none}
:root body[data-interface=emerald] .v2-topbar #v2-header-buttons{display:flex;align-items:center;gap:2px;height:42px;padding:2px;border:1px solid var(--line);border-radius:99px;background:var(--soft);box-sizing:border-box}
:root body[data-interface=emerald] .v2-topbar #v2-header-buttons>:is(button,a){position:relative;display:inline-grid;place-items:center;width:38px;min-width:38px;height:36px;min-height:36px;margin:0;padding:0;border:0;border-radius:99px;background:transparent;color:var(--ink);box-shadow:none;opacity:.85;text-decoration:none}
:root body[data-interface=emerald] .v2-topbar #v2-header-buttons>:is(button,a):hover:not(:disabled){background:var(--surface);color:var(--ink);opacity:1}
:root body[data-interface=emerald] .v2-topbar #v2-header-buttons>:is(button,a):focus-visible{outline:2px solid var(--green);outline-offset:1px;opacity:1}
:root body[data-interface=emerald] .v2-topbar #v2-header-buttons :is(svg,.icon){width:20px;height:20px}
:root body[data-interface=emerald] .v2-topbar #v2-header-buttons .notification-count{position:absolute;top:2px;right:2px;min-width:16px;height:16px;padding:0 4px;border:2px solid var(--soft);border-radius:99px;font-size:9px;line-height:12px}
:root body[data-interface=emerald] .v2-topbar .wa-capture-open{margin:0}
/* ux.css paints the theme button with !important: keep it inside the capsule's style. */
:root body[data-interface=emerald] .v2-topbar #v2-header-buttons>#theme-toggle{flex:0 0 38px;width:38px;height:36px;min-height:36px;padding:0!important;border:0!important;background:transparent!important;color:var(--ink)!important}
:root body[data-interface=emerald] .v2-topbar #v2-header-buttons>#theme-toggle:hover{background:var(--surface)!important}
/* The section name is the page title: readable, one line. */
:root body[data-interface=emerald] .v2-topbar #v2-page-title{font-size:16px;font-weight:650;color:var(--ink)}
/* Up to 1024 px (phone, folded and unfolded fold): search joins the capsule. */
@media(max-width:1024px){
 :root body[data-interface=emerald] .v2-topbar{padding-right:10px}
 :root body[data-interface=emerald] .v2-topbar #v2-page-title{font-size:17px}
 :root body[data-interface=emerald] .v2-topbar .search-trigger{width:40px;min-width:40px;height:42px;min-height:42px;margin-right:-8px;padding:0 0 0 2px;border:1px solid var(--line);border-right:0;border-radius:99px 0 0 99px;background:var(--soft);color:var(--ink);opacity:1}
 :root body[data-interface=emerald] .v2-topbar .search-trigger:hover:not(:disabled){background:color-mix(in srgb,var(--ink) 6%,var(--soft))}
 :root body[data-interface=emerald] .v2-topbar .search-trigger :is(svg,.icon){width:20px;height:20px}
 :root body[data-interface=emerald] .v2-topbar #v2-search-open~#v2-header-buttons{border-left:0;border-radius:0 99px 99px 0;padding-left:0}
}
@media(max-width:600px){
 :root body[data-interface=emerald] .v2-topbar #v2-header-buttons>#theme-toggle{flex-basis:36px;width:36px}
 :root body[data-interface=emerald] .v2-topbar #v2-header-buttons>:is(button,a){width:36px;min-width:36px}
 :root body[data-interface=emerald] .v2-topbar .wa-capture-open{width:40px;min-width:40px;padding:0!important}
 :root body[data-interface=emerald] .v2-topbar .wa-capture-open>span{display:none}
}
@media(max-width:359px){:root body[data-interface=emerald] .v2-topbar #v2-header-buttons>:is(button,a){width:34px;min-width:34px}}
