/* PENROUZ Hub. Account surfaces share spacing, color and typography with Wallet. */
[data-app] {
  --cab-line: #30433e;
  --cab-soft: #23342f;
  --cab-green: #9bd9bc;
  --cab-tint: #20352e;
  --cab-muted: #b3c1bd;
  --cab-ice: #293a42;
  --cab-amber: #36372d;
  --cab-ice-ink: #bdd6e1;
  --cab-amber-ink: #e1d29b;
}
html[data-theme="light"] [data-app] {
  --cab-line: #d7e2dc;
  --cab-soft: #e9efeb;
  --cab-green: #126045;
  --cab-tint: #e9f2ed;
  --cab-muted: #53665e;
  --cab-ice: #eaf0f3;
  --cab-amber: #f5f0e4;
  --cab-ice-ink: #365768;
  --cab-amber-ink: #725a2a;
}
html:lang(ru) .cabin-en, html:lang(en) .cabin-ru { display: none; }
[data-app] :focus-visible { outline: 2px solid var(--cab-green); outline-offset: 3px; }
[data-app] .nav-item { gap: 12px; }
[data-app] .nav-item.active,
[data-app] .mobile-nav button.active {
  background: var(--cab-tint);
  color: var(--cab-green);
}
[data-app] .nav-item svg, [data-app] .mobile-nav button svg {
  stroke-width: 1.65;
}
[data-app] .nav-label { color: var(--cab-muted); }
[data-app] .content { width: 100%; }
[data-app] .page:not([data-panel="wallet"]) .page-head h1,
[data-app] .page:not([data-panel="wallet"]) .product-head h1 {
  color: var(--text);
  margin: 0;
  font-size: clamp(28px, 3.15vw, 40px);
  font-weight: 680;
  line-height: 1.15;
  letter-spacing: -.05em;
}
[data-app] .page:not([data-panel="wallet"]) .panel {
  border: 1px solid var(--cab-line);
  border-radius: 19px;
  background: var(--panel);
}
[data-app] .page:not([data-panel="wallet"]) .panel-head h2,
[data-app] .page:not([data-panel="wallet"]) .section-title h2 {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.28;
  letter-spacing: -.035em;
}
[data-app] .page:not([data-panel="wallet"]) :is(.panel-head, .panel-actions) { min-width: 0; }
[data-app] .page:not([data-panel="wallet"]) .section-description {
  color: var(--cab-muted);
  line-height: 1.5;
}
[data-app] .page:not([data-panel="wallet"]) .text-link { color: var(--cab-green); }
[data-app] .page:not([data-panel="wallet"]) .btn.primary {
  color: var(--panel);
  background: var(--text);
}
[data-app] .page:not([data-panel="wallet"]) :is(.account-tabs, .security-tabs) {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  gap: 20px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--cab-line);
  border-radius: 0;
  background: transparent;
  overflow-x: auto;
  scrollbar-width: thin;
}
[data-app] .page:not([data-panel="wallet"]) :is(.account-tabs, .security-tabs) button {
  position: relative;
  flex: 0 0 auto;
  padding: 10px 2px 12px;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--cab-muted);
  box-shadow: none;
  font-size: 13px;
}
[data-app] .page:not([data-panel="wallet"]) :is(.account-tabs, .security-tabs) button[aria-selected="true"] {
  color: var(--text);
  background: transparent;
}
[data-app] .page:not([data-panel="wallet"]) :is(.account-tabs, .security-tabs) button[aria-selected="true"]::after {
  content: "";
  display: block;
  position: absolute;
  inset: auto 0 0;
  width: auto;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--cab-green);
}
[data-app] :is(.account-tabs, .security-tabs) button:focus-visible {
  outline-offset: -3px;
}
[data-app] .cabin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.cabin-refresh { display: inline-flex; gap: 8px; }
.cabin-refresh svg, .cabin-link svg, .cabin-id-action svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.cabin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}
.cabin-grid > * { min-width: 0; }
.cabin-id {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(24px, 2.2vw, 34px);
  min-height: 256px;
  overflow: hidden;
  color: #f4fff9;
  border: 1px solid #43876e;
  border-radius: 21px;
  background: linear-gradient(112deg, #112f28 2%, #205444 61%, #42795c 100%);
  box-shadow: 0 6px 15px rgb(21 58 44 / .13);
}
.cabin-id::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/assets/hub-id-038.svg") right center / auto 108% no-repeat;
  mask-image: linear-gradient(to right, transparent 31%, #000 70%);
  pointer-events: none;
}
.cabin-id-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f4fff9;
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .17em;
}
.cabin-id-brand svg { width: 21px; height: 21px; }
.cabin-id-person { position: relative; width: 70%; margin: 21px 0 19px; }
.cabin-id-person h2 {
  margin: 0 0 7px;
  color: inherit;
  font-weight: 650;
  font-size: clamp(28px, 2.65vw, 38px);
  line-height: 1.13;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.cabin-id-person p {
  margin: 0;
  color: #d9eee1;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.cabin-id-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  min-height: 38px;
  border: 1px solid rgb(218 244 225 / .48);
  border-radius: 9px;
  background: #1c463a;
  color: #f5fff9;
  font-weight: 650;
  font-size: 13px;
}
.cabin-id-action:hover { background: #295a48; }
[data-app] .cabin-id-action:focus-visible { outline-color: #fff; }
.cabin-grid .panel { margin: 0; }
.cabin-grid .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}
.cabin-access .panel-head { margin-bottom: 8px; }
.cabin-actions { display: grid; }
.cabin-actions button {
  display: flex;
  width: 100%;
  min-height: 63px;
  align-items: center;
  gap: 12px;
  border: 0;
  padding: 11px 0;
  background: transparent;
  color: var(--text);
  text-align: start;
}
.cabin-actions button + button { border-top: 1px solid var(--cab-line); }
.cabin-glyph {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  color: var(--cab-green);
  background: var(--cab-tint);
  border-radius: 12px;
}
.cabin-glyph.ice { color: var(--cab-ice-ink); background: var(--cab-ice); }
.cabin-glyph.amber { color: var(--cab-amber-ink); background: var(--cab-amber); }
.cabin-glyph svg { width: 18px; height: 18px; }
.cabin-action-copy { display: grid; min-width: 0; gap: 3px; }
.cabin-action-copy strong { font-size: 14px; line-height: 1.4; font-weight: 650; }
.cabin-action-copy small { font-size: 12px; line-height: 1.5; color: var(--cab-muted); overflow-wrap: anywhere; }
.cabin-chevron { margin-inline-start: auto; flex: 0 0 15px; width: 15px; height: 15px; color: var(--cab-muted); }
.cabin-actions button:hover strong { color: var(--cab-green); }
.cabin-link { display: inline-flex; align-items: center; justify-content: end; gap: 4px; text-align: end; }
.cabin-link svg { width: 13px; height: 13px; }
.cabin-products .service-icons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(95px, 100%), 1fr));
  gap: 8px;
}
.cabin-products .inline-empty { grid-column: 1 / -1; }
.cabin-products .service-shortcut { min-height: 100px; padding: 10px 4px; }
.cabin-products .service-name { font-size: 12px; overflow-wrap: anywhere; }
.cabin-events [data-home-events] { min-width: 0; }
.cabin-events .home-event { min-width: 0; }
.cabin-events .home-event .mini-icon { color: var(--cab-green); background: var(--cab-tint); border-radius: 10px; }
.cabin-events .home-event strong { font-size: 13px; }
.cabin-nudge { grid-column: 1 / -1; margin: 0; }
.cabin-nudge:not([hidden]) { border-color: var(--cab-line); }
@media (min-width: 761px) and (max-width: 1090px) {
  .cabin-grid { grid-template-columns: minmax(0, 1fr); }
  .cabin-id { min-height: 245px; }
}
@media (max-width: 760px) {
  [data-app] .cabin-head { margin-bottom: 17px; }
  [data-app] .cabin-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cabin-id { min-height: 230px; padding: 23px; border-radius: 18px; }
  .cabin-id::before {
    background-position: right -16px center;
    background-size: auto 94%;
    mask-image: linear-gradient(to right, transparent 34%, rgba(0,0,0,.4) 62%, #000 90%);
  }
  .cabin-id-person { width: 100%; }
  .cabin-id-person h2 { font-size: 30px; }
  .cabin-grid .panel-head { margin-bottom: 10px; }
  .cabin-products .service-icons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  [data-app] .page:not([data-panel="wallet"]) :is(.account-tabs, .security-tabs) { gap: 16px; }
  [data-app] .page:not([data-panel="wallet"]) :is(.account-tabs, .security-tabs) button { font-size: 12px; }
  .cabin-refresh { min-width: 40px; min-height: 40px; justify-content: center; }
}
@media (max-width: 500px) {
  .cabin-refresh-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  [data-app] .cabin-home .cabin-head { align-items: center; }
  .cabin-grid .panel { padding: 18px; }
}
@media (forced-colors: active) {
  .cabin-id { background: Canvas; color: CanvasText; border-color: CanvasText; }
  .cabin-id-brand, .cabin-id-person p, .cabin-id-action { color: CanvasText; }
  .cabin-id-action { background: ButtonFace; border-color: ButtonText; }
  [data-app] :is(.account-tabs, .security-tabs) button[aria-selected="true"] { text-decoration: underline; }
}

/* Icons share one optical grid across navigation, quick actions and the top bar. */
[data-app] :is(.sidebar .nav-item, .sidebar .logout, .mobile-nav button, .cabin-glyph,
               .topbar .segmented, .topbar .top-icon, .wallet-balance-chip summary,
               .topbar .command-trigger, .topbar .menu-btn, .help-card .icon-box) svg,
[data-app] :is(.hub-service-info, .hub-service-direction, .cabin-chevron) svg {
  display: block;
  flex-shrink: 0;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[data-app] .sidebar .nav-item { min-height:44px; gap:12px; color:var(--cab-muted); }
[data-app] .sidebar .nav-item:is(:hover,:focus-visible) { color:var(--text); }
[data-app] .sidebar .nav-item:is(.active,[aria-current="page"]) { color:var(--cab-green); background:var(--cab-tint); font-weight:700; }
[data-app] .sidebar .nav-item.active svg,
[data-app] .mobile-nav button.active svg { stroke-width:2.05; }
[data-app] .sidebar .logout,
[data-app] .sidebar .help-card { min-height:44px; color:var(--cab-muted); }
[data-app] .sidebar :is(.logout,.help-card):is(:hover,:focus-visible) { color:var(--text); }
[data-app] .sidebar .help-card .icon-box { width:24px; height:24px; background:transparent; }
[data-app] .mobile-nav button { min-height:44px; }
[data-app] .cabin-glyph { width:40px; height:40px; flex-basis:40px; }
[data-app] .cabin-glyph svg { width:23px; height:23px; }
[data-app] .cabin-actions button:focus-visible .cabin-action-copy strong { color:var(--cab-green); }
[data-app] .topbar .segmented.theme-picker button { min-width:30px; min-height:32px; }
[data-app] .topbar .theme-picker svg { width:17px; height:17px; }
[data-app] .topbar .wallet-balance-chip summary svg { width:17px; height:17px; }
[data-app] .topbar .top-icon svg { width:20px; height:20px; }
[data-app] .topbar .notification-trigger .unread-badge { pointer-events:none; }
[data-app] .topbar .profile-chip .avatar {
  border-radius:50%; background:var(--cab-tint); color:var(--cab-green); font-weight:720;
}
[data-app] .topbar .menu-btn svg, [data-app] .topbar .command-trigger svg { width:19px; height:19px; }

/* One compact service row per card. Only real membership rows have access details. */
[data-app] :is([data-home-products],[data-products],[data-product-catalogue]) {
  display:grid; align-items:stretch; gap:8px;
  grid-template-columns:repeat(auto-fill,minmax(min(232px,100%),1fr));
}
[data-app] [data-home-products] { grid-template-columns:repeat(auto-fill,minmax(min(206px,100%),1fr)); }
[data-app] .service-directory .list-result-count:empty { display:none; }
[data-app] .service-directory .list-toolbar { margin-bottom:16px; }
[data-app] [data-panel="products"] .panel.product-catalogue {
  margin:24px 0 0; padding:20px 0 0; border:0; border-top:1px solid var(--cab-line); border-radius:0; background:transparent;
}
[data-app] [data-panel="products"] .product-catalogue .panel-head { margin-bottom:12px; }
[data-app] .hub-service {
  display:flex; position:relative; align-items:stretch; min-width:0;
  border:1px solid var(--cab-line); border-radius:13px; background:var(--panel);
}
[data-app] .hub-service:focus-within, [data-app] .hub-service:hover { border-color:var(--cab-green); }
[data-app] .hub-service-main, [data-app] .hub-service-info {
  appearance:none; display:flex; align-items:center; min-width:0; padding:0; border:0;
  background:transparent; color:var(--text); font:inherit; text-align:start;
  text-decoration:none; cursor:pointer; border-radius:12px;
}
[data-app] .hub-service-main {
  flex:1; gap:10px; min-height:65px; padding:9px 12px;
}
[data-app] .hub-service-main:hover { text-decoration:none; background:var(--cab-tint); }
[data-app] .hub-service-main:focus-visible, [data-app] .hub-service-info:focus-visible {
  outline-offset:-2px;
}
[data-app] .hub-service-main:has(+.hub-service-info) { padding-right:3px; }
[data-app] .hub-service .service-icon { width:34px; height:34px; border-radius:10px; }
[data-app] .hub-service .service-icon svg { width:21px; height:21px; }
.service-icon:is(.service-brand-oco,.service-brand-opo) { background:transparent; box-shadow:none; }
.service-icon:is(.service-brand-oco,.service-brand-opo) svg,
[data-app] .hub-service .service-icon:is(.service-brand-oco,.service-brand-opo) svg { width:100%; height:100%; }
[data-app] .hub-service-copy { display:grid; min-width:0; gap:3px; }
[data-app] .hub-service-copy strong { font-size:14px; font-weight:700; line-height:1.27; overflow-wrap:anywhere; }
[data-app] .hub-service-copy small { color:var(--cab-muted); font-size:12px; line-height:1.35; overflow-wrap:anywhere; }
[data-app] .hub-service.is-restricted .hub-service-copy small { color:var(--cab-amber-ink); }
[data-app] .hub-service-direction { align-self:center; flex-shrink:0; margin-inline-start:auto; color:var(--cab-muted); }
[data-app] .hub-service-direction svg { width:15px; height:15px; }
[data-app] .hub-service-info {
  justify-content:center; align-self:stretch; flex:0 0 40px; color:var(--cab-muted);
}
[data-app] .hub-service-info svg { width:17px; height:17px; }
[data-app] .hub-service-info:is(:hover,:focus-visible) { color:var(--cab-green); background:var(--cab-tint); }
[data-app] [data-home-products] .hub-service-main { min-height:58px; }
.service-dialog [data-service-detail] { gap:10px; }
.service-dialog .hub-detail-description { color:var(--cab-muted,var(--muted)); }
.service-dialog .hub-service-facts { width:100%; margin:4px 0; border-block:1px solid var(--line); }
.service-dialog .hub-service-facts > div { display:flex; justify-content:space-between; gap:10px; padding:9px 0; text-align:start; }
.service-dialog .hub-service-facts dt { color:var(--muted); }
.service-dialog .hub-service-facts dd { margin:0; font-weight:650; text-align:end; overflow-wrap:anywhere; max-width:65%; }
@media (max-width:600px) {
  [data-app] .hub-service-info { flex-basis:44px; }
  [data-app] .topbar :is(.menu-btn,.command-trigger,.profile-chip) { min-height:40px; }
}
@media (forced-colors:active) {
  [data-app] .hub-service, [data-app] .sidebar .nav-item.active { border:1px solid CanvasText; }
}

.depth-consent-tools{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 12px}
.depth-consent-tools[hidden]{display:none}
.depth-consent-tools select{font:inherit;max-width:100%;padding:.5em;border-radius:8px;color:inherit;background:var(--panel);border:1px solid var(--line)}
.depth-event-link{display:block;width:fit-content;margin-top:.4em;color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.depth-event-link:hover{text-decoration-thickness:2px}.depth-event-link:focus-visible,.depth-account-settings a:focus-visible{outline:2px solid currentColor;outline-offset:3px}
