/* Local password manager — styles replicate the Passwork UI.
   Exact palette/typography values extracted from the original build:
   Museo Sans Cyrl 300/500/700, PT Mono, #4d87e2 blue, #f7f8fa bg,
   #e0e0e0 borders, #858585 secondary text, #e3f0ff selection. */

@font-face {
  font-family: 'Museo Sans Cyrl 300';
  src: local('Museo Sans Cyrl 300'), local('MuseoSansCyrl-300'), url('/assets/fonts/museosanscyrl-300.woff') format('woff');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'Museo Sans Cyrl 500';
  src: local('Museo Sans Cyrl 500'), local('MuseoSansCyrl-500'), url('/assets/fonts/museosanscyrl-500.woff') format('woff');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Museo Sans Cyrl 700';
  src: local('Museo Sans Cyrl 700'), local('MuseoSansCyrl-700'), url('/assets/fonts/museosanscyrl-700.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'PT Mono';
  src: local('PT Mono'), local('pt-mono-regular'), url('/assets/fonts/pt-mono-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

:root {
  --blue: #4d87e2;
  --blue-dark: #3476e0;
  --red: #ff2e2e;
  --green: #25cc87;
  --text: #080808;
  --text-soft: #4a4a4a;
  --text-gray: #858585;
  --border: #e0e0e0;
  --bg: #f7f8fa;
  --selected: #e3f0ff;
  --mono: 'PT Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; }

/* Slightly larger base type (user preference): 17px base scales all rem sizes */
html { font-size: 17px; }

html, body {
  padding: 0;
  margin: 0;
  min-height: 100%;
  background-color: var(--bg);
}

body {
  font-family: 'Museo Sans Cyrl 300', Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 1rem;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button {
  font-family: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
}
input, textarea, select { font-family: inherit; }

.mono-font { font-family: var(--mono); }
.shorten { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.icon { display: inline-block; width: 17px; height: 17px; fill: currentColor; }
.icon_red { fill: var(--red); }

/* ================================================================ app frame */

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.frame {
  max-width: 80rem;
  width: calc(100% - 40px);
  margin: 4px auto 20px;
  display: flex;
  min-height: 640px;
  flex: 1;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.frame_settings { padding: 30px; display: block; }

/* ================================================================ header */

.header { background: #fff; padding: 0 22px; }
.header__container {
  max-width: 80rem;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__left { display: flex; align-items: center; }
.header__workspace {
  font-family: 'Museo Sans Cyrl 700', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  display: inline-flex;
  align-items: center;
}
.header__workspace-arrow {
  width: 8px;
  height: 8px;
  margin-left: 9px;
  border-right: 1.5px solid #858585;
  border-bottom: 1.5px solid #858585;
  transform: rotate(45deg);
  margin-top: -4px;
}
.header__divider { width: 1px; height: 24px; background: var(--border); margin: 0 22px; }
.header__link {
  font-size: 1rem;
  color: var(--text-gray);
  transition: color 75ms ease-in;
}
.header__link:hover, .header__link_active { color: var(--text); }
.header__right { display: flex; align-items: center; }
.header__bell { color: #858585; margin-right: 18px; display: inline-flex; }
.header__bell-icon { width: 19px; height: 19px; }
.header__email { color: #858585; font-size: 1rem; margin-right: 12px; }
.header__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #c2c2c2;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.header__avatar-letter { font-size: 0.875rem; font-weight: 500; font-family: 'Museo Sans Cyrl 500'; }
.header__dots { color: #858585; margin-left: 14px; display: inline-flex; }
.header__dots-icon { width: 19px; height: 19px; }

/* ================================================================ sidebar */

.sidebar {
  width: 320px;
  flex: 0 0 320px;
  padding: 18px 0 0;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.search {
  display: flex;
  align-items: center;
  padding: 0 20px 18px;
  border-bottom: 1px solid transparent;
}
.search__icon { width: 17px; height: 17px; color: #858585; margin-right: 10px; flex: 0 0 auto; }
.search__input {
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 1rem;
  font-family: 'Museo Sans Cyrl 300';
  color: var(--text);
  background: transparent;
}
.search__input::placeholder { color: #858585; }
.search__filters {
  color: var(--text-gray);
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.search__filters:hover { color: var(--text); }
.search__filters-icon { width: 15px; height: 15px; }

.sidebar__section { padding: 0 20px; }
.sidebar__section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Museo Sans Cyrl 500';
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: #858585;
  text-transform: uppercase;
}
.sidebar__section-toggle { display: inline-flex; align-items: center; color: inherit; }
.sidebar__section-arrow {
  width: 7px;
  height: 7px;
  margin-left: 6px;
  border-right: 1.5px solid #858585;
  border-bottom: 1.5px solid #858585;
  transform: rotate(225deg) translate(1px, -1px);
}
.sidebar__section-arrow_collapsed { transform: rotate(45deg) translateY(2px); }
.sidebar__add-vault {
  color: #858585;
  font-size: 1.1rem;
  width: 22px;
  height: 22px;
  border: 1px solid var(--border);
  border-radius: 50%;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sidebar__add-vault:hover { color: var(--blue); border-color: var(--blue); }

.sidebar__tree { flex: 1; padding: 6px 0; }
.sidebar__bottom { padding-bottom: 16px; }

.tree { display: block; }
.tree__item {
  display: flex;
  position: relative;
  align-items: center;
  font-family: 'Museo Sans Cyrl 300', Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--text-soft);
  min-width: 0;
  padding: 7px 20px 7px 30px;
  transition: all 75ms ease-in;
  cursor: pointer;
  white-space: nowrap;
}
.tree__item:hover { color: var(--text); }
.tree__item_active {
  font-family: 'Museo Sans Cyrl 700', Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: var(--text) !important;
}
.tree__item_vault { font-size: 1.0625rem; }
.tree__text { overflow: hidden; text-overflow: ellipsis; }
.tree__icon { width: 17px; height: 17px; color: #858585; margin-right: 10px; flex: 0 0 auto; }
.tree__folder { width: 17px; height: 17px; color: #858585; margin-right: 10px; flex: 0 0 auto; }
.tree__arrow {
  width: 9px;
  height: 9px;
  margin-right: 4px;
  flex: 0 0 auto;
  border-right: 1.5px solid #b6b6b6;
  border-bottom: 1.5px solid #b6b6b6;
  transform: rotate(-45deg);
  transition: transform 75ms ease-in;
}
.tree__arrow_open { transform: rotate(45deg); }
.tree__users { width: 15px; height: 15px; color: #b6b6b6; margin-left: 8px; flex: 0 0 auto; }
.tree__plus {
  margin-left: auto;
  color: #858585;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.9rem;
  display: none;
  align-items: center;
  justify-content: center;
}
.tree__item:hover .tree__plus { display: inline-flex; }
.tree__plus:hover { color: var(--blue); }
.tree__harp {
  width: 9px;
  flex: 0 0 auto;
  margin: 0 3px 0 -8px;
  border-left: 1px solid #dcdcdc;
  border-bottom: 1px solid #dcdcdc;
  height: 9px;
  align-self: flex-end;
  margin-bottom: 9px;
}

.harp__divider { height: 1px; background: var(--border); margin: 10px 20px; }

/* ================================================================ main */

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.main__head { padding: 26px 28px 0; }
.main__head-row { display: flex; align-items: flex-start; justify-content: space-between; }
.breadcrumbs { font-size: 1.25rem; color: #858585; line-height: 1.5; min-height: 40px; }
.breadcrumbs__root { color: #858585; }
.breadcrumbs__root:hover { color: var(--text); }
.breadcrumbs__current {
  font-family: 'Museo Sans Cyrl 700';
  font-weight: 700;
  color: var(--text);
  font-size: 1.375rem;
}
.main__head-buttons { display: flex; align-items: center; }

.shared { display: flex; align-items: center; padding: 8px 28px 14px; }
.shared__avatars { display: flex; margin-right: 12px; }
.shared__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #c2c2c2;
  border: 2px solid #fff;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: -8px;
  font-size: 0.8125rem;
}
.shared__invite {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #fff;
  color: var(--blue);
  box-shadow: 0 0 0 1px var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.shared__invite-icon { width: 17px; height: 17px; }
.shared__info { font-size: 0.875rem; color: var(--text-gray); line-height: 1.5; }
.shared__info .shared__line { display: block; }
.shared__link { color: var(--blue); }
.shared__link:hover { text-decoration: underline; }

.main__body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.main__columns { flex: 1; display: flex; min-height: 0; }

/* ---------------------------------------------------------------- list */

.manage {
  flex: 0 0 40%;
  min-width: 320px;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding-bottom: 40px;
}
.manage__header {
  padding: 12px 28px 10px;
  font-family: 'Museo Sans Cyrl 500';
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: #858585;
  text-transform: uppercase;
}
.manage__row {
  display: flex;
  align-items: center;
  padding: 7px 20px 7px 28px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 75ms ease-in;
}
.manage__row:hover { background: var(--bg); }
.manage__row_selected { background: var(--selected) !important; }
.manage__cell { display: flex; align-items: center; min-width: 0; }
._pass-name {
  font-size: 0.9375rem;
  line-height: 1.25rem;
  color: var(--text);
  margin-left: 12px;
}
.manage__empty { padding: 40px 28px; color: var(--text-gray); font-size: 0.9375rem; }

._te-ti { display: inline-flex; flex: 0 0 auto; }

.mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  vertical-align: middle;
}
.mono_sm { width: 26px; height: 26px; }
.mono_lg { width: 48px; height: 48px; }
.mono__text {
  font-family: 'Museo Sans Cyrl 500', Helvetica, Arial, sans-serif;
  font-weight: 500;
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.2;
  user-select: none;
}
.mono_lg .mono__text { font-size: 1.3125rem; }
.mono_sm .mono__text { font-size: 0.625rem; }

/* ---------------------------------------------------------------- details panel */

.main__right {
  flex: 1;
  min-width: 380px;
  overflow-y: auto;
}
._f { padding: 26px 28px 40px; }
._f-head { position: relative; }
._f-heading { display: flex; align-items: center; }
._f-heading__text {
  font-family: 'Museo Sans Cyrl 700';
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--text);
  margin-left: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
._f-heading__close {
  position: absolute;
  right: 0;
  top: -6px;
  font-size: 1.5rem;
  font-weight: 300;
  color: #858585;
  line-height: 1;
  padding: 4px 8px;
}
._f-heading__close:hover { color: var(--text); }
._f-sub-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 14px;
}
._f-heading__sub { font-size: 0.8125rem; color: var(--text-gray); line-height: 1.6; }
._f-heading__sub .shared__text_p { display: block; }
.shared__link { color: var(--blue); }
._f-tools-buttons { display: flex; }

.button_circle-2 {
  display: inline-flex;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: all 75ms ease-in;
  margin-left: 10px;
}
.button_circle-2:hover { background: rgba(77, 135, 226, 0.08); }
.button_circle-2_active { background: var(--blue); color: #fff; }
._f-tools-buttons__button-icon { width: 17px; height: 17px; }

._f-tabs { border-bottom: 1px solid var(--border); margin-top: 18px; display: flex; }
._f-tabs__label {
  display: inline-block;
  padding: 10px 2px;
  font-size: 1rem;
  color: #858585;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
._f-tabs__label_active { color: var(--text); border-bottom-color: var(--blue); }

._f-row { display: flex; align-items: flex-start; padding-top: 18px; }
._f-label {
  width: 150px;
  flex: 0 0 auto;
  word-break: break-word;
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.4;
  padding-top: 4px;
}
._f-row .input { flex: 1; }
._f-note { flex: 1; font-size: 0.9375rem; line-height: 1.5; color: var(--text); white-space: pre-wrap; padding-top: 4px; }
._f-attachment { flex: 1; color: var(--blue); font-size: 0.9375rem; display: inline-flex; align-items: center; gap: 8px; padding-top: 4px; }
._f-attachment__icon { width: 15px; height: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; }
.tags__tag {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.8125rem;
  color: var(--text-soft);
  padding: 2px 10px;
}

/* inputs (underline style) */
.input { position: relative; }
.input_row { display: flex; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.input__control {
  display: block;
  width: 100%;
  padding: 0;
  outline: 0;
  text-overflow: ellipsis;
  min-height: 2rem;
  border: 0;
  background: transparent;
  font-family: 'Museo Sans Cyrl 300', Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--text);
  cursor: text;
}
.input__control[readonly] { cursor: default; }
.input__control:focus { border-bottom-color: var(--blue); }
.input-extra { display: inline-flex; align-items: center; margin-left: 4px; }
.input-extra__button { color: #858585; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; margin-left: 6px; }
.input-extra__button:hover { color: var(--text); }
.input-extra__button .button__icon { width: 15px; height: 15px; }
.button_eye { background: transparent; }
.button_copy { background: transparent; }

/* ================================================================ buttons */

.button {
  font-family: 'Museo Sans Cyrl 500', Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 75ms ease-in;
  white-space: nowrap;
}
.button_blue {
  background: var(--blue);
  color: #fff;
  border-radius: 24px;
  padding: 11px 24px;
}
.button_blue:hover { background: var(--blue-dark); }
.button_blue:disabled { opacity: 0.55; cursor: default; }
.button_red {
  background: var(--red);
  color: #fff;
  border-radius: 24px;
  padding: 11px 24px;
}
.button_red:hover { filter: brightness(0.92); }
.button_ghost {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 10px 20px;
  color: var(--text-soft);
}
.button_ghost:hover { border-color: #b6b6b6; }

.button_add-item {
  background: var(--blue);
  color: #fff;
  border-radius: 24px;
  padding: 11px 20px 11px 16px;
  margin-left: 18px;
  gap: 8px;
}
.button_add-item:hover { background: var(--blue-dark); }
.button__icon-plus { font-size: 1.25rem; font-weight: 300; line-height: 1; }
.button__text { font-size: 0.9375rem; }

/* ================================================================ dropdown menus (_d-list) */

#context-layer { position: fixed; top: 0; left: 0; z-index: 1000; width: 0; height: 0; }
._d-list_menu {
  position: absolute;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(8, 8, 8, 0.14), 0 0 1px rgba(8, 8, 8, 0.2);
  padding: 10px 0;
  min-width: 210px;
}
._d-list__item {
  display: flex;
  align-items: center;
  padding: 9px 22px;
  font-size: 0.9375rem;
  color: var(--text);
  cursor: pointer;
  transition: background 75ms ease-in;
}
._d-list__item:hover { background: var(--bg); }
._d-list__item.red { color: var(--red); }
._d-list__icon { width: 17px; height: 17px; color: var(--blue); margin-right: 14px; flex: 0 0 auto; }
._d-list__item.red ._d-list__icon { color: var(--red); }
._d-list__divider { height: 1px; background: var(--border); margin: 8px 0; }

/* ================================================================ popup / modals */

#popup-layer { position: relative; z-index: 900; }
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 8, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh 16px 16px;
  overflow-y: auto;
  z-index: 950;
}
.popup {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(8, 8, 8, 0.25);
  padding: 28px 30px 30px;
  animation: popup-in 200ms ease-out;
  max-width: 100%;
}
@keyframes popup-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
.popup__close {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 1.6rem;
  font-weight: 300;
  color: #858585;
  line-height: 1;
  padding: 4px;
}
.popup__close:hover { color: var(--text); }
body.popup-open { overflow: hidden; }

._f-heading_modal { position: relative; margin-bottom: 8px; }

/* form inside modals */
.pf__field { margin-top: 16px; }
.pf__label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.pf__label { font-size: 1rem; color: var(--text-gray); }
.pf__generate { color: var(--blue); font-size: 0.9375rem; }
.pf__generate:hover { text-decoration: underline; }
.pf__input { width: 100%; }
.pf__input_weak { border-bottom-color: var(--red); }
.pf__input_mid { border-bottom-color: #fece49; }
.pf__input_strong { border-bottom-color: var(--green); }
.pf__remove { display: inline-flex; align-items: center; color: var(--text-gray); font-size: 1rem; }
.pf__remove:hover { color: var(--text); }
.pf__remove-icon {
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  line-height: 1;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}
.pf__add-links { display: flex; gap: 24px; margin-top: 14px; }
.pf__add-link {
  display: inline-flex;
  align-items: center;
  color: var(--text-gray);
  font-size: 0.9375rem;
  cursor: pointer;
}
.pf__add-link:hover { color: var(--text); }
.pf__add-plus {
  border: 1px solid currentColor;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}
.pf__divider { height: 1px; background: var(--border); margin: 20px -30px 0; padding: 0 0; }
.pf__colors { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.pf__color {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transition: transform 75ms ease-in;
  position: relative;
}
.pf__color:hover { transform: scale(1.2); }
.pf__color_active::after {
  content: '';
  position: absolute;
  inset: -5px;
  border: 1.5px solid #858585;
  border-radius: 50%;
}
.pf__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pf__tag {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 0.875rem;
  color: var(--text-soft);
  padding: 3px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pf__tag-x { color: #858585; font-size: 0.9375rem; }
.pf__tag-x:hover { color: var(--red); }
.pf__tag-input { border: 0; outline: 0; font-size: 0.9375rem; min-width: 100px; background: transparent; }
.pf__note {
  width: 100%;
  min-height: 80px;
  border: 0;
  border-bottom: 1px solid var(--border);
  resize: vertical;
  font-size: 1rem;
  padding-top: 6px;
  outline: 0;
  background: transparent;
}
.pf__attachments { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.pf__attachment { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9375rem; color: var(--text); }
.pf__attachment-icon { width: 15px; height: 15px; color: var(--blue); }
.pf__file { display: none; }
.pf__save { width: 180px; margin-top: 28px; }
.pf__confirm-text { font-size: 1rem; color: var(--text-soft); line-height: 1.5; margin-top: 10px; }
.pf__hint { font-size: 0.875rem; color: var(--text-gray); line-height: 1.5; margin: 10px 0; }
.pf__hint_warn { color: #c26a00; }
.pf__ssh { width: 100%; min-height: 90px; border: 1px solid var(--border); border-radius: 6px; padding: 10px; font-size: 0.875rem; outline: 0; resize: vertical; font-family: var(--mono); }
.pf__password-input { padding-right: 96px; }

/* permissions */
.perm__list { margin-top: 10px; max-height: 320px; overflow-y: auto; }
.perm__row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--bg); }
.perm__login { flex: 1; font-size: 0.9375rem; }
.perm__owner { color: var(--text-gray); font-size: 0.8125rem; }
.perm__warn { color: #c26a00; font-size: 0.8125rem; }
.perm__role {
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.8125rem;
  padding: 4px 8px;
  background: #fff;
  color: var(--text-soft);
}

/* move/copy tree */
.movetree { max-height: 320px; overflow-y: auto; border: 1px solid var(--border); border-radius: 6px; margin-top: 10px; padding: 6px 0; }
.movetree__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-size: 0.9375rem;
  color: var(--text-soft);
}
.movetree__row:hover { background: var(--bg); }
.movetree__row_active { background: var(--selected); color: var(--text); }
.movetree__row_vault { font-family: 'Museo Sans Cyrl 500'; color: var(--text); }
.movetree__icon { width: 16px; height: 16px; color: #858585; flex: 0 0 auto; }

/* history */
.hist__list { margin-top: 12px; }
.hist__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--bg);
  padding: 10px 0;
}
.hist__meta { font-size: 0.875rem; color: var(--text-soft); }
.hist__restore { color: var(--blue); font-size: 0.9375rem; }
.hist__restore:hover { text-decoration: underline; }

/* ================================================================ generator popover */

.gen { padding: 14px 18px; min-width: 230px; }
.gen__title { font-size: 0.9375rem; color: var(--text-soft); display: flex; justify-content: space-between; gap: 16px; }
.gen__length-value { font-family: var(--mono); color: var(--text); }
.gen__slider { width: 100%; margin: 10px 0; accent-color: var(--blue); }
.gen__checks { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 0.875rem; color: var(--text-soft); }
.gen__check { display: inline-flex; align-items: center; gap: 6px; }
.gen__sample-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.gen__sample { flex: 1; font-size: 0.8125rem; word-break: break-all; color: var(--text); background: var(--bg); border-radius: 6px; padding: 6px 8px; }
.gen__refresh { color: var(--blue); font-size: 1.1rem; }
.gen__apply { margin-top: 12px; width: 100%; border-radius: 18px; padding: 8px; }

/* ================================================================ auth & unlock */

.auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth__card {
  width: 400px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.04);
  padding: 36px 40px 40px;
}
.auth__logo { text-align: center; margin-bottom: 26px; }
.auth__logo-text {
  font-family: 'Museo Sans Cyrl 700';
  font-size: 1.75rem;
  color: var(--text);
  letter-spacing: 0.01em;
}
.auth__title { font-family: 'Museo Sans Cyrl 700'; font-size: 1.25rem; margin-bottom: 6px; }
.auth__hint { font-size: 0.875rem; color: var(--text-gray); line-height: 1.5; margin-bottom: 16px; }
.auth__field { margin-top: 16px; }
.auth__label { display: block; font-size: 0.9375rem; color: var(--text-gray); margin-bottom: 2px; }
.auth__textarea { min-height: 70px; resize: vertical; font-size: 0.9375rem; border: 1px solid var(--border); border-radius: 6px; padding: 10px; }
.auth__error {
  margin-top: 14px;
  background: #fff2f2;
  border: 1px solid #ffcfcf;
  color: var(--red);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.875rem;
  line-height: 1.4;
}
.auth__submit { width: 100%; margin-top: 26px; }

.unlock__textarea { min-height: 120px; font-family: var(--mono); font-size: 0.8125rem; }
.unlock__gap { height: 10px; }
.unlock__row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 12px; }
.unlock__key-section { margin-top: 4px; }
.unlock__key-section .unlock__row { margin-top: 10px; }

.auth__file-row { margin-top: 10px; }
.auth__file-btn { display: inline-flex; cursor: pointer; font-size: 0.875rem; padding: 8px 16px; }
.auth__remember {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--text-gray);
  line-height: 1.4;
  cursor: pointer;
}
.auth__remember input { margin-top: 2px; }
.auth__hint_small { margin-top: 10px; font-size: 0.75rem; }
.auth__hint-link { color: var(--blue); white-space: nowrap; }
.unlock__file { display: none; }
.unlock__file-label { cursor: pointer; }
.unlock__submit { min-width: 140px; }
.unlock__hint { margin-bottom: 20px; }

/* ================================================================ settings */

.settings { max-width: 760px; margin: 0 auto; }
.settings__back { color: var(--blue); font-size: 0.9375rem; display: inline-block; margin-bottom: 20px; }
.settings__card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 20px;
}
.settings__card-title { font-family: 'Museo Sans Cyrl 700'; font-size: 1.125rem; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }
.settings__row { display: flex; align-items: center; padding: 8px 0; }
.settings__label { width: 200px; color: var(--text-gray); font-size: 0.9375rem; flex: 0 0 auto; }
.settings__value { font-size: 0.9375rem; }
.settings__value_small { font-family: var(--mono); font-size: 0.8125rem; }
.settings__action { color: var(--blue); font-size: 0.9375rem; }
.settings__action_red { color: var(--red); margin-left: 16px; }
.settings__ws { max-width: 220px; border-bottom: 1px solid var(--border); font-size: 0.9375rem; }
.settings__add-user { margin: 0 0 10px; }
.settings__users { display: flex; flex-direction: column; }
.settings__user { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--bg); }
.settings__user-info { flex: 1; margin-left: 12px; min-width: 0; }
.settings__user-login { font-size: 0.9375rem; display: flex; align-items: center; gap: 8px; }
.settings__badge {
  background: var(--selected);
  color: var(--blue);
  border-radius: 10px;
  font-size: 0.6875rem;
  padding: 1px 8px;
  font-family: 'Museo Sans Cyrl 500';
}
.settings__user-key { font-family: var(--mono); font-size: 0.75rem; color: var(--text-gray); margin-top: 2px; }
.settings__user-actions { display: flex; align-items: center; }
.settings__about { font-size: 0.9375rem; color: var(--text-soft); line-height: 1.6; }

/* ================================================================ toasts */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 12px);
  background: #2c2e30;
  color: #fff;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 0.9375rem;
  opacity: 0;
  transition: all 250ms ease-out;
  z-index: 1200;
  box-shadow: 0 6px 24px rgba(8, 8, 8, 0.3);
}
.toast_visible { opacity: 1; transform: translate(-50%, 0); }
.toast_warn { background: #8a5a00; }

/* scrollbars (subtle, like the original) */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #d5d8dd; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #b9bdc4; }
::-webkit-scrollbar-track { background: transparent; }
