@font-face {
  font-family: "Dividend Carlito";
  src: url("../assets/fonts/font-pack/Carlito/Carlito-Regular.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dividend Carlito";
  src: url("../assets/fonts/font-pack/Carlito/Carlito-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dividend Carlito";
  src: url("../assets/fonts/font-pack/Carlito/Carlito-Bold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dividend Carlito";
  src: url("../assets/fonts/font-pack/Carlito/Carlito-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dividend Open Sans";
  src: url("../assets/fonts/font-pack/Open_Sans/OpenSans-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dividend Arimo";
  src: url("../assets/fonts/font-pack/Arimo/Arimo-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dividend Noto Sans";
  src: url("../assets/fonts/font-pack/Noto_Sans/NotoSans-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dividend Nunito";
  src: url("../assets/fonts/font-pack/Nunito/Nunito-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dividend Ubuntu";
  src: url("../assets/fonts/font-pack/Ubuntu/Ubuntu-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dividend Ubuntu";
  src: url("../assets/fonts/font-pack/Ubuntu/Ubuntu-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dividend Ubuntu";
  src: url("../assets/fonts/font-pack/Ubuntu/Ubuntu-Medium.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dividend Ubuntu";
  src: url("../assets/fonts/font-pack/Ubuntu/Ubuntu-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dividend Google Sans";
  src: url("../assets/fonts/font-pack/Google_Sans/GoogleSans-VariableFont_GRAD,opsz,wght.ttf") format("truetype");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dividend Alef";
  src: url("../assets/fonts/font-pack/Alef/Alef-Regular.ttf") format("truetype");
  font-weight: 300 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dividend Alef";
  src: url("../assets/fonts/font-pack/Alef/Alef-Bold.ttf") format("truetype");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dividend David Libre";
  src: url("../assets/fonts/font-pack/David_Libre/DavidLibre-Regular.ttf") format("truetype");
  font-weight: 300 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dividend David Libre";
  src: url("../assets/fonts/font-pack/David_Libre/DavidLibre-Medium.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dividend David Libre";
  src: url("../assets/fonts/font-pack/David_Libre/DavidLibre-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dividend Huninn";
  src: url("../assets/fonts/font-pack/Huninn/Huninn-Regular.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dividend IBM Plex Sans Hebrew";
  src: url("../assets/fonts/font-pack/IBM_Plex_Sans_Hebrew/IBMPlexSansHebrew-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dividend IBM Plex Sans Hebrew";
  src: url("../assets/fonts/font-pack/IBM_Plex_Sans_Hebrew/IBMPlexSansHebrew-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dividend IBM Plex Sans Hebrew";
  src: url("../assets/fonts/font-pack/IBM_Plex_Sans_Hebrew/IBMPlexSansHebrew-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dividend IBM Plex Sans Hebrew";
  src: url("../assets/fonts/font-pack/IBM_Plex_Sans_Hebrew/IBMPlexSansHebrew-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --app-bg: #111820;
  --sidebar: #182331;
  --sidebar-soft: #223047;
  --panel: #172131;
  --panel-2: #1d2a3f;
  --panel-3: #22324c;
  --line: #2b3a50;
  --text: #e8edf5;
  --muted: #95a1b4;
  --faint: #657286;
  --blue: #4aa3ff;
  --teal: #09a497;
  --green: #29d36b;
  --amber: #f4b63f;
  --red: #ff5b66;
  --purple: #b98cff;
  --fixed-font:
    "Dividend Carlito", sans-serif;
  --sidebar-font:
    "Dividend Carlito", sans-serif;
  --calendar-font:
    "Dividend Carlito", sans-serif;
  --ui-font-size: 13px;
  --ui-font-weight: 600;
  --label-font-size: calc(var(--ui-font-size) - 2px);
  --small-font-size: calc(var(--ui-font-size) - 1px);
  --side-font-size: 12px;
  --side-label-font-size: 10.5px;
  --side-small-font-size: 11px;
  --calendar-font-size: 11.5px;
  --calendar-font-weight: var(--ui-font-weight);
  --sidebar-width: 236px;
  --nucleo-ui-icon-size: 18px;
  --nucleo-footer-icon-size: 17px;
  --nucleo-footer-icon-glyph-size: 14px;
  --nucleo-page-title-icon-size: 18px;
  --nucleo-sector-icon-size: 20px;
  --nucleo-sector-icon-glyph-size: 10.5px;
  --nucleo-sector-image-size: 15px;
  --nucleo-metric-label-icon-size: 12px;
  --nucleo-price-schedule-icon: url("../assets/icons/nucleo-core-svg/fill/arrows/24px_arrows-from-line-y.svg");
  --nucleo-holdings-hourglass-icon: url("../assets/icons/nucleo-core-svg/fill/time/24px_hourglass.svg");
  --nucleo-regular-investment-icon: url("../assets/icons/nucleo-core-svg/fill/time/24px_calendar.svg");
  --calendar-label-font-size: calc(var(--calendar-font-size) - 1px);
  --calendar-small-font-size: calc(var(--calendar-font-size) - 0.5px);
  --context-menu-font-size: calc(var(--ui-font-size) - 2px);
  --context-menu-icon-size: 13px;
  --app-display-scale: 0.9;
  --table-header-bg: rgba(32, 55, 75, 0.74);
  --table-header-hover-bg: rgba(39, 66, 88, 0.82);
  --table-header-text: var(--faint);
  --summary-month-width: 132px;
  --summary-holding-width: 180px;
  --summary-add-width: 118px;
  --summary-total-width: 126px;
  --summary-header-bg: var(--table-header-bg);
  --summary-header-hover-bg: var(--table-header-hover-bg);
  --price-date-width: 108px;
  --price-activity-width: 148px;
  --price-shares-width: 104px;
  --price-bookCost-width: 104px;
  --price-fxRate-width: 82px;
  --price-deltaShares-width: 104px;
  --price-deltaCost-width: 104px;
  --price-localDeltaCost-width: 114px;
  --price-pricePaid-width: 112px;
  --price-averageCost-width: 128px;
  --price-averageCostChange-width: 112px;
  --current-position-company-width: 236px;
  --current-position-tradingCurrency-width: 118px;
  --current-position-holdingPeriod-width: 124px;
  --current-position-shares-width: 112px;
  --current-position-bookCost-width: 122px;
  --current-position-averageCost-width: 122px;
  --current-position-livePrice-width: 116px;
  --current-position-valuation-width: 116px;
  --current-position-indicatedNetDps-width: 132px;
  --current-position-marketYield-width: 108px;
  --current-position-rYield-width: 108px;
  --current-position-totalGain-width: 116px;
  --current-position-totalGainPercent-width: 116px;
  --current-position-dayChange-width: 116px;
  --current-position-dayGain-width: 116px;
  --current-position-lastTransaction-width: 124px;
  --widget-opacity: 1;
  font-family: var(--fixed-font);
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  background: #0c111c;
  color: var(--text);
  font-family: var(--fixed-font);
  font-size: var(--ui-font-size);
  font-weight: var(--ui-font-weight);
}

button,
input {
  font: inherit;
}

.has-resizable-header thead th {
  position: relative;
  height: var(--table-header-height);
}

.has-resizable-header > [role="row"]:first-child,
.has-resizable-header .dividend-schedule-head {
  position: relative;
  min-height: var(--table-header-height);
}

.has-resizable-header thead th::after,
.has-resizable-header > [role="row"]:first-child::after,
.has-resizable-header .dividend-schedule-head::after {
  content: none;
}

body.is-resizing-table-headers,
body.is-resizing-table-headers * {
  cursor: ns-resize !important;
  user-select: none !important;
}

.browser-shell {
  min-height: 100vh;
  padding: 28px;
}

@media (min-width: 1600px) {
  .browser-shell {
    width: 88vw;
    margin-inline: auto;
  }
}

.window-bar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 18px;
  background: #191d22;
  border-radius: 18px 18px 0 0;
}

.window-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 var(--sidebar-width);
  min-width: 0;
}

.api-fetch-status {
  min-width: 0;
  max-width: 158px;
  overflow: hidden;
  color: rgba(149, 161, 180, 0.64);
  font-size: calc(var(--ui-font-size) - 3px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  height: calc(100vh - 88px);
  min-height: 760px;
  overflow: hidden;
  background: var(--app-bg);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 26px 70px rgba(10, 18, 32, 0.32);
  font-family: var(--fixed-font);
  font-size: var(--ui-font-size);
  font-weight: var(--ui-font-weight);
  opacity: var(--widget-opacity);
  transition: opacity 120ms ease;
}

body[data-app-hydrating="true"] .app-shell {
  opacity: 0;
  transition: none;
}

@media (min-width: 981px) {
  @supports (zoom: 1) {
    html {
      overflow-x: hidden;
    }

    body {
      min-height: calc(100vh / var(--app-display-scale));
      overflow-x: hidden;
      zoom: var(--app-display-scale);
    }

    .browser-shell {
      min-height: calc(100vh / var(--app-display-scale));
    }

    .app-shell {
      height: calc((100vh / var(--app-display-scale)) - 88px);
    }
  }
}

.sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #172233 0%, #263654 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--sidebar-font);
  font-size: var(--ui-font-size);
  min-width: 0;
}

.sidebar-resizer {
  position: absolute;
  top: 0;
  right: -6px;
  z-index: 20;
  width: 12px;
  height: 100%;
  border: 0;
  background: transparent;
  cursor: col-resize;
  outline: none;
  touch-action: none;
}

.sidebar-resizer::before {
  position: absolute;
  top: 14px;
  right: 5px;
  bottom: 14px;
  width: 2px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.08);
  content: "";
  opacity: 0;
  transition: opacity 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.sidebar-resizer:hover::before,
.sidebar-resizer:focus-visible::before,
.sidebar-resizer.is-active::before {
  background: rgba(45, 212, 191, 0.68);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12), 0 0 18px rgba(20, 184, 166, 0.2);
  opacity: 1;
}

body.is-resizing-sidebar,
body.is-resizing-sidebar * {
  cursor: col-resize !important;
  user-select: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 18px 18px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #55a4ff, #9b7cff);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: white;
  stroke-width: 2.2;
}

.brand strong {
  color: #f2f6ff;
  font-size: calc(var(--ui-font-size) + 2px);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  margin: 16px 16px 10px;
  color: #f2f6ff;
  min-width: 0;
}

.sidebar-brand .brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 9px;
}

.sidebar-brand .brand-mark svg {
  width: 20px;
  height: 20px;
}

.sidebar-brand strong {
  min-width: 0;
  overflow: hidden;
  color: #f2f6ff;
  font-size: calc(var(--ui-font-size) + 2px);
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-search {
  position: relative;
  margin: 26px 16px 18px;
}

.sidebar-search-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 15px;
  height: 15px;
  pointer-events: none;
  background: #95a1b4;
  transform: translateY(-50%);
  transition: background-color 160ms ease;
  mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_input-search.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_input-search.svg") center / contain no-repeat;
}

.sidebar-search input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 38px;
  border: 1px solid #2d3c56;
  border-radius: 7px;
  background: #1c283a;
  color: var(--text);
  outline: none;
}

.sidebar-search:focus-within .sidebar-search-icon {
  background: var(--blue);
}

.nav {
  display: grid;
  gap: 3px;
}

.nav [hidden] {
  display: none !important;
}

.nav a,
.nav-action,
.nav-section,
.nav-subfolder-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  text-align: left;
  font-size: var(--ui-font-size);
  font-family: inherit;
  font-weight: var(--ui-font-weight);
}

.nav [data-sidebar-parent-section] {
  gap: 10px;
  min-height: 30px;
  padding: 0 18px 0 30px;
  font-size: calc(var(--ui-font-size) - 1px);
  transition: background-color 120ms ease, color 120ms ease;
}

.nav-subfolder-title {
  min-height: 24px;
  margin-top: 4px;
  color: #91a2b7;
  cursor: default;
  font-size: calc(var(--ui-font-size) - 2px);
  letter-spacing: 0;
  text-transform: none;
}

.nav-subfolder-title:hover,
.nav-subfolder-title:focus-visible {
  background: transparent;
  color: #b9c7dc;
}

.nav-subfolder-rule {
  width: 12px;
  height: 1px;
  flex: 0 0 12px;
  background: rgba(126, 151, 184, 0.42);
}

.nav .nav-subfolder-link[data-sidebar-parent-section] {
  padding-left: 42px;
}

.nav a,
.nav-action,
.nav-section {
  position: relative;
}

.nav a.active {
  color: var(--blue);
  background: rgba(74, 163, 255, 0.12);
  border-left: 3px solid var(--blue);
  padding-left: 15px;
}

.nav [data-sidebar-parent-section].active {
  padding-left: 27px;
}

.nav [data-sidebar-parent-section]:hover,
.nav [data-sidebar-parent-section]:focus-visible {
  background: rgba(255, 255, 255, 0.045);
  color: #dce7f7;
  outline: none;
}

.nav .nav-subfolder-title[data-sidebar-parent-section]:hover,
.nav .nav-subfolder-title[data-sidebar-parent-section]:focus-visible {
  background: transparent;
  color: #b9c7dc;
}

.nav-icon-price-schedule {
  display: inline-block;
  width: var(--nucleo-ui-icon-size, 18px);
  height: var(--nucleo-ui-icon-size, 18px);
  flex: 0 0 var(--nucleo-ui-icon-size, 18px);
  background: none;
  mask: none;
  -webkit-mask: none;
}

.nav-icon-price-schedule:not(.is-custom)::before {
  display: block;
  width: var(--nucleo-ui-icon-size, 18px);
  height: var(--nucleo-ui-icon-size, 18px);
  background: currentColor;
  content: "";
  mask: var(--nucleo-price-schedule-icon) center / contain no-repeat;
  -webkit-mask: var(--nucleo-price-schedule-icon) center / contain no-repeat;
}

.nav-icon-regular-investment {
  display: inline-block;
  width: var(--nucleo-ui-icon-size, 18px);
  height: var(--nucleo-ui-icon-size, 18px);
  flex: 0 0 var(--nucleo-ui-icon-size, 18px);
}

.nav-icon-regular-investment::before {
  display: block;
  width: var(--nucleo-ui-icon-size, 18px);
  height: var(--nucleo-ui-icon-size, 18px);
  background: currentColor;
  content: "";
  mask: var(--nucleo-regular-investment-icon) center / contain no-repeat;
  -webkit-mask: var(--nucleo-regular-investment-icon) center / contain no-repeat;
}

.nav-label {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-label-edit,
.sidebar-order-handle {
  display: grid;
  place-items: center;
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  border: 1px solid rgba(142, 231, 217, 0.18);
  border-radius: 999px;
  background: rgba(17, 24, 32, 0.42);
  color: rgba(174, 245, 231, 0.64);
  opacity: 0;
  outline: none;
  transition: opacity 120ms ease, border-color 120ms ease, background 120ms ease, color 120ms ease, transform 120ms ease;
}

.sidebar-label-edit {
  display: none !important;
  margin-left: auto;
  cursor: context-menu;
}

.sidebar-order-handle {
  margin-left: auto;
  cursor: grab;
  touch-action: none;
}

.nav-section .sidebar-order-handle {
  position: absolute;
  right: 39px;
  margin-left: 0;
}

.sidebar-label-edit + .sidebar-order-handle {
  margin-left: auto;
}

.sidebar-label-edit::before,
.sidebar-order-handle::before {
  display: block;
  width: 13px;
  height: 13px;
  background: currentColor;
  content: "";
}

.sidebar-label-edit::before {
  mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_input-password-edit.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_input-password-edit.svg") center / contain no-repeat;
}

.sidebar-order-handle::before {
  mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_move-to-top.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_move-to-top.svg") center / contain no-repeat;
}

.nav a:hover .sidebar-label-edit,
.nav a:focus-within .sidebar-label-edit,
.sidebar-label-edit:hover,
.sidebar-label-edit:focus-visible,
.nav a:hover .sidebar-order-handle,
.nav a:focus-within .sidebar-order-handle,
.nav-action:hover .sidebar-order-handle,
.nav-action:focus-within .sidebar-order-handle,
.nav-section:hover .sidebar-order-handle,
.nav-section:focus-within .sidebar-order-handle,
.sidebar-order-handle:hover,
.sidebar-order-handle:focus-visible,
.sidebar-order-handle.is-dragging {
  opacity: 0.78;
}

.sidebar-label-edit:hover,
.sidebar-label-edit:focus-visible,
.sidebar-order-handle:hover,
.sidebar-order-handle:focus-visible,
.sidebar-order-handle.is-dragging {
  border-color: rgba(20, 184, 166, 0.76);
  background: rgba(20, 184, 166, 0.18);
  color: #8ff7e8;
}

.sidebar-order-handle.is-dragging {
  cursor: grabbing;
  transform: scale(1.04);
}

.nav a.is-sidebar-order-dragging,
.nav-action.is-sidebar-order-dragging,
.nav-section.is-sidebar-order-dragging {
  opacity: 0.72;
}

.nav a.is-sidebar-order-over,
.nav-action.is-sidebar-order-over,
.nav-section.is-sidebar-order-over {
  box-shadow: inset 0 -2px 0 rgba(20, 184, 166, 0.72);
}

body.is-dragging-sidebar-order {
  cursor: grabbing;
  user-select: none;
}

.nav-label.is-editing {
  overflow: visible;
}

.sidebar-label-input {
  width: 100%;
  min-width: 0;
  height: 26px;
  padding: 0 7px;
  border: 1px solid rgba(20, 184, 166, 0.78);
  border-radius: 7px;
  background: rgba(20, 184, 166, 0.12);
  color: var(--text);
  font: inherit;
  font-size: var(--ui-font-size);
  font-weight: var(--ui-font-weight);
  outline: none;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.08);
}

.nav-section {
  margin-top: 0;
  min-height: 40px;
  color: #90a0b8;
  font-size: var(--ui-font-size);
  font-weight: var(--ui-font-weight);
  letter-spacing: 0;
  text-transform: none;
  cursor: default;
  user-select: none;
}

.nav-section::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 1px;
  height: 1px;
  background: linear-gradient(90deg, rgba(37, 59, 83, 0.95), rgba(20, 184, 166, 0.32), rgba(37, 59, 83, 0));
  opacity: 0.8;
  pointer-events: none;
}

.nav-section .nav-label {
  flex: 1 1 auto;
  font-weight: inherit;
}

.nav-section:hover,
.nav-section:focus-visible {
  color: #dce7f7;
  outline: none;
}

.nav-section-chevron {
  display: grid;
  place-items: center;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(174, 245, 231, 0.7);
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  outline: none;
  transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease, color 120ms ease, transform 120ms ease;
}

.nav-section > .nav-section-chevron {
  order: 10;
  margin-left: auto;
}

.nav-section-chevron svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-section.is-collapsed .nav-section-chevron {
  transform: rotate(-90deg);
}

.nav-section-chevron:hover,
.nav-section-chevron:focus-visible {
  background: rgba(20, 184, 166, 0.18);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12), 0 0 14px rgba(20, 184, 166, 0.2);
  color: #f2fffc;
}

.nav-section-chevron:hover svg,
.nav-section-chevron:focus-visible svg {
  transform: scale(1.12);
}

.nav-section[aria-expanded="false"] + a {
  margin-top: 0;
}

.nav-icon {
  width: var(--nucleo-ui-icon-size, 18px);
  height: var(--nucleo-ui-icon-size, 18px);
  flex: 0 0 var(--nucleo-ui-icon-size, 18px);
  display: grid;
  place-items: center;
  color: currentColor;
}

.nav-icon svg {
  width: var(--nucleo-ui-icon-size, 18px);
  height: var(--nucleo-ui-icon-size, 18px);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.nav-icon[data-sidebar-icon-key] {
  position: relative;
  border-radius: 7px;
  cursor: inherit;
  transition: none;
}

.nav-icon[data-sidebar-icon-key]:hover,
.nav-icon[data-sidebar-icon-key]:focus-visible,
.nav a:hover > .nav-icon[data-sidebar-icon-key],
.nav a:focus-within > .nav-icon[data-sidebar-icon-key],
.nav-action:hover > .nav-icon[data-sidebar-icon-key],
.nav-action:focus-within > .nav-icon[data-sidebar-icon-key],
.sidebar-footer .footer-link:hover > .nav-icon[data-sidebar-icon-key],
.sidebar-footer .footer-link:focus-within > .nav-icon[data-sidebar-icon-key] {
  box-shadow: none;
  color: currentColor;
  outline: none;
  transform: none;
}

.nav-icon[data-sidebar-icon-key]::after {
  display: none;
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(45, 212, 191, 0.7);
  border-radius: 50%;
  background: #102234;
  content: "";
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 120ms ease, transform 120ms ease, box-shadow 120ms ease;
  mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_input-password-edit.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_input-password-edit.svg") center / contain no-repeat;
}

.nav-icon[data-sidebar-icon-key]:hover::after,
.nav-icon[data-sidebar-icon-key]:focus-visible::after,
.nav a:hover > .nav-icon[data-sidebar-icon-key]::after,
.nav a:focus-within > .nav-icon[data-sidebar-icon-key]::after,
.nav-action:hover > .nav-icon[data-sidebar-icon-key]::after,
.nav-action:focus-within > .nav-icon[data-sidebar-icon-key]::after,
.sidebar-footer .footer-link:hover > .nav-icon[data-sidebar-icon-key]::after,
.sidebar-footer .footer-link:focus-within > .nav-icon[data-sidebar-icon-key]::after {
  opacity: 0;
  box-shadow: none;
  transform: scale(0.8);
}

.sidebar-context-menu {
  position: fixed;
  z-index: 3000;
  display: grid;
  min-width: 156px;
  padding: 6px;
  border: 1px solid rgba(76, 109, 150, 0.72);
  border-radius: 14px;
  background: rgba(17, 24, 32, 0.98);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sidebar-context-menu[hidden] {
  display: none;
}

.sidebar-context-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: var(--context-menu-font-size);
  font-weight: var(--ui-font-weight);
  text-align: left;
  cursor: pointer;
}

.sidebar-context-menu button:hover,
.sidebar-context-menu button:focus-visible {
  background: rgba(20, 184, 166, 0.18);
  color: #8ff7e8;
  outline: none;
}

.sidebar-context-menu button:disabled {
  color: rgba(160, 173, 194, 0.48);
  cursor: not-allowed;
}

.sidebar-context-menu button[hidden] {
  display: none;
}

.sidebar-context-menu.is-moving-group > [data-sidebar-context-action] {
  display: none;
}

.sidebar-context-menu button > span {
  display: block;
  flex: 0 0 var(--context-menu-icon-size);
  width: var(--context-menu-icon-size);
  height: var(--context-menu-icon-size);
  background: currentColor;
}

.sidebar-context-menu [data-sidebar-context-action="name"] > span {
  mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_input-password-edit.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_input-password-edit.svg") center / contain no-repeat;
}

.sidebar-context-menu [data-sidebar-context-action="icon"] > span {
  mask: url("../assets/icons/nucleo-core-svg/fill/photography-video/24px_image.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/photography-video/24px_image.svg") center / contain no-repeat;
}

.sidebar-context-menu [data-current-position-column-action="name"] > span,
.sidebar-context-menu [data-holdings-summary-metric-action="name"] > span,
.sidebar-context-menu [data-subheading-context-action="name"] > span {
  mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_input-password-edit.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_input-password-edit.svg") center / contain no-repeat;
}

.sidebar-context-menu [data-sidebar-context-action="group"] > span {
  mask: url("../assets/icons/nucleo-core-svg/fill/files-folders/24px_folder-plus.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/files-folders/24px_folder-plus.svg") center / contain no-repeat;
}

.sidebar-context-menu [data-sidebar-context-mode="move-group"] > span {
  mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_move-to-top.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_move-to-top.svg") center / contain no-repeat;
}

.sidebar-context-group-options {
  display: grid;
  gap: 2px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(76, 109, 150, 0.42);
}

.sidebar-context-menu.is-moving-group .sidebar-context-group-options {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.sidebar-context-group-options[hidden] {
  display: none;
}

.sidebar-context-menu .sidebar-context-group-option {
  justify-content: space-between;
  min-height: 30px;
}

.sidebar-context-option-check {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border: 1px solid rgba(142, 231, 217, 0.46);
  border-radius: 999px;
  background: rgba(5, 13, 23, 0.42);
}

.sidebar-context-group-option[aria-selected="true"] .sidebar-context-option-check {
  border-color: rgba(25, 201, 185, 0.92);
  background: rgba(25, 201, 185, 0.24);
}

.sidebar-context-group-option[aria-selected="true"] .sidebar-context-option-check::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #8ff2e5;
}

.company-icon-context-menu [data-company-icon-context-action="delete"] > span {
  mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_trash.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_trash.svg") center / contain no-repeat;
}

.company-icon-context-menu {
  min-width: 164px;
}

.company-icon-context-menu [data-company-icon-context-action="add"] > span {
  mask: url("../assets/icons/nucleo-core-svg/fill/photography-video/24px_image-plus.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/photography-video/24px_image-plus.svg") center / contain no-repeat;
}

.company-icon-context-menu [data-company-icon-context-action="reallocate"] > span {
  mask: url("../assets/icons/nucleo-core-svg/fill/arrows/24px_arrows-transaction.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/arrows/24px_arrows-transaction.svg") center / contain no-repeat;
}

.company-icon-context-menu [data-company-icon-context-action="crop"] > span {
  mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_eye.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_eye.svg") center / contain no-repeat;
}

.company-icon-context-menu [data-company-icon-context-action="delete"]:hover,
.company-icon-context-menu [data-company-icon-context-action="delete"]:focus-visible {
  background: rgba(255, 111, 125, 0.16);
  color: #ffc4ca;
}

.watchlist-context-menu {
  min-width: 156px;
}

.price-schedule-context-menu {
  min-width: 132px;
}

.dividend-history-payment-context-menu {
  min-width: 150px;
}

.calendar-stock-context-menu {
  min-width: 156px;
}

.regular-investment-day-context-menu {
  min-width: 172px;
}

.regular-investment-day-context-menu [data-regular-investment-context-action="regular-investment"] > span {
  mask: url("../assets/icons/nucleo-core-svg/fill/time/24px_calendar-plus.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/time/24px_calendar-plus.svg") center / contain no-repeat;
}

.regular-investment-day-context-menu [data-regular-investment-context-action="reduced-trading"] > span {
  mask: url("../assets/icons/nucleo-core-svg/fill/time/24px_clock.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/time/24px_clock.svg") center / contain no-repeat;
}

.regular-investment-day-context-menu [data-regular-investment-context-action="delete"] > span {
  mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_trash.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_trash.svg") center / contain no-repeat;
}

.regular-investment-day-context-menu [data-regular-investment-context-action="delete"]:hover,
.regular-investment-day-context-menu [data-regular-investment-context-action="delete"]:focus-visible {
  background: rgba(255, 111, 125, 0.16);
  color: #ffc4ca;
}

.calendar-stock-context-menu [data-calendar-stock-context-action="icon"] > span,
.calendar-stock-context-menu [data-calendar-stock-context-action="dividend"] > span {
  mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_input-password-edit.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_input-password-edit.svg") center / contain no-repeat;
}

.calendar-stock-context-menu [data-calendar-stock-context-action="history"] > span {
  mask: url("../assets/icons/nucleo-core-svg/fill/arrows/24px_history.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/arrows/24px_history.svg") center / contain no-repeat;
}

.current-position-context-menu {
  width: 136px;
  min-width: 136px;
}

.current-position-context-menu button {
  gap: 6px;
  min-height: 31px;
  padding: 0 7px;
}

.current-position-context-menu button > span {
  flex-basis: var(--context-menu-icon-size);
  width: var(--context-menu-icon-size);
  height: var(--context-menu-icon-size);
}

.current-position-context-menu button strong {
  white-space: nowrap;
}

.current-position-context-menu [data-current-position-context-action="price"] > span {
  mask: url("../assets/icons/nucleo-core-svg/fill/business-finance/24px_chart-stock-price.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/business-finance/24px_chart-stock-price.svg") center / contain no-repeat;
}

.current-position-context-menu [data-current-position-context-action="icon"] > span {
  mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_input-password-edit.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_input-password-edit.svg") center / contain no-repeat;
}

.current-position-context-menu [data-current-position-context-action="dividend"] > span {
  mask: url("../assets/icons/nucleo-core-svg/fill/business-finance/24px_chart-stacked-line.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/business-finance/24px_chart-stacked-line.svg") center / contain no-repeat;
}

.current-position-column-menu,
.current-position-unhide-menu,
.generic-table-column-menu {
  min-width: 166px;
}

.current-position-column-menu [data-current-position-column-action="hide"] > span {
  mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_eye-slash.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_eye-slash.svg") center / contain no-repeat;
}

.current-position-column-menu [data-current-position-column-action="font"] > span,
.watchlist-column-menu [data-watchlist-column-action="font"] > span,
.generic-table-column-menu [data-generic-table-column-action="font"] > span,
.column-entry-font-head > span {
  mask: url("../assets/icons/nucleo-core-svg/fill/design-development/24px_typography.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/design-development/24px_typography.svg") center / contain no-repeat;
}

.current-position-unhide-menu [data-current-position-unhide-column] > span {
  mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_eye.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_eye.svg") center / contain no-repeat;
}

.current-position-column-menu [data-current-position-column-action="name"] > span,
.watchlist-column-menu [data-watchlist-column-action="name"] > span,
.generic-table-column-menu [data-generic-table-column-action="name"] > span {
  mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_input-password-edit.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_input-password-edit.svg") center / contain no-repeat;
}

table td.has-column-entry-font-style {
  font-weight: var(--column-entry-font-weight, inherit) !important;
}

table td.has-column-entry-font-style :where(span, strong, small, button, input, select) {
  font-weight: inherit !important;
}

.column-entry-font-menu {
  min-width: 224px;
  gap: 8px;
  padding: 8px;
}

.column-entry-font-head {
  display: grid;
  grid-template-columns: var(--context-menu-icon-size) minmax(0, 1fr) 24px;
  gap: 2px 8px;
  align-items: center;
  padding: 4px 6px 2px;
  color: var(--text);
}

.column-entry-font-head > span {
  display: block;
  width: var(--context-menu-icon-size);
  height: var(--context-menu-icon-size);
  background: currentColor;
}

.column-entry-font-head > strong {
  min-width: 0;
  font-size: var(--context-menu-font-size);
}

.column-entry-font-head > small {
  grid-column: 2;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.column-entry-font-drag {
  grid-column: 3;
  grid-row: 1 / span 2;
  justify-content: center;
  width: 24px;
  min-height: 24px;
  padding: 0;
  border: 1px solid rgba(76, 109, 150, 0.5);
  border-radius: 8px;
  color: #9ff7ec;
  cursor: grab;
  touch-action: none;
}

.column-entry-font-drag > span {
  display: block;
  width: 14px;
  height: 14px;
  background: currentColor;
  mask: url("../assets/icons/nucleo-core-svg/fill/touch gestures/24px_drag-move.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/touch gestures/24px_drag-move.svg") center / contain no-repeat;
}

.column-entry-font-menu.is-dragging,
.column-entry-font-menu.is-dragging .column-entry-font-drag {
  cursor: grabbing;
}

.column-entry-font-section {
  display: grid;
  gap: 6px;
  padding: 7px;
  border: 1px solid rgba(76, 109, 150, 0.42);
  border-radius: 10px;
  background: rgba(13, 28, 43, 0.68);
}

.column-entry-font-section > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.column-entry-font-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.column-entry-font-options button {
  justify-content: center;
  min-height: 28px;
  border: 1px solid rgba(76, 109, 150, 0.52);
  border-radius: 8px;
  background: rgba(26, 42, 64, 0.72);
  font-size: 11px;
  text-align: center;
}

.column-entry-font-options button.is-active {
  border-color: rgba(45, 212, 191, 0.85);
  background: rgba(20, 184, 166, 0.22);
  color: #8ff7e8;
}

.column-entry-font-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 2px;
}

.column-entry-font-actions button {
  justify-content: center;
  min-height: 30px;
  border-radius: 8px;
}

.column-entry-font-menu .column-entry-font-reset {
  border: 1px solid rgba(255, 111, 125, 0.45);
  background: rgba(255, 111, 125, 0.12);
  color: #ffb8c1;
}

.column-entry-font-menu .column-entry-font-reset > span {
  mask: url("../assets/icons/nucleo-core-svg/fill/arrows/24px_refresh.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/arrows/24px_refresh.svg") center / contain no-repeat;
}

.column-entry-font-menu .column-entry-font-reset:hover,
.column-entry-font-menu .column-entry-font-reset:focus-visible {
  border-color: rgba(255, 111, 125, 0.68);
  background: rgba(255, 111, 125, 0.2);
  color: #ffd3d8;
}

.column-entry-font-menu .column-entry-font-save {
  border: 1px solid rgba(45, 212, 191, 0.54);
  background: rgba(20, 184, 166, 0.2);
  color: #95fff1;
}

.column-entry-font-menu .column-entry-font-save > span {
  mask: url("../assets/icons/nucleo-core-svg/fill/files-folders/24px_floppy-disk.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/files-folders/24px_floppy-disk.svg") center / contain no-repeat;
}

.column-entry-font-menu .column-entry-font-save:hover,
.column-entry-font-menu .column-entry-font-save:focus-visible {
  border-color: rgba(45, 212, 191, 0.78);
  background: rgba(20, 184, 166, 0.3);
  color: #c7fff8;
}

.watchlist-context-menu [data-watchlist-context-action="edit"] > span {
  mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_input-password-edit.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_input-password-edit.svg") center / contain no-repeat;
}

.watchlist-context-menu [data-watchlist-context-action="icon"] > span {
  mask: url("../assets/icons/nucleo-core-svg/fill/photography-video/24px_image.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/photography-video/24px_image.svg") center / contain no-repeat;
}

.watchlist-context-menu [data-watchlist-context-action="delete"] > span {
  mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_trash.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_trash.svg") center / contain no-repeat;
}

.watchlist-context-menu [data-watchlist-context-action="delete"],
.isa-input-context-menu [data-isa-input-context-action="delete"],
.price-schedule-context-menu [data-price-schedule-context-action="delete"],
.company-icon-context-menu [data-company-icon-context-action="delete"] {
  color: #ff9aaa;
}

.isa-input-context-menu [data-isa-input-context-action="delete"] > span {
  mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_trash.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_trash.svg") center / contain no-repeat;
}

.price-schedule-context-menu [data-price-schedule-context-action="edit"] > span,
.dividend-history-payment-context-menu [data-dividend-history-payment-context-action="edit"] > span {
  mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_input-password-edit.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_input-password-edit.svg") center / contain no-repeat;
}

.price-schedule-context-menu [data-price-schedule-context-action="delete"] > span {
  mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_trash.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_trash.svg") center / contain no-repeat;
}

.watchlist-context-menu [data-watchlist-context-action="delete"]:hover,
.watchlist-context-menu [data-watchlist-context-action="delete"]:focus-visible,
.isa-input-context-menu [data-isa-input-context-action="delete"]:hover,
.isa-input-context-menu [data-isa-input-context-action="delete"]:focus-visible,
.price-schedule-context-menu [data-price-schedule-context-action="delete"]:hover,
.price-schedule-context-menu [data-price-schedule-context-action="delete"]:focus-visible {
  background: rgba(255, 111, 125, 0.16);
  color: #ffc4ca;
}

.company-icon-reallocate-menu {
  position: fixed;
  z-index: 3001;
  display: grid;
  width: min(390px, calc(100vw - 20px));
  max-height: min(430px, calc(100vh - 20px));
  overflow: hidden;
  padding: 7px;
  border: 1px solid rgba(76, 109, 150, 0.72);
  border-radius: 14px;
  background: rgba(17, 24, 32, 0.98);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.company-icon-reallocate-menu[hidden] {
  display: none;
}

.company-icon-reallocate-head {
  display: grid;
  gap: 3px;
  padding: 5px 7px 8px;
  border-bottom: 1px solid rgba(76, 109, 150, 0.42);
}

.company-icon-reallocate-head strong {
  color: #e8edf5;
  font-size: 12px;
  line-height: 1.1;
}

.company-icon-reallocate-head span {
  overflow: hidden;
  color: #95a1b4;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-icon-reallocate-search {
  display: grid;
  gap: 5px;
  padding: 8px 5px 6px;
}

.company-icon-reallocate-search span {
  color: #95a1b4;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.company-icon-reallocate-search input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(51, 71, 97, 0.92);
  border-radius: 10px;
  background: #101826;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: var(--calendar-font-weight);
  outline: none;
}

.company-icon-reallocate-search input:focus {
  border-color: rgba(88, 113, 148, 0.82);
  box-shadow: 0 0 0 2px rgba(88, 113, 148, 0.12);
}

.company-icon-reallocate-list {
  display: grid;
  min-height: 0;
  max-height: 280px;
  overflow: auto;
}

.company-icon-reallocate-empty {
  padding: 8px 9px 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--calendar-font-weight);
}

.company-icon-reallocate-option:disabled {
  color: rgba(160, 173, 194, 0.54);
  cursor: not-allowed;
}

.company-icon-reallocate-option:disabled:hover {
  background: transparent;
}

.nav-icon.is-custom svg {
  display: none;
}

.nav-icon.is-custom::before {
  display: block;
  width: var(--nucleo-ui-icon-size, 18px);
  height: var(--nucleo-ui-icon-size, 18px);
  background: currentColor;
  content: "";
  mask: var(--sidebar-custom-icon) center / contain no-repeat;
  -webkit-mask: var(--sidebar-custom-icon) center / contain no-repeat;
}

.sidebar-footer {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: auto;
  min-height: 238px;
  padding: 18px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-footer .nav-section {
  margin-top: 0;
  min-height: 30px;
  padding: 0 16px;
}

.sidebar-footer .sidebar-customization-heading {
  min-height: 40px;
  padding: 0 18px;
  gap: 12px;
  color: var(--muted);
  font-size: var(--ui-font-size);
  font-weight: var(--ui-font-weight);
  letter-spacing: 0;
}

.sidebar-footer .sidebar-customization-heading .nav-section-chevron {
  margin-left: auto;
}

.sidebar-footer .sidebar-customization-heading .nav-label {
  flex: 1 1 auto;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
}

.sidebar-footer .sidebar-customization-heading:hover,
.sidebar-footer .sidebar-customization-heading:focus-visible {
  color: #e8edf5;
  outline: none;
}

.sidebar-footer-items {
  display: grid;
  gap: 2px;
}

.sidebar-footer-items[hidden] {
  display: none;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  text-align: left;
  font-size: var(--ui-font-size);
  font-family: inherit;
  font-weight: var(--ui-font-weight);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: #e8edf5;
  outline: none;
}

.footer-link-compact {
  width: 100%;
  min-height: 28px;
  gap: 8px;
  padding: 0 16px;
  font-size: calc(var(--ui-font-size) - 2px);
}

.footer-link-compact .nav-icon {
  width: var(--nucleo-footer-icon-size, 17px);
  height: var(--nucleo-footer-icon-size, 17px);
  flex-basis: var(--nucleo-footer-icon-size, 17px);
}

.footer-link-compact .nav-icon svg {
  width: var(--nucleo-footer-icon-glyph-size, 14px);
  height: var(--nucleo-footer-icon-glyph-size, 14px);
}

.footer-link-compact .nav-icon.is-custom::before {
  width: var(--nucleo-footer-icon-glyph-size, 14px);
  height: var(--nucleo-footer-icon-glyph-size, 14px);
}

.sidebar-library-button {
  width: 100%;
}

.sidebar-library-button small {
  display: none;
  margin-left: auto;
  color: #77849a;
  font-size: calc(var(--ui-font-size) - 3.5px);
  font-weight: var(--ui-font-weight);
  white-space: nowrap;
}

.content {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 20px;
  padding: 16px;
  overflow: auto;
  background: var(--app-bg);
  font-family: var(--calendar-font);
  font-size: var(--calendar-font-size);
  font-weight: var(--calendar-font-weight);
}

.window-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.window-status::after {
  content: "";
  order: 1;
  width: 0;
  height: 30px;
  flex: 0 0 auto;
  margin: 0 12px;
  border-left: 1px solid var(--line);
  background: transparent;
}

.live-clock {
  order: 2;
  display: grid;
  justify-items: center;
  flex: 0 0 auto;
  min-width: 0;
  color: #c5cfdd;
  text-align: center;
}

.window-nav-controls {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-right: 2px;
}

.window-nav-controls button {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(142, 231, 217, 0.18);
  border-radius: 8px;
  background: rgba(18, 27, 41, 0.44);
  color: #9fb0c6;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.window-nav-controls button::before {
  display: block;
  width: 11px;
  height: 11px;
  background: currentColor;
  content: "";
  mask: url("../assets/icons/nucleo-core-svg/fill/arrows/24px_chevron-left.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/arrows/24px_chevron-left.svg") center / contain no-repeat;
}

.window-nav-controls [data-top-nav="forward"]::before {
  mask-image: url("../assets/icons/nucleo-core-svg/fill/arrows/24px_chevron-right.svg");
  -webkit-mask-image: url("../assets/icons/nucleo-core-svg/fill/arrows/24px_chevron-right.svg");
}

.window-nav-controls [data-top-nav="refresh"]::before {
  mask-image: url("../assets/icons/nucleo-core-svg/outline/arrows/24px_refresh.svg");
  -webkit-mask-image: url("../assets/icons/nucleo-core-svg/outline/arrows/24px_refresh.svg");
}

.window-nav-controls [data-top-nav="refresh"].is-syncing::before {
  animation: top-refresh-spin 780ms linear infinite;
}

@keyframes top-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

.app-toast {
  position: fixed;
  top: 70px;
  left: 50%;
  z-index: 1500;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 16px;
  border: 1px solid rgba(91, 177, 178, 0.46);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(18, 36, 54, 0.98), rgba(23, 77, 77, 0.92));
  color: #d9f5de;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(91, 177, 178, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.app-toast[hidden] {
  display: none;
}

.app-toast::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #5bb1b2;
  box-shadow: 0 0 0 4px rgba(91, 177, 178, 0.14);
  content: "";
}

.app-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.window-nav-controls button:hover,
.window-nav-controls button:focus-visible {
  border-color: rgba(45, 212, 191, 0.54);
  background: rgba(20, 184, 166, 0.13);
  color: #8ee7d9;
  outline: none;
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.09);
}

.live-clock-main {
  display: inline-grid;
  align-items: center;
  justify-content: center;
  justify-items: center;
  gap: 3px;
  min-width: max-content;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.clock-mode-menu {
  position: fixed;
  z-index: 6000;
  min-width: 98px;
  padding: 4px;
  border: 1px solid rgba(68, 91, 126, 0.78);
  border-radius: 10px;
  background: #111b2c;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

.clock-mode-menu button {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 26px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #dbe7f6;
  font: inherit;
  font-size: var(--context-menu-font-size);
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.clock-mode-menu button:hover,
.clock-mode-menu button.is-selected {
  background: rgba(20, 74, 79, 0.82);
  color: #8af7e5;
}

.clock-mode-check {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border: 1px solid rgba(142, 231, 217, 0.46);
  border-radius: 999px;
  background: rgba(5, 13, 23, 0.42);
}

.clock-mode-menu button[aria-checked="true"] .clock-mode-check {
  border-color: rgba(25, 201, 185, 0.92);
  background: rgba(25, 201, 185, 0.24);
}

.clock-mode-menu button[aria-checked="true"] .clock-mode-check::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #8ff2e5;
}

.live-date-time {
  order: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #c5cfdd;
  font-size: var(--ui-font-size);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: default;
}

.live-time-zone {
  order: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: max-content;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: calc(var(--ui-font-size) - 3px);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.live-time-zone img {
  display: block;
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  flex: 0 0 14px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.market-countdown {
  order: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 4px;
  width: min(640px, 52vw);
  flex: 0 1 min(640px, 52vw);
  min-width: 0;
  max-width: min(640px, 52vw);
  padding: 4px 7px;
  border: 1px solid rgba(51, 71, 97, 0.62);
  border-radius: 999px;
  background: rgba(14, 24, 38, 0.36);
  color: var(--muted);
  font-size: calc(var(--ui-font-size) - 2.5px);
  font-weight: 700;
  line-height: 1;
  overflow: hidden;
}

.market-countdown-tape-track {
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
  gap: 0;
}

.market-countdown-tape-group {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.market-countdown-tape-group[aria-hidden="true"] {
  display: none;
}

.market-countdown:not(.is-ticker-tape) .market-countdown-tape-track {
  justify-content: flex-end;
}

.market-countdown-tape-group > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 20px;
  padding: 2px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  white-space: nowrap;
}

.market-countdown.is-ticker-tape {
  justify-content: flex-start;
}

.market-countdown.is-ticker-tape .market-countdown-tape-track {
  width: 100%;
  min-width: 0;
  animation: none;
  will-change: auto;
}

.market-countdown.is-ticker-tape .market-countdown-tape-group {
  flex: 0 0 auto;
  min-width: 0;
}

.market-countdown.is-ticker-tape:not(.has-running-ticker) .market-countdown-tape-group {
  width: 100%;
  justify-content: flex-end;
}

.market-countdown.is-ticker-tape .market-countdown-tape-group[aria-hidden="true"] {
  display: flex;
}

.market-countdown.is-ticker-tape.has-running-ticker .market-countdown-tape-track {
  width: max-content;
  min-width: max-content;
  gap: var(--market-countdown-tape-gap, 12px);
  animation: marketTickerTape var(--market-countdown-scroll-duration, 34s) linear infinite;
  will-change: transform;
}

.market-countdown.is-ticker-tape.has-running-ticker .market-countdown-tape-group {
  min-width: max-content;
}

.market-countdown.is-ticker-tape:hover .market-countdown-tape-track,
.market-countdown.is-ticker-tape:focus-within .market-countdown-tape-track {
  animation-play-state: paused;
}

@keyframes marketTickerTape {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(var(--market-countdown-scroll-distance, -48px), 0, 0); }
}

.market-countdown span.is-open {
  color: #99f6e4;
  background: rgba(20, 184, 166, 0.14);
}

.market-countdown img {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  flex: 0 0 auto;
  object-fit: cover;
}

.market-countdown b {
  margin-left: 4px;
  color: #e8edf5;
  font-weight: 800;
}

.market-countdown .countdown-unit {
  margin-left: 0.18em;
  color: #9aabc0;
  font-size: 0.88em;
  font-weight: 800;
  letter-spacing: 0;
}

.market-state-label {
  color: #91a2b7;
}

.page-head {
  position: sticky;
  top: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 0 4px 10px;
  border-bottom: 1px solid rgba(43, 58, 80, 0.5);
  background: #111820;
  isolation: isolate;
}

.page-head::before {
  position: absolute;
  inset: -20px -4px 0;
  z-index: -1;
  background: #111820;
  content: "";
}

.page-head > div:first-child {
  min-width: 0;
  flex: 0 0 auto;
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: calc(var(--calendar-font-size) + 11px);
  font-weight: var(--calendar-font-weight);
  line-height: 1;
  letter-spacing: 0;
}

.page-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-title-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(142, 231, 217, 0.28);
  border-radius: 10px;
  background: rgba(20, 184, 166, 0.1);
  color: #8ee7d9;
}

.page-title-icon svg {
  width: var(--nucleo-page-title-icon-size, 18px);
  height: var(--nucleo-page-title-icon-size, 18px);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.85;
}

.page-title-icon.is-custom svg,
.page-title-icon.page-title-icon-price-schedule svg {
  display: none;
}

.page-title-icon.is-custom::before,
.page-title-icon.page-title-icon-price-schedule::before {
  display: block;
  width: var(--nucleo-page-title-icon-size, 18px);
  height: var(--nucleo-page-title-icon-size, 18px);
  background: currentColor;
  content: "";
}

.page-title-icon.is-custom::before {
  mask: var(--page-title-custom-icon) center / contain no-repeat;
  -webkit-mask: var(--page-title-custom-icon) center / contain no-repeat;
}

.page-title-icon.page-title-icon-price-schedule::before {
  mask: var(--nucleo-price-schedule-icon) center / contain no-repeat;
  -webkit-mask: var(--nucleo-price-schedule-icon) center / contain no-repeat;
}

.subtitle {
  color: var(--muted);
  font-size: var(--calendar-small-font-size);
}

.page-shortcuts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  min-width: 0;
  margin-left: auto;
  padding: 3px;
  overflow-x: auto;
  border: 1px solid rgba(142, 231, 217, 0.22);
  border-radius: 999px;
  background: rgba(12, 25, 39, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
  scrollbar-width: none;
}

.page-shortcuts::-webkit-scrollbar {
  display: none;
}

.page-shortcuts[hidden] {
  display: none;
}

.page-shortcut-button {
  min-height: 26px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  appearance: none;
  background: transparent;
  color: #9fb0c6;
  font: inherit;
  font-size: var(--calendar-small-font-size);
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
}

.page-shortcut-button:hover,
.page-shortcut-button:focus-visible {
  border-color: rgba(142, 231, 217, 0.35);
  color: #e8edf5;
  outline: none;
}

.page-shortcut-button.is-active {
  border-color: rgba(9, 164, 151, 0.55);
  background: rgba(9, 164, 151, 0.18);
  color: #8ee7d9;
}

.page-shortcut-button.current-position-filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 76px;
  min-height: 24px;
  padding-inline: 9px;
}

.page-shortcut-button.current-position-filter-button[data-holding-type="non-core"].is-active {
  border-color: rgba(255, 200, 87, 0.42);
  background: rgba(255, 200, 87, 0.12);
  color: #ffd98b;
}

.current-position-filter-icon {
  display: block;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  background: currentColor;
}

.current-position-filter-button[data-holding-type="all"] .current-position-filter-icon {
  mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_grid-layout-8.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_grid-layout-8.svg") center / contain no-repeat;
}

.current-position-filter-button[data-holding-type="core"] .current-position-filter-icon {
  mask: url("../assets/icons/nucleo-core-svg/fill/holidays/24px_star.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/holidays/24px_star.svg") center / contain no-repeat;
}

.current-position-filter-button[data-holding-type="non-core"] .current-position-filter-icon {
  mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_circle-half-dashed-check.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_circle-half-dashed-check.svg") center / contain no-repeat;
}

.current-position-filter-button[data-holding-type="historic"] .current-position-filter-icon {
  mask: url("../assets/icons/nucleo-core-svg/fill/arrows/24px_history.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/arrows/24px_history.svg") center / contain no-repeat;
}

.calendar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.segmented,
.arrow-button,
.primary-button {
  border: 1px solid #334761;
  background: #172235;
  color: var(--text);
}

.segmented {
  display: flex;
  border-radius: 9px;
  overflow: hidden;
}

.segmented button,
.arrow-button,
.primary-button {
  min-height: 36px;
  appearance: none;
  cursor: pointer;
  font-size: var(--ui-font-size);
  font-weight: var(--ui-font-weight);
}

.segmented button {
  border: 0;
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
}

.segmented button.active {
  background: var(--teal);
  color: white;
}

.arrow-button {
  width: 36px;
  border-radius: 9px;
}

.primary-button {
  padding: 0 14px;
  border-radius: 9px;
  background: linear-gradient(135deg, #257eff, #15a794);
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 16px;
  min-height: 0;
}

body[data-active-view="calendar"] .main-grid {
  grid-template-columns: minmax(0, 1fr);
}

body[data-active-view="calendar"] .page-head .calendar-controls,
body[data-active-view="calendar"] .right-column {
  display: none;
}

body[data-active-view="calendar"] .watchlist-card,
body[data-active-view="calendar"] .price-schedule-card,
body[data-active-view="calendar"] .dividend-history-card,
body[data-active-view="calendar"] .isa-card {
  display: none;
}

body[data-active-view="watchlist"] .calendar-controls,
body[data-active-view="watchlist"] .stat-strip,
body[data-active-view="watchlist"] .upcoming-payments-card,
body[data-active-view="watchlist"] .monthly-summary-card,
body[data-active-view="watchlist"] .calendar-card,
body[data-active-view="watchlist"] .right-column,
body[data-active-view="watchlist"] .price-schedule-card,
body[data-active-view="watchlist"] .dividend-history-card,
body[data-active-view="watchlist"] .isa-card,
body[data-active-view="holdings-summary"] .calendar-controls,
body[data-active-view="holdings-summary"] .stat-strip,
body[data-active-view="holdings-summary"] .upcoming-payments-card,
body[data-active-view="holdings-summary"] .monthly-summary-card,
body[data-active-view="holdings-summary"] .calendar-card,
body[data-active-view="holdings-summary"] .right-column,
body[data-active-view="holdings-summary"] .isa-card,
body[data-active-view="price-schedule"] .calendar-controls,
body[data-active-view="price-schedule"] .stat-strip,
body[data-active-view="price-schedule"] .upcoming-payments-card,
body[data-active-view="price-schedule"] .monthly-summary-card,
body[data-active-view="price-schedule"] .calendar-card,
body[data-active-view="price-schedule"] .right-column,
body[data-active-view="price-schedule"] .isa-card,
body[data-active-view="dividend-history"] .calendar-controls,
body[data-active-view="dividend-history"] .stat-strip,
body[data-active-view="dividend-history"] .upcoming-payments-card,
body[data-active-view="dividend-history"] .monthly-summary-card,
body[data-active-view="dividend-history"] .calendar-card,
body[data-active-view="dividend-history"] .right-column,
body[data-active-view="dividend-history"] .price-schedule-card,
body[data-active-view="dividend-history"] .isa-card,
body[data-active-view="isa-dashboard"] .calendar-controls,
body[data-active-view="isa-dashboard"] .stat-strip,
body[data-active-view="isa-dashboard"] .upcoming-payments-card,
body[data-active-view="isa-dashboard"] .monthly-summary-card,
body[data-active-view="isa-dashboard"] .calendar-card,
body[data-active-view="isa-dashboard"] .right-column,
body[data-active-view="isa-dashboard"] .watchlist-card,
body[data-active-view="isa-dashboard"] .price-schedule-card,
body[data-active-view="isa-dashboard"] .dividend-history-card,
body[data-active-view="isa-dashboard"] #isaInput,
body[data-active-view="isa-input"] .calendar-controls,
body[data-active-view="isa-input"] .stat-strip,
body[data-active-view="isa-input"] .upcoming-payments-card,
body[data-active-view="isa-input"] .monthly-summary-card,
body[data-active-view="isa-input"] .calendar-card,
body[data-active-view="isa-input"] .right-column,
body[data-active-view="isa-input"] .watchlist-card,
body[data-active-view="isa-input"] .price-schedule-card,
body[data-active-view="isa-input"] .dividend-history-card,
body[data-active-view="isa-input"] #isaDashboard {
  display: none;
}

body[data-active-view="regular-investment"] .calendar-controls,
body[data-active-view="regular-investment"] .stat-strip,
body[data-active-view="regular-investment"] .upcoming-payments-card,
body[data-active-view="regular-investment"] .monthly-summary-card,
body[data-active-view="regular-investment"] .calendar-card,
body[data-active-view="regular-investment"] .right-column,
body[data-active-view="regular-investment"] .watchlist-card,
body[data-active-view="regular-investment"] .price-schedule-card,
body[data-active-view="regular-investment"] .dividend-history-card,
body[data-active-view="regular-investment"] .isa-card,
body:not([data-active-view="regular-investment"]) .regular-investment-card {
  display: none;
}

body[data-active-view="watchlist"] .main-grid,
body[data-active-view="holdings-summary"] .main-grid,
body[data-active-view="price-schedule"] .main-grid,
body[data-active-view="dividend-history"] .main-grid,
body[data-active-view="isa-dashboard"] .main-grid,
body[data-active-view="isa-input"] .main-grid,
body[data-active-view="regular-investment"] .main-grid {
  grid-template-columns: minmax(0, 1fr);
}

body[data-active-view="watchlist"] .watchlist-card,
body[data-active-view="holdings-summary"] .price-schedule-card,
body[data-active-view="price-schedule"] .price-schedule-card,
body[data-active-view="dividend-history"] .dividend-history-card,
body[data-active-view="isa-dashboard"] #isaDashboard,
body[data-active-view="isa-input"] #isaInput,
body[data-active-view="regular-investment"] .regular-investment-card {
  margin-top: 0;
}

@media (min-width: 1100px) {
  body[data-active-view="holdings-summary"] .main-grid > div,
  body[data-active-view="price-schedule"] .main-grid > div,
  body[data-active-view="dividend-history"] .main-grid > div,
  body[data-active-view="regular-investment"] .main-grid > div {
    width: 100%;
    justify-self: stretch;
  }
}

body[data-active-view="holdings-summary"] .watchlist-card,
body[data-active-view="price-schedule"] .watchlist-card,
body[data-active-view="dividend-history"] .watchlist-card,
body[data-active-view="holdings-summary"] .dividend-history-card,
body[data-active-view="price-schedule"] .dividend-history-card,
body:not([data-active-view="isa-dashboard"]) #isaDashboard,
body:not([data-active-view="isa-input"]) #isaInput {
  display: none;
}

body[data-active-view="holdings-summary"] .price-schedule-detail,
body[data-active-view="holdings-summary"] .price-schedule-detail-control,
body[data-active-view="holdings-summary"] .price-detail-title-box,
body[data-active-view="price-schedule"] .price-detail-title-box,
body[data-active-view="price-schedule"] .holdings-summary-only,
body[data-active-view="price-schedule"] .holdings-summary-title-box {
  display: none;
}

body[data-active-view="holdings-summary"] .price-schedule-head {
  display: none;
}

.calendar-card,
.monthly-summary-card,
.watchlist-card,
.isa-card,
.price-schedule-card,
.dividend-history-card,
.regular-investment-card,
.side-card,
.stat-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  padding: 16px;
}

.book-cost-stat-card {
  display: grid;
  align-content: start;
  min-height: 128px;
  overflow: hidden;
}

.stat-card span {
  display: block;
  color: var(--faint);
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-font-weight);
  letter-spacing: 0;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: calc(var(--calendar-font-size) + 9.5px);
  font-weight: var(--calendar-font-weight);
}

.book-cost-sparkline {
  width: 100%;
  height: 66px;
  margin-top: 4px;
  overflow: visible;
}

.book-cost-sparkline-axis {
  stroke: rgba(142, 231, 217, 0.22);
  stroke-width: 1;
}

.book-cost-sparkline-year-tick {
  stroke: rgba(142, 231, 217, 0.34);
  stroke-linecap: round;
  stroke-width: 1;
}

.book-cost-sparkline-year {
  fill: rgba(197, 207, 221, 0.78);
  font-size: 10px;
  font-weight: 700;
}

.book-cost-sparkline-area {
  fill: rgba(20, 184, 166, 0.14);
}

.book-cost-sparkline-line {
  fill: none;
  stroke: #2dd4bf;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.book-cost-sparkline-dot {
  fill: #8af7e5;
  stroke: #0f1724;
  stroke-width: 1.4;
}

.dividend-total-card {
  display: grid;
  align-content: center;
  gap: 10px;
}

.dividend-total-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dividend-total-split > div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(51, 71, 97, 0.58);
  border-radius: 10px;
  background: rgba(18, 31, 48, 0.42);
}

.dividend-total-split small {
  display: block;
  overflow: hidden;
  color: var(--faint);
  font-size: calc(var(--calendar-label-font-size) - 1px);
  font-weight: var(--calendar-font-weight);
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dividend-total-split strong {
  margin-top: 5px;
  overflow: hidden;
  font-size: calc(var(--calendar-font-size) + 5px);
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monthly-summary-card {
  margin-bottom: 16px;
  overflow: hidden;
}

.summary-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
}

.summary-head h2 {
  margin: 0;
  color: var(--text);
  font-size: calc(var(--calendar-font-size) + 4.5px);
  font-weight: var(--calendar-font-weight);
  line-height: 1.1;
}

.summary-head > span {
  color: var(--muted);
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-font-weight);
}

.summary-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.summary-currency-mode {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px;
  border: 1px solid rgba(142, 231, 217, 0.22);
  border-radius: 999px;
  background: rgba(10, 21, 34, 0.62);
}

.summary-currency-mode button {
  min-height: 22px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #9fb0c6;
  cursor: pointer;
  font: inherit;
  font-size: calc(var(--calendar-label-font-size) - 0.5px);
  font-weight: var(--calendar-font-weight);
  line-height: 1;
  white-space: nowrap;
}

.summary-currency-mode button:hover,
.summary-currency-mode button:focus-visible {
  color: #dffcf7;
  outline: none;
}

.summary-currency-mode button.is-active {
  background: rgba(20, 184, 166, 0.18);
  color: #8ee7d9;
}

.equal-stock-widths-button,
.calendar-stock-selector-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(142, 231, 217, 0.26);
  border-radius: 999px;
  background: rgba(19, 38, 57, 0.72);
  color: #8ee7d9;
  font: inherit;
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-font-weight);
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.equal-stock-widths-button:hover,
.equal-stock-widths-button:focus-visible,
.calendar-stock-selector-button:hover,
.calendar-stock-selector-button:focus-visible,
.calendar-stock-selector-button.is-open {
  border-color: rgba(142, 231, 217, 0.58);
  background: rgba(20, 184, 166, 0.16);
  color: #dffcf7;
  outline: none;
}

.equal-stock-widths-icon,
.calendar-stock-selector-icon {
  display: inline-block;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  background: currentColor;
}

.equal-stock-widths-icon {
  mask: url("../assets/icons/nucleo-core-svg/outline/arrows/24px_resize-x-2.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/outline/arrows/24px_resize-x-2.svg") center / contain no-repeat;
}

.calendar-stock-selector-icon {
  mask: url("../assets/icons/nucleo-core-svg/outline/ui-layout/24px_list-checkbox-2.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/outline/ui-layout/24px_list-checkbox-2.svg") center / contain no-repeat;
}

.calendar-stock-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 14px;
  z-index: 30;
  width: min(330px, calc(100vw - 40px));
  padding: 8px;
  border: 1px solid rgba(62, 91, 129, 0.9);
  border-radius: 16px;
  background: #162235;
  box-shadow: 0 20px 60px rgba(1, 7, 14, 0.45);
}

.calendar-stock-popover[hidden] {
  display: none;
}

.calendar-stock-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 1px 2px 7px;
}

.calendar-stock-popover-head strong {
  color: var(--text);
  font-size: var(--calendar-font-size);
  font-weight: var(--calendar-font-weight);
}

.calendar-stock-popover-head button {
  display: inline-grid;
  width: 24px;
  height: 24px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(142, 231, 217, 0.2);
  border-radius: 999px;
  background: rgba(12, 27, 42, 0.78);
  color: #9fb0c7;
  cursor: pointer;
}

.calendar-stock-popover-head button:hover,
.calendar-stock-popover-head button:focus-visible {
  border-color: rgba(142, 231, 217, 0.48);
  color: #dffcf7;
  outline: none;
}

.calendar-stock-list {
  display: grid;
  gap: 4px;
  max-height: 320px;
  overflow: auto;
  padding-right: 2px;
}

.calendar-stock-option {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  padding: 5px 7px;
  border: 1px solid rgba(62, 91, 129, 0.55);
  border-radius: 10px;
  background: #172337;
  color: var(--text);
  font: inherit;
  font-size: calc(var(--calendar-label-font-size) - 1px);
  font-weight: var(--calendar-font-weight);
  line-height: 1.1;
  text-align: left;
  cursor: pointer;
}

.calendar-stock-option:hover,
.calendar-stock-option:focus-visible,
.calendar-stock-option.is-selected {
  border-color: rgba(142, 231, 217, 0.52);
  background: rgba(20, 184, 166, 0.14);
  outline: none;
}

.calendar-stock-option-logo {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 11px;
  background: transparent;
  overflow: hidden;
}

.calendar-stock-option-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.calendar-stock-option-logo.is-placeholder::before {
  display: block;
  width: 15px;
  height: 15px;
  background: #9fe7dc;
  content: "";
  mask: url("../assets/icons/nucleo-core-svg/fill/design-development/24px_button-2.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/design-development/24px_button-2.svg") center / contain no-repeat;
}

.calendar-stock-option-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.calendar-stock-option-copy strong,
.calendar-stock-option-copy span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-stock-option-copy span {
  color: #9fb0c7;
  font-size: calc(var(--calendar-label-font-size) - 2px);
}

.calendar-stock-option-check {
  position: relative;
  display: inline-grid;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(149, 161, 180, 0.44);
  border-radius: 999px;
  background: rgba(15, 24, 38, 0.28);
  color: transparent;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.calendar-stock-option.is-selected .calendar-stock-option-check {
  border-color: var(--teal);
  background: var(--teal);
  color: #0f1826;
}

.calendar-stock-option.is-selected .calendar-stock-option-check::before {
  content: "✓";
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.calendar-stock-option-empty {
  display: block;
  padding: 10px;
  color: var(--muted);
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-font-weight);
}

.summary-table-wrap {
  position: relative;
  overflow: auto;
}

.summary-table {
  width: max-content;
  min-width: calc(var(--summary-month-width) + var(--summary-holding-width) + var(--summary-add-width) + var(--summary-total-width));
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(24, 118, 151, 0.5);
  border-radius: 8px;
  table-layout: fixed;
  font-family: var(--calendar-font);
  font-size: var(--calendar-font-size);
  font-weight: var(--calendar-font-weight);
}

.summary-month-col {
  width: var(--summary-month-width);
}

.summary-holding-col {
  width: var(--summary-holding-width);
}

.summary-add-col {
  width: var(--summary-add-width);
}

.summary-total-col {
  width: var(--summary-total-width);
}

.summary-table th {
  position: relative;
  height: 94px;
  padding: 0;
  border-right: 1px solid rgba(20, 132, 163, 0.46);
  border-bottom: 1px solid rgba(20, 132, 163, 0.48);
  background: var(--summary-header-bg);
  color: var(--table-header-text);
  font-size: calc(var(--calendar-font-size) + 0.5px);
  font-weight: var(--calendar-font-weight);
  text-align: center;
  vertical-align: middle;
}

.summary-table th:first-child {
  background: var(--summary-header-bg);
}

.summary-table th:first-child,
.summary-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 5;
  box-shadow: 1px 0 0 rgba(142, 231, 217, 0.18), 10px 0 18px rgba(3, 8, 17, 0.2);
}

.summary-table th:first-child {
  z-index: 8;
}

.summary-table th.holding-column {
  padding: 0;
  background: var(--summary-header-bg);
}

.summary-total-head {
  background: var(--summary-header-bg) !important;
}

.stock-order-controls {
  position: absolute;
  top: 4px;
  right: 6px;
  z-index: 3;
  display: flex;
  gap: 4px;
  opacity: 0.38;
  transition: opacity 140ms ease;
}

.summary-table th:hover .stock-order-controls,
.summary-table th:focus-within .stock-order-controls {
  opacity: 0.78;
}

.stock-order-handle {
  display: inline-grid;
  width: 17px;
  height: 17px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(142, 231, 217, 0.16);
  border-radius: 999px;
  background: rgba(11, 21, 32, 0.24);
  color: rgba(174, 245, 231, 0.72);
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: background 140ms ease, border-color 140ms ease, opacity 140ms ease;
}

.stock-order-handle::before {
  display: block;
  width: 11px;
  height: 11px;
  background: currentColor;
  content: "";
  mask: url("../assets/icons/nucleo-core-svg/outline/arrows/24px_arrows-all-directions.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/outline/arrows/24px_arrows-all-directions.svg") center / contain no-repeat;
}

.stock-order-handle:hover,
.stock-order-handle:focus-visible,
.stock-order-handle.is-dragging {
  border-color: rgba(142, 231, 217, 0.42);
  background: rgba(20, 184, 166, 0.14);
  color: rgba(174, 245, 231, 0.92);
  outline: none;
}

.stock-order-handle.is-dragging {
  cursor: grabbing;
}

.stock-order-handle:disabled {
  cursor: default;
  opacity: 0.28;
}

body.is-dragging-stock-column {
  cursor: grabbing;
  user-select: none;
}

.summary-table th.is-dragging-column {
  box-shadow: inset 0 0 0 1px rgba(142, 231, 217, 0.58), 0 0 26px rgba(9, 164, 151, 0.18);
}

.column-resizer {
  position: absolute;
  top: 0;
  right: -4px;
  z-index: 4;
  width: 8px;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: col-resize;
  touch-action: none;
}

.column-resizer::after {
  position: absolute;
  top: 10px;
  right: 3px;
  bottom: 10px;
  width: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  content: "";
  opacity: 0;
  transition: opacity 140ms ease, background 140ms ease;
}

.column-resizer:hover::after,
.column-resizer:focus-visible::after,
.column-resizer.is-active::after {
  background: rgba(149, 161, 180, 0.56);
  opacity: 1;
}

.summary-table th:last-child .column-resizer {
  right: 0;
}

body.is-resizing-columns {
  cursor: col-resize;
  user-select: none;
}

.summary-table th strong,
.summary-table th span {
  display: block;
}

.summary-table th strong {
  font-size: calc(var(--calendar-font-size) + 1.5px);
  line-height: 1.1;
}

.summary-table th span {
  margin-top: 2px;
  color: #c8d6e6;
  font-size: calc(var(--calendar-font-size) - 1.5px);
  letter-spacing: 0;
}

.holding-head {
  display: grid;
  grid-template-rows: 40px 16px;
  align-items: center;
  justify-items: center;
  align-content: center;
  gap: 2px;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 7px 8px 6px;
}

.holding-text {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  width: 100%;
}

.summary-table th.holding-column .holding-ticker-row {
  display: block;
  max-width: 100%;
  margin: 0;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  color: #f4fbff;
  font-size: clamp(9.25px, calc(var(--calendar-font-size) - 0.1px), 11px);
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
  text-shadow: none;
}

.editable-company-name {
  outline: 1px solid transparent;
  cursor: text;
  transition: background 140ms ease, outline-color 140ms ease;
}

.editable-company-name:hover,
.editable-company-name:focus {
  background: rgba(255, 255, 255, 0.09);
  outline-color: rgba(255, 255, 255, 0.2);
}

[data-editable-subheading] {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  padding: 1px 4px;
  border-radius: 6px;
  cursor: context-menu;
  transition: background 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

[data-editable-subheading]:hover,
[data-editable-subheading]:focus-visible {
  background: rgba(232, 237, 245, 0.055);
  box-shadow: inset 0 -2px 0 rgba(232, 237, 245, 0.18);
  color: #f0f4f8;
  outline: none;
}

.editable-subheading-input {
  width: min(360px, 100%);
  min-width: min(220px, 100%);
  height: 1.85em;
  padding: 0 8px;
  border: 1px solid rgba(91, 177, 178, 0.62);
  border-radius: 7px;
  background: rgba(17, 24, 32, 0.98);
  color: #e8edf5;
  font: inherit;
  font-weight: inherit;
  line-height: 1;
  outline: none;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.18);
}

.company-currency-line,
.meta-with-flag {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  margin-top: 0;
  color: #c8d6e6;
  font-size: clamp(9.5px, calc(var(--calendar-font-size) - 0.2px), 11px) !important;
  line-height: 1;
  white-space: nowrap;
}

.currency-token {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: inherit;
}

.currency-mark {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: var(--teal);
  background: currentColor;
  mask: var(--currency-icon) center / contain no-repeat;
  -webkit-mask: var(--currency-icon) center / contain no-repeat;
}

.currency-mark.currency-gbp,
.currency-mark.currency-sterling {
  --currency-icon: url("../assets/icons/nucleo-core-svg/fill/business-finance/24px_circle-sterling.svg");
}

.currency-mark.currency-usd,
.currency-mark.currency-cad,
.currency-mark.currency-aud,
.currency-mark.currency-nzd,
.currency-mark.currency-sgd,
.currency-mark.currency-hkd {
  --currency-icon: url("../assets/icons/nucleo-core-svg/fill/business-finance/24px_circle-dollar.svg");
}

.currency-mark.currency-eur {
  --currency-icon: url("../assets/icons/nucleo-core-svg/fill/business-finance/24px_circle-euro.svg");
}

.currency-mark.currency-jpy,
.currency-mark.currency-cny {
  --currency-icon: url("../assets/icons/nucleo-core-svg/fill/business-finance/24px_circle-yen.svg");
}

.currency-mark.currency-chf {
  --currency-icon: url("../assets/icons/custom/24px_swiss-franc.png");
}

.currency-mark.currency-inr,
.currency-mark.currency-sek,
.currency-mark.currency-nok,
.currency-mark.currency-dkk {
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(45, 212, 191, 0.32);
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.1);
  mask: none;
  -webkit-mask: none;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.currency-mark.currency-inr::before {
  content: "Rs";
}

.currency-mark.currency-sek::before,
.currency-mark.currency-nok::before,
.currency-mark.currency-dkk::before {
  content: "kr";
}

.currency-mark.currency-ils::before {
  content: "₪";
}

.currency-mark.currency-ils {
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: #07131b;
  mask: none;
  -webkit-mask: none;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.summary-currency {
  width: 13px;
  height: 13px;
  flex-basis: 13px;
}

.summary-logo {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.summary-table .summary-logo.logo-adjustable,
.summary-table .summary-logo.logo-crop-rounded,
.summary-table .summary-logo.logo-crop-circle {
  overflow: hidden;
}

.summary-table .summary-logo.logo-crop-rounded {
  border-radius: 14px;
}

.summary-table .summary-logo.logo-crop-circle {
  border-radius: 999px;
}

.summary-logo > img,
img.summary-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: inherit;
}

.summary-logo.is-placeholder::before {
  display: block;
  width: 19px;
  height: 19px;
  align-self: center;
  justify-self: center;
  background: #9fb0c7;
  content: "";
  mask: url("../assets/icons/nucleo-core-svg/fill/business-finance/24px_chart-stock-price.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/business-finance/24px_chart-stock-price.svg") center / contain no-repeat;
}

.summary-table th.holding-column .stock-order-controls {
  top: 8px;
  right: 8px;
  gap: 5px;
  opacity: 0.28;
  transform: none;
}

.summary-table th.holding-column .stock-order-handle {
  width: 17px;
  height: 17px;
  border-color: rgba(142, 231, 217, 0.2);
  background: rgba(10, 25, 40, 0.3);
  color: rgba(142, 231, 217, 0.68);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.summary-table th.holding-column .stock-order-handle::before {
  width: 10px;
  height: 10px;
}

.summary-table th.holding-column .stock-order-handle:hover,
.summary-table th.holding-column .stock-order-handle:focus-visible,
.summary-table th.holding-column .stock-order-handle.is-dragging {
  border-color: rgba(142, 231, 217, 0.46);
  background: rgba(20, 184, 166, 0.12);
  color: rgba(174, 245, 231, 0.94);
}

.summary-table th.holding-column .summary-flag {
  width: 15px;
  height: 15px;
}

.summary-month {
  display: inline-grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  justify-content: start;
  column-gap: 10px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-weight: var(--calendar-font-weight);
  line-height: 1;
  text-align: left;
}

.summary-month b {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(149, 161, 180, 0.28);
  border-radius: 999px;
  background: #223047;
  color: #c7d3e4;
  font: inherit;
  font-size: calc(var(--calendar-font-size) - 1px);
  justify-self: center;
  line-height: 1;
}

.summary-month-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.summary-table td {
  height: 30px;
  padding: 4px 8px;
  border-right: 1px solid rgba(20, 132, 163, 0.26);
  border-bottom: 1px solid rgba(24, 73, 102, 0.34);
  background:
    linear-gradient(90deg, rgba(11, 47, 73, 0.16), transparent 34%, rgba(11, 47, 73, 0.1)),
    #111c2b;
  color: #c6d2e2;
  font-size: var(--calendar-font-size);
  font-weight: var(--calendar-font-weight);
  text-align: center;
}

.summary-table th:last-child,
.summary-table td:last-child {
  border-right: 0;
}

.summary-table tfoot td {
  height: 34px;
  border-right: 1px solid rgba(20, 132, 163, 0.3);
  border-top: 10px solid #0c111c;
  border-bottom: 0;
  background: #172232;
  color: #d9e4f3;
  font-size: var(--calendar-font-size);
  font-weight: var(--calendar-font-weight);
  text-align: center;
}

.summary-table tfoot td:first-child {
  background: #172232;
  z-index: 6;
}

.summary-table .summary-column-total,
.summary-table .summary-column-quarterly,
.summary-table .summary-grand-total,
.summary-table .summary-grand-quarterly {
  background:
    linear-gradient(90deg, rgba(11, 47, 73, 0.12), transparent 34%, rgba(11, 47, 73, 0.08)),
    #172232;
}

.summary-table .summary-grand-total,
.summary-table .summary-grand-quarterly {
  color: #d9e4f3;
}

.summary-table .summary-quarterly-row td {
  height: 30px;
  border-top: 1px solid rgba(142, 231, 217, 0.1);
  background:
    linear-gradient(90deg, rgba(11, 47, 73, 0.08), transparent 34%, rgba(11, 47, 73, 0.06)),
    #141f2e;
  color: #9da9bb;
  font-size: calc(var(--calendar-font-size) - 0.7px);
  font-weight: 500;
}

.summary-table .summary-quarterly-row td:first-child {
  background: #141f2e;
}

.summary-table .summary-quarterly-row .summary-month {
  color: #aab5c6;
  font-weight: 500;
}

.summary-table .summary-quarterly-row .summary-month b {
  border-color: rgba(149, 161, 180, 0.24);
  background: rgba(149, 161, 180, 0.1);
  color: #aab5c6;
  font-size: calc(var(--calendar-font-size) - 1.8px);
}

.summary-table .summary-quarterly-row .amount,
.summary-table .summary-quarterly-row .summary-grand-quarterly {
  color: #aab5c6;
  font-weight: 500;
  text-shadow: none;
}

.summary-total-label b {
  border-color: rgba(149, 161, 180, 0.24);
  background: rgba(149, 161, 180, 0.12);
  color: #d9e4f3;
}

.summary-table tbody tr:nth-child(even) td {
  background:
    linear-gradient(90deg, rgba(15, 60, 88, 0.18), transparent 36%, rgba(15, 60, 88, 0.12)),
    #142234;
}

.summary-table tbody tr td:first-child {
  background: #111c2b;
}

.summary-table tbody tr:nth-child(even) td:first-child {
  background: #142234;
}

.summary-table tbody tr.current td {
  background: rgba(41, 211, 107, 0.14);
  color: #82f1a8;
}

.summary-table tbody tr.current td:first-child {
  background: #143a2a;
}

.summary-table tbody .monthly-total-cell {
  background: rgba(35, 70, 79, 0.72);
}

.summary-table tbody tr:nth-child(even) .monthly-total-cell {
  background: rgba(42, 83, 93, 0.72);
}

.summary-table tbody tr.current .monthly-total-cell {
  background: rgba(45, 212, 191, 0.16);
}

.summary-table tbody tr.current .summary-month b {
  border-color: rgba(130, 241, 168, 0.34);
  background: rgba(45, 212, 191, 0.18);
  color: inherit;
}

.summary-table .amount {
  color: #67d7c6;
  font-weight: var(--calendar-font-weight);
  text-shadow: 0 0 10px rgba(103, 215, 198, 0.16);
}

.summary-table .monthly-total-cell,
.summary-table .summary-column-total,
.summary-table .summary-column-quarterly,
.summary-table .summary-grand-total,
.summary-table .summary-grand-quarterly {
  font-weight: var(--calendar-font-weight);
}

.summary-table tfoot .summary-column-total.amount,
.summary-table tfoot .summary-grand-total.amount {
  color: #d9e4f3;
  text-shadow: none;
}

.summary-table tfoot .summary-column-quarterly.amount,
.summary-table tfoot .summary-grand-quarterly.amount {
  color: #aab5c6;
  font-size: calc(var(--calendar-font-size) - 0.7px);
  font-weight: 500;
  text-shadow: none;
}

.summary-table .empty {
  color: #5c6879;
}

.summary-table .add-slot {
  color: #7f8ca2;
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-font-weight);
  letter-spacing: 0;
  cursor: default;
  outline: none;
  transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.summary-table th.add-slot {
  padding: 0 12px;
  background: var(--summary-header-bg);
  cursor: pointer;
}

.summary-table th.add-slot:hover,
.summary-table th.add-slot:focus-visible {
  background: var(--summary-header-hover-bg);
  color: #aef5e7;
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.22);
}

.summary-table .add-slot.is-filled {
  color: #67d7c6;
  background: rgba(9, 164, 151, 0.1);
}

.green { color: var(--green); }
.blue { color: var(--blue); }
.amber { color: var(--amber); }
.purple { color: var(--purple); }

.calendar-card {
  min-height: 580px;
  overflow: hidden;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.calendar-month-controls {
  display: inline-grid;
  grid-template-columns: 30px 178px 30px;
  align-items: center;
  column-gap: 10px;
  min-width: 0;
}

.calendar-month-button {
  display: inline-grid;
  place-items: center;
  justify-self: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(51, 71, 97, 0.86);
  border-radius: 9px;
  background: rgba(18, 27, 41, 0.82);
  color: #c5cfdd;
  cursor: pointer;
  font: inherit;
  font-size: calc(var(--calendar-font-size) + 5px);
  font-weight: var(--calendar-font-weight);
  line-height: 1;
}

.calendar-month-button:hover,
.calendar-month-button:focus-visible {
  border-color: rgba(45, 212, 191, 0.68);
  background: rgba(20, 184, 166, 0.16);
  color: #8ee7d9;
  outline: none;
}

.calendar-month-button:disabled,
.calendar-month-button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.42;
}

.month-title {
  justify-self: center;
  width: 178px;
  text-align: center;
  white-space: nowrap;
  font-size: calc(var(--calendar-font-size) + 6.5px);
  font-weight: var(--calendar-font-weight);
}

.weekday-row,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.weekday-row {
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}

.weekday-row div {
  padding: 12px 8px;
  color: var(--faint);
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-font-weight);
  letter-spacing: 0;
}

.calendar-grid {
  padding: 12px;
  gap: 10px;
}

.day {
  min-height: 128px;
  padding: 10px;
  border: 1px solid #26364f;
  border-radius: 10px;
  background: #141d2b;
}

.day.is-outside-month {
  opacity: 0.45;
}

.day.today {
  border-color: rgba(74, 163, 255, 0.65);
  box-shadow: inset 0 0 0 1px rgba(74, 163, 255, 0.28);
}

.day.is-past-schedule-event .trading-investment-event {
  opacity: 0.68;
}

.day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: calc(var(--calendar-font-size) + 0.5px);
  font-weight: var(--calendar-font-weight);
}

.day-date-trigger {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.day-head:hover .day-date-trigger,
.day-date-trigger:hover,
.day-date-trigger:focus-visible,
.day-date-trigger.is-context-open {
  border-color: rgba(95, 154, 235, 0.72);
  background: rgba(95, 154, 235, 0.16);
  box-shadow: 0 0 0 2px rgba(95, 154, 235, 0.1);
  color: #d8e8ff;
  outline: 0;
}

.event-list {
  display: grid;
  gap: 7px;
}

.dividend-event {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 6px;
  border-radius: 8px;
  background: #1d2a3f;
}

.regular-investment-card {
  min-height: 580px;
  overflow: hidden;
}

.regular-investment-card .calendar-toolbar {
  gap: 16px;
}

.regular-investment-toolbar-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 10px;
  min-width: 0;
}

.regular-investment-add-dates-button {
  min-height: 30px;
  padding: 0 11px;
  white-space: nowrap;
}

.regular-investment-upcoming {
  display: flex;
  align-items: flex-start;
  min-height: 70px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 31, 46, 0.52);
  color: var(--muted);
  font-size: calc(var(--calendar-font-size) + 0.75px);
  font-weight: var(--calendar-font-weight);
}

.regular-investment-upcoming-panel {
  display: grid;
  gap: 7px;
  width: 50%;
  min-width: 520px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(29, 58, 94, 0.68);
  box-shadow: inset 0 0 0 1px rgba(95, 154, 235, 0.28);
}

.regular-investment-upcoming-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.regular-investment-upcoming-label {
  color: var(--faint);
  white-space: nowrap;
}

.regular-investment-upcoming-pill {
  display: inline-grid;
  grid-template-columns: 24px minmax(0, auto) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.regular-investment-upcoming-icon {
  flex: 0 0 auto;
}

.regular-investment-upcoming-date {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.regular-investment-upcoming-event {
  color: #9fc7ff;
  white-space: nowrap;
}

.regular-investment-upcoming-countdown {
  color: #9ed2ff;
  font-size: calc(var(--calendar-font-size) + 1.25px);
  white-space: nowrap;
}

.regular-investment-upcoming-percent {
  color: var(--text);
  white-space: nowrap;
}

.regular-investment-upcoming-progress {
  display: grid;
  gap: 5px;
  width: 100%;
  min-width: 0;
  text-align: left;
}

.regular-investment-upcoming-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.regular-investment-upcoming-track {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(97, 123, 153, 0.35);
}

.regular-investment-upcoming-track > span {
  display: block;
  width: var(--regular-investment-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4f8dff, #8ed7ff);
  box-shadow: 0 0 12px rgba(95, 154, 235, 0.2);
}

.regular-investment-next-events {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 8px;
}

.regular-investment-next-events-label,
.regular-investment-next-events-empty {
  flex: 0 0 auto;
  color: var(--faint);
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-heading-font-weight);
  white-space: nowrap;
}

.regular-investment-next-events-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(100%, 650px);
  min-width: 0;
  gap: 6px;
}

.regular-investment-next-event {
  display: grid;
  grid-template-columns: auto minmax(0, auto) auto;
  align-items: center;
  min-width: 0;
  min-height: 30px;
  gap: 5px;
  padding: 0 6px;
  overflow: hidden;
  border: 1px solid rgba(51, 71, 97, 0.78);
  border-radius: 8px;
  background: rgba(18, 27, 41, 0.82);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(142, 231, 217, 0.04);
}

.regular-investment-next-event.is-regular-investment {
  border-color: rgba(142, 231, 217, 0.18);
}

.regular-investment-next-event.is-reduced-trading {
  border-color: rgba(149, 186, 255, 0.2);
}

.regular-investment-next-event-type {
  display: inline-grid;
  min-width: 24px;
  height: 18px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  background: rgba(142, 231, 217, 0.13);
  color: #8ee7d9;
  font-size: calc(var(--calendar-label-font-size) - 0.5px);
  font-weight: var(--calendar-heading-font-weight);
  line-height: 1;
}

.regular-investment-next-event.is-reduced-trading .regular-investment-next-event-type {
  background: rgba(149, 186, 255, 0.14);
  color: #9fc7ff;
}

.regular-investment-next-event-date {
  min-width: 0;
  overflow: hidden;
  color: #d8e3f2;
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-font-weight);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.regular-investment-next-event-countdown {
  color: #9ed2ff;
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-heading-font-weight);
  white-space: nowrap;
}

.entry-editor-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--teal);
  font-size: 10.5px;
  font-weight: var(--ui-font-weight);
}

.regular-investment-dates-panel {
  width: min(860px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.regular-investment-dates-mode {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
  padding: 4px;
  border: 1px solid rgba(51, 71, 97, 0.72);
  border-radius: 999px;
  background: rgba(18, 27, 41, 0.62);
}

.regular-investment-dates-mode-button {
  display: inline-grid;
  min-width: 54px;
  height: 28px;
  padding: 0 12px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #95a1b4;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: var(--ui-font-weight);
}

.regular-investment-dates-mode-button:hover,
.regular-investment-dates-mode-button:focus-visible,
.regular-investment-dates-mode-button.is-selected {
  border-color: rgba(142, 231, 217, 0.36);
  background: rgba(20, 184, 166, 0.14);
  color: #e8fffb;
  outline: none;
}

.regular-investment-dates-calendar {
  overflow: hidden;
  border: 1px solid rgba(51, 71, 97, 0.68);
  border-radius: 12px;
  background: rgba(18, 27, 41, 0.38);
}

.regular-investment-dates-calendar-toolbar {
  padding: 12px 14px;
}

.regular-investment-dates-calendar .calendar-month-controls {
  grid-template-columns: 28px 176px 28px;
}

.regular-investment-dates-calendar .calendar-month-button {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: calc(var(--calendar-font-size) + 4px);
}

.regular-investment-dates-calendar .month-title {
  width: 176px;
  font-size: calc(var(--calendar-font-size) + 4px);
}

.regular-investment-dates-calendar .weekday-row {
  padding: 0 10px;
}

.regular-investment-dates-calendar .calendar-grid {
  padding: 10px;
  gap: 8px;
}

.regular-investment-dates-day {
  min-height: 92px;
  padding: 9px;
  border: 1px solid #26364f;
  border-radius: 10px;
  background: #141d2b;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.regular-investment-dates-day.is-outside-month {
  opacity: 0.45;
}

.regular-investment-dates-day.is-today {
  border-color: rgba(74, 163, 255, 0.65);
  box-shadow: inset 0 0 0 1px rgba(74, 163, 255, 0.28);
}

.regular-investment-dates-day.is-selected {
  border-color: rgba(142, 231, 217, 0.72);
  background: rgba(20, 184, 166, 0.15);
  box-shadow: inset 0 0 0 1px rgba(142, 231, 217, 0.2);
}

.regular-investment-dates-day:hover,
.regular-investment-dates-day:focus-visible {
  border-color: rgba(95, 154, 235, 0.72);
  background: rgba(95, 154, 235, 0.12);
  outline: none;
}

.regular-investment-dates-day .day-head {
  margin-bottom: 8px;
}

.regular-investment-dates-existing {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.regular-investment-dates-existing span,
.regular-investment-selected-dates span:not(.regular-investment-selected-dates-empty) {
  display: inline-grid;
  min-height: 20px;
  padding: 0 7px;
  place-items: center;
  border: 1px solid rgba(51, 71, 97, 0.72);
  border-radius: 999px;
  background: rgba(18, 27, 41, 0.72);
  color: #9fc7ff;
  font-size: 10px;
  font-weight: var(--ui-font-weight);
  line-height: 1;
}

.regular-investment-dates-existing .is-regular-investment,
.regular-investment-selected-dates .is-regular-investment {
  border-color: rgba(142, 231, 217, 0.22);
  color: #8ee7d9;
}

.regular-investment-dates-existing .is-reduced-trading,
.regular-investment-selected-dates .is-reduced-trading {
  border-color: rgba(149, 186, 255, 0.24);
  color: #9fc7ff;
}

.regular-investment-selected-dates {
  display: flex;
  flex-wrap: wrap;
  min-height: 26px;
  gap: 6px;
  margin-top: 10px;
}

.regular-investment-selected-dates-empty {
  color: var(--faint);
  font-size: 11px;
  font-weight: var(--calendar-font-weight);
}

.trading-investment-event {
  box-shadow: inset 0 0 0 1px rgba(142, 231, 217, 0.18);
}

.regular-investment-event {
  grid-template-columns: 24px minmax(0, 1fr);
  background: rgba(17, 78, 79, 0.58);
}

.reduced-trading-event {
  background: rgba(43, 57, 83, 0.72);
  box-shadow: inset 0 0 0 1px rgba(149, 186, 255, 0.2);
}

.regular-investment-event-icon,
.reduced-trading-event-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(142, 231, 217, 0.14);
  color: #8ee7d9;
}

.reduced-trading-event-icon {
  background: rgba(149, 186, 255, 0.14);
  color: #95baff;
}

.regular-investment-event-icon {
  padding: 3px;
  border: 1px solid rgba(142, 231, 217, 0.22);
  background: #005d9d;
}

.regular-investment-event-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.reduced-trading-event-icon::before {
  width: 14px;
  height: 14px;
  background: currentColor;
  content: "";
  mask: url("../assets/icons/nucleo-core-svg/outline/time/24px_clock.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/outline/time/24px_clock.svg") center / contain no-repeat;
}

.event-time {
  color: #95baff;
  font-size: calc(var(--calendar-font-size) - 0.5px);
  font-weight: var(--calendar-font-weight);
  white-space: nowrap;
}

.calendar-event-more {
  color: var(--muted);
  font-size: var(--calendar-small-font-size);
  font-weight: var(--calendar-font-weight);
  text-align: center;
}

.logo {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: #ffffff;
  color: #162033;
  font-size: 10px;
  font-weight: 950;
}

.logo.red { background: #ff4a55; color: white; }
.logo.blue { background: #337dff; color: white; }
.logo.green { background: #15b66f; color: white; }
.logo.amber { background: #ffc64d; color: #1e2430; }
.logo.dark { background: #0c111c; color: white; border: 1px solid #3a4961; }

.logo.logo-image {
  overflow: hidden;
  padding: 0;
  background: #24316f;
  color: transparent;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.logo.logo-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-name {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: var(--calendar-font-size);
  font-weight: var(--calendar-font-weight);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-amount {
  color: var(--teal);
  font-size: calc(var(--calendar-font-size) + 0.5px);
  font-weight: var(--calendar-font-weight);
}

.more-link {
  margin-top: 8px;
  color: var(--faint);
  font-size: 11px;
  text-align: center;
}

.price-schedule-card {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  scroll-margin-top: 18px;
}

.dividend-history-card {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  scroll-margin-top: 18px;
}

.watchlist-card {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  scroll-margin-top: 18px;
}

.isa-card {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  scroll-margin-top: 18px;
}

.isa-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.isa-card-head + * + .isa-card-head,
.isa-card-head + * + * + .isa-card-head {
  margin-top: 10px;
}

.isa-card-head h2 {
  margin: 0;
  color: var(--text);
  font-size: calc(var(--calendar-font-size) + 6px);
  line-height: 1.1;
}

.isa-card-head h2,
.watchlist-head h2,
.price-schedule-head h2,
.dividend-history-section-title,
.dividend-history-section-head h3,
.dividend-history-chart-head h3,
.isa-chart-head h3,
.price-transactions-head h2,
.price-chart-title h4,
.summary-head h2,
.upcoming-payments-head h2 {
  position: relative;
  display: inline-grid;
  grid-template-rows: auto 1px;
  align-items: start;
  justify-items: start;
  gap: 5px;
  min-width: 0;
  width: fit-content;
  white-space: nowrap;
}

.isa-card-head h2::after,
.watchlist-head h2::after,
.price-schedule-head h2::after,
.dividend-history-section-title::after,
.dividend-history-section-head h3::after,
.dividend-history-chart-head h3::after,
.isa-chart-head h3::after,
.price-transactions-head h2::after,
.price-chart-title h4::after,
.summary-head h2::after,
.upcoming-payments-head h2::after {
  display: block;
  width: calc(100% + 18px);
  min-width: 52px;
  height: 1px;
  background: rgba(232, 237, 245, 0.24);
  content: "";
}

.isa-year-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(142, 237, 245, 0.18);
  border-radius: 999px;
  background: rgba(18, 31, 47, 0.62);
  color: #d7e3f1;
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-heading-font-weight);
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
}

.isa-year-pill-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  background: currentColor;
  opacity: 0.86;
  mask: url("../assets/icons/nucleo-core-svg/fill/time/24px_calendar-clock.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/time/24px_calendar-clock.svg") center / contain no-repeat;
}

.isa-year-pill:hover,
.isa-year-pill[aria-expanded="true"] {
  border-color: rgba(25, 201, 185, 0.72);
  background: rgba(25, 201, 185, 0.18);
  color: #d7fff8;
}

.isa-year-picker {
  position: relative;
  display: inline-flex;
}

.isa-year-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  display: grid;
  min-width: 112px;
  padding: 5px;
  border: 1px solid rgba(59, 84, 112, 0.9);
  border-radius: 8px;
  background: #0f1825;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.isa-year-menu[hidden] {
  display: none;
}

.isa-year-menu button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 28px;
  padding: 0 24px 0 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #c5d2e2;
  font: inherit;
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-heading-font-weight);
  cursor: pointer;
  text-align: left;
}

.isa-year-menu button:hover,
.isa-year-menu button.is-active {
  background: rgba(25, 201, 185, 0.16);
  color: #8ee7d9;
}

.isa-year-menu button.is-active::after {
  position: absolute;
  top: 50%;
  right: 9px;
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border: 1px solid rgba(25, 201, 185, 0.92);
  border-radius: 999px;
  background: rgba(25, 201, 185, 0.24);
  color: #8ff2e5;
  content: "✓";
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
}

.isa-card-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.isa-card-grid article {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 11px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #121b29;
  text-align: center;
}

.isa-card-grid span,
.isa-input-table th {
  color: var(--muted);
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-heading-font-weight);
}

.isa-card-grid strong {
  display: block;
  margin-top: 7px;
  color: var(--teal);
  font-size: calc(var(--calendar-font-size) + 4px);
  font-weight: var(--calendar-heading-font-weight);
}

.isa-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 10px;
  align-items: start;
}

.isa-dashboard-panel-stack {
  display: contents;
}

.isa-dashboard-panel,
.isa-dashboard-chart-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #121b29;
}

.isa-dashboard-panel {
  padding: 12px 14px;
}

.isa-dashboard-time-panel,
.isa-dashboard-amount-panel {
  align-self: start;
}

.isa-dashboard-time-panel {
  grid-column: 1;
  grid-row: 1;
}

.isa-dashboard-amount-panel {
  grid-column: 1 / -1;
  grid-row: 2;
}

.isa-dashboard-chart-card {
  grid-row: 1;
  align-self: start;
}

.isa-dashboard-amount-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.5fr) minmax(0, 1fr);
  gap: 10px 16px;
  align-items: start;
}

.isa-dashboard-amount-panel .isa-dashboard-panel-head {
  grid-column: 1 / -1;
}

.isa-dashboard-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.isa-dashboard-panel h3,
.isa-chart-head h3 {
  margin: 0;
  color: var(--text);
  font-size: calc(var(--calendar-font-size) + 1px);
  font-weight: var(--calendar-heading-font-weight);
}

.isa-dashboard-facts {
  display: grid;
  margin: 10px 0 0;
}

.isa-dashboard-account-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  margin-top: 0;
}

.isa-dashboard-facts div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 30px;
  border-bottom: 1px solid rgba(51, 71, 97, 0.58);
}

.isa-dashboard-facts div:last-child {
  border-bottom: 0;
}

.isa-dashboard-account-facts div,
.isa-dashboard-account-facts div:last-child {
  box-sizing: border-box;
  height: 34px;
  min-height: 34px;
  border-bottom: 1px solid rgba(51, 71, 97, 0.58);
}

.isa-dashboard-account-facts dt,
.isa-dashboard-account-facts dd {
  display: flex;
  align-items: center;
  min-height: 100%;
}

.isa-dashboard-account-facts dd {
  justify-content: flex-end;
}

.isa-dashboard-facts dt,
.isa-dashboard-facts dd {
  margin: 0;
  font-size: var(--calendar-label-font-size);
}

.isa-dashboard-facts dt {
  color: var(--muted);
}

.isa-dashboard-facts dd {
  color: #d8e2f0;
  font-weight: var(--calendar-heading-font-weight);
  text-align: right;
}

.isa-year-progress {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(51, 71, 97, 0.58);
}

.isa-year-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-heading-font-weight);
}

.isa-year-progress-head strong {
  color: #8ee7d9;
  font-weight: var(--calendar-heading-font-weight);
}

.isa-year-progress-track {
  overflow: hidden;
  height: 7px;
  border: 1px solid rgba(25, 201, 185, 0.24);
  border-radius: 999px;
  background: rgba(8, 13, 20, 0.62);
}

.isa-year-progress-track span {
  display: block;
  width: var(--isa-year-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(25, 201, 185, 0.42), rgba(142, 231, 217, 0.92));
}

.isa-account-total-summary {
  display: grid;
  gap: 8px;
  align-self: center;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.isa-account-total-row,
.isa-account-total-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.isa-account-total-row span,
.isa-account-total-progress > span {
  color: var(--muted);
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-heading-font-weight);
}

.isa-account-total-row strong {
  color: var(--teal);
  font-size: var(--calendar-font-size);
  font-weight: var(--calendar-heading-font-weight);
  text-align: right;
}

.isa-account-total-progress-track {
  overflow: hidden;
  width: min(112px, 36vw);
  height: 7px;
  border: 1px solid rgba(25, 201, 185, 0.24);
  border-radius: 999px;
  background: rgba(8, 13, 20, 0.62);
}

.isa-account-total-progress-track span {
  display: block;
  width: var(--isa-account-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(25, 201, 185, 0.42), rgba(142, 231, 217, 0.92));
}

.isa-chart-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px 0;
}

.isa-chart-head span {
  color: #8ee7d9;
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-heading-font-weight);
  text-align: right;
}

.isa-dashboard-chart-card svg {
  display: block;
  width: 100%;
  height: 190px;
}

.isa-entry-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(170px, 1fr) minmax(140px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(52, 76, 104, 0.82);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(18, 27, 41, 0.98), rgba(14, 22, 34, 0.98));
}

.isa-entry-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-heading-font-weight);
}

.isa-entry-form input,
.isa-entry-form select {
  width: 100%;
  min-width: 0;
  height: 34px;
  border: 1px solid rgba(55, 81, 112, 0.88);
  border-radius: 8px;
  background: #101826;
  color: var(--text);
  font: inherit;
  font-size: var(--calendar-font-size);
  font-weight: var(--calendar-font-weight);
  line-height: 1.2;
  outline: 0;
}

.isa-entry-form select[hidden] {
  display: none;
}

.isa-entry-form input {
  padding: 0 10px;
}

.isa-entry-form input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.isa-entry-form input[type="number"]::-webkit-inner-spin-button,
.isa-entry-form input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.isa-entry-form select {
  padding: 0 30px 0 10px;
}

.isa-entry-form input:focus,
.isa-entry-form select:focus {
  border-color: rgba(88, 113, 148, 0.82);
  box-shadow: 0 0 0 2px rgba(88, 113, 148, 0.12);
}

.isa-account-picker {
  position: relative;
  min-width: 0;
}

.isa-account-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  height: 34px;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid rgba(55, 81, 112, 0.88);
  border-radius: 8px;
  background: #101826;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: var(--calendar-font-size);
  font-weight: var(--calendar-font-weight);
  line-height: 1.2;
  outline: 0;
  text-align: left;
}

.isa-account-toggle:hover,
.isa-account-toggle:focus-visible,
.isa-account-picker.is-open .isa-account-toggle {
  border-color: rgba(25, 201, 185, 0.7);
  box-shadow: 0 0 0 2px rgba(25, 201, 185, 0.14);
}

.isa-account-toggle [data-isa-account-selected],
.isa-account-toggle [data-isa-input-modal-account-selected] {
  display: inline-flex;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.isa-account-toggle [data-isa-input-account-filter-selected] {
  display: inline-flex;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.isa-account-toggle [data-isa-input-calendar-year-filter-selected],
.isa-account-toggle [data-isa-input-year-filter-selected] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.isa-account-label {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
  vertical-align: middle;
}

.isa-account-label-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.isa-account-logo {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  overflow: hidden;
  border: 1px solid rgba(142, 231, 217, 0.22);
  border-radius: 7px;
  background: rgba(8, 17, 30, 0.36);
}

.isa-account-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.isa-account-logo.is-halifax-isa {
  padding: 3px;
  background: #005d9d;
}

.isa-account-logo.is-trading-212 {
  padding: 0;
}

.isa-dashboard-facts .isa-account-label {
  max-width: 100%;
}

.isa-dashboard-facts .isa-account-logo {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}

.isa-dashboard-facts .isa-account-logo.is-halifax-isa {
  padding: 2px;
}

.isa-account-chevron {
  flex: 0 0 auto;
  color: #95a1b4;
  font-size: 13px;
  line-height: 1;
}

.isa-account-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 35;
  display: grid;
  width: 100%;
  min-width: 180px;
  gap: 3px;
  padding: 5px;
  border: 1px solid rgba(52, 76, 104, 0.92);
  border-radius: 10px;
  background: #172131;
  box-shadow: 0 16px 34px rgba(3, 8, 17, 0.4);
}

.isa-account-menu[hidden] {
  display: none;
}

.isa-account-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 32px;
  gap: 8px;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #e8edf5;
  cursor: pointer;
  font: inherit;
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-font-weight);
  outline: 0;
  text-align: left;
}

.isa-account-option > span:last-child {
  min-width: 0;
}

.isa-account-option .isa-account-logo {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}

.isa-account-option .isa-account-logo.is-halifax-isa {
  padding: 2px;
}

.isa-account-option:hover,
.isa-account-option:focus-visible,
.isa-account-option[aria-selected="true"] {
  background: rgba(9, 164, 151, 0.2);
}

.isa-account-option-check {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border: 1px solid rgba(142, 231, 217, 0.46);
  border-radius: 999px;
  background: rgba(5, 13, 23, 0.42);
}

.isa-account-option[aria-selected="true"] .isa-account-option-check {
  border-color: rgba(25, 201, 185, 0.92);
  background: rgba(25, 201, 185, 0.24);
}

.isa-account-option[aria-selected="true"] .isa-account-option-check::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #8ff2e5;
}

.isa-entry-form.is-invalid {
  border-color: rgba(255, 97, 97, 0.72);
  box-shadow: 0 0 0 2px rgba(255, 97, 97, 0.1);
}

.isa-entry-add {
  border: 1px solid rgba(25, 201, 185, 0.35);
  border-radius: 8px;
  background: rgba(25, 201, 185, 0.15);
  color: #b7fff4;
  font: inherit;
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-heading-font-weight);
  cursor: pointer;
}

.isa-entry-add {
  height: 34px;
  padding: 0 14px;
}

.isa-input-table-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 12px 0 8px;
}

.isa-input-table-title-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.isa-input-filter-group {
  --isa-input-filter-width: 178px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.isa-input-account-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9daabd;
  font-family: var(--calendar-font);
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-heading-font-weight);
}

.isa-account-filter-picker {
  width: var(--isa-input-filter-width);
}

.isa-calendar-year-filter-picker {
  width: var(--isa-input-filter-width);
}

.isa-year-filter-picker {
  width: var(--isa-input-filter-width);
}

.isa-account-filter-picker .isa-account-menu {
  box-sizing: border-box;
  min-width: 100%;
}

.isa-account-filter-picker .isa-account-toggle {
  height: 30px;
  border-radius: 999px;
  background: rgba(15, 25, 39, 0.92);
}

.isa-entry-add:hover,
.isa-entry-add:focus-visible {
  background: rgba(25, 201, 185, 0.24);
}

.isa-input-table-wrap {
  overflow: auto;
  border: 1px solid rgba(52, 76, 104, 0.82);
  border-radius: 8px;
  background: #101826;
}

.isa-input-table-wrap[data-isa-input-table-wrap] {
  max-height: min(690px, calc(100vh - 345px));
  scrollbar-gutter: stable;
}

.isa-input-table {
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-family: var(--calendar-font);
  font-size: var(--calendar-font-size);
  font-weight: var(--calendar-font-weight);
}

.isa-input-table th,
.isa-input-table td {
  height: 36px;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(51, 71, 97, 0.62);
  color: #d8e2f0;
  font-size: var(--calendar-font-size);
  font-weight: var(--calendar-font-weight);
  line-height: 1.2;
  text-align: center;
  vertical-align: middle;
}

.isa-input-table th,
.isa-input-table.has-resizable-header thead th {
  position: sticky;
  top: 0;
  z-index: 8;
  background: #20374b;
  background-clip: padding-box;
  box-shadow: 0 1px 0 rgba(51, 71, 97, 0.78), 0 8px 16px rgba(5, 10, 18, 0.18);
  color: var(--table-header-text);
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-font-weight);
}

.isa-date-sort,
.isa-monthly-sort {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
}

.isa-date-sort::after,
.isa-monthly-sort::after {
  display: block;
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  background: currentColor;
  content: "";
  opacity: 0.58;
  transition: opacity 140ms ease, transform 140ms ease, color 140ms ease;
  mask: url("../assets/icons/nucleo-core-svg/fill/arrows/24px_chevron-down.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/arrows/24px_chevron-down.svg") center / contain no-repeat;
}

.isa-date-sort[data-sort-direction="asc"]::after,
.isa-monthly-sort[data-sort-direction="asc"]::after {
  transform: rotate(180deg);
}

.isa-date-sort:hover,
.isa-date-sort:focus-visible,
.isa-monthly-sort:hover,
.isa-monthly-sort:focus-visible,
.isa-monthly-sort.is-active {
  color: #8ee7d9;
  outline: none;
}

.isa-date-sort:hover::after,
.isa-date-sort:focus-visible::after,
.isa-monthly-sort:hover::after,
.isa-monthly-sort:focus-visible::after,
.isa-monthly-sort.is-active::after {
  opacity: 1;
}

.isa-input-table tbody tr:last-child td {
  border-bottom: 0;
}

.isa-input-table tbody tr.is-current td {
  background: linear-gradient(90deg, rgba(25, 201, 185, 0.13), rgba(142, 231, 217, 0.08));
  color: #d7fbf5;
}

.isa-input-table td.isa-money-cell,
.isa-input-table td.isa-percent-cell {
  color: #8ee7d9;
  font-weight: var(--calendar-heading-font-weight);
  text-align: right;
}

.isa-input-table td.isa-empty-cell {
  color: #718198;
}

.isa-input-table td.isa-input-empty-row {
  height: 58px;
  text-align: center;
  font-weight: var(--calendar-heading-font-weight);
}

.isa-input-table td.isa-source-imported {
  color: #8fa2ba;
}

.isa-input-table td.isa-source-manual {
  color: #ffc65c;
  font-weight: var(--calendar-heading-font-weight);
}

.isa-input-table tbody tr:hover td,
.isa-input-table tbody tr:focus-within td {
  background: rgba(22, 45, 68, 0.62);
}

.isa-input-table tbody tr.is-editing td {
  background: rgba(17, 184, 170, 0.09);
}

.isa-input-table tbody tr.is-invalid td {
  background: rgba(255, 97, 97, 0.08);
}

.isa-input-table tbody tr.is-new-entry td {
  animation: isaInputNewEntryReveal 1.75s cubic-bezier(0.18, 0.85, 0.2, 1);
}

.isa-input-table tbody tr.is-new-entry td:first-child {
  box-shadow: inset 3px 0 0 rgba(142, 231, 217, 0.92);
}

@keyframes tableScrollTargetReveal {
  0% {
    background: rgba(142, 231, 217, 0);
    transform: translateY(-4px);
  }

  20% {
    background: rgba(20, 184, 166, 0.24);
    transform: translateY(1px);
  }

  48% {
    background: rgba(35, 83, 115, 0.52);
    transform: translateY(0);
  }

  100% {
    background: transparent;
    transform: translateY(0);
  }
}

@keyframes isaInputNewEntryReveal {
  0% {
    background: rgba(142, 231, 217, 0);
    transform: translateY(-5px);
  }

  22% {
    background: rgba(20, 184, 166, 0.22);
    transform: translateY(2px);
  }

  48% {
    background: rgba(35, 83, 115, 0.54);
    transform: translateY(0);
  }

  100% {
    background: transparent;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .isa-input-table tbody tr.is-new-entry td {
    animation: none;
    background: rgba(20, 184, 166, 0.18);
  }

  .price-schedule-table tbody tr.is-scroll-target td,
  .dividend-history-table tbody tr.is-scroll-target td {
    animation: none;
    background: rgba(20, 184, 166, 0.18);
  }
}

.isa-input-context-menu [data-isa-input-context-action="edit"] > span {
  mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_input-password-edit.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_input-password-edit.svg") center / contain no-repeat;
}

.isa-row-input {
  width: 100%;
  min-width: 0;
  height: 24px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #e8edf5;
  font: inherit;
  font-size: var(--calendar-font-size);
  outline: none;
  text-align: center;
}

.isa-row-account-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  gap: 6px;
}

.isa-row-account-control .isa-account-logo {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
  border-radius: 6px;
}

.isa-row-account-control .isa-account-logo.is-halifax-isa {
  padding: 2px;
}

.isa-row-account-select {
  width: auto;
  flex: 0 1 auto;
  max-width: calc(100% - 28px);
  padding-inline: 2px;
  text-align: left;
}

.isa-input-table select.isa-row-input {
  appearance: none;
  -webkit-appearance: none;
}

.isa-row-input.numeric {
  width: 10ch;
  color: #8ee7d9;
  font-weight: var(--calendar-heading-font-weight);
}

.isa-input-table:not(.isa-monthly-table) th:nth-child(3),
.isa-input-table:not(.isa-monthly-table) td:nth-child(3) {
  width: 18%;
  min-width: 132px;
}

.isa-input-table:not(.isa-monthly-table) td.isa-money-cell {
  text-align: center;
}

.isa-input-table tr:not(.is-editing) .isa-row-input {
  pointer-events: none;
  cursor: default;
}

.isa-input-table tr.is-editing .isa-row-input:hover,
.isa-input-table tr.is-editing .isa-row-input:focus {
  border-color: rgba(88, 113, 148, 0.82);
  background-color: rgba(88, 113, 148, 0.1);
}

.isa-date-picker {
  position: fixed;
  z-index: 160;
  width: 258px;
  padding: 10px;
  border: 1px solid rgba(68, 98, 132, 0.86);
  border-radius: 14px;
  background: #111b29;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.42);
}

.isa-date-picker[hidden] {
  display: none;
}

.isa-date-picker-head {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.isa-date-picker-head strong {
  color: #e8edf5;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.isa-date-picker-head button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(55, 81, 112, 0.88);
  border-radius: 999px;
  background: rgba(23, 38, 58, 0.84);
  color: #9ee9dc;
  cursor: pointer;
}

.isa-date-picker-head button::before {
  display: block;
  width: 13px;
  height: 13px;
  background: currentColor;
  content: "";
  mask: url("../assets/icons/nucleo-core-svg/fill/arrows/24px_chevron-left.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/arrows/24px_chevron-left.svg") center / contain no-repeat;
}

.isa-date-picker-head [data-isa-date-picker-next]::before {
  mask-image: url("../assets/icons/nucleo-core-svg/fill/arrows/24px_chevron-right.svg");
  -webkit-mask-image: url("../assets/icons/nucleo-core-svg/fill/arrows/24px_chevron-right.svg");
}

.isa-date-picker-head button:hover,
.isa-date-picker-head button:focus-visible {
  border-color: rgba(17, 184, 170, 0.78);
  background: rgba(17, 184, 170, 0.13);
  outline: none;
}

.isa-date-picker-weekdays,
.isa-date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.isa-date-picker-weekdays {
  margin-bottom: 4px;
  color: #7f8fa5;
  font-size: 9.5px;
  font-weight: 800;
  text-align: center;
}

.isa-date-picker-day {
  height: 28px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #d8e2f0;
  font: inherit;
  font-size: 11px;
  font-weight: 760;
  cursor: pointer;
}

.isa-date-picker-day.is-muted {
  color: #64748a;
}

.isa-date-picker-day.is-today {
  border-color: rgba(78, 163, 255, 0.44);
  color: #9fcfff;
}

.isa-date-picker-day.is-selected {
  border-color: rgba(17, 184, 170, 0.78);
  background: rgba(17, 184, 170, 0.22);
  color: #e8fffb;
}

.isa-date-picker-day:hover,
.isa-date-picker-day:focus-visible {
  border-color: rgba(17, 184, 170, 0.58);
  background: rgba(17, 184, 170, 0.13);
  color: #e8fffb;
  outline: none;
}

.isa-monthly-table {
  min-width: 860px;
}

.isa-monthly-table th,
.isa-monthly-table td,
.isa-monthly-table td.isa-money-cell,
.isa-monthly-table td.isa-percent-cell,
.isa-monthly-table td.isa-empty-cell {
  text-align: center;
}

.isa-monthly-table tbody tr.is-current td {
  background: linear-gradient(90deg, rgba(51, 79, 116, 0.34), rgba(33, 52, 78, 0.26));
  color: #edf5ff;
}

.isa-monthly-table tbody tr.is-current td:first-child {
  box-shadow: inset 3px 0 0 rgba(98, 156, 231, 0.82);
}

@media (max-width: 980px) {
  .isa-dashboard-layout,
  .isa-entry-form {
    grid-template-columns: 1fr;
  }

  .isa-dashboard-layout {
    grid-template-rows: none;
  }

  .isa-dashboard-panel-stack {
    display: grid;
    gap: 10px;
    min-width: 0;
  }

  .isa-dashboard-time-panel,
  .isa-dashboard-amount-panel,
  .isa-dashboard-chart-card {
    grid-column: auto;
    grid-row: auto;
  }

  .isa-dashboard-amount-panel {
    display: block;
  }

  .isa-dashboard-account-facts {
    grid-template-columns: 1fr;
    margin-top: 8px;
  }

  .isa-account-total-summary {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(51, 71, 97, 0.58);
  }

  .isa-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.watchlist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.watchlist-head h2 {
  margin: 0;
  color: var(--text);
  font-size: calc(var(--calendar-font-size) + 6px);
  line-height: 1.1;
}

.watchlist-table-wrap {
  overflow: auto;
  border: 1px solid #2b3a50;
  border-radius: 11px;
  background: #121b29;
}

.watchlist-table {
  width: 100%;
  min-width: 1160px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-family: var(--calendar-font);
  font-size: var(--calendar-font-size);
  font-weight: var(--calendar-font-weight);
}

.watchlist-table th,
.watchlist-table td {
  height: 36px;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(51, 71, 97, 0.62);
  color: #d8e2f0;
  font-size: var(--calendar-font-size);
  font-weight: var(--calendar-font-weight);
  line-height: 1.2;
  text-align: center;
  vertical-align: middle;
}

.watchlist-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--table-header-bg);
  color: var(--table-header-text);
  font-size: var(--calendar-label-font-size);
}

.watchlist-table th[draggable="true"] {
  cursor: grab;
}

.watchlist-table th.is-dragging {
  opacity: 0.56;
}

.watchlist-table th.is-drag-target {
  box-shadow: inset 3px 0 0 var(--teal);
}

.watchlist-column-head-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-width: 0;
}

.watchlist-table th:first-child .watchlist-column-head-cell {
  justify-content: flex-start;
}

.watchlist-column-drag {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  padding: 0;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: inherit;
  cursor: grab;
  font: inherit;
}

.watchlist-header-label {
  display: inline-block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watchlist-header-label[contenteditable="true"] {
  cursor: text;
  outline: 0;
  text-decoration: underline;
  text-decoration-color: rgba(142, 231, 217, 0.5);
  text-underline-offset: 3px;
}

.watchlist-column-drag-icon {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  background: currentColor;
  opacity: 0.36;
  mask: url("../assets/icons/nucleo-core-svg/outline/arrows/24px_arrows-all-directions.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/outline/arrows/24px_arrows-all-directions.svg") center / contain no-repeat;
}

.watchlist-column-resizer {
  position: absolute;
  top: 0;
  right: -6px;
  z-index: 6;
  width: 12px;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: col-resize;
  touch-action: none;
}

.watchlist-column-resizer::before {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 5px;
  width: 1px;
  border-radius: 999px;
  background: rgba(149, 161, 180, 0.28);
  content: "";
  transition: background 120ms ease;
}

.watchlist-column-resizer:hover::before,
.watchlist-column-resizer:focus-visible::before,
.watchlist-column-resizer.is-active::before {
  background: rgba(142, 231, 217, 0.74);
}

body.is-resizing-watchlist-columns,
body.is-resizing-watchlist-columns * {
  cursor: col-resize !important;
  user-select: none;
}

.watchlist-table [data-watchlist-column-key="company"],
.watchlist-table [data-watchlist-column="company"] {
  width: var(--watchlist-company-width, 330px);
  min-width: var(--watchlist-company-width, 330px);
}

.watchlist-table [data-watchlist-column-key="countryListing"],
.watchlist-table [data-watchlist-column="countryListing"] {
  width: var(--watchlist-countryListing-width, 170px);
  min-width: var(--watchlist-countryListing-width, 170px);
  text-align: left;
}

.watchlist-table [data-watchlist-column-key="countryListing"] .watchlist-column-head-cell {
  justify-content: flex-start;
}

.watchlist-table [data-watchlist-column-key="annualDps"],
.watchlist-table [data-watchlist-column="annualDps"] {
  width: var(--watchlist-annualDps-width, 150px);
  min-width: var(--watchlist-annualDps-width, 150px);
}

.watchlist-table [data-watchlist-column-key="grossYield"],
.watchlist-table [data-watchlist-column="grossYield"] {
  width: var(--watchlist-grossYield-width, 120px);
  min-width: var(--watchlist-grossYield-width, 120px);
}

.watchlist-table [data-watchlist-column-key="netYield"],
.watchlist-table [data-watchlist-column="netYield"] {
  width: var(--watchlist-netYield-width, 120px);
  min-width: var(--watchlist-netYield-width, 120px);
}

.watchlist-table [data-watchlist-column-key="targetDiff"],
.watchlist-table [data-watchlist-column="targetDiff"] {
  width: var(--watchlist-targetDiff-width, 140px);
  min-width: var(--watchlist-targetDiff-width, 140px);
}

.watchlist-table [data-watchlist-column-key="sharePrice"],
.watchlist-table [data-watchlist-column="sharePrice"] {
  width: var(--watchlist-sharePrice-width, 150px);
  min-width: var(--watchlist-sharePrice-width, 150px);
}

.watchlist-table [data-watchlist-column-key="sharePriceGbp"],
.watchlist-table [data-watchlist-column="sharePriceGbp"] {
  width: var(--watchlist-sharePriceGbp-width, 150px);
  min-width: var(--watchlist-sharePriceGbp-width, 150px);
}

.watchlist-table [data-watchlist-column-key="dayChange"],
.watchlist-table [data-watchlist-column="dayChange"] {
  width: var(--watchlist-dayChange-width, 130px);
  min-width: var(--watchlist-dayChange-width, 130px);
}

.watchlist-table th:first-child,
.watchlist-table td:first-child {
  text-align: left;
}

.watchlist-table tr:nth-child(even) td {
  background: rgba(21, 31, 47, 0.72);
}

.watchlist-table tbody tr:hover td {
  background: rgba(20, 184, 166, 0.09);
}

.watchlist-table tbody tr:last-child td {
  border-bottom: 0;
}

.watchlist-company-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.watchlist-company-logo {
  display: inline-grid;
  place-items: center;
  width: var(--company-favicon-size, 32px);
  height: var(--company-favicon-size, 32px);
  flex: 0 0 var(--company-favicon-size, 32px);
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.watchlist-company-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.watchlist-company-logo.is-placeholder::before {
  width: 14px;
  height: 14px;
  background: #8ee7d9;
  content: "";
  opacity: 0.85;
  mask: var(--position-history-icon) center / contain no-repeat;
  -webkit-mask: var(--position-history-icon) center / contain no-repeat;
}

.watchlist-company-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.watchlist-company-copy strong,
.watchlist-company-copy span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watchlist-company-copy strong {
  color: #edf5ff;
  font-weight: 700;
}

.watchlist-company-copy span {
  color: #9fb1c8;
  font-size: max(9px, calc(var(--calendar-font-size) - 1px));
}

.watchlist-country {
  text-align: left;
}

.watchlist-country-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 100%;
  min-width: 0;
  gap: 7px;
}

.watchlist-country-wrap span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watchlist-country-flag {
  width: 17px;
  height: 17px;
}

.watchlist-currency .currency-token {
  justify-content: center;
}

.watchlist-currency .currency-mark {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}

.watchlist-value {
  color: #8ee7d9;
}

.watchlist-day-change.is-positive {
  color: #64dcca;
}

.watchlist-day-change.is-negative {
  color: #ff9a9a;
}

.watchlist-day-change.is-neutral {
  color: #ffd166;
}

.watchlist-target-diff.is-positive {
  color: #64dcca;
}

.watchlist-target-diff.is-negative {
  color: #ff8fa3;
}

.watchlist-target-diff.is-neutral {
  color: #ffd166;
}

.watchlist-yield {
  color: #66d9ff;
}

.watchlist-yield-net {
  color: #7df0a6;
}

.watchlist-muted {
  color: #6c7d93;
}

.price-schedule-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.price-schedule-head h2 {
  margin: 0;
  color: var(--text);
  font-size: calc(var(--calendar-font-size) + 6px);
  font-weight: var(--calendar-font-weight);
  line-height: 1.1;
}

.price-schedule-title-box {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 9px;
  min-width: 0;
  padding: 5px 7px;
  margin: -5px -7px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.price-schedule-title-box:hover,
.price-schedule-title-box:focus-within {
  border-color: rgba(88, 113, 148, 0.58);
  background: rgba(88, 113, 148, 0.08);
}

.price-schedule-title-box h2 {
  max-width: min(480px, 52vw);
  overflow: hidden;
  cursor: text;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-schedule-title-box h2:focus {
  outline: none;
  box-shadow: inset 0 -1px 0 rgba(142, 231, 217, 0.72);
}

.holdings-summary-title-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(74, 163, 255, 0.3);
  border-radius: 9px;
  background: rgba(74, 163, 255, 0.12);
  color: #4aa3ff;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

.holdings-summary-title-icon:hover,
.holdings-summary-title-icon:focus-visible {
  border-color: rgba(142, 231, 217, 0.55);
  background: rgba(20, 184, 166, 0.14);
  color: #8ff7e8;
  outline: none;
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.12);
}

.holdings-summary-title-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.85;
}

.holdings-summary-title-icon.is-custom svg {
  display: none;
}

.holdings-summary-title-icon.is-custom::before {
  display: block;
  width: 16px;
  height: 16px;
  background: currentColor;
  content: "";
  mask: var(--sidebar-custom-icon) center / contain no-repeat;
  -webkit-mask: var(--sidebar-custom-icon) center / contain no-repeat;
}

.price-schedule-head > div:first-child > span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-font-weight);
}

.dividend-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  min-height: 56px;
  padding: 7px 12px;
  border: 1px solid rgba(51, 71, 97, 0.78);
  border-radius: 12px;
  background: #111b29;
}

.dividend-history-filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.dividend-history-company-picker {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
}

.dividend-history-title {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 11px;
}

.dividend-history-logo {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(142, 231, 217, 0.28);
  border-radius: 10px;
  background: rgba(20, 184, 166, 0.12);
  overflow: hidden;
}

.dividend-history-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dividend-history-title h2 {
  margin: 0;
  color: var(--text);
  font-size: calc(var(--calendar-font-size) + 6px);
  font-weight: var(--calendar-font-weight);
  line-height: 1.1;
}

.dividend-history-title span,
.dividend-history-total span,
.dividend-history-summary span {
  color: var(--muted);
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-font-weight);
}

.dividend-history-title > div > span {
  display: block;
  margin-top: 4px;
}

.dividend-history-total {
  display: grid;
  justify-items: end;
  gap: 5px;
  min-width: 150px;
  padding: 10px 12px;
  border: 1px solid rgba(51, 71, 97, 0.72);
  border-radius: 10px;
  background: rgba(20, 184, 166, 0.08);
}

.dividend-history-controls {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.dividend-history-summary-head {
  justify-content: space-between;
  gap: 12px 16px;
  margin: 6px 2px -2px;
}

.dividend-history-summary-head .dividend-history-section-title {
  flex: 0 0 auto;
}

.dividend-history-summary-head .dividend-history-controls {
  justify-content: flex-end;
  margin-left: auto;
}

.dividend-history-mode {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 2px;
  border: 1px solid rgba(142, 231, 217, 0.22);
  border-radius: 999px;
  background: rgba(10, 21, 34, 0.62);
}

.dividend-history-mode button {
  min-height: 24px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #9fb0c6;
  cursor: pointer;
  font: inherit;
  font-size: calc(var(--calendar-label-font-size) - 0.5px);
  font-weight: var(--calendar-font-weight);
  line-height: 1;
  white-space: nowrap;
}

.dividend-history-mode button:hover,
.dividend-history-mode button:focus-visible {
  color: #dffcf7;
  outline: none;
}

.dividend-history-mode button.is-active {
  background: rgba(20, 184, 166, 0.18);
  color: #8ee7d9;
}

.dividend-history-total strong,
.dividend-history-summary strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #8ee7d9;
  font-size: calc(var(--calendar-font-size) + 4px);
  font-weight: var(--calendar-font-weight);
  line-height: 1.1;
}

.dividend-history-trend-icon {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  background: #82f1a8;
  mask: url("../assets/icons/nucleo-core-svg/fill/arrows/48px_caret-up-sm.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/arrows/48px_caret-up-sm.svg") center / contain no-repeat;
}

.dividend-history-trend-icon.is-negative {
  background: #ff7f9d;
  transform: rotate(180deg);
}

.dividend-history-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.dividend-history-summary > .dividend-history-section-title {
  grid-column: 1 / -1;
}

.dividend-history-summary article {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid rgba(51, 71, 97, 0.72);
  border-radius: 10px;
  background: rgba(18, 27, 41, 0.72);
  text-align: center;
}

.dividend-history-summary article[draggable="true"] {
  cursor: grab;
  user-select: none;
  transform-origin: center;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease,
    opacity 0.18s ease,
    transform 0.18s ease;
}

.dividend-history-summary article[draggable="true"]:hover,
.dividend-history-summary article[draggable="true"]:focus-visible {
  border-color: rgba(20, 184, 166, 0.72);
  box-shadow: inset 0 0 0 1px rgba(20, 184, 166, 0.22), 0 8px 20px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(20, 184, 166, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.dividend-history-summary article.is-dragging {
  cursor: grabbing;
  border-color: rgba(142, 231, 217, 0.72);
  background: rgba(18, 46, 60, 0.68);
  box-shadow: inset 0 0 0 1px rgba(142, 231, 217, 0.22), 0 10px 22px rgba(0, 0, 0, 0.24);
  filter: saturate(1.05);
  opacity: 0.9;
  transform: translateY(-2px) scale(1.006);
  z-index: 3;
}

.dividend-history-summary article.is-drag-target {
  border-color: rgba(142, 231, 217, 0.68);
  background: rgba(20, 184, 166, 0.075);
  box-shadow: inset 0 0 0 1px rgba(142, 231, 217, 0.2);
  transform: none;
}

.dividend-history-summary article.is-reordered {
  animation: dividendHistorySummarySettle 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes dividendHistorySummarySettle {
  from {
    opacity: 0.92;
    transform: translateY(-2px) scale(1.004);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dividend-history-charts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dividend-history-chart-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px 12px 10px;
  border: 1px solid rgba(51, 71, 97, 0.72);
  border-radius: 11px;
  background: #121b29;
}

.dividend-history-chart-card.is-axis-open {
  z-index: 7;
}

.dividend-history-chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.dividend-history-chart-head h3 {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: calc(var(--calendar-font-size) + 1px);
  font-weight: var(--calendar-font-weight);
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dividend-history-chart-head span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-font-weight);
  white-space: nowrap;
}

.dividend-history-chart-card svg {
  display: block;
  width: 100%;
  height: 168px;
  overflow: visible;
}

.dividend-history-axis-button {
  position: absolute;
  right: 10px;
  bottom: 9px;
}

.dividend-history-chart-card .price-axis-popover {
  top: auto;
  right: 10px;
  bottom: 39px;
  width: min(320px, calc(100% - 20px));
}

@media (max-width: 1400px) {
  .dividend-history-filter-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .dividend-history-controls {
    justify-content: flex-start;
  }

  .dividend-history-summary-head .dividend-history-controls {
    justify-content: flex-end;
  }
}

@media (max-width: 900px) {
  .dividend-history-charts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dividend-history-summary-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .dividend-history-summary-head .dividend-history-controls {
    justify-content: flex-start;
    margin-left: 0;
  }
}

@media (max-width: 680px) {
  .regular-investment-dates-panel {
    width: calc(100vw - 24px);
    padding: 14px;
  }

  .regular-investment-dates-calendar .calendar-grid {
    gap: 6px;
  }

  .regular-investment-dates-day {
    min-height: 76px;
    padding: 7px;
  }

  .dividend-history-charts {
    grid-template-columns: minmax(0, 1fr);
  }
}

.dividend-history-chart-frame {
  fill: transparent;
  stroke: rgba(154, 167, 186, 0.2);
  stroke-width: 1;
}

.dividend-history-chart-grid-line {
  stroke: rgba(154, 167, 186, 0.16);
  stroke-width: 1;
}

.dividend-history-chart-average-line {
  stroke: rgba(154, 167, 186, 0.42);
  stroke-width: 1.2;
  stroke-dasharray: 7 7;
}

.dividend-history-chart-reference-line {
  stroke: rgba(154, 167, 186, 0.48);
  stroke-width: 1.25;
  stroke-dasharray: 7 7;
}

.dividend-history-chart-axis-label {
  fill: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.dividend-history-chart-bar {
  fill: rgba(97, 167, 255, 0.68);
  stroke: rgba(97, 167, 255, 0.95);
  stroke-width: 0.8;
}

.dividend-history-chart-bar.is-latest {
  fill: rgba(142, 231, 217, 0.86);
  stroke: rgba(142, 231, 217, 1);
}

.dividend-history-chart-line {
  fill: none;
  stroke: #8ee7d9;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dividend-history-chart-line.is-yield {
  stroke: #e97132;
  stroke-width: 2.4;
}

.dividend-history-chart-dot {
  fill: #121b29;
  stroke: #8ee7d9;
  stroke-width: 3;
}

.dividend-history-chart-dot.is-yield {
  stroke: #e97132;
}

.dividend-history-chart-empty {
  fill: var(--muted);
  font-size: 11px;
  font-weight: var(--calendar-font-weight);
}

.dividend-history-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 30px;
  margin: 2px 0 -2px;
}

.dividend-history-section-title-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dividend-history-section-head h3 {
  margin: 0;
  color: var(--text);
  font-size: calc(var(--calendar-font-size) + 3px);
  font-weight: var(--calendar-font-weight);
  line-height: 1.15;
}

.dividend-history-payment-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 8px;
  margin-left: auto;
}

.price-add-row.dividend-history-add-payment {
  min-height: 24px;
  gap: 5px;
  padding: 0 9px;
  font-size: calc(var(--calendar-label-font-size) - 1px);
}

.price-add-row.dividend-history-add-payment .price-add-icon {
  width: 11px;
  height: 11px;
}

.dividend-history-table-wrap {
  max-height: calc(100vh - 330px);
  overflow: auto;
  border: 1px solid #2b3a50;
  border-radius: 11px;
  background: #121b29;
}

.dividend-history-table {
  width: 100%;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-family: var(--calendar-font);
  font-size: var(--calendar-font-size);
  font-weight: var(--calendar-font-weight);
}

.dividend-history-table th,
.dividend-history-table td {
  height: 34px;
  padding: 5px 10px;
  border-bottom: 1px solid rgba(51, 71, 97, 0.62);
  color: #d8e2f0;
  font-size: var(--calendar-font-size);
  font-weight: var(--calendar-font-weight);
  line-height: 1.2;
  text-align: center;
  vertical-align: middle;
}

.dividend-history-table thead {
  position: sticky;
  top: 0;
  z-index: 8;
  box-shadow: 0 1px 0 rgba(51, 71, 97, 0.78), 0 8px 16px rgba(5, 10, 18, 0.18);
}

.dividend-history-table th {
  position: sticky;
  top: 0;
  z-index: 9;
  background: #20374b;
  color: var(--table-header-text);
  font-size: var(--calendar-label-font-size);
  background-clip: padding-box;
}

.dividend-history-sort {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  line-height: 1.15;
  text-align: center;
}

.dividend-history-sort:hover,
.dividend-history-sort:focus-visible,
.dividend-history-sort.is-active {
  color: #dffcf7;
  outline: none;
}

.dividend-history-sort-icon {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  background: currentColor;
  opacity: 0.58;
  mask: url("../assets/icons/nucleo-core-svg/outline/filtering-sorting/24px_sort-alpha-descending.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/outline/filtering-sorting/24px_sort-alpha-descending.svg") center / contain no-repeat;
}

.dividend-history-column-resizer {
  position: absolute;
  top: 0;
  right: -4px;
  z-index: 5;
  width: 8px;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: col-resize;
  touch-action: none;
}

.dividend-history-column-resizer::before {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 3px;
  width: 1px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0);
  content: "";
  transition: background 120ms ease;
}

.dividend-history-column-resizer:hover::before,
.dividend-history-column-resizer:focus-visible::before,
.dividend-history-column-resizer.is-active::before {
  background: rgba(149, 161, 180, 0.56);
}

body.is-resizing-dividend-history-columns,
body.is-resizing-dividend-history-columns * {
  cursor: col-resize !important;
  user-select: none;
}

.dividend-history-table tr:nth-child(even) td {
  background: rgba(21, 31, 47, 0.72);
}

.dividend-history-table tbody tr:hover td {
  background: rgba(20, 184, 166, 0.09);
}

.dividend-history-table tbody tr.is-editing td {
  background: rgba(20, 184, 166, 0.12);
}

.dividend-history-table tbody tr:last-child td {
  border-bottom: 0;
}

.dividend-history-date {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 100%;
  gap: 3px;
  text-align: center;
}

.dividend-history-edit-input {
  width: min(100%, 118px);
  height: 26px;
  padding: 0 7px;
  border: 1px solid rgba(142, 231, 217, 0.45);
  border-radius: 7px;
  background: #0f1826;
  color: #e8edf5;
  font: inherit;
  text-align: center;
  outline: none;
}

.dividend-history-edit-input:focus {
  border-color: rgba(88, 113, 148, 0.82);
  box-shadow: 0 0 0 2px rgba(88, 113, 148, 0.12);
}

.dividend-history-edit-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.dividend-history-edit-actions .dividend-history-edit-input {
  width: 76px;
}

.dividend-history-row-save,
.dividend-history-row-cancel {
  height: 24px;
  padding: 0 7px;
  border: 1px solid rgba(142, 231, 217, 0.34);
  border-radius: 7px;
  background: rgba(20, 184, 166, 0.12);
  color: #8ee7d9;
  cursor: pointer;
  font: inherit;
  font-size: 10.5px;
  line-height: 1;
}

.dividend-history-row-cancel {
  border-color: rgba(255, 111, 125, 0.34);
  background: rgba(255, 111, 125, 0.16);
  color: #ffc4ca;
}

.dividend-history-row-save:hover,
.dividend-history-row-save:focus-visible {
  border-color: rgba(142, 231, 217, 0.78);
  outline: none;
}

.dividend-history-row-cancel:hover,
.dividend-history-row-cancel:focus-visible {
  border-color: rgba(255, 111, 125, 0.76);
  outline: none;
}

.dividend-history-date b {
  color: var(--text);
  font-weight: var(--calendar-font-weight);
}

.dividend-history-date span {
  overflow: hidden;
  color: var(--muted);
  font-size: max(9px, calc(var(--calendar-label-font-size) - 1px));
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dividend-history-value,
.dividend-history-money,
.dividend-history-percent {
  color: #8ee7d9;
  font-weight: var(--calendar-font-weight);
}

.dividend-history-muted {
  color: var(--muted);
}

.price-schedule-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
  gap: 9px;
}

.price-company-picker {
  display: grid;
  flex: 1 1 560px;
  gap: 4px;
  min-width: 320px;
  max-width: 720px;
  position: relative;
}

.price-company-picker > span {
  margin: 0;
  color: var(--muted);
  font-size: calc(var(--calendar-label-font-size) - 1px);
  line-height: 1.1;
}

.price-company-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  width: 100%;
  min-width: 224px;
  min-height: 30px;
  padding: 0 10px 0 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #121b29;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-font-weight);
  text-align: left;
}

.price-company-toggle:hover,
.price-company-toggle:focus-visible,
.price-company-picker.is-open .price-company-toggle {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(9, 164, 151, 0.14);
  outline: none;
}

.price-company-selected,
.price-company-option-content {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
  max-width: 100%;
  gap: 8px;
  overflow: hidden;
  white-space: nowrap;
}

.price-company-selected {
  flex: 1 1 auto;
  width: 100%;
}

.price-company-logo {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  overflow: hidden;
}

.price-company-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.price-company-logo.is-placeholder::before {
  content: "";
  width: 14px;
  height: 14px;
  background: #8ee7d9;
  mask: url("../assets/icons/nucleo-core-svg/fill/business-finance/24px_chart-stock-price.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/business-finance/24px_chart-stock-price.svg") center / contain no-repeat;
}

.price-company-label {
  display: flex;
  align-items: baseline;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  gap: 5px;
  overflow: hidden;
  white-space: nowrap;
}

.price-company-label strong,
.price-company-label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-company-label strong {
  flex: 0 0 auto;
  color: #e8edf5;
}

.price-company-label span {
  flex: 1 1 auto;
  min-width: 0;
  color: #cbd5e1;
}

.price-company-selected-copy {
  display: grid;
  align-content: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 3px;
  overflow: hidden;
  white-space: nowrap;
}

.price-company-selected-copy strong,
.price-company-selected-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-company-selected-copy strong {
  color: var(--text);
  font-size: calc(var(--calendar-font-size) + 5px);
  font-weight: var(--calendar-font-weight);
  line-height: 1.08;
}

.price-company-selected-copy span {
  color: var(--muted);
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-font-weight);
  line-height: 1.08;
}

.price-company-chevron {
  flex: 0 0 auto;
  color: #95a1b4;
  font-size: 14px;
  line-height: 1;
}

.price-company-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: auto;
  z-index: 15;
  display: grid;
  width: max-content;
  min-width: 360px;
  max-width: min(520px, calc(100vw - 48px));
  max-height: 260px;
  overflow: auto;
  padding: 5px;
  border: 1px solid #334761;
  border-radius: 13px;
  background: #172131;
  box-shadow: 0 18px 38px rgba(3, 8, 17, 0.42);
}

.price-company-menu[hidden] {
  display: none;
}

.price-company-search {
  position: sticky;
  top: -5px;
  z-index: 1;
  padding: 5px 5px 7px;
  background: #172131;
}

.price-company-search input {
  width: 100%;
  height: 34px;
  border: 1px solid rgba(51, 71, 97, 0.92);
  border-radius: 10px;
  background: #101826;
  color: var(--text);
  padding: 0 11px;
  font: inherit;
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-font-weight);
  outline: none;
}

.price-company-search input::placeholder {
  color: rgba(149, 161, 180, 0.72);
}

.price-company-search input:focus {
  border-color: rgba(88, 113, 148, 0.82);
  box-shadow: 0 0 0 2px rgba(88, 113, 148, 0.12);
}

.price-company-add-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: calc(100% - 10px);
  min-height: 34px;
  margin: 0 5px 6px;
  padding: 0 10px;
  border: 1px solid rgba(142, 231, 217, 0.26);
  border-radius: 10px;
  background: rgba(12, 70, 72, 0.38);
  color: #8ee7d9;
  cursor: pointer;
  font: inherit;
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-font-weight);
  text-align: left;
}

.price-company-add-option:hover,
.price-company-add-option:focus-visible {
  border-color: rgba(142, 231, 217, 0.58);
  background: rgba(20, 184, 166, 0.18);
  color: #dffcf7;
  outline: none;
}

.price-company-add-icon {
  display: inline-block;
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  background: currentColor;
  mask: url("../assets/icons/nucleo-core-svg/outline/ui-layout/24px_circle-plus.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/outline/ui-layout/24px_circle-plus.svg") center / contain no-repeat;
}

.price-company-options {
  display: grid;
  gap: 0;
}

.price-company-empty {
  margin: 7px 9px 8px;
  color: var(--muted);
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-font-weight);
}

.price-company-empty[hidden] {
  display: none;
}

.price-company-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #e8edf5;
  cursor: pointer;
  font: inherit;
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-font-weight);
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
}

.price-company-option[hidden] {
  display: none;
}

.price-company-option .price-company-option-content {
  width: 100%;
}

.price-company-option:hover,
.price-company-option:focus-visible,
.price-company-option.is-selected {
  background: rgba(9, 164, 151, 0.2);
  outline: none;
}

body[data-active-view="price-schedule"] .price-company-picker > span {
  display: none;
}

body[data-active-view="price-schedule"] .price-schedule-head {
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 9px 13px;
  border: 1px solid rgba(51, 71, 97, 0.78);
  border-radius: 13px;
  background: #111b29;
}

body[data-active-view="price-schedule"] .price-schedule-actions {
  width: 100%;
  justify-content: stretch;
  align-items: center;
  gap: 0;
}

body[data-active-view="price-schedule"] .price-company-picker {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
}

body[data-active-view="price-schedule"] .price-company-toggle {
  min-height: 44px;
  padding: 0 4px 0 0;
  border-color: transparent;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
}

body[data-active-view="price-schedule"] .price-company-selected {
  gap: 12px;
}

body[data-active-view="price-schedule"] .price-company-selected .price-company-logo {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  border-radius: 10px;
}

body[data-active-view="price-schedule"] .price-company-selected-copy {
  gap: 3px;
}

body[data-active-view="price-schedule"] .price-company-selected-copy strong {
  font-size: calc(var(--calendar-font-size) + 5px);
  line-height: 1.05;
}

body[data-active-view="price-schedule"] .price-company-selected-copy span {
  font-size: var(--calendar-label-font-size);
  line-height: 1.05;
}

body[data-active-view="price-schedule"] .price-company-selected .price-company-logo.is-placeholder::before {
  width: 19px;
  height: 19px;
}

body[data-active-view="price-schedule"] .price-company-toggle:hover,
body[data-active-view="price-schedule"] .price-company-toggle:focus-visible,
body[data-active-view="price-schedule"] .price-company-picker.is-open .price-company-toggle {
  border-color: transparent;
  background: rgba(142, 231, 217, 0.06);
  box-shadow: none;
}

body[data-active-view="price-schedule"] .price-company-menu {
  top: calc(100% + 7px);
  left: 0;
  right: auto;
  min-width: min(520px, calc(100vw - 48px));
}

body[data-active-view="price-schedule"] .selected-price-company {
  display: none;
}

body[data-active-view="dividend-history"] .dividend-history-filter-bar {
  grid-template-columns: minmax(0, 1fr);
}

body[data-active-view="dividend-history"] .dividend-history-company-picker {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
}

body[data-active-view="dividend-history"] .dividend-history-company-picker .price-company-toggle {
  min-height: 40px;
  padding: 0 4px 0 0;
  border-color: transparent;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
}

body[data-active-view="dividend-history"] .dividend-history-company-picker .price-company-selected {
  gap: 12px;
}

body[data-active-view="dividend-history"] .dividend-history-company-picker .price-company-selected .price-company-logo {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  border-radius: 10px;
}

body[data-active-view="dividend-history"] .dividend-history-company-picker .price-company-selected-copy {
  gap: 3px;
}

body[data-active-view="dividend-history"] .dividend-history-company-picker .price-company-selected-copy strong {
  font-size: calc(var(--calendar-font-size) + 4px);
  line-height: 1.05;
}

body[data-active-view="dividend-history"] .dividend-history-company-picker .price-company-selected-copy span {
  font-size: var(--calendar-label-font-size);
  line-height: 1.05;
}

body[data-active-view="dividend-history"] .dividend-history-company-picker .price-company-selected .price-company-logo.is-placeholder::before {
  width: 19px;
  height: 19px;
}

body[data-active-view="dividend-history"] .dividend-history-company-picker .price-company-toggle:hover,
body[data-active-view="dividend-history"] .dividend-history-company-picker .price-company-toggle:focus-visible,
body[data-active-view="dividend-history"] .dividend-history-company-picker.is-open .price-company-toggle {
  border-color: transparent;
  background: rgba(142, 231, 217, 0.06);
  box-shadow: none;
}

body[data-active-view="dividend-history"] .dividend-history-company-picker .price-company-menu {
  top: calc(100% + 7px);
  left: 0;
  right: auto;
  min-width: min(520px, calc(100vw - 48px));
  width: min(620px, 100%);
}

.price-add-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 7px;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(142, 231, 217, 0.28);
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  color: #8ee7d9;
  cursor: pointer;
  font: inherit;
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-font-weight);
}

.price-add-row:hover,
.price-add-row:focus-visible {
  border-color: rgba(142, 231, 217, 0.58);
  background: rgba(20, 184, 166, 0.2);
  color: #dffcf7;
  outline: none;
}

.price-add-icon {
  display: inline-block;
  width: 13px;
  height: 13px;
  background: currentColor;
  mask: url("../assets/icons/nucleo-core-svg/outline/time/24px_calendar-plus.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/outline/time/24px_calendar-plus.svg") center / contain no-repeat;
}

.current-position-unhide-icon {
  display: inline-block;
  width: 13px;
  height: 13px;
  background: currentColor;
  mask: url("../assets/icons/nucleo-core-svg/outline/ui-layout/24px_eye.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/outline/ui-layout/24px_eye.svg") center / contain no-repeat;
}

.holdings-summary-metrics {
  --holdings-summary-widget-height: 128px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, var(--holdings-summary-widget-height));
  gap: 10px;
  align-items: stretch;
  justify-content: stretch;
}

.holdings-summary-metric-card {
  display: grid;
  min-height: 68px;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 11px 12px;
  border: 1px solid rgba(51, 71, 97, 0.72);
  border-radius: 10px;
  background: rgba(18, 27, 41, 0.72);
  box-sizing: border-box;
  text-align: center;
}

[data-holdings-summary-card][draggable="true"] {
  cursor: grab;
  transform-origin: center;
  user-select: none;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease,
    opacity 0.18s ease,
    transform 0.18s ease;
}

[data-holdings-summary-card][draggable="true"]:hover,
[data-holdings-summary-card][draggable="true"]:focus-visible {
  border-color: rgba(20, 184, 166, 0.72);
  box-shadow: inset 0 0 0 1px rgba(20, 184, 166, 0.22), 0 8px 20px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(20, 184, 166, 0.1);
  outline: none;
  transform: translateY(-1px);
}

[data-holdings-summary-card].is-dragging {
  cursor: grabbing;
  border-color: rgba(142, 231, 217, 0.88);
  background: rgba(18, 46, 60, 0.76);
  box-shadow: inset 0 0 0 1px rgba(142, 231, 217, 0.32), 0 16px 32px rgba(0, 0, 0, 0.3), 0 0 18px rgba(20, 184, 166, 0.18);
  filter: saturate(1.18);
  opacity: 0.78;
  transform: translateY(-5px) scale(1.025) rotate(-0.8deg);
  z-index: 3;
}

[data-holdings-summary-card].is-drag-target {
  border-color: rgba(142, 231, 217, 0.95);
  background: rgba(20, 184, 166, 0.12);
  box-shadow: inset 0 0 0 1px rgba(142, 231, 217, 0.35), 0 0 0 2px rgba(20, 184, 166, 0.16);
  animation: holdingsSummaryDropTargetPulse 0.7s ease-in-out infinite alternate;
  transform: translateY(2px) scale(0.985);
}

[data-holdings-summary-card].is-reordered {
  animation: holdingsSummarySettle 0.36s cubic-bezier(0.18, 0.85, 0.2, 1.15);
}

@keyframes holdingsSummaryDropTargetPulse {
  from {
    box-shadow: inset 0 0 0 1px rgba(142, 231, 217, 0.28), 0 0 0 1px rgba(20, 184, 166, 0.12);
  }

  to {
    box-shadow: inset 0 0 0 1px rgba(142, 231, 217, 0.48), 0 0 0 4px rgba(20, 184, 166, 0.22);
  }
}

@keyframes holdingsSummarySettle {
  0% {
    transform: translateY(-6px) scale(1.025);
  }

  55% {
    transform: translateY(2px) scale(0.992);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

.holdings-summary-metric-card span {
  color: var(--muted);
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-font-weight);
}

.holdings-summary-metric-card strong {
  color: #8ee7d9;
  font-size: calc(var(--calendar-font-size) + 3.5px);
  font-weight: var(--calendar-font-weight);
  line-height: 1.1;
  white-space: nowrap;
}

.holdings-summary-metric-card strong.is-positive {
  color: #39f28b;
}

.holdings-summary-metric-card strong.is-negative {
  color: #ff6b7a;
}

.holdings-summary-combo-card {
  gap: 7px;
}

.holdings-summary-current-valuation-card,
.holdings-summary-split-card,
.holdings-summary-dividend-yield-card {
  min-height: 128px;
  align-content: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.holdings-summary-current-main,
.holdings-summary-current-gain,
.holdings-summary-split-section {
  display: grid;
  min-width: 0;
  width: 100%;
  justify-items: center;
  align-content: center;
  gap: 6px;
  padding: 10px 12px;
}

.holdings-summary-current-main {
  min-height: 58px;
}

.holdings-summary-current-gain,
.holdings-summary-split-section + .holdings-summary-split-section {
  min-height: 68px;
  border-top: 1px solid rgba(120, 147, 179, 0.18);
  background: transparent;
}

.holdings-summary-split-section:first-child {
  min-height: 58px;
}

.holdings-summary-label-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.holdings-summary-metric-card .holdings-summary-hourglass-icon {
  display: inline-block;
  width: var(--nucleo-metric-label-icon-size, 12px);
  height: var(--nucleo-metric-label-icon-size, 12px);
  flex: 0 0 var(--nucleo-metric-label-icon-size, 12px);
  color: #8ee7d9;
  background: currentColor;
  mask: var(--nucleo-holdings-hourglass-icon) center / contain no-repeat;
  -webkit-mask: var(--nucleo-holdings-hourglass-icon) center / contain no-repeat;
  opacity: 0.82;
}

.holdings-summary-type-breakdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.holdings-summary-type-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  color: #91a2b7;
  font-size: calc(var(--calendar-label-font-size) - 0.5px);
  font-weight: var(--calendar-font-weight);
  line-height: 1;
  white-space: nowrap;
}

.holdings-summary-type-pill[data-holding-type="core"] {
  color: #c5cfdd;
}

.holdings-summary-type-pill[data-holding-type="non-core"] {
  color: #d6bf78;
}

.holdings-summary-type-icon {
  display: block;
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  background: currentColor;
}

.holdings-summary-type-pill[data-holding-type="core"] .holdings-summary-type-icon {
  mask: url("../assets/icons/nucleo-core-svg/fill/holidays/24px_star.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/holidays/24px_star.svg") center / contain no-repeat;
}

.holdings-summary-type-pill[data-holding-type="non-core"] .holdings-summary-type-icon {
  mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_circle-half-dashed-check.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_circle-half-dashed-check.svg") center / contain no-repeat;
}

.holdings-summary-market-card {
  display: grid;
  grid-column: 4;
  grid-row: 1;
  align-content: stretch;
  gap: 3px;
  justify-self: stretch;
  width: 100%;
  min-height: 128px;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid rgba(51, 71, 97, 0.72);
  border-radius: 10px;
  background: rgba(18, 27, 41, 0.72);
  box-sizing: border-box;
}

.holdings-summary-currency-card {
  display: grid;
  grid-column: 4;
  grid-row: 2;
  align-content: stretch;
  gap: 3px;
  justify-self: stretch;
  width: 100%;
  min-height: 58px;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid rgba(51, 71, 97, 0.72);
  border-radius: 10px;
  background: rgba(18, 27, 41, 0.72);
  box-sizing: border-box;
}

.holdings-summary-top-movers-card {
  display: grid;
  align-content: stretch;
  gap: 2px;
  min-width: 0;
  min-height: var(--holdings-summary-widget-height);
  padding: 5px 8px 2px;
  border: 1px solid rgba(51, 71, 97, 0.72);
  border-radius: 10px;
  background: rgba(18, 27, 41, 0.72);
  box-sizing: border-box;
}

.holdings-summary-top-movers-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.holdings-summary-top-movers-head .holdings-summary-card-heading {
  text-align: left;
}

.holdings-summary-top-movers-icon {
  display: block;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  background: #8ee7d9;
  opacity: 0.82;
  mask: url("../assets/icons/nucleo-core-svg/outline/charts/24px_chart-bar-trend-up.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/outline/charts/24px_chart-bar-trend-up.svg") center / contain no-repeat;
}

.holdings-summary-top-movers-groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  min-width: 0;
  min-height: 0;
}

.holdings-summary-top-movers-group {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 2px;
  min-width: 0;
}

.holdings-summary-top-movers-group h3 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #95a1b4;
  font-size: max(8px, calc(var(--calendar-font-size) - 1.6px));
  font-weight: 800;
  line-height: 0.95;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.holdings-summary-top-movers-list {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.holdings-summary-top-mover-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) minmax(72px, auto);
  align-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 16px;
  padding: 1px 0;
  border-top: 1px solid rgba(51, 71, 97, 0.5);
  box-sizing: border-box;
}

.holdings-summary-top-mover-row.is-positive {
  border-color: rgba(100, 220, 202, 0.22);
}

.holdings-summary-top-mover-row.is-negative {
  border-color: rgba(255, 154, 154, 0.2);
}

.holdings-summary-top-mover-row.is-empty {
  grid-template-columns: 1fr;
  justify-items: center;
  color: #66738a;
}

.holdings-summary-top-mover-logo {
  --company-favicon-size: 16px;
  border-radius: 5px;
  cursor: default;
  pointer-events: none;
}

.holdings-summary-top-mover-name {
  min-width: 0;
  overflow: hidden;
  color: #e8edf5;
  font-size: max(9px, calc(var(--calendar-font-size) - 0.95px));
  font-weight: var(--ui-font-weight);
  line-height: 0.95;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.holdings-summary-top-mover-values {
  display: grid;
  justify-items: end;
  min-width: 0;
  gap: 0;
  line-height: 0.95;
  text-align: right;
}

.holdings-summary-top-mover-amount,
.holdings-summary-top-mover-percent {
  min-width: 0;
  overflow: hidden;
  font-weight: var(--ui-font-weight);
  line-height: 0.95;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.holdings-summary-top-mover-amount {
  font-size: max(9px, calc(var(--calendar-font-size) - 0.8px));
}

.holdings-summary-top-mover-percent {
  font-size: max(8px, calc(var(--calendar-label-font-size) - 0.4px));
}

.holdings-summary-top-mover-row.is-positive .holdings-summary-top-mover-amount,
.holdings-summary-top-mover-row.is-positive .holdings-summary-top-mover-percent {
  color: #64dcca;
}

.holdings-summary-top-mover-row.is-negative .holdings-summary-top-mover-amount,
.holdings-summary-top-mover-row.is-negative .holdings-summary-top-mover-percent {
  color: #ff9a9a;
}

.holdings-summary-top-mover-empty {
  overflow: hidden;
  font-size: max(9px, calc(var(--calendar-font-size) - 0.7px));
  text-overflow: ellipsis;
  white-space: nowrap;
}

.holdings-summary-card-heading {
  display: block;
  justify-self: stretch;
  min-width: 0;
  overflow: hidden;
  color: #95a1b4;
  font-size: max(9px, calc(var(--calendar-font-size) - 1.25px));
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.holdings-summary-currency-list,
.holdings-summary-market-list {
  display: grid;
  align-content: stretch;
  min-width: 0;
}

.holdings-summary-currency-row,
.holdings-summary-market-row {
  display: grid;
  grid-template-columns: minmax(74px, 1.2fr) minmax(44px, 0.95fr) minmax(33px, 0.75fr);
  align-items: center;
  column-gap: 4px;
  min-width: 0;
  min-height: 22px;
  border-top: 1px solid rgba(51, 71, 97, 0.5);
}

.holdings-summary-currency-row:first-child,
.holdings-summary-market-row:first-child {
  border-top: 0;
}

.holdings-summary-currency-pair,
.holdings-summary-market-name {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 4px;
  overflow: hidden;
  color: #e8edf5;
  font-size: max(9px, calc(var(--calendar-font-size) - 0.35px));
  font-weight: var(--ui-font-weight);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.holdings-summary-currency-pair .currency-pair-code {
  gap: 3px;
  color: #e8edf5;
  font-size: max(9px, calc(var(--calendar-font-size) - 0.35px));
  font-weight: var(--ui-font-weight);
}

.holdings-summary-currency-pair .currency-pair-flag {
  width: 13px;
  height: 13px;
  flex-basis: 13px;
}

.holdings-summary-currency-pair .currency-pair-divider {
  color: #708096;
  font-size: 10px;
}

.holdings-summary-market-flag {
  display: inline-flex;
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  overflow: hidden;
  border-radius: 50%;
}

.holdings-summary-market-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.holdings-summary-currency-rate,
.holdings-summary-currency-change,
.holdings-summary-market-level,
.holdings-summary-market-change {
  min-width: 0;
  overflow: hidden;
  color: #8ee7d9;
  font-size: max(9px, calc(var(--calendar-font-size) - 0.35px));
  font-weight: var(--ui-font-weight);
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.holdings-summary-currency-change {
  color: #c5cfdd;
}

.holdings-summary-currency-change.is-positive,
.holdings-summary-market-change.is-positive {
  color: #64dcca;
}

.holdings-summary-currency-change.is-negative,
.holdings-summary-market-change.is-negative {
  color: #ff9a9a;
}

.holdings-summary-currency-rate.is-empty,
.holdings-summary-currency-change.is-empty,
.holdings-summary-market-level.is-empty,
.holdings-summary-market-change.is-empty {
  color: #66738a;
}

.holdings-summary-day-gain-card {
  align-self: start;
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  width: min(100%, var(--current-position-company-width));
  min-height: 73px;
}

.holdings-summary-dividend-card {
  grid-column: 1;
}

.holdings-summary-dividend-yield-card {
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
}

.holdings-summary-metrics > [data-holdings-summary-card] {
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  height: var(--holdings-summary-widget-height);
  min-height: 0;
  box-sizing: border-box;
}

.holdings-summary-dividend-yield-card .holdings-summary-dividend-yield-section {
  min-height: 0;
  gap: 4px;
  padding: 7px 10px;
}

.holdings-summary-dividend-yield-card .holdings-summary-dividend-yield-section + .holdings-summary-dividend-yield-section {
  min-height: 0;
}

.holdings-summary-dividend-yield-card .holdings-summary-combo-values {
  gap: 0;
}

.holdings-summary-dividend-yield-card .holdings-summary-combo-item {
  gap: 2px;
  padding: 0 8px;
}

.holdings-summary-dividend-yield-card .holdings-summary-combo-item strong {
  font-size: calc(var(--calendar-font-size) + 1.5px);
}

.holdings-summary-dividend-yield-card .holdings-summary-combo-label {
  font-size: calc(var(--calendar-label-font-size) - 0.75px);
}

.holdings-summary-combo-values {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  min-width: 0;
}

.holdings-summary-combo-values > strong {
  min-width: 0;
  font-size: calc(var(--calendar-font-size) + 2.5px);
}

.holdings-summary-combo-values > strong + strong {
  padding-left: 11px;
  border-left: 1px solid rgba(120, 147, 179, 0.24);
}

.holdings-summary-price-gain-values {
  flex-wrap: wrap;
  gap: 8px;
}

.holdings-summary-price-gain-values > strong + strong {
  padding-left: 0;
  border-left: 0;
}

.holdings-summary-price-gain-values .holdings-summary-gain-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: min(98px, calc((100% - 8px) / 2));
  min-height: 24px;
  padding: 2px 9px;
  border: 1px solid rgba(142, 231, 217, 0.18);
  border-radius: 8px;
  background: rgba(18, 27, 41, 0.5);
  color: #95a1b4;
  font-size: max(9px, calc(var(--calendar-font-size) - 0.5px));
  line-height: 1;
  box-shadow: none;
}

.holdings-summary-price-gain-values .holdings-summary-gain-badge.is-positive {
  border-color: rgba(45, 212, 191, 0.46);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(20, 184, 166, 0.08));
  color: #7df0c3;
  box-shadow: inset 0 0 0 1px rgba(141, 245, 224, 0.08);
}

.holdings-summary-price-gain-values .holdings-summary-gain-badge.is-negative {
  border-color: rgba(240, 116, 110, 0.5);
  background: linear-gradient(135deg, rgba(240, 116, 110, 0.18), rgba(240, 116, 110, 0.08));
  color: #ff9a9a;
  box-shadow: inset 0 0 0 1px rgba(255, 184, 184, 0.08);
}

.holdings-summary-price-gain-values .holdings-summary-gain-badge.is-neutral {
  border-color: rgba(255, 209, 102, 0.5);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.18), rgba(255, 209, 102, 0.08));
  color: #ffd166;
  box-shadow: inset 0 0 0 1px rgba(255, 225, 153, 0.08);
}

.holdings-summary-labeled-values {
  gap: 0;
}

.holdings-summary-day-gain-card .holdings-summary-combo-values {
  gap: 0;
}

.holdings-summary-day-gain-card .holdings-summary-combo-values > strong {
  flex: 1 1 0;
  padding: 0 10px;
  text-align: center;
}

.holdings-summary-day-gain-card .holdings-summary-combo-values > strong + strong {
  padding-left: 10px;
}

.holdings-summary-label-input {
  width: min(170px, 100%);
  min-width: 0;
  height: 24px;
  padding: 0 7px;
  border: 1px solid rgba(45, 212, 191, 0.5);
  border-radius: 7px;
  background: rgba(12, 20, 31, 0.96);
  color: #e8edf5;
  font: inherit;
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-font-weight);
  text-align: center;
  outline: none;
}

.holdings-summary-type-pill .holdings-summary-label-input,
.holdings-summary-combo-label .holdings-summary-label-input {
  width: 78px;
  height: 18px;
  padding: 0 5px;
  border-radius: 6px;
  font-size: inherit;
  line-height: 1;
}

.holdings-summary-combo-label .holdings-summary-label-input {
  width: 92px;
}

.holdings-summary-combo-item {
  display: grid;
  flex: 1 1 0;
  min-width: 0;
  justify-items: center;
  gap: 3px;
  padding: 0 10px;
}

.holdings-summary-combo-item + .holdings-summary-combo-item {
  border-left: 1px solid rgba(120, 147, 179, 0.24);
}

.holdings-summary-metric-card .holdings-summary-combo-label {
  color: #91a2b7;
  font-size: calc(var(--calendar-label-font-size) - 0.5px);
}

.holdings-summary-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 10px;
}

.current-position-table-wrap {
  max-height: 274px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: rgba(142, 231, 217, 0.62) rgba(18, 27, 41, 0.96);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  border: 1px solid #2b3a50;
  border-radius: 11px;
  background: #121b29;
}

.current-position-table-wrap::-webkit-scrollbar:vertical {
  width: 12px;
}

.current-position-table-wrap::-webkit-scrollbar:horizontal {
  height: 0;
}

.current-position-table-wrap::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(18, 27, 41, 0.96);
}

.current-position-table-wrap::-webkit-scrollbar-thumb {
  border: 3px solid rgba(18, 27, 41, 0.96);
  border-radius: 999px;
  background: rgba(142, 231, 217, 0.62);
}

.current-position-table-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(142, 231, 217, 0.86);
}

body[data-active-view="holdings-summary"] .current-position-table-wrap {
  margin-top: 12px;
  max-height: calc(100vh - 270px);
}

.current-position-x-scroll {
  position: relative;
  display: block;
  width: 100%;
  height: 13px;
  margin: 8px 0 0;
  border: 1px solid rgba(51, 71, 97, 0.82);
  border-radius: 999px;
  background: rgba(18, 27, 41, 0.96);
  cursor: ew-resize;
  outline: none;
  touch-action: none;
}

.current-position-x-scroll[hidden],
.current-position-x-scroll.is-disabled {
  display: none;
}

.current-position-x-scroll:focus-visible {
  border-color: rgba(142, 231, 217, 0.54);
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.14);
}

.current-position-x-thumb {
  position: absolute;
  top: 2px;
  left: 0;
  width: 54px;
  height: 7px;
  border-radius: 999px;
  background: rgba(142, 231, 217, 0.72);
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.08);
  transition: background 140ms ease, box-shadow 140ms ease;
  will-change: transform, width;
}

.current-position-x-scroll:hover .current-position-x-thumb,
.current-position-x-scroll:focus-visible .current-position-x-thumb,
.current-position-x-scroll.is-dragging .current-position-x-thumb {
  background: rgba(142, 231, 217, 0.94);
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.16);
}

.current-position-x-scroll.is-disabled {
  height: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.current-position-table {
  width: 100%;
  min-width: 1614px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-family: var(--calendar-font);
  font-size: var(--calendar-font-size);
  font-weight: var(--calendar-font-weight);
}

.current-position-table th,
.current-position-table td {
  height: 40px;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(51, 71, 97, 0.62);
  color: #d8e2f0;
  font-size: var(--calendar-font-size);
  font-weight: var(--calendar-font-weight);
  line-height: 1.2;
  text-align: center;
  vertical-align: middle;
}

.current-position-table th {
  position: sticky;
  top: 0;
  z-index: 6;
  height: 42px;
  background: #20374b;
  color: var(--table-header-text);
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-font-weight);
}

.current-position-table th:first-child,
.current-position-table td:first-child {
  width: var(--current-position-company-width);
  text-align: left;
}

.current-position-table th:first-child,
.current-position-table td:first-child {
  position: sticky;
  left: 0;
}

.current-position-table th:first-child {
  z-index: 10;
  background: #20374b;
}

.current-position-table td:first-child {
  z-index: 4;
  background: #121b29;
}

.current-position-table th:first-child,
.current-position-table td:first-child {
  box-shadow: 1px 0 0 rgba(45, 212, 191, 0.18);
}

.current-position-table [data-current-position-column="tradingCurrency"] {
  width: var(--current-position-tradingCurrency-width);
}

.current-position-table [data-current-position-column="holdingPeriod"] {
  width: var(--current-position-holdingPeriod-width);
}

.current-position-table [data-current-position-column="shares"] {
  width: var(--current-position-shares-width);
}

.current-position-table [data-current-position-column="bookCost"] {
  width: var(--current-position-bookCost-width);
}

.current-position-table [data-current-position-column="averageCost"] {
  width: var(--current-position-averageCost-width);
}

.current-position-table [data-current-position-column="livePrice"] {
  width: var(--current-position-livePrice-width);
}

.current-position-table [data-current-position-column="valuation"] {
  width: var(--current-position-valuation-width);
}

.current-position-table [data-current-position-column="indicatedNetDps"] {
  width: var(--current-position-indicatedNetDps-width);
}

.current-position-table [data-current-position-column="marketYield"] {
  width: var(--current-position-marketYield-width);
}

.current-position-table [data-current-position-column="rYield"] {
  width: var(--current-position-rYield-width);
}

.current-position-table [data-current-position-column="totalGain"] {
  width: var(--current-position-totalGain-width);
}

.current-position-table [data-current-position-column="totalGainPercent"] {
  width: var(--current-position-totalGainPercent-width);
}

.current-position-table [data-current-position-column="dayChange"] {
  width: var(--current-position-dayChange-width);
}

.current-position-table [data-current-position-column="dayGain"] {
  width: var(--current-position-dayGain-width);
}

.current-position-table [data-current-position-column="lastTransaction"] {
  width: var(--current-position-lastTransaction-width);
}

.current-position-table [data-current-position-column][hidden] {
  display: none;
}

.current-position-head {
  overflow: visible;
}

.current-position-head-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  gap: 5px;
}

.current-position-table th:not(:first-child)[aria-sort] .current-position-head-cell {
  position: relative;
  gap: 0;
  padding-inline: 18px;
}

.current-position-table th:first-child .current-position-head-cell {
  justify-content: space-between;
  gap: 8px;
}

.current-position-head-main,
.current-position-edge-controls {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.current-position-head-main {
  gap: 5px;
}

.current-position-edge-controls {
  flex: 0 0 auto;
  gap: 4px;
}

.current-position-edge-control {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  padding: 0;
  border: 1px solid rgba(142, 231, 217, 0.24);
  border-radius: 5px;
  background: rgba(18, 27, 41, 0.58);
  color: rgba(142, 231, 217, 0.82);
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, opacity 140ms ease;
}

.current-position-edge-control:hover,
.current-position-edge-control:focus-visible {
  border-color: rgba(142, 231, 217, 0.6);
  background: rgba(20, 184, 166, 0.14);
  color: #dffcf7;
  outline: none;
}

.current-position-edge-control:disabled {
  border-color: rgba(101, 114, 134, 0.16);
  background: rgba(18, 27, 41, 0.22);
  color: rgba(149, 161, 180, 0.34);
  cursor: default;
  opacity: 0.58;
}

.current-position-edge-icon {
  display: block;
  width: 12px;
  height: 12px;
  background: currentColor;
}

.current-position-edge-icon-left {
  mask: url("../assets/icons/nucleo-core-svg/outline/arrows/24px_circle-chevron-left.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/outline/arrows/24px_circle-chevron-left.svg") center / contain no-repeat;
}

.current-position-edge-icon-right {
  mask: url("../assets/icons/nucleo-core-svg/outline/arrows/24px_circle-chevron-right.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/outline/arrows/24px_circle-chevron-right.svg") center / contain no-repeat;
}

.current-position-header-label {
  display: inline-block;
  min-width: 0;
  max-width: 100%;
  padding: 2px 5px;
  overflow: hidden;
  border-radius: 6px;
  color: inherit;
  cursor: default;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

.current-position-header-label[data-current-header-editing="true"] {
  cursor: text;
}

.current-position-header-label:empty {
  min-width: 10px;
}

.current-position-header-label[data-current-header-editing="true"],
.current-position-header-label[data-current-header-editing="true"]:focus {
  background: rgba(20, 184, 166, 0.13);
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.26);
  color: var(--text);
  outline: none;
}

.current-position-sort {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  padding: 0;
  border: 1px solid rgba(142, 231, 217, 0.18);
  border-radius: 50%;
  background: rgba(18, 27, 41, 0.36);
  color: currentColor;
  cursor: pointer;
  opacity: 0.55;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, opacity 140ms ease;
}

.current-position-table th:not(:first-child)[aria-sort] .current-position-sort {
  position: absolute;
  top: 50%;
  right: 2px;
  transform: translateY(-50%);
}

.current-position-sort:hover,
.current-position-sort:focus-visible,
.current-position-sort.is-active {
  border-color: rgba(45, 212, 191, 0.58);
  background: rgba(20, 184, 166, 0.12);
  color: #8ee7d9;
  opacity: 1;
  outline: none;
}

.current-position-sort-icon {
  display: block;
  width: 8px;
  height: 8px;
  background: currentColor;
  opacity: 0.72;
  transform: rotate(180deg);
  transition: transform 140ms ease, opacity 140ms ease;
  mask: url("../assets/icons/nucleo-core-svg/outline/filtering-sorting/24px_sort-alpha-descending.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/outline/filtering-sorting/24px_sort-alpha-descending.svg") center / contain no-repeat;
}

.current-position-sort[data-sort-direction="desc"] .current-position-sort-icon {
  transform: rotate(0deg);
}

.current-position-sort:hover .current-position-sort-icon,
.current-position-sort:focus-visible .current-position-sort-icon,
.current-position-sort.is-active .current-position-sort-icon {
  opacity: 1;
}

.current-position-column-resizer {
  position: absolute;
  top: 0;
  right: -6px;
  z-index: 6;
  width: 12px;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: col-resize;
  touch-action: none;
}

.current-position-column-resizer::before {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 5px;
  width: 1px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0);
  content: "";
  transition: background 120ms ease;
}

.current-position-column-resizer:hover::before,
.current-position-column-resizer:focus-visible::before,
.current-position-column-resizer.is-active::before {
  background: rgba(149, 161, 180, 0.56);
}

body.is-resizing-current-position-columns,
body.is-resizing-current-position-columns * {
  cursor: col-resize !important;
  user-select: none;
}

.current-position-table tr:nth-child(even) td {
  background: rgba(21, 31, 47, 0.72);
}

.current-position-table tr:nth-child(even) td:first-child {
  background: #151f2f;
}

.current-position-table tbody tr {
  cursor: pointer;
}

.current-position-table tr:hover td,
.current-position-table tr.is-active td {
  background: rgba(42, 65, 92, 0.52);
}

.current-position-table tr:hover td:first-child,
.current-position-table tr.is-active td:first-child {
  background: #19283b;
}

.current-position-table tr.is-active td:first-child {
  box-shadow: inset 3px 0 0 rgba(125, 158, 199, 0.72);
}

.current-position-table tbody tr:last-child td {
  border-bottom: 0;
}

.current-position-company-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.current-position-company-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.current-position-company-logo {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: var(--company-favicon-size, 32px);
  height: var(--company-favicon-size, 32px);
  flex: 0 0 var(--company-favicon-size, 32px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.current-position-company-logo:not(.is-placeholder):hover,
.current-position-company-logo:not(.is-placeholder):focus-visible {
  outline: none;
  background: rgba(20, 184, 166, 0.12);
  box-shadow: 0 0 0 1px rgba(142, 231, 217, 0.45), 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.current-position-company-logo:not(.is-placeholder):active {
  transform: scale(0.96);
}

.current-position-company-logo.is-placeholder {
  cursor: default;
}

.current-position-company-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.current-position-company-logo.is-placeholder::before {
  width: 12px;
  height: 12px;
  background: #8ee7d9;
  content: "";
  opacity: 0.85;
  mask: var(--position-history-icon) center / contain no-repeat;
  -webkit-mask: var(--position-history-icon) center / contain no-repeat;
}

.current-position-company {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-weight: var(--calendar-font-weight);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.current-position-company-ticker {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: rgba(159, 176, 198, 0.62);
  font-size: max(9px, calc(var(--calendar-font-size) - 2px));
  font-weight: var(--calendar-font-weight);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.current-position-history-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-2px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.current-position-table tr:hover .current-position-history-actions,
.current-position-table tr.is-active .current-position-history-actions,
.current-position-history-actions:focus-within {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.current-position-muted {
  color: var(--muted);
}

.current-position-type {
  color: var(--muted);
}

.current-position-currency {
  color: var(--muted);
}

.current-position-currency .currency-token {
  justify-content: center;
}

.current-position-currency .currency-mark {
  width: 15px;
  height: 15px;
  flex-basis: 15px;
}

.current-position-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid rgba(142, 231, 217, 0.22);
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.08);
  color: #aeece4;
  font-size: max(9px, calc(var(--calendar-font-size) - 1px));
  font-weight: var(--calendar-font-weight);
  line-height: 1;
  white-space: nowrap;
}

.current-position-type-badge[data-holding-type="non-core"] {
  border-color: rgba(255, 200, 87, 0.28);
  background: rgba(255, 200, 87, 0.08);
  color: #ffd98b;
}

.current-position-value {
  color: #8ee7d9;
  font-weight: var(--calendar-font-weight);
}

.current-position-day-change-cell {
  text-align: center;
}

.current-position-day-change-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 64px;
  min-height: 20px;
  padding: 2px 6px;
  border: 1px solid rgba(142, 231, 217, 0.18);
  border-radius: 8px;
  background: rgba(18, 27, 41, 0.5);
  color: #95a1b4;
  font-size: 10px;
  font-weight: var(--calendar-font-weight);
  line-height: 1;
  white-space: nowrap;
}

.current-position-day-change-badge.is-positive {
  border-color: rgba(45, 212, 191, 0.46);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(20, 184, 166, 0.08));
  color: #7df0c3;
  box-shadow: inset 0 0 0 1px rgba(141, 245, 224, 0.08);
}

.current-position-day-change-badge.is-negative {
  border-color: rgba(240, 116, 110, 0.5);
  background: linear-gradient(135deg, rgba(240, 116, 110, 0.18), rgba(240, 116, 110, 0.08));
  color: #ff9a9a;
  box-shadow: inset 0 0 0 1px rgba(255, 184, 184, 0.08);
}

.current-position-day-change-badge.is-neutral {
  border-color: rgba(255, 209, 102, 0.5);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.18), rgba(255, 209, 102, 0.08));
  color: #ffd166;
  box-shadow: inset 0 0 0 1px rgba(255, 225, 153, 0.08);
}

.current-position-day-change-badge.is-empty {
  color: #66738a;
}

.current-position-day-change-badge.is-plain {
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 10.5px;
}

.current-position-day-change-badge.is-plain.is-positive,
.current-position-day-change-badge.is-plain.is-negative,
.current-position-day-change-badge.is-plain.is-neutral {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.current-position-day-change-icon {
  font-size: 10px;
  line-height: 1;
  transform: translateY(-0.5px);
}

@keyframes stockPriceRefreshCellFade {
  0% {
    background-color: var(--stock-price-refresh-bg);
  }

  100% {
    background-color: transparent;
  }
}

@keyframes stockPriceRefreshValueFade {
  0% {
    color: var(--stock-price-refresh-text);
    background-color: var(--stock-price-refresh-bg);
  }

  100% {
    color: inherit;
    background-color: transparent;
  }
}

.is-stock-price-up {
  --stock-price-refresh-bg: rgba(96, 211, 195, 0.075);
  --stock-price-refresh-text: #8ee7d9;
}

.is-stock-price-down {
  --stock-price-refresh-bg: rgba(255, 138, 151, 0.07);
  --stock-price-refresh-text: #ff9aa3;
}

.is-stock-price-neutral {
  --stock-price-refresh-bg: rgba(145, 171, 205, 0.06);
  --stock-price-refresh-text: #b8c7dc;
}

.current-position-table td.is-stock-price-refreshing,
.watchlist-table td.is-stock-price-refreshing {
  animation: stockPriceRefreshCellFade 720ms ease-out;
}

.holdings-summary-metric-card strong.is-stock-price-refreshing,
.current-position-day-change-badge.is-stock-price-refreshing {
  border-radius: 7px;
  animation: stockPriceRefreshValueFade 720ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .current-position-table td.is-stock-price-refreshing,
  .watchlist-table td.is-stock-price-refreshing,
  .holdings-summary-metric-card strong.is-stock-price-refreshing,
  .current-position-day-change-badge.is-stock-price-refreshing {
    animation: none;
  }
}

.current-position-history-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 22px;
  padding: 0 7px;
  border: 1px solid rgba(142, 231, 217, 0.2);
  border-radius: 999px;
  background: rgba(18, 27, 41, 0.42);
  color: #8ee7d9;
  cursor: pointer;
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.current-position-history-icon {
  display: block;
  width: 12px;
  height: 12px;
  background: #8ee7d9;
  mask: var(--position-history-icon) center / contain no-repeat;
  -webkit-mask: var(--position-history-icon) center / contain no-repeat;
}

.current-position-history-button:hover,
.current-position-history-button:focus-visible,
.current-position-table tr.is-active .current-position-history-button {
  border-color: rgba(142, 231, 217, 0.68);
  background: rgba(20, 184, 166, 0.14);
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.12);
  outline: none;
}

.selected-price-company {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  margin-top: 5px;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid rgba(51, 71, 97, 0.72);
  border-radius: 10px;
  background: rgba(18, 27, 41, 0.72);
}

.selected-price-company-logo-slot {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.selected-price-company-logo-slot .price-company-logo {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  border-color: rgba(142, 231, 217, 0.28);
  border-radius: 9px;
  background: rgba(20, 184, 166, 0.12);
}

.selected-price-company-logo-slot .price-company-logo.is-placeholder::before {
  width: 17px;
  height: 17px;
}

.selected-price-company-copy {
  display: grid;
  align-content: center;
  min-width: 0;
  gap: 4px;
}

.selected-price-company-copy strong,
.selected-price-company-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-price-company-copy strong {
  color: var(--text);
  font-size: calc(var(--calendar-font-size) + 6px);
  font-weight: var(--calendar-font-weight);
  line-height: 1.1;
}

.selected-price-company-copy span {
  color: var(--muted);
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-font-weight);
  line-height: 1.1;
}

.price-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.price-summary-card,
.upcoming-dividend-card {
  border: 1px solid rgba(51, 71, 97, 0.72);
  border-radius: 10px;
  background: transparent;
}

.price-summary-card {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  height: 64px;
  min-height: 64px;
  padding: 7px 10px;
  background: rgba(18, 27, 41, 0.72);
  text-align: center;
}

.price-summary-card[draggable="true"],
.upcoming-dividend-card > div[draggable="true"] {
  cursor: grab;
  user-select: none;
  transform-origin: center;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease,
    opacity 0.18s ease,
    transform 0.18s ease;
}

.price-summary-card[draggable="true"]:hover,
.price-summary-card[draggable="true"]:focus-visible,
.upcoming-dividend-card > div[draggable="true"]:hover,
.upcoming-dividend-card > div[draggable="true"]:focus-visible {
  border-color: rgba(20, 184, 166, 0.72);
  box-shadow: inset 0 0 0 1px rgba(20, 184, 166, 0.22), 0 8px 20px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(20, 184, 166, 0.1);
  transform: translateY(-1px);
}

.price-summary-card.is-dragging,
.upcoming-dividend-card > div.is-dragging {
  cursor: grabbing;
  border-color: rgba(142, 231, 217, 0.88);
  background: rgba(18, 46, 60, 0.76);
  box-shadow: inset 0 0 0 1px rgba(142, 231, 217, 0.32), 0 16px 32px rgba(0, 0, 0, 0.3), 0 0 18px rgba(20, 184, 166, 0.18);
  filter: saturate(1.18);
  opacity: 0.78;
  transform: translateY(-5px) scale(1.025) rotate(-0.8deg);
  z-index: 3;
}

.price-summary-card.is-drag-target,
.upcoming-dividend-card > div.is-drag-target {
  border-color: rgba(142, 231, 217, 0.95);
  background: rgba(20, 184, 166, 0.12);
  box-shadow: inset 0 0 0 1px rgba(142, 231, 217, 0.35), 0 0 0 2px rgba(20, 184, 166, 0.16);
  animation: priceMetricDropTargetPulse 0.7s ease-in-out infinite alternate;
  transform: translateY(2px) scale(0.985);
}

.price-summary-card.is-reordered,
.upcoming-dividend-card > div.is-reordered {
  animation: priceMetricSettle 0.36s cubic-bezier(0.18, 0.85, 0.2, 1.15);
}

@keyframes priceMetricDropTargetPulse {
  from {
    box-shadow: inset 0 0 0 1px rgba(142, 231, 217, 0.28), 0 0 0 1px rgba(20, 184, 166, 0.12);
  }

  to {
    box-shadow: inset 0 0 0 1px rgba(142, 231, 217, 0.48), 0 0 0 4px rgba(20, 184, 166, 0.22);
  }
}

@keyframes priceMetricSettle {
  0% {
    transform: translateY(-6px) scale(1.025);
  }

  55% {
    transform: translateY(2px) scale(0.992);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

.price-summary-card span,
.upcoming-dividend-card span {
  color: var(--muted);
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-font-weight);
}

.price-summary-card strong {
  color: #8ee7d9;
  font-size: calc(var(--calendar-font-size) + 2.5px);
  font-weight: var(--calendar-font-weight);
  line-height: 1.1;
}

.price-summary-card small {
  color: #7f8ca3;
  font-size: calc(var(--calendar-label-font-size) - 1px);
  font-weight: var(--calendar-font-weight);
  line-height: 1.1;
}

.price-summary-card strong.is-positive,
.price-summary-card small.is-positive {
  color: #8ee7d9;
}

.price-summary-card strong.is-negative,
.price-summary-card small.is-negative {
  color: #ff8fa3;
}

.price-summary-card strong.is-neutral,
.price-summary-card small.is-neutral {
  color: #f6c769;
}

.price-summary-card strong.is-empty,
.price-summary-card small.is-empty {
  color: #7f8ca3;
}

.upcoming-dividend-card {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  border: 0;
  background: transparent;
  overflow: visible;
}

.upcoming-dividend-card > div {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  height: 64px;
  min-height: 64px;
  padding: 7px 10px;
  border: 1px solid rgba(51, 71, 97, 0.72);
  border-radius: 10px;
  background: rgba(18, 27, 41, 0.72);
  text-align: center;
}

.upcoming-dividend-card > div:first-child {
  border-left: 1px solid rgba(51, 71, 97, 0.72);
}

.upcoming-dividend-card > div[data-price-metric-item="upcoming-dividend"] {
  background: rgba(20, 184, 166, 0.08);
}

.upcoming-dividend-card strong {
  color: #8ee7d9;
  font-size: calc(var(--calendar-font-size) + 1.5px);
  font-weight: var(--calendar-font-weight);
  line-height: 1.1;
}

.upcoming-dividend-card > div[data-price-metric-item="upcoming-dividend"] strong {
  color: #82f1a8;
  font-size: calc(var(--calendar-font-size) + 3px);
}

.upcoming-dividend-card small {
  color: #7f8ca3;
  font-size: calc(var(--calendar-label-font-size) - 1px);
  font-weight: var(--calendar-font-weight);
  line-height: 1.1;
}

.price-chart-panel {
  display: grid;
  gap: 10px;
  padding: 11px;
  border: 1px solid rgba(51, 71, 97, 0.72);
  border-radius: 11px;
  background: rgba(18, 27, 41, 0.72);
}

.price-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-chart-head h3,
.price-chart-title h4 {
  margin: 0;
  color: var(--text);
  font-weight: var(--calendar-font-weight);
  line-height: 1.1;
}

.price-chart-head h3 {
  font-size: calc(var(--calendar-font-size) + 3px);
}

.price-chart-head span,
.price-chart-title span,
.price-chart-legend {
  color: var(--muted);
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-font-weight);
}

.price-chart-head > div:first-child {
  display: grid;
  gap: 3px;
}

.price-chart-controls {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.price-chart-range {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
}

.price-chart-range button {
  min-width: 42px;
  height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(51, 71, 97, 0.88);
  border-radius: 999px;
  background: rgba(18, 27, 41, 0.8);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: calc(var(--calendar-label-font-size) - 0.5px);
  font-weight: var(--calendar-font-weight);
}

.price-chart-range button:hover,
.price-chart-range button:focus-visible,
.price-chart-range button.is-active {
  border-color: rgba(45, 212, 191, 0.68);
  background: rgba(20, 184, 166, 0.16);
  color: #8ee7d9;
  outline: none;
}

.price-chart-custom-range {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  width: min(330px, calc(100vw - 40px));
  padding: 10px;
  border: 1px solid rgba(51, 71, 97, 0.92);
  border-radius: 14px;
  background: rgba(17, 24, 32, 0.98);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.price-chart-custom-range[hidden] {
  display: none;
}

.price-chart-custom-range-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.price-chart-custom-range-head strong {
  color: var(--text);
  font-size: calc(var(--calendar-label-font-size) + 0.5px);
  font-weight: var(--table-strong-font-weight);
}

.price-chart-custom-range-head button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(51, 71, 97, 0.9);
  border-radius: 50%;
  background: rgba(18, 27, 41, 0.86);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.price-chart-custom-range-head button:hover,
.price-chart-custom-range-head button:focus-visible {
  border-color: rgba(45, 212, 191, 0.68);
  color: #8ee7d9;
  outline: none;
}

.price-chart-custom-range-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.price-chart-custom-range label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: calc(var(--calendar-label-font-size) - 1px);
  font-weight: var(--calendar-font-weight);
}

.price-chart-custom-range input {
  width: 100%;
  height: 34px;
  border: 1px solid rgba(51, 71, 97, 0.9);
  border-radius: 10px;
  background: rgba(11, 18, 28, 0.92);
  color: var(--text);
  padding: 0 10px;
  font: inherit;
  font-size: var(--calendar-label-font-size);
  font-weight: var(--table-strong-font-weight);
}

.price-chart-custom-range input:focus {
  border-color: rgba(88, 113, 148, 0.82);
  box-shadow: 0 0 0 2px rgba(88, 113, 148, 0.12);
  outline: none;
}

.price-chart-custom-range input:disabled {
  opacity: 0.52;
}

.price-chart-custom-range p {
  margin: 8px 0 9px;
  color: var(--muted);
  font-size: calc(var(--calendar-label-font-size) - 1px);
  font-weight: var(--calendar-font-weight);
}

.price-chart-custom-apply {
  width: 100%;
  min-height: 32px;
  border: 1px solid rgba(45, 212, 191, 0.68);
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.18);
  color: #8ee7d9;
  cursor: pointer;
  font: inherit;
  font-size: var(--calendar-label-font-size);
  font-weight: var(--table-strong-font-weight);
}

.price-chart-custom-apply:hover,
.price-chart-custom-apply:focus-visible {
  background: rgba(20, 184, 166, 0.26);
  outline: none;
}

.price-chart-custom-apply:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.price-axis-settings {
  position: relative;
}

.price-axis-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(51, 71, 97, 0.88);
  border-radius: 999px;
  background: rgba(18, 27, 41, 0.8);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: calc(var(--calendar-label-font-size) - 0.5px);
  font-weight: var(--calendar-font-weight);
}

.price-axis-toggle svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.price-axis-toggle:hover,
.price-axis-toggle:focus-visible,
.price-axis-settings.is-open .price-axis-toggle {
  border-color: rgba(45, 212, 191, 0.68);
  background: rgba(20, 184, 166, 0.16);
  color: #8ee7d9;
  outline: none;
}

.price-axis-popover {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: min(320px, calc(100vw - 32px));
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(51, 71, 97, 0.92);
  border-radius: 14px;
  background: #142033;
  box-shadow: 0 18px 42px rgba(3, 8, 16, 0.42);
}

.price-axis-popover[hidden] {
  display: none;
}

.price-axis-section {
  display: grid;
  gap: 6px;
}

.price-axis-label {
  color: var(--muted);
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-font-weight);
}

.price-axis-choice-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.price-axis-choice-row button,
.price-axis-reset {
  min-height: 28px;
  border: 1px solid rgba(51, 71, 97, 0.88);
  border-radius: 999px;
  background: rgba(18, 27, 41, 0.78);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: calc(var(--calendar-label-font-size) - 0.5px);
  font-weight: var(--calendar-font-weight);
}

.price-axis-choice-row button:hover,
.price-axis-choice-row button:focus-visible,
.price-axis-choice-row button.is-active,
.price-axis-reset:hover,
.price-axis-reset:focus-visible {
  border-color: rgba(45, 212, 191, 0.68);
  background: rgba(20, 184, 166, 0.18);
  color: #8ee7d9;
  outline: none;
}

.price-axis-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.price-axis-input-grid label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: calc(var(--calendar-label-font-size) - 0.5px);
  font-weight: var(--calendar-font-weight);
}

.price-axis-input-grid input {
  width: 100%;
  height: 32px;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid rgba(51, 71, 97, 0.88);
  border-radius: 10px;
  background: #101a29;
  color: var(--text);
  font: inherit;
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-font-weight);
}

.price-axis-input-grid input:focus {
  border-color: rgba(88, 113, 148, 0.82);
  box-shadow: 0 0 0 2px rgba(88, 113, 148, 0.12);
  outline: none;
}

.price-axis-reset {
  justify-self: end;
  min-height: 30px;
  padding: 0 12px;
}

.price-chart-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.price-chart-card {
  position: relative;
  display: grid;
  grid-column: span 2;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto;
  gap: 8px;
  min-height: 230px;
  padding: 12px 12px 10px;
  border: 1px solid rgba(51, 71, 97, 0.72);
  border-radius: 11px;
  background: #121b29;
}

.price-chart-card.is-axis-open {
  z-index: 7;
}

.price-chart-card .price-axis-popover {
  top: auto;
  right: 10px;
  bottom: 38px;
  width: min(320px, calc(100% - 20px));
}

.price-chart-title {
  display: flex;
  grid-column: 1 / -1;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.price-chart-title h4 {
  min-width: 0;
  font-size: calc(var(--calendar-font-size) + 1px);
  line-height: 1.12;
}

.price-chart-title > h4 {
  flex: 1 1 150px;
  max-width: min(48%, 220px);
}

.price-chart-title-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.transaction-aggregation {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
}

.transaction-aggregation button {
  min-width: 50px;
  height: 22px;
  padding: 0 9px;
  border: 1px solid rgba(51, 71, 97, 0.88);
  border-radius: 999px;
  background: rgba(18, 27, 41, 0.8);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: calc(var(--calendar-label-font-size) - 0.7px);
  font-weight: var(--calendar-font-weight);
  line-height: 1;
}

.transaction-aggregation button:hover,
.transaction-aggregation button:focus-visible,
.transaction-aggregation button.is-active {
  border-color: rgba(45, 212, 191, 0.68);
  background: rgba(20, 184, 166, 0.16);
  color: #8ee7d9;
  outline: none;
}

.price-chart-title > span {
  overflow: hidden;
  max-width: 52%;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-chart-title [data-price-cost-chart-summary],
.price-chart-title [data-price-difference-chart-summary],
.price-chart-title [data-price-transaction-count-chart-summary],
.price-chart-title [data-price-transaction-average-chart-summary],
.price-chart-title [data-price-share-movement-chart-summary] {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: 0 0 auto;
  gap: 3px;
  max-width: min(64%, 174px);
  min-width: 0;
  overflow: visible;
  text-overflow: initial;
  white-space: normal;
  justify-items: end;
}

.price-chart-title-with-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
}

.price-chart-title-with-controls [data-price-transaction-count-chart-summary] {
  justify-self: start;
  justify-items: start;
  max-width: 100%;
}

.price-chart-title .price-chart-summary-line {
  display: grid;
  align-items: start;
  justify-content: end;
  justify-items: end;
  gap: 3px;
  row-gap: 3px;
  overflow: visible;
  max-width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: normal;
}

.price-chart-title.price-chart-title-with-controls .price-chart-summary-line {
  justify-content: start;
  justify-items: start;
}

.price-chart-summary-range {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 17px;
  padding: 0 6px;
  border: 1px solid rgba(45, 212, 191, 0.34);
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.1);
  color: #8ee7d9;
  font-size: max(8.5px, calc(var(--calendar-label-font-size) - 1.7px));
  font-weight: var(--calendar-font-weight);
  line-height: 1;
  text-align: center;
}

.price-chart-summary-metrics {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 3px;
  row-gap: 3px;
  min-width: 0;
}

.price-chart-summary-metric {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 17px;
  padding: 0 6px;
  border: 1px solid rgba(51, 71, 97, 0.72);
  border-radius: 999px;
  background: rgba(18, 27, 41, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  color: #d6e2f1;
  font-size: max(8.5px, calc(var(--calendar-label-font-size) - 1.45px));
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
}

.price-chart-summary-value {
  color: #e8edf5;
  font-weight: var(--calendar-font-weight);
  line-height: 1;
}

.price-chart-summary-label {
  color: #8c9ab0;
  font-size: max(8px, calc(var(--calendar-label-font-size) - 2px));
  line-height: 1;
}

.price-chart-summary-metric.is-average .price-chart-summary-value {
  color: #8ee7d9;
}

.price-chart-summary-metric.is-paid .price-chart-summary-value {
  color: #E97132;
}

.price-chart-summary-metric.is-transactions .price-chart-summary-value {
  color: #69aefc;
}

.price-chart-summary-secondary {
  opacity: 0.74;
}

.price-chart-summary-secondary .price-chart-summary-range {
  border-color: rgba(127, 140, 163, 0.24);
  background: rgba(127, 140, 163, 0.08);
  color: #9ca9ba;
}

.price-chart-summary-secondary .price-chart-summary-metric {
  background: rgba(18, 27, 41, 0.58);
}

.price-chart-card svg {
  display: block;
  grid-column: 1 / -1;
  width: 100%;
  height: 160px;
  overflow: visible;
}

.price-chart-legend {
  display: flex;
  grid-column: 1 / -1;
  align-self: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  line-height: 1.1;
}

.price-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.price-chart-legend i {
  display: inline-block;
  width: 18px;
  height: 3px;
  border-radius: 999px;
}

.price-chart-axis-button {
  display: none;
  grid-column: 2;
  align-self: center;
  justify-self: end;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 56px;
  height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(51, 71, 97, 0.88);
  border-radius: 999px;
  background: rgba(18, 27, 41, 0.82);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: calc(var(--calendar-label-font-size) - 0.5px);
  font-weight: var(--calendar-font-weight);
}

.price-chart-axis-button svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.price-chart-axis-button:hover,
.price-chart-axis-button:focus-visible,
.price-chart-axis-button[aria-expanded="true"] {
  border-color: rgba(45, 212, 191, 0.68);
  background: rgba(20, 184, 166, 0.16);
  color: #8ee7d9;
  outline: none;
}

.legend-average {
  background: #8ee7d9;
}

.legend-paid {
  height: 0;
  border-top: 3px dashed #E97132;
  background: transparent;
}

.legend-shares {
  background: #61a7ff;
}

.legend-transactions {
  background: #61a7ff;
}

.legend-transaction-average {
  background: #8ee7d9;
}

.legend-transaction-all-average {
  height: 0;
  border-top: 3px dashed #f6c769;
  background: transparent;
}

.legend-price-difference {
  background: #f6c769;
}

.legend-share-movement-positive {
  background: #8ee7d9;
}

.legend-share-movement-negative {
  background: #ff7f9d;
}

.price-chart-axis-border {
  fill: none;
  stroke: rgba(154, 167, 186, 0.26);
  stroke-width: 0.9;
  vector-effect: non-scaling-stroke;
}

.price-chart-major-tick {
  stroke: rgba(154, 167, 186, 0.36);
  stroke-linecap: round;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.price-chart-major-tick-x {
  stroke: rgba(154, 167, 186, 0.3);
}

.price-chart-bar {
  fill: rgba(97, 167, 255, 0.74);
  stroke: rgba(97, 167, 255, 0.9);
  stroke-width: 0.8;
}

.price-chart-bar.is-latest {
  fill: rgba(45, 212, 191, 0.96);
  stroke: rgba(154, 255, 234, 0.96);
  stroke-width: 1.15;
}

.price-chart-transaction-bar {
  fill: rgba(97, 167, 255, 0.62);
  stroke: rgba(97, 167, 255, 0.86);
  stroke-width: 0.75;
}

.price-chart-transaction-bar.is-latest {
  fill: rgba(45, 212, 191, 0.94);
  stroke: rgba(154, 255, 234, 0.92);
  stroke-width: 1.05;
}

.price-chart-zero-line {
  stroke: rgba(232, 237, 245, 0.38);
  stroke-dasharray: 4 4;
  stroke-linecap: round;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.price-chart-reference-line {
  stroke-dasharray: 1 5;
  stroke-linecap: round;
  stroke-width: 1.35;
  vector-effect: non-scaling-stroke;
}

.price-chart-signed-bar.is-positive {
  fill: rgba(45, 212, 191, 0.82);
  stroke: rgba(154, 255, 234, 0.94);
  stroke-width: 0.85;
}

.price-chart-signed-bar.is-negative {
  fill: rgba(240, 116, 110, 0.82);
  stroke: rgba(255, 162, 156, 0.92);
  stroke-width: 0.85;
}

.price-chart-signed-bar.is-latest {
  stroke-width: 1.15;
}

.price-chart-hover {
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.price-chart-hover.is-visible {
  opacity: 1;
}

.price-chart-hover-circle {
  filter: drop-shadow(0 0 6px rgba(142, 231, 217, 0.34));
}

.price-chart-hover-circle.is-hidden {
  opacity: 0;
}

.price-chart-tooltip {
  pointer-events: none;
}

.price-chart-tooltip-box {
  fill: rgba(16, 26, 41, 0.96);
  stroke: rgba(45, 212, 191, 0.52);
  stroke-width: 1;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.32));
}

.price-chart-tooltip-date {
  fill: #e8edf5;
  font-size: 9px;
  font-weight: var(--calendar-font-weight);
}

.price-chart-tooltip-value {
  fill: #8ff1e7;
  font-size: 9px;
  font-weight: var(--calendar-font-weight);
}

.price-chart-hit-area {
  cursor: default;
  pointer-events: all;
  outline: none;
}

.price-chart-hit-area:focus,
.price-chart-hit-area:focus-visible {
  outline: none;
}

.price-chart-empty {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.price-transactions-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 8px;
}

.price-transactions-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.price-transactions-head h2 {
  margin: 0;
  color: var(--text);
  font-size: calc(var(--calendar-font-size) + 6px);
  line-height: 1.1;
}

.price-transactions-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 8px;
  margin-left: auto;
}

.price-transaction-scroll-controls {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
}

.price-transaction-scroll-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(142, 231, 217, 0.34);
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.08);
  color: #8ee7d9;
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.price-transaction-scroll-button:hover,
.price-transaction-scroll-button:focus-visible {
  border-color: rgba(142, 231, 217, 0.7);
  background: rgba(20, 184, 166, 0.18);
  color: #dffcf7;
  outline: none;
  transform: translateY(-1px);
}

.price-transaction-scroll-button:active {
  transform: translateY(0);
}

.price-transaction-scroll-icon {
  width: 11px;
  height: 11px;
  background: currentColor;
}

.price-transaction-scroll-icon.is-up {
  mask: url("../assets/icons/nucleo-core-svg/fill/arrows/24px_arrow-up-to-line.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/arrows/24px_arrow-up-to-line.svg") center / contain no-repeat;
}

.price-transaction-scroll-icon.is-down {
  mask: url("../assets/icons/nucleo-core-svg/fill/arrows/24px_arrow-down-to-line.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/arrows/24px_arrow-down-to-line.svg") center / contain no-repeat;
}

.price-transactions-head .price-add-row {
  min-height: 34px;
  padding-inline: 11px;
}

.price-schedule-table-wrap {
  max-height: 460px;
  overflow: auto;
  border: 1px solid #2b3a50;
  border-radius: 11px;
  background: #121b29;
}

.price-schedule-table {
  width: 100%;
  min-width: 978px;
  margin-inline: auto;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-family: var(--calendar-font);
  font-size: var(--calendar-font-size);
  font-weight: var(--calendar-font-weight);
}

.price-schedule-table th,
.price-schedule-table td {
  height: 34px;
  padding: 5px 10px;
  border-bottom: 1px solid rgba(51, 71, 97, 0.62);
  color: #d8e2f0;
  font-size: var(--calendar-font-size);
  font-weight: var(--calendar-font-weight);
  line-height: 1.2;
  text-align: center;
  vertical-align: middle;
}

.price-schedule-table th:nth-child(1),
.price-schedule-table td:nth-child(1) {
  width: var(--price-date-width);
}

.price-schedule-table th:nth-child(2),
.price-schedule-table td:nth-child(2) {
  width: var(--price-activity-width);
}

.price-schedule-table th:nth-child(3),
.price-schedule-table td:nth-child(3) {
  width: var(--price-shares-width);
}

.price-schedule-table th:nth-child(4),
.price-schedule-table td:nth-child(4) {
  width: var(--price-bookCost-width);
}

.price-schedule-table th:nth-child(5),
.price-schedule-table td:nth-child(5) {
  width: var(--price-fxRate-width);
}

.price-schedule-table th:nth-child(6),
.price-schedule-table td:nth-child(6) {
  width: var(--price-deltaShares-width);
}

.price-schedule-table th:nth-child(7),
.price-schedule-table td:nth-child(7) {
  width: var(--price-deltaCost-width);
}

.price-schedule-table th:nth-child(8),
.price-schedule-table td:nth-child(8) {
  width: var(--price-localDeltaCost-width);
}

.price-schedule-table th:nth-child(9),
.price-schedule-table td:nth-child(9) {
  width: var(--price-pricePaid-width);
}

.price-schedule-table th:nth-child(10),
.price-schedule-table td:nth-child(10) {
  width: var(--price-averageCost-width);
}

.price-schedule-table th:nth-child(11),
.price-schedule-table td:nth-child(11) {
  width: var(--price-averageCostChange-width);
}

.price-schedule-table.has-fx {
  min-width: 1220px;
}

.price-schedule-table:not(.has-fx) .price-fx-column {
  display: none;
}

.price-schedule-table thead {
  position: sticky;
  top: 0;
  z-index: 8;
  box-shadow: 0 1px 0 rgba(51, 71, 97, 0.78), 0 8px 16px rgba(5, 10, 18, 0.18);
}

.price-schedule-table th {
  position: sticky;
  top: 0;
  z-index: 9;
  background: #20374b;
  color: var(--table-header-text);
  font-size: var(--calendar-label-font-size);
  background-clip: padding-box;
}

.price-column-resizer {
  position: absolute;
  top: 0;
  right: -4px;
  z-index: 5;
  width: 8px;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: col-resize;
  touch-action: none;
}

.price-column-resizer::before {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 3px;
  width: 1px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0);
  content: "";
  transition: background 120ms ease;
}

.price-column-resizer:hover::before,
.price-column-resizer:focus-visible::before,
.price-column-resizer.is-active::before {
  background: rgba(149, 161, 180, 0.56);
}

body.is-resizing-price-columns,
body.is-resizing-price-columns * {
  cursor: col-resize !important;
  user-select: none;
}

.price-schedule-sort {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  line-height: 1.15;
  text-align: center;
}

.price-schedule-sort:hover,
.price-schedule-sort:focus-visible,
.price-schedule-sort.is-active {
  color: #dffcf7;
  outline: none;
}

.price-schedule-sort-icon {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  background: currentColor;
  opacity: 0.58;
  transform: rotate(180deg);
  transition: opacity 140ms ease, transform 140ms ease, color 140ms ease;
  mask: url("../assets/icons/nucleo-core-svg/outline/filtering-sorting/24px_sort-alpha-descending.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/outline/filtering-sorting/24px_sort-alpha-descending.svg") center / contain no-repeat;
}

.price-schedule-sort[data-sort-direction="desc"] .price-schedule-sort-icon {
  transform: rotate(0deg);
}

.price-schedule-sort.is-active .price-schedule-sort-icon,
.price-schedule-sort:hover .price-schedule-sort-icon,
.price-schedule-sort:focus-visible .price-schedule-sort-icon {
  opacity: 1;
}

.price-schedule-table tr:nth-child(even) td {
  background: rgba(21, 31, 47, 0.72);
}

.price-schedule-table tbody tr:hover td {
  background: rgba(20, 184, 166, 0.09);
}

.price-schedule-table th.price-input-head {
  background-color: #20374b;
}

.price-schedule-table th.price-output-head {
  background-color: #20374b;
}

.price-schedule-table tbody tr.is-editing td {
  background: rgba(20, 184, 166, 0.12);
}

.price-schedule-table tbody tr.is-scroll-target td,
.dividend-history-table tbody tr.is-scroll-target td,
.isa-input-table tbody tr.is-scroll-target td {
  animation: tableScrollTargetReveal 2.15s cubic-bezier(0.18, 0.85, 0.2, 1);
}

.price-schedule-table tbody tr.is-scroll-target td:first-child,
.dividend-history-table tbody tr.is-scroll-target td:first-child,
.isa-input-table tbody tr.is-scroll-target td:first-child {
  box-shadow: inset 3px 0 0 rgba(142, 231, 217, 0.94);
}

.price-schedule-table tbody tr:last-child td {
  border-bottom: 0;
}

.price-schedule-table td.numeric,
.price-schedule-table th.numeric {
  text-align: center;
}

.price-schedule-table td.price-date-cell {
  padding: 5px 10px;
}

.price-average-cost-head {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  white-space: nowrap;
}

.edit-icon {
  display: block;
  width: 13px;
  height: 13px;
  background: currentColor;
  mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_input-password-edit.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_input-password-edit.svg") center / contain no-repeat;
}

.price-schedule-input {
  width: 100%;
  min-width: 0;
  height: 24px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #e8edf5;
  font: inherit;
  font-size: var(--calendar-font-size);
  outline: none;
  text-align: center;
}

.price-schedule-table tr:not(.is-editing) .price-schedule-input,
.price-schedule-table tr:not(.is-editing) .price-schedule-date-field input,
.price-schedule-table tr:not(.is-editing) .price-activity-button,
.price-schedule-table tr:not(.is-editing) .price-currency-input {
  pointer-events: none;
  cursor: default;
}

.price-schedule-table tr:not(.is-editing) .price-schedule-input:hover,
.price-schedule-table tr:not(.is-editing) .price-schedule-input:focus,
.price-schedule-table tr:not(.is-editing) .price-currency-input:hover,
.price-schedule-table tr:not(.is-editing) .price-currency-input:focus-within {
  border-color: transparent;
  background-color: transparent;
}

.price-schedule-input.numeric {
  text-align: center;
}

.price-activity-cell {
  position: relative;
  overflow: visible;
}

.price-activity-picker {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-width: 0;
}

.price-activity-picker.is-open {
  z-index: 30;
}

.price-activity-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 0;
  font-size: var(--calendar-font-size);
  line-height: 1;
  text-align: left;
  cursor: pointer;
}

.price-activity-button span:first-child {
  display: inline-flex;
  align-items: center;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-activity-chevron {
  flex: 0 0 auto;
  color: #95a1b4;
  font-size: 13px;
  line-height: 1;
}

.price-schedule-table tr:not(.is-editing) .price-activity-chevron {
  display: none;
}

.price-activity-picker.is-open .price-activity-button,
.price-activity-button:hover,
.price-activity-button:focus-visible {
  border-color: rgba(9, 164, 151, 0.55);
  background-color: rgba(9, 164, 151, 0.1);
}

.price-activity-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  z-index: 40;
  display: grid;
  width: 100%;
  min-width: 252px;
  overflow: hidden;
  padding: 0;
  border: 1px solid #334761;
  border-radius: 14px;
  background: #172131;
  box-shadow: 0 18px 38px rgba(3, 8, 17, 0.42);
}

.price-activity-menu[hidden] {
  display: none;
}

.price-activity-option {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 0 34px 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #e8edf5;
  cursor: pointer;
  font: inherit;
  font-size: max(9px, calc(var(--calendar-font-size) - 1px));
  font-weight: var(--ui-font-weight);
  line-height: 1;
  text-align: left;
  white-space: nowrap;
}

.price-activity-option:hover,
.price-activity-option:focus-visible,
.price-activity-option.is-selected {
  background: rgba(9, 164, 151, 0.2);
  outline: none;
}

.price-activity-option::after {
  position: absolute;
  top: 50%;
  right: 9px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid rgba(149, 161, 180, 0.44);
  border-radius: 999px;
  color: transparent;
  content: "";
  transform: translateY(-50%);
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.price-activity-option.is-selected::after {
  border-color: var(--teal);
  background: var(--teal);
  color: #0f1826;
  content: "✓";
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.price-schedule-input:hover,
.price-schedule-input:focus {
  border-color: rgba(88, 113, 148, 0.82);
  background-color: rgba(88, 113, 148, 0.1);
}

.price-schedule-date-field {
  min-height: 30px;
  padding: 2px 7px 3px;
  border-radius: 7px;
}

.price-schedule-date-field input {
  width: 100%;
  height: 17px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e8edf5;
  font: inherit;
  font-size: var(--calendar-font-size);
  outline: none;
  text-align: center;
}

.price-schedule-date-field input:focus {
  background: transparent;
}

.price-schedule-date-field .schedule-date-readable {
  font-size: 9px;
  line-height: 1.05;
  text-align: center;
}

.price-currency-input {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  height: 24px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.price-currency-input > span {
  color: var(--teal);
  font-size: var(--calendar-font-size);
  font-weight: var(--calendar-font-weight);
}

.price-currency-input .price-schedule-input {
  height: 22px;
  width: auto;
  min-width: 7ch;
  max-width: 10ch;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.price-share-input .price-schedule-input {
  min-width: 4ch;
  max-width: 8ch;
}

.price-currency-input:hover,
.price-currency-input:focus-within {
  border-color: rgba(88, 113, 148, 0.82);
  background-color: rgba(88, 113, 148, 0.1);
}

.price-currency-input .price-schedule-input:hover,
.price-currency-input .price-schedule-input:focus {
  border-color: transparent;
  background-color: transparent;
}

.price-schedule-table tr:not(.is-editing) .price-schedule-date-field,
.price-schedule-table tr:not(.is-editing) .price-schedule-input,
.price-schedule-table tr:not(.is-editing) .price-currency-input,
.price-schedule-table tr:not(.is-editing) .price-activity-picker,
.price-schedule-table tr:not(.is-editing) .price-activity-button {
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  line-height: 1.2;
}

.price-schedule-table tr:not(.is-editing) .price-activity-button {
  justify-content: center;
  text-align: center;
}

.price-schedule-table tr:not(.is-editing) .price-activity-button span:first-child {
  justify-content: center;
  width: 100%;
}

.price-schedule-table tr:not(.is-editing) .price-currency-input {
  display: inline-flex;
  justify-content: center;
  gap: 4px;
  width: 100%;
}

.price-schedule-table tr:not(.is-editing) .price-currency-input .price-schedule-input {
  width: auto;
  min-width: 0;
  max-width: 12ch;
  field-sizing: content;
  text-align: center;
}

.price-schedule-table tr:not(.is-editing) .price-currency-input > span {
  color: inherit;
}

.price-derived {
  color: #8ee7d9 !important;
  font-weight: var(--calendar-font-weight) !important;
}

.price-derived.is-empty {
  color: #5c6879 !important;
  font-weight: 400 !important;
}

.price-average-change-cell.is-positive {
  color: #8df6bd !important;
}

.price-average-change-cell.is-negative {
  color: #ff8aa3 !important;
}

.price-average-change-cell.is-neutral {
  color: #a7b4c6 !important;
}

.right-column {
  display: grid;
  gap: 12px;
  align-content: start;
  font-family: var(--fixed-font);
  font-size: var(--side-font-size);
  font-weight: var(--ui-font-weight);
}

.side-card {
  padding: 12px;
}

.side-card h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: calc(var(--side-font-size) + 3px);
  line-height: 1.15;
}

.side-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.side-card-head h2 {
  margin: 0;
}

.security-field-picker {
  position: relative;
  flex: 0 0 auto;
}

.add-security-field {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid #2d405c;
  border-radius: 6px;
  background: #17263a;
  color: var(--teal);
  font: inherit;
  font-size: calc(var(--side-label-font-size) - 0.75px);
  font-weight: var(--ui-font-weight);
  cursor: pointer;
}

.add-security-field:hover,
.add-security-field:focus-visible,
.security-field-picker.is-open .add-security-field {
  border-color: rgba(17, 184, 170, 0.78);
  background: rgba(17, 184, 170, 0.13);
  color: #8ef2e4;
  outline: none;
}

.add-security-field:disabled {
  cursor: default;
  opacity: 0.58;
}

.security-field-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 15;
  display: grid;
  width: 196px;
  overflow: hidden;
  padding: 0;
  border: 1px solid #334761;
  border-radius: 14px;
  background: #172131;
  box-shadow: 0 18px 38px rgba(3, 8, 17, 0.42);
}

.security-field-menu[hidden] {
  display: none;
}

.security-field-menu button {
  position: relative;
  width: 100%;
  min-height: 40px;
  padding: 0 34px 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #e8edf5;
  font: inherit;
  font-size: var(--side-label-font-size);
  font-weight: var(--ui-font-weight);
  text-align: left;
  cursor: pointer;
}

.security-field-menu button:hover,
.security-field-menu button:focus-visible,
.security-field-menu button.is-selected {
  background: rgba(9, 164, 151, 0.2);
  color: #e8edf5;
  outline: none;
}

.security-field-menu button::after {
  position: absolute;
  top: 50%;
  right: 9px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid rgba(149, 161, 180, 0.44);
  border-radius: 999px;
  color: transparent;
  content: "";
  transform: translateY(-50%);
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.security-field-menu button.is-selected::after {
  border-color: #2f9be8;
  background: #2f9be8;
  color: #fff;
  content: "✓";
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.next-list {
  display: grid;
  gap: 8px;
}

.next-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 46px;
  padding: 8px;
  border-radius: 8px;
  background: var(--panel-2);
}

.next-item .logo {
  width: 26px;
  height: 26px;
  font-size: 9px;
}

.next-item strong {
  display: block;
  font-size: var(--side-small-font-size);
  line-height: 1.1;
}

.next-item span {
  color: var(--muted);
  font-size: var(--side-label-font-size);
  line-height: 1.15;
}

.company-line {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

.next-item b {
  color: var(--teal);
  font-size: var(--side-small-font-size);
}

.watch-table {
  width: 100%;
  border-collapse: collapse;
}

.watch-table th,
.watch-table td {
  padding: 7px 0;
  border-bottom: 1px solid #26364f;
  text-align: left;
  font-size: var(--side-label-font-size);
}

.watch-table th {
  background: var(--table-header-bg);
  color: var(--table-header-text);
  font-size: calc(var(--side-label-font-size) - 0.5px);
  letter-spacing: 0;
}

.watch-table td:last-child,
.watch-table th:last-child {
  text-align: right;
}

.upcoming-payments-card {
  display: none;
  overflow: hidden;
  margin-bottom: 16px;
}

body[data-active-view="calendar"] .upcoming-payments-card {
  display: block;
}

.upcoming-payments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 12px;
}

.upcoming-payments-head h2 {
  margin: 0;
}

.upcoming-range-toggle {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 28px;
  padding: 2px;
  border: 1px solid rgba(142, 231, 217, 0.22);
  border-radius: 999px;
  background: rgba(10, 21, 34, 0.62);
}

.upcoming-range-toggle button {
  min-height: 22px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #9fb0c6;
  cursor: pointer;
  font: inherit;
  font-size: calc(var(--side-label-font-size) - 1px);
  font-weight: var(--ui-font-weight);
  line-height: 1;
  white-space: nowrap;
}

.upcoming-range-toggle button:hover,
.upcoming-range-toggle button:focus-visible {
  color: #d6fff7;
  outline: none;
}

.upcoming-range-toggle button.is-active {
  background: rgba(20, 184, 166, 0.24);
  color: #8ff7e8;
}

.upcoming-payments-table {
  overflow: auto;
  border: 1px solid #26364f;
  border-radius: 9px;
  background: rgba(18, 27, 41, 0.64);
}

.upcoming-payment-row {
  display: grid;
  grid-template-columns: 28px minmax(160px, 1.35fr) minmax(92px, 0.9fr) minmax(94px, 0.8fr) minmax(104px, 0.95fr) minmax(96px, 0.8fr) minmax(96px, 0.8fr);
  align-items: center;
  gap: 8px;
  min-width: 920px;
  min-height: 40px;
  padding: 7px 10px;
  border-top: 1px solid #26364f;
}

.upcoming-payment-row:first-child {
  border-top: 0;
}

.upcoming-payment-header {
  min-height: 30px;
  background: var(--table-header-bg);
  color: var(--table-header-text);
  font-size: calc(var(--side-label-font-size) - 1px);
  font-weight: var(--ui-font-weight);
}

.upcoming-payment-header span {
  text-align: center;
}

.upcoming-payment-header span:nth-child(2) {
  text-align: left;
}

.upcoming-payment-logo {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  background: #1c2d46;
  color: #8ee7d9;
  font-size: 8px;
  font-weight: 800;
  box-shadow: 0 0 0 1px rgba(142, 231, 217, 0.24);
}

.upcoming-payment-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upcoming-payment-logo.is-placeholder {
  letter-spacing: 0;
}

.upcoming-payment-company,
.upcoming-payment-shares,
.upcoming-payment-base,
.upcoming-payment-local {
  color: #e8edf5;
  font-size: var(--side-label-font-size);
  font-weight: var(--ui-font-weight);
}

.upcoming-payment-company {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upcoming-payment-shares {
  color: #cdd7e5;
  text-align: center;
}

.upcoming-payment-date {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: center;
}

.upcoming-payment-date b {
  overflow: hidden;
  color: #d5dfec;
  font-size: calc(var(--side-label-font-size) - 0.5px);
  font-weight: var(--ui-font-weight);
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upcoming-payment-date small {
  overflow: hidden;
  color: var(--muted);
  font-size: calc(var(--side-label-font-size) - 1.5px);
  font-weight: var(--ui-font-weight);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upcoming-payment-base,
.upcoming-payment-local {
  color: var(--teal);
  text-align: center;
  white-space: nowrap;
}

.upcoming-payment-base {
  color: #8ee7d9;
}

.upcoming-payments-empty {
  padding: 12px 8px;
  color: var(--muted);
  font-size: var(--side-label-font-size);
  font-weight: var(--ui-font-weight);
  text-align: center;
}

.security-facts {
  display: grid;
  gap: 6px;
}

.fact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 26px;
  padding: 0 0 6px;
  border-bottom: 1px solid #26364f;
}

.fact-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.fact-row[hidden] {
  display: none;
}

.fact-row.is-last-visible {
  border-bottom: 0;
  padding-bottom: 0;
}

.fact-row span {
  color: var(--muted);
  font-size: var(--side-label-font-size);
  font-weight: var(--ui-font-weight);
}

.fact-row strong {
  color: var(--text);
  font-size: var(--side-label-font-size);
  font-weight: var(--ui-font-weight);
  text-align: right;
}

.fact-value {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.currency-inline {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--teal);
}

.sector-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--teal);
  background: currentColor;
  mask: var(--sector-icon) center / contain no-repeat;
  -webkit-mask: var(--sector-icon) center / contain no-repeat;
}

.sector-consumer-staples {
  --sector-icon: url("../assets/icons/nucleo-core-svg/fill/shopping/24px_basket-shopping.svg");
}

.sector-real-estate {
  --sector-icon: url("../assets/icons/nucleo-core-svg/fill/business-finance/24px_house-market-growth.svg");
}

.sector-tobacco {
  --sector-icon: url("../assets/icons/nucleo-core-svg/fill/healthcare-medical/24px_smoking.svg");
}

.flag-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.summary-table th .currency-token,
.summary-table th .currency-token span {
  display: inline-flex;
  align-items: center;
  margin-top: 0;
  line-height: 1;
  vertical-align: middle;
}

.summary-table th .currency-token {
  gap: 5px;
}

.summary-table th .currency-token .currency-mark {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.summary-table th .currency-token .currency-mark,
.next-item .currency-token .currency-mark,
.fact-value .currency-mark {
  color: var(--teal);
}

.summary-flag {
  width: 14px;
  height: 14px;
}

.company-modal[hidden] {
  display: none;
}

.company-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  justify-items: end;
  background: rgba(4, 8, 14, 0.54);
  color: #e8edf5;
  font-family: var(--fixed-font);
}

.company-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: default;
}

.company-panel {
  position: relative;
  z-index: 1;
  width: 430px;
  max-width: calc(100vw - 28px);
  height: 100vh;
  padding: 18px 18px 22px;
  overflow: auto;
  border-left: 1px solid var(--line);
  background: linear-gradient(180deg, #172131 0%, #111820 100%);
  box-shadow: -28px 0 58px rgba(3, 8, 17, 0.48);
}

.company-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.company-kicker {
  margin-bottom: 3px;
  color: var(--teal);
  font-size: 10.5px;
  font-weight: var(--ui-font-weight);
}

.company-head h2 {
  margin: 0;
  color: #e8edf5;
  font-size: 18px;
  line-height: 1.12;
}

.close-company {
  width: 30px;
  height: 30px;
  border: 1px solid #334761;
  border-radius: 9px;
  background: #121b29;
  color: #95a1b4;
  cursor: pointer;
  font: inherit;
  font-size: 20px;
  line-height: 1;
}

.close-company:hover,
.close-company:focus-visible {
  border-color: var(--teal);
  color: #e8edf5;
  outline: none;
}

.company-form {
  display: grid;
  gap: 14px;
}

.company-section {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(51, 71, 97, 0.68);
  border-radius: 12px;
  background: rgba(18, 27, 41, 0.45);
}

.company-modal[data-company-mode="dividend"] [data-company-section="security"] {
  display: none;
}

.company-modal[data-company-mode="watchlist"] [data-watchlist-hidden] {
  display: none;
}

.company-section h3 {
  margin: 0;
  color: #e8edf5;
  font-size: 13px;
  font-weight: var(--ui-font-weight);
  line-height: 1.2;
}

.company-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.company-field {
  display: grid;
  gap: 6px;
}

.company-field.full {
  grid-column: 1 / -1;
}

.company-choice-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.company-choice-field legend {
  margin: 0 0 6px;
  padding: 0;
  color: #95a1b4;
  font-size: 11px;
  font-weight: var(--ui-font-weight);
  line-height: 1.2;
}

.company-choice-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  min-width: 0;
  padding: 3px;
  border: 1px solid #2b3a50;
  border-radius: 10px;
  background: #121b29;
}

.company-choice-toggle label {
  min-width: 0;
  cursor: pointer;
}

.company-choice-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.company-choice-toggle span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #95a1b4;
  font-size: 11.5px;
  font-weight: var(--ui-font-weight);
  line-height: 1;
  white-space: nowrap;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.company-choice-toggle b {
  color: var(--teal);
  font-size: 11px;
  line-height: 1;
}

.company-choice-toggle label:hover span,
.company-choice-toggle input:focus-visible + span {
  border-color: rgba(9, 164, 151, 0.42);
  color: #e8edf5;
  outline: none;
}

.company-choice-toggle input:checked + span {
  border-color: rgba(9, 164, 151, 0.62);
  background: rgba(9, 164, 151, 0.2);
  color: #aef5e7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.dividend-split-field .company-choice-toggle span {
  min-height: 28px;
  font-size: 11px;
}

.company-name-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 10px;
}

.company-name-input-wrap {
  position: relative;
  display: block;
  min-width: 0;
}

.company-name-flag {
  position: absolute;
  top: 50%;
  left: 10px;
  z-index: 1;
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  transform: translateY(-50%);
  pointer-events: none;
}

.company-name-flag[hidden] {
  display: none;
}

.company-name-input-wrap.has-flag input {
  padding-left: 32px;
}

.ticker-field input {
  text-transform: uppercase;
}

.company-name-field {
  position: relative;
}

.company-validation-bubble {
  position: absolute;
  left: 0;
  top: calc(100% + 7px);
  z-index: 26;
  display: inline-grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  max-width: min(320px, 100%);
  padding: 8px 10px;
  border: 1px solid rgba(255, 111, 125, 0.48);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(39, 32, 43, 0.98), rgba(19, 27, 40, 0.98));
  box-shadow: 0 16px 38px rgba(3, 8, 17, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  color: #ffd9df;
  font-family: var(--fixed-font);
  font-size: 11.5px;
  font-weight: var(--ui-font-weight);
  line-height: 1.2;
}

.company-validation-bubble[hidden] {
  display: none;
}

.company-validation-bubble::before {
  position: absolute;
  top: -6px;
  left: 20px;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(255, 111, 125, 0.48);
  border-left: 1px solid rgba(255, 111, 125, 0.48);
  background: rgba(39, 32, 43, 0.98);
  content: "";
  transform: rotate(45deg);
}

.company-validation-icon {
  display: block;
  width: 18px;
  height: 18px;
  background: #ff9aa8;
  mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_alert-warning.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_alert-warning.svg") center / contain no-repeat;
}

.company-search-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 24;
  display: grid;
  width: min(100%, 430px);
  max-height: 244px;
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(51, 79, 112, 0.86);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18, 27, 41, 0.98), rgba(14, 22, 34, 0.98));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.company-search-menu[hidden] {
  display: none;
}

.company-search-option {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 7px 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #e8edf5;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.company-search-option:hover,
.company-search-option:focus-visible {
  background: rgba(20, 184, 166, 0.16);
  outline: none;
}

.company-search-option-flag {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(12, 18, 28, 0.72);
  box-shadow: inset 0 0 0 1px rgba(232, 237, 245, 0.12);
}

.company-search-option-flag img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: cover;
}

.company-search-option-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.company-search-option-copy strong,
.company-search-option-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-search-option-copy strong {
  color: #e8edf5;
  font-size: 12px;
  font-weight: 700;
}

.company-search-option-copy span {
  color: #95a1b4;
  font-size: 10.5px;
}

.company-logo-control {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.company-logo-box {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(51, 79, 112, 0.9);
  border-radius: 11px;
  background: rgba(18, 27, 41, 0.72);
  color: #95a1b4;
  font-size: 8px;
  font-weight: var(--ui-font-weight);
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.company-logo-box.is-placeholder,
.company-logo-box:not(.has-logo) {
  border-color: rgba(72, 114, 154, 0.84);
  background: rgba(18, 39, 62, 0.78);
  color: #b9cbe0;
}

.company-logo-box img {
  display: block;
  width: 88%;
  height: 88%;
  grid-row: 1 / -1;
  object-fit: contain;
  object-position: center;
}

.company-logo-box:not(.has-logo) img {
  display: none;
}

.company-logo-placeholder {
  display: block;
  width: 16px;
  height: 16px;
  background: currentColor;
  content: "";
  mask: url("../assets/icons/nucleo-core-svg/fill/business-finance/24px_office-2.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/business-finance/24px_office-2.svg") center / contain no-repeat;
}

.company-logo-label {
  color: #728097;
  display: none;
}

.company-logo-box.has-logo {
  background: rgba(7, 12, 20, 0.54);
}

.company-logo-box.has-logo .company-logo-placeholder,
.company-logo-box.has-logo .company-logo-label {
  display: none;
}

.company-logo-box[role="button"] {
  cursor: pointer;
}

.company-logo-box[role="button"]:hover {
  border-color: rgba(45, 212, 191, 0.62);
  background: rgba(20, 184, 166, 0.12);
}

.company-logo-box[role="button"]:focus-visible {
  outline: 2px solid rgba(45, 212, 191, 0.78);
  outline-offset: 3px;
}

.company-field > span {
  color: #95a1b4;
  font-size: 11px;
  font-weight: var(--ui-font-weight);
}

.company-yield-profile-heading {
  display: none;
  grid-column: 1 / -1;
  margin: 2px 0 -3px;
  color: #c8d6e6;
  font-size: 11px;
  font-weight: var(--ui-font-weight);
  line-height: 1.2;
}

.company-modal[data-company-mode="watchlist"] .company-yield-profile-heading {
  display: block;
}

.company-wht-summary,
.company-target-yield {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(48, 66, 92, 0.82);
  border-radius: 10px;
  background: rgba(15, 24, 37, 0.58);
}

.company-target-yield-heading {
  display: none;
  grid-column: 1 / -1;
  margin: 0 0 -3px;
  color: #c7d2e3;
  font-size: 12px;
  font-weight: var(--ui-font-weight);
  line-height: 1.2;
}

.company-modal[data-company-mode="watchlist"] .company-target-yield-heading {
  display: block;
}

.company-modal:not([data-company-mode="watchlist"]) .company-target-yield {
  display: none;
}

.company-wht-summary > div,
.company-target-yield > div,
.company-target-yield > label {
  display: grid;
  width: 100%;
  align-content: center;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 44px;
  text-align: center;
}

.company-wht-summary span,
.company-target-yield span {
  display: flex;
  min-height: 13px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #95a1b4;
  font-size: 10.5px;
  font-weight: var(--ui-font-weight);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-wht-summary strong,
.company-target-yield strong {
  overflow: hidden;
  color: #8ee7d9;
  font-size: 12px;
  font-weight: var(--ui-font-weight);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-target-yield input {
  height: 24px;
  padding: 0 8px;
  text-align: center;
}

.target-yield-input-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.target-yield-input-wrap input {
  padding-right: 20px;
}

.target-yield-suffix {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  color: #8ee7d9;
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
}

.company-target-yield strong.is-positive {
  color: #8ee7d9;
}

.company-target-yield strong.is-negative {
  color: #ff9aa5;
}

.company-field input,
.company-field select,
.company-field textarea {
  width: 100%;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid #2b3a50;
  border-radius: 10px;
  background: #121b29;
  color: #e8edf5;
  font: inherit;
  font-size: 12.5px;
  outline: none;
}

.company-field input,
.company-field select {
  height: 34px;
}

.company-field input[readonly] {
  color: #aeb8c8;
  background: rgba(18, 27, 41, 0.62);
  cursor: default;
}

.company-logo-field input[name="logoUrl"] {
  color: #8d9aae;
  font-size: 11.5px;
  font-weight: 500;
}

.company-field input[aria-invalid="true"] {
  border-color: rgba(255, 111, 125, 0.72);
  box-shadow: 0 0 0 2px rgba(255, 111, 125, 0.13);
}

.currency-input-wrap {
  position: relative;
  display: block;
}

.currency-input-wrap input {
  padding-left: 34px;
}

.currency-input-prefix {
  position: absolute;
  top: 50%;
  left: 12px;
  z-index: 1;
  min-width: 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  transform: translateY(-50%);
  pointer-events: none;
}

.currency-input-prefix:empty + input {
  padding-left: 11px;
}

.company-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.company-price-meta {
  display: grid;
  min-width: 0;
  gap: 4px;
  align-content: start;
}

.company-price-info {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(48, 66, 92, 0.82);
  border-radius: 11px;
  background: rgba(15, 24, 37, 0.42);
}

.company-price-info[hidden] {
  display: none;
}

.company-price-fetch {
  display: block;
  overflow: hidden;
  padding: 1px 2px 0;
  color: #7f8da2;
  font-size: 9.5px;
  font-weight: var(--ui-font-weight);
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-price-fetch[hidden] {
  display: none;
}

.company-price-day-gain-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 10.5px;
  font-weight: var(--ui-font-weight);
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-price-day-gain-badge.is-positive {
  background: transparent;
  box-shadow: none;
  color: #7df0c3;
}

.company-price-day-gain-badge.is-negative {
  background: transparent;
  box-shadow: none;
  color: #ff9a9a;
}

.company-price-day-gain-badge.is-neutral {
  background: transparent;
  box-shadow: none;
  color: #ffd166;
}

.company-price-day-gain-percent {
  opacity: 0.9;
}

.company-api-managed-field {
  align-content: start;
}

.company-api-managed-field[data-company-api-field="dividendPerShare"] {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.company-api-managed-field[data-company-api-field="dividendPerShare"] > span:first-child {
  grid-column: 1;
}

.company-api-managed-field[data-company-api-field="dividendPerShare"] .currency-input-wrap {
  grid-column: 1 / -1;
}

.company-api-managed-field[data-company-api-field="dividendPerShare"] input[type="hidden"] {
  display: none;
}

.company-api-managed-field[data-company-api-field="dividendPerShare"] .company-manual-toggle {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  min-height: 20px;
  padding: 0 9px;
  font-size: 10px;
}

.company-manual-toggle {
  justify-self: start;
  min-height: 25px;
  padding: 0 12px;
  border: 1px solid rgba(45, 212, 191, 0.48);
  border-radius: 999px;
  background: rgba(9, 164, 151, 0.13);
  color: #8ee7d9;
  font: inherit;
  font-size: 11px;
  font-weight: var(--ui-font-weight);
  line-height: 1;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.company-manual-toggle:hover,
.company-manual-toggle:focus-visible,
.company-manual-toggle[aria-pressed="true"] {
  border-color: rgba(45, 212, 191, 0.72);
  background: rgba(20, 184, 166, 0.24);
  color: #e8fffb;
  outline: none;
  box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.12);
}

.company-modal:not([data-company-mode="watchlist"]) .company-manual-toggle {
  display: none;
}

.company-field textarea {
  min-height: 68px;
  padding-top: 9px;
  padding-bottom: 9px;
  line-height: 1.35;
  resize: vertical;
}

.dividend-schedule-table {
  display: grid;
  overflow: hidden;
  border: 1px solid #2b3a50;
  border-radius: 9px;
  background: #121b29;
}

.dividend-schedule-row {
  display: grid;
  grid-template-columns: 42px repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(51, 71, 97, 0.72);
}

.dividend-schedule-row.has-dps,
.dividend-schedule-row.has-custom-dps {
  grid-template-columns: 42px repeat(2, minmax(0, 1fr)) 88px;
}

.dividend-schedule-row:first-child {
  border-top: 0;
}

.dividend-schedule-head {
  background: var(--table-header-bg);
}

.dividend-schedule-head span {
  padding: 6px 9px;
  color: var(--table-header-text);
  font-size: 10.5px;
  font-weight: var(--ui-font-weight);
  text-align: center;
}

.dividend-schedule-head span:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 0;
}

.dividend-schedule-row > * + * {
  border-left: 1px solid rgba(51, 71, 97, 0.72);
}

.schedule-number-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
}

.schedule-payment-number {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 1px solid rgba(111, 132, 163, 0.62);
  border-radius: 999px;
  background: rgba(35, 57, 87, 0.76);
  color: #dce7f6;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
}

.schedule-date-field,
.schedule-dps-field {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 38px;
  padding: 4px 9px 5px;
}

.schedule-date-field input::placeholder {
  letter-spacing: 0.32em;
}

.dividend-schedule-row input {
  width: 100%;
  height: 20px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #e8edf5;
  font: inherit;
  font-size: 12px;
  outline: none;
  text-align: center;
}

.dividend-schedule-row input:focus {
  background: transparent;
}

.schedule-date-field:focus-within,
.schedule-dps-field:focus-within {
  background: rgba(88, 113, 148, 0.1);
  box-shadow: inset 0 0 0 1px rgba(88, 113, 148, 0.62);
}

.schedule-dps-field input {
  color: #8ee7d9;
  font-weight: var(--ui-font-weight);
}

.schedule-dps-field.is-calculated input {
  color: #b7c5d7;
  cursor: default;
}

.schedule-date-readable {
  min-height: 11px;
  margin-top: 1px;
  color: #8a96a8;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.schedule-date-readable[hidden] {
  display: none;
}

.company-field select {
  cursor: pointer;
}

.company-field .native-value-select {
  display: none;
}

.company-field input:focus,
.company-field select:focus,
.company-field textarea:focus {
  border-color: rgba(88, 113, 148, 0.82);
  box-shadow: 0 0 0 2px rgba(88, 113, 148, 0.12);
}

.company-field .dividend-schedule-row input:focus {
  border-color: transparent;
  box-shadow: none;
}

.dividend-consensus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dividend-consensus-field {
  justify-items: center;
  text-align: center;
}

.dividend-consensus-field > span,
.dividend-consensus-grid .company-field input {
  width: 100%;
}

.dividend-consensus-grid .company-field input {
  text-align: center;
}

.company-picker {
  position: relative;
}

.company-picker-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 9px;
  border: 1px solid #2b3a50;
  border-radius: 10px;
  background: #121b29;
  color: #e8edf5;
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  text-align: left;
}

.company-picker-button:hover,
.company-picker-button:focus-visible,
.company-picker.is-open .company-picker-button {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(9, 164, 151, 0.16);
  outline: none;
}

.company-picker-content {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.company-picker-content span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-picker-placeholder {
  color: #718096;
}

.country-flag {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border-radius: 999px;
  object-fit: cover;
}

.company-picker-chevron {
  color: #95a1b4;
  font-size: 14px;
  line-height: 1;
}

.company-picker-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 13;
  display: grid;
  gap: 0;
  width: 100%;
  min-width: 224px;
  max-height: 238px;
  overflow: hidden;
  padding: 0;
  border: 1px solid #334761;
  border-radius: 14px;
  background: #172131;
  box-shadow: 0 18px 38px rgba(3, 8, 17, 0.42);
}

.company-picker-menu[hidden] {
  display: none;
}

.company-picker-search {
  min-width: 0;
  height: 30px;
  margin: 5px;
  width: calc(100% - 10px);
  padding: 0 9px;
  border: 1px solid #2b3a50;
  border-radius: 8px;
  background: #121b29;
  color: #e8edf5;
  font: inherit;
  font-size: 12px;
  outline: none;
}

.company-picker-search:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(9, 164, 151, 0.16);
}

.company-picker-options {
  display: grid;
  max-height: 190px;
  overflow: auto;
}

.exchange-picker-menu {
  width: max-content;
  min-width: 100%;
  max-width: min(560px, calc(100vw - 64px));
}

.exchange-picker-options {
  min-width: 360px;
}

.company-picker-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #e8edf5;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: var(--ui-font-weight);
  text-align: left;
}

.exchange-picker-option {
  justify-content: space-between;
  gap: 16px;
  white-space: nowrap;
}

.exchange-picker-name,
.exchange-picker-code {
  min-width: 0;
}

.exchange-picker-code {
  flex: 0 0 auto;
  color: #7f8fa5;
  font-weight: 500;
  opacity: 0.78;
}

.company-picker-option:hover,
.company-picker-option:focus-visible,
.company-picker-option.is-selected {
  background: rgba(81, 163, 248, 0.12);
  outline: none;
}

.frequency-picker-option {
  justify-content: space-between;
  gap: 12px;
  padding-right: 12px;
  white-space: nowrap;
}

.frequency-option-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frequency-option-check {
  position: relative;
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(149, 161, 180, 0.44);
  border-radius: 999px;
  background: rgba(15, 24, 38, 0.28);
  color: transparent;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.frequency-picker-option.is-selected .frequency-option-check {
  border-color: rgba(126, 196, 255, 0.68);
  background: rgba(81, 163, 248, 0.16);
  color: #bfe0ff;
}

.frequency-picker-option.is-selected .frequency-option-check::before {
  content: "✓";
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.sector-picker-menu {
  max-height: 310px;
}

.sector-picker-options {
  max-height: 236px;
}

.sector-picker-option-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: stretch;
  min-width: 0;
}

.sector-picker-option-row:hover,
.sector-picker-option-row:focus-within,
.sector-picker-option-row.is-selected {
  background: rgba(92, 145, 205, 0.22);
}

.sector-picker-option {
  min-width: 0;
  width: 100%;
}

.sector-picker-option:hover,
.sector-picker-option:focus-visible,
.sector-picker-option.is-selected {
  background: transparent;
}

.sector-choice-icon,
.sector-icon {
  display: inline-grid;
  width: var(--nucleo-sector-icon-size, 20px);
  height: var(--nucleo-sector-icon-size, 20px);
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(146, 196, 245, 0.38);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(92, 145, 205, 0.34);
  mask: none;
  -webkit-mask: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.sector-choice-icon::before,
.sector-icon::before {
  content: "";
  width: var(--nucleo-sector-icon-glyph-size, 10.5px);
  height: var(--nucleo-sector-icon-glyph-size, 10.5px);
  background: currentColor;
  mask: var(--sector-icon) center / contain no-repeat;
  -webkit-mask: var(--sector-icon) center / contain no-repeat;
}

.sector-choice-icon.has-image::before {
  display: none;
}

.sector-choice-icon img {
  display: block;
  width: var(--nucleo-sector-image-size, 15px);
  height: var(--nucleo-sector-image-size, 15px);
  object-fit: contain;
}

.sector-choice-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sector-icon-edit {
  position: relative;
  display: grid;
  width: 26px;
  height: 26px;
  place-self: center;
  place-items: center;
  border: 1px solid rgba(92, 113, 141, 0.58);
  border-radius: 999px;
  background: rgba(18, 27, 41, 0.76);
  color: #9dacc2;
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    background 140ms ease;
}

.sector-picker-option-row:hover .sector-icon-edit,
.sector-picker-option-row:focus-within .sector-icon-edit {
  opacity: 1;
}

.sector-icon-edit::before {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_input-password-edit.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_input-password-edit.svg") center / contain no-repeat;
}

.sector-icon-edit:hover,
.sector-icon-edit:focus-visible {
  border-color: var(--teal);
  background: rgba(9, 164, 151, 0.18);
  color: var(--teal);
  opacity: 1;
  outline: none;
}

.sector-picker-custom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 8px;
  border-top: 1px solid rgba(51, 71, 97, 0.8);
  background: rgba(18, 27, 41, 0.92);
}

.sector-picker-custom input {
  min-width: 0;
  height: 30px;
  padding: 0 9px;
  border: 1px solid #2b3a50;
  border-radius: 9px;
  background: #121b29;
  color: #e8edf5;
  font: inherit;
  font-size: 12px;
  outline: none;
}

.sector-picker-custom input:focus {
  border-color: rgba(88, 113, 148, 0.82);
  box-shadow: 0 0 0 2px rgba(88, 113, 148, 0.12);
}

.sector-picker-custom button {
  height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(81, 163, 248, 0.56);
  border-radius: 999px;
  background: rgba(81, 163, 248, 0.12);
  color: #bfe0ff;
  cursor: pointer;
  font: inherit;
  font-size: 11.5px;
  font-weight: 800;
}

.sector-picker-custom button:hover,
.sector-picker-custom button:focus-visible {
  background: rgba(81, 163, 248, 0.2);
  outline: none;
}

.sector-manager-panel {
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  width: min(460px, calc(100vw - 48px));
  max-width: min(460px, calc(100vw - 48px));
}

.sector-manager-controls {
  grid-template-columns: minmax(0, 1fr) auto;
}

.sector-manager-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: var(--calendar-label-font-size);
  font-weight: var(--calendar-heading-font-weight);
}

.sector-manager-list {
  display: grid;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  align-content: start;
  border-radius: 10px;
  background: rgba(10, 17, 27, 0.28);
}

.sector-manager-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 20px 20px;
  column-gap: 12px;
  row-gap: 7px;
  align-items: center;
  min-width: 0;
  min-height: 38px;
  padding: 4px 7px;
  border-bottom: 1px solid rgba(47, 70, 96, 0.2);
  background: transparent;
  transition:
    background-color 140ms ease,
    border-color 140ms ease;
}

.sector-manager-row:last-child {
  border-bottom: 0;
}

.sector-manager-row:hover,
.sector-manager-row:focus-within {
  background: rgba(81, 163, 248, 0.08);
  border-color: rgba(81, 163, 248, 0.2);
}

.sector-manager-icon-button {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.sector-manager-icon-button:hover,
.sector-manager-icon-button:focus-visible {
  background: rgba(81, 163, 248, 0.16);
  outline: none;
}

.sector-manager-row .sector-choice-icon {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(81, 163, 248, 0.72);
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 0 0 2px rgba(81, 163, 248, 0.08);
}

.sector-manager-row .sector-choice-icon img {
  width: 13px;
  height: 13px;
  filter: brightness(0) invert(1);
}

.sector-manager-name {
  min-width: 0;
  height: 26px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: rgba(16, 24, 38, 0.42);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: var(--calendar-heading-font-weight);
  outline: none;
}

.sector-manager-name:focus {
  border-color: rgba(81, 163, 248, 0.78);
  background: rgba(16, 24, 38, 0.84);
  box-shadow: 0 0 0 2px rgba(81, 163, 248, 0.14);
}

.sector-manager-action,
.sector-manager-empty {
  display: inline-grid;
  min-height: 26px;
  min-width: 26px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(81, 163, 248, 0.52);
  border-radius: 8px;
  background: rgba(81, 163, 248, 0.1);
  color: #dcecff;
  cursor: pointer;
  font: inherit;
  font-size: 11.5px;
  font-weight: 800;
}

.sector-manager-action {
  min-height: 20px;
  min-width: 20px;
  border-radius: 7px;
}

.sector-manager-action-icon {
  display: block;
  width: 10px;
  height: 10px;
  background: currentColor;
}

.sector-manager-action[data-sector-manager-save] .sector-manager-action-icon {
  mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_check.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_check.svg") center / contain no-repeat;
}

.sector-manager-action[data-sector-manager-delete] .sector-manager-action-icon {
  mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_trash-2.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_trash-2.svg") center / contain no-repeat;
}

.sector-manager-action:hover,
.sector-manager-action:focus-visible,
.sector-manager-empty:hover,
.sector-manager-empty:focus-visible {
  border-color: rgba(81, 163, 248, 0.9);
  background: rgba(81, 163, 248, 0.18);
  color: #ffffff;
  outline: none;
}

.sector-manager-action.is-danger {
  border-color: rgba(255, 109, 124, 0.5);
  background: rgba(255, 109, 124, 0.12);
  color: #ff8d9a;
}

.sector-manager-empty {
  min-height: 30px;
  min-width: 0;
  padding: 0 11px;
  border-color: rgba(9, 164, 151, 0.5);
  background: rgba(9, 164, 151, 0.12);
  color: var(--teal);
  align-self: start;
  justify-self: start;
}

.sector-manager-empty[hidden] {
  display: none;
}

.company-picker-empty {
  padding: 9px;
  color: #718096;
  font-size: 12px;
  font-weight: var(--ui-font-weight);
}

.currency-picker {
  position: relative;
}

.currency-picker-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 9px;
  border: 1px solid #2b3a50;
  border-radius: 10px;
  background: #121b29;
  color: #e8edf5;
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  text-align: left;
}

.currency-picker-button:hover,
.currency-picker-button:focus-visible,
.currency-picker.is-open .currency-picker-button {
  border-color: rgba(81, 163, 248, 0.78);
  box-shadow: 0 0 0 2px rgba(81, 163, 248, 0.13);
  outline: none;
}

.currency-option-content {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.currency-option-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.currency-placeholder {
  color: #718096;
}

.currency-choice-icon {
  display: inline-grid;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  place-items: center;
  border: 1px solid rgba(155, 180, 207, 0.5);
  border-radius: 999px;
  background: rgba(116, 146, 181, 0.08);
  color: #b6cadf;
  font-size: 0;
  font-weight: 700;
  line-height: 1;
}

.currency-choice-icon.is-nucleo,
.currency-choice-icon.is-custom {
  background: rgba(116, 146, 181, 0.08);
  mask: none;
  -webkit-mask: none;
}

.currency-choice-icon::before {
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.currency-choice-gbp::before {
  content: "£";
}

.currency-choice-usd::before {
  content: "$";
}

.currency-choice-eur::before {
  content: "€";
}

.currency-choice-chf::before {
  content: "₣";
}

.currency-choice-ils::before {
  content: "₪";
}

.currency-option:hover .currency-choice-icon,
.currency-option:focus-visible .currency-choice-icon,
.currency-option.is-selected .currency-choice-icon,
.currency-picker-button:hover .currency-choice-icon,
.currency-picker-button:focus-visible .currency-choice-icon,
.currency-picker.is-open .currency-picker-button .currency-choice-icon {
  border-color: rgba(161, 198, 231, 0.62);
  background: rgba(98, 138, 179, 0.12);
  color: #c3d8eb;
}

.currency-chevron {
  color: #95a1b4;
  font-size: 14px;
  line-height: 1;
}

.currency-picker-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 12;
  display: grid;
  width: 100%;
  min-width: 224px;
  overflow: hidden;
  padding: 0;
  border: 1px solid #334761;
  border-radius: 14px;
  background: #172131;
  box-shadow: 0 18px 38px rgba(3, 8, 17, 0.42);
}

.currency-picker-menu[hidden] {
  display: none;
}

.currency-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #e8edf5;
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  text-align: left;
}

.currency-option:hover,
.currency-option:focus-visible,
.currency-option.is-selected {
  background: rgba(73, 111, 153, 0.22);
  outline: none;
}

.currency-option.is-selected::after {
  color: #b8d0e6;
  content: "✓";
  font-size: 10px;
  font-weight: 700;
}

.company-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 4px;
}

.company-actions button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #334761;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  font-weight: var(--ui-font-weight);
}

.company-actions .secondary-button {
  background: #121b29;
  color: #c7d3e4;
}

.company-actions .danger-button {
  border-color: rgba(229, 89, 106, 0.48);
  background: rgba(99, 33, 45, 0.34);
  color: #ff9aa8;
}

.company-actions .primary-button {
  border-color: transparent;
  background: linear-gradient(135deg, #257eff, #15a794);
  color: white;
}

.company-actions button:hover,
.company-actions button:focus-visible {
  outline: none;
  filter: brightness(1.08);
}

.withholding-tax-modal[hidden] {
  display: none;
}

.withholding-tax-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 8, 14, 0.58);
  color: #e8edf5;
  font-family: var(--fixed-font);
}

.withholding-tax-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
}

.withholding-tax-panel {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 48px));
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #172131 0%, #111820 100%);
  box-shadow: 0 28px 72px rgba(3, 8, 17, 0.56);
}

.withholding-tax-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.withholding-tax-head h2 {
  margin: 0;
  color: #e8edf5;
  font-size: 18px;
  line-height: 1.1;
}

.close-withholding-tax {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #334761;
  border-radius: 9px;
  background: #121b29;
  color: #95a1b4;
  cursor: pointer;
  font: inherit;
  font-size: 20px;
  line-height: 1;
}

.close-withholding-tax:hover,
.close-withholding-tax:focus-visible {
  border-color: var(--teal);
  color: #e8edf5;
  outline: none;
}

.withholding-tax-table {
  overflow: hidden;
  border: 1px solid #2b3a50;
  border-radius: 11px;
  background: #121b29;
}

.withholding-tax-row {
  display: grid;
  grid-template-columns: minmax(124px, 1fr) 86px 94px 108px;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border-top: 1px solid rgba(51, 71, 97, 0.68);
}

.withholding-tax-row:first-child {
  border-top: 0;
}

.withholding-tax-header {
  min-height: 36px;
  background: var(--table-header-bg);
  color: var(--table-header-text);
  font-size: 10.5px;
  font-weight: var(--ui-font-weight);
}

.withholding-tax-header > span:nth-child(2),
.withholding-tax-header > span:nth-child(3),
.withholding-tax-header > span:nth-child(4) {
  text-align: center;
}

.withholding-tax-sort {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
  line-height: 1;
}

.withholding-tax-header > span:nth-child(2) .withholding-tax-sort {
  justify-content: center;
  width: 100%;
}

.withholding-tax-sort:hover,
.withholding-tax-sort:focus-visible,
.withholding-tax-sort.is-active {
  color: #8ee7d9;
  outline: none;
}

.withholding-sort-icon {
  display: inline-block;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  background: currentColor;
  opacity: 0.58;
  transform: rotate(180deg);
  transition: opacity 140ms ease, transform 140ms ease, color 140ms ease;
  mask: url("../assets/icons/nucleo-core-svg/outline/filtering-sorting/24px_sort-alpha-descending.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/outline/filtering-sorting/24px_sort-alpha-descending.svg") center / contain no-repeat;
}

.withholding-tax-sort[data-sort-direction="desc"] .withholding-sort-icon {
  transform: rotate(0deg);
}

.withholding-tax-sort.is-active .withholding-sort-icon,
.withholding-tax-sort:hover .withholding-sort-icon,
.withholding-tax-sort:focus-visible .withholding-sort-icon {
  opacity: 1;
}

.withholding-tax-country,
.withholding-tax-rate,
.withholding-tax-multiplier {
  min-width: 0;
  color: #e8edf5;
  font-size: 12.5px;
  font-weight: var(--ui-font-weight);
}

.withholding-tax-rate {
  color: #64dcca;
  text-align: center;
}

.withholding-tax-multiplier {
  color: #c5cfdd;
  font-weight: 300;
  text-align: center;
}

.withholding-tax-country {
  display: flex;
  align-items: center;
  gap: 8px;
}

.withholding-tax-flag {
  width: 18px;
  height: 18px;
}

.withholding-tax-actions {
  display: flex;
  min-width: 0;
  justify-content: center;
  gap: 6px;
}

.withholding-tax-edit,
.withholding-tax-save,
.withholding-tax-cancel {
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid #334761;
  border-radius: 8px;
  background: #121b29;
  color: #c7d3e4;
  cursor: pointer;
  font: inherit;
  font-size: 10.5px;
  font-weight: var(--ui-font-weight);
  white-space: nowrap;
}

.withholding-tax-edit {
  display: inline-grid;
  place-items: center;
  width: 26px;
  padding: 0;
  border-radius: 999px;
  color: var(--teal);
  opacity: 0;
  transition: opacity 120ms ease, border-color 120ms ease, color 120ms ease;
}

.withholding-tax-row:hover .withholding-tax-edit,
.withholding-tax-row:focus-within .withholding-tax-edit {
  opacity: 1;
}

.withholding-tax-edit:hover,
.withholding-tax-edit:focus-visible,
.withholding-tax-save:hover,
.withholding-tax-save:focus-visible,
.withholding-tax-cancel:hover,
.withholding-tax-cancel:focus-visible {
  border-color: var(--teal);
  color: #e8edf5;
  outline: none;
}

.withholding-tax-save {
  border-color: rgba(9, 164, 151, 0.7);
  background: rgba(9, 164, 151, 0.16);
  color: #79f2d4;
}

.withholding-tax-cancel {
  border-color: rgba(255, 111, 125, 0.34);
  background: rgba(255, 111, 125, 0.16);
  color: #ffc4ca;
}

.withholding-tax-cancel:hover,
.withholding-tax-cancel:focus-visible {
  border-color: rgba(255, 111, 125, 0.76);
  background: rgba(255, 111, 125, 0.2);
  color: #ffd1d6;
}

.withholding-tax-input-wrap {
  position: relative;
  justify-self: center;
  width: 82px;
}

.withholding-tax-input-wrap input {
  width: 100%;
  height: 30px;
  padding: 0 24px 0 9px;
  border: 1px solid rgba(9, 164, 151, 0.72);
  border-radius: 8px;
  background: #0f1826;
  color: #e8edf5;
  font: inherit;
  font-size: 12.5px;
  font-weight: var(--ui-font-weight);
  outline: none;
  text-align: right;
}

.withholding-tax-input-wrap input:focus {
  box-shadow: 0 0 0 2px rgba(88, 113, 148, 0.12);
}

.withholding-tax-input-wrap::after {
  position: absolute;
  top: 50%;
  right: 9px;
  color: #95a1b4;
  content: "%";
  font-size: 11px;
  font-weight: var(--ui-font-weight);
  transform: translateY(-50%);
}

.withholding-tax-add {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.withholding-tax-add-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: start;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(9, 164, 151, 0.7);
  border-radius: 9px;
  background: rgba(9, 164, 151, 0.14);
  color: #79f2d4;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: var(--ui-font-weight);
}

.withholding-tax-add-toggle::before {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: currentColor;
  content: "";
  mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_circle-plus.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_circle-plus.svg") center / contain no-repeat;
}

.withholding-tax-add-toggle:hover,
.withholding-tax-add-toggle:focus-visible {
  border-color: var(--teal);
  color: #e8edf5;
  outline: none;
}

.withholding-tax-add-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.withholding-tax-add-form {
  position: absolute;
  inset: 68px 18px 18px;
  z-index: 6;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid #334761;
  border-radius: 13px;
  background: linear-gradient(180deg, #172131 0%, #111820 100%);
  box-shadow: 0 20px 44px rgba(3, 8, 17, 0.48);
}

.withholding-tax-add-form[hidden] {
  display: none;
}

.withholding-tax-add-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.withholding-tax-add-head strong {
  display: block;
  color: #e8edf5;
  font-size: 15px;
  line-height: 1.2;
}

.withholding-tax-add-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 700;
}

.withholding-tax-add-head .withholding-tax-cancel {
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}

.withholding-tax-add-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #95a1b4;
  font-size: 10.5px;
  font-weight: var(--ui-font-weight);
}

.withholding-tax-add-form input {
  width: 100%;
  height: 30px;
  border: 1px solid #334761;
  border-radius: 8px;
  background: #0f1826;
  color: #e8edf5;
  font: inherit;
  font-size: 12px;
  font-weight: var(--ui-font-weight);
  outline: none;
}

.withholding-tax-add-rate-row {
  display: grid;
  grid-template-columns: 108px auto;
  align-items: end;
  justify-content: start;
  gap: 8px;
}

.withholding-tax-add-rate-row[hidden] {
  display: none;
}

.withholding-tax-add-form input:focus {
  border-color: rgba(88, 113, 148, 0.82);
  box-shadow: 0 0 0 2px rgba(88, 113, 148, 0.12);
}

.withholding-domicile-picker {
  display: grid;
  min-height: 0;
  gap: 8px;
}

.withholding-domicile-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: 30px;
  padding: 0 8px;
  border: 1px solid #334761;
  border-radius: 8px;
  background: #0f1826;
  color: #e8edf5;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: var(--ui-font-weight);
  text-align: left;
}

.withholding-domicile-button:hover,
.withholding-domicile-button:focus-visible {
  border-color: rgba(9, 164, 151, 0.72);
  box-shadow: 0 0 0 2px rgba(9, 164, 151, 0.16);
  outline: none;
}

.withholding-domicile-selected,
.withholding-domicile-option {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.withholding-domicile-selected span,
.withholding-domicile-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.withholding-domicile-chevron {
  color: #95a1b4;
  line-height: 1;
}

.withholding-domicile-search {
  width: 100%;
  height: 30px;
  padding: 0 8px;
  border: 1px solid #2b3a50;
  border-radius: 8px;
  background: #121b29;
  color: #e8edf5;
  font: inherit;
  font-size: 11.5px;
  outline: none;
}

.withholding-domicile-search:focus {
  border-color: rgba(9, 164, 151, 0.72);
  box-shadow: 0 0 0 2px rgba(9, 164, 151, 0.16);
}

.withholding-domicile-options {
  display: grid;
  align-content: start;
  min-height: 0;
  overflow: auto;
  border: 1px solid #26384f;
  border-radius: 10px;
  background: rgba(15, 24, 38, 0.72);
}

.withholding-domicile-option {
  min-height: 36px;
  padding: 0 11px;
  border: 0;
  border-bottom: 1px solid #26384f;
  background: transparent;
  color: #e8edf5;
  cursor: pointer;
  font: inherit;
  font-size: 11.5px;
  font-weight: var(--ui-font-weight);
  text-align: left;
}

.withholding-domicile-option:last-child {
  border-bottom: 0;
}

.withholding-domicile-region-option {
  justify-content: space-between;
}

.withholding-domicile-count {
  color: #64dcca;
  font-size: 10.5px;
}

.withholding-domicile-option:hover,
.withholding-domicile-option:focus-visible,
.withholding-domicile-option.is-selected {
  background: rgba(9, 164, 151, 0.2);
  outline: none;
}

.withholding-domicile-empty {
  padding: 10px;
  color: #95a1b4;
  font-size: 11.5px;
}

.withholding-tax-add-rate-wrap {
  justify-self: stretch;
  width: 100%;
}

.withholding-tax-add-hint {
  min-height: 14px;
  margin: 0;
  color: #95a1b4;
  font-size: 10.5px;
}

.currency-pairs-modal[hidden] {
  display: none;
}

.currency-pairs-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 8, 14, 0.58);
  color: #e8edf5;
  font-family: var(--fixed-font);
}

.currency-pairs-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
}

.currency-pairs-panel {
  position: relative;
  z-index: 1;
  width: min(780px, calc(100vw - 48px));
  height: auto;
  max-height: none;
  overflow: visible;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #172131 0%, #111820 100%);
  box-shadow: 0 28px 72px rgba(3, 8, 17, 0.56);
}

.currency-pairs-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.currency-pairs-head h2 {
  margin: 0;
  color: #e8edf5;
  font-size: 18px;
  line-height: 1.1;
}

.close-currency-pairs {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #334761;
  border-radius: 9px;
  background: #121b29;
  color: #95a1b4;
  cursor: pointer;
  font: inherit;
  font-size: 20px;
  line-height: 1;
}

.close-currency-pairs:hover,
.close-currency-pairs:focus-visible {
  border-color: var(--teal);
  color: #e8edf5;
  outline: none;
}

.currency-api-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 9px;
  margin-bottom: 13px;
  padding: 10px;
  border: 1px solid #2b3a50;
  border-radius: 15px;
  background: rgba(18, 27, 41, 0.72);
}

.currency-api-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #95a1b4;
  font-size: 10.5px;
  font-weight: var(--ui-font-weight);
}

.currency-api-field input,
.currency-api-field select {
  width: 100%;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #334761;
  border-radius: 999px;
  background: #0f1826;
  color: #e8edf5;
  font: inherit;
  font-size: 12px;
  font-weight: var(--ui-font-weight);
  outline: none;
}

.currency-api-field select {
  max-width: 220px;
  padding-right: 30px;
  color-scheme: dark;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #8ee7d9 50%) right 15px center / 6px 6px no-repeat,
    linear-gradient(135deg, #8ee7d9 50%, transparent 50%) right 10px center / 6px 6px no-repeat,
    #0f1826;
}

.currency-api-field select.api-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.api-select-picker {
  position: relative;
  display: block;
  width: min(220px, 100%);
}

.api-select-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(45, 212, 191, 0.46);
  border-radius: 999px;
  background: rgba(15, 24, 37, 0.9);
  color: #e8edf5;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: var(--ui-font-weight);
  outline: none;
}

.api-select-button:hover,
.api-select-button:focus-visible,
.api-select-picker.is-open .api-select-button {
  border-color: rgba(45, 212, 191, 0.78);
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.14);
}

.api-select-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-select-chevron {
  width: 0;
  height: 0;
  flex: 0 0 auto;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #8ee7d9;
}

.api-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  display: grid;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(65, 89, 120, 0.86);
  border-radius: 12px;
  background: #101926;
  box-shadow: 0 18px 38px rgba(3, 8, 17, 0.5);
}

.api-select-menu[hidden] {
  display: none;
}

.api-select-option {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 0;
  background: transparent;
  color: #e8edf5;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: var(--ui-font-weight);
  text-align: left;
}

.api-select-option:hover,
.api-select-option:focus-visible,
.api-select-option.is-selected {
  background: rgba(20, 184, 166, 0.2);
  color: #f4fbff;
  outline: none;
}

.currency-api-field input:focus,
.currency-api-field select:focus {
  border-color: rgba(88, 113, 148, 0.82);
  box-shadow: 0 0 0 2px rgba(88, 113, 148, 0.12);
}

.currency-api-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.currency-api-button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #334761;
  border-radius: 999px;
  background: #121b29;
  color: #c7d3e4;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: var(--ui-font-weight);
  white-space: nowrap;
}

.currency-api-button:hover,
.currency-api-button:focus-visible {
  border-color: var(--teal);
  color: #e8edf5;
  outline: none;
}

.currency-api-button-primary {
  border-color: rgba(9, 164, 151, 0.75);
  background: linear-gradient(135deg, #258cf4 0%, #09a497 100%);
  color: #f4fbff;
}

.currency-api-button-muted {
  color: #95a1b4;
}

.currency-api-button-muted:hover,
.currency-api-button-muted:focus-visible {
  border-color: rgba(240, 116, 110, 0.68);
  background: rgba(240, 116, 110, 0.12);
  color: #ff9a9a;
  box-shadow: 0 0 0 2px rgba(240, 116, 110, 0.12);
}

.currency-api-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.currency-api-status {
  grid-column: 1 / -1;
  min-height: 16px;
  color: #95a1b4;
  font-size: 10.5px;
  font-weight: var(--ui-font-weight);
}

.currency-api-status[data-state="success"] {
  color: #64dcca;
}

.currency-api-status[data-state="error"] {
  color: #ff9a9a;
}

.supabase-api-card {
  align-items: center;
}

.supabase-api-summary {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.supabase-api-title {
  color: #95a1b4;
  font-size: 10.5px;
  font-weight: var(--ui-font-weight);
}

.supabase-api-summary strong {
  overflow: hidden;
  color: #e8edf5;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supabase-api-summary small {
  overflow: hidden;
  color: #95a1b4;
  font-size: 10.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.currency-api-card .api-toggle-row {
  margin-bottom: 0;
}

.api-toggle-group {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 2px 0;
}

.currency-api-refresh-field {
  grid-column: 1 / -1;
  max-width: 220px;
}

.currency-pairs-controls {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: end;
  gap: 8px;
  margin: 0 0 12px;
  padding: 9px;
  border: 1px solid rgba(51, 71, 97, 0.72);
  border-radius: 10px;
  background: rgba(18, 27, 41, 0.54);
}

.currency-pairs-field {
  position: relative;
  display: grid;
  gap: 5px;
  color: #95a1b4;
  font-size: 10px;
  font-weight: var(--ui-font-weight);
}

.currency-pair-picker {
  position: relative;
  z-index: 1;
  width: 114px;
}

.currency-pair-picker.is-open {
  z-index: 30;
}

.currency-pair-picker-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(45, 212, 191, 0.38);
  border-radius: 999px;
  background: rgba(15, 24, 37, 0.82);
  color: #e8edf5;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: var(--ui-font-weight);
  outline: none;
}

.currency-pair-picker-button:hover,
.currency-pair-picker-button:focus-visible,
.currency-pair-picker.is-open .currency-pair-picker-button {
  border-color: rgba(45, 212, 191, 0.74);
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.12);
}

.currency-pair-picker-button:disabled {
  cursor: default;
  opacity: 0.54;
}

.currency-pair-picker-selected,
.currency-pair-picker-content {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
}

.currency-pair-picker-content span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.currency-pair-picker-flag {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.currency-pair-picker-chevron {
  width: 0;
  height: 0;
  flex: 0 0 auto;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #8ee7d9;
}

.currency-pair-picker-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  display: grid;
  width: 100%;
  max-height: min(560px, calc(100vh - 160px));
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(65, 89, 120, 0.86);
  border-radius: 12px;
  background: #101926;
  box-shadow: 0 18px 38px rgba(3, 8, 17, 0.46);
}

.currency-pair-picker-menu::-webkit-scrollbar {
  width: 8px;
}

.currency-pair-picker-menu::-webkit-scrollbar-track {
  background: rgba(15, 24, 38, 0.82);
  border-radius: 999px;
}

.currency-pair-picker-menu::-webkit-scrollbar-thumb {
  background: rgba(100, 220, 202, 0.52);
  border: 2px solid rgba(15, 24, 38, 0.82);
  border-radius: 999px;
}

.currency-pair-picker-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 220, 202, 0.72);
}

.currency-pair-picker-menu[hidden] {
  display: none;
}

.currency-pair-picker-option,
.currency-pair-picker-empty {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #e8edf5;
  font: inherit;
  font-size: 11px;
  font-weight: var(--ui-font-weight);
  text-align: left;
}

.currency-pair-picker-option {
  cursor: pointer;
}

.currency-pair-picker-option:hover,
.currency-pair-picker-option:focus-visible,
.currency-pair-picker-option.is-selected {
  background: rgba(20, 184, 166, 0.2);
  color: #f4fbff;
  outline: none;
}

.currency-pair-picker-empty {
  color: #718096;
}

.currency-pairs-add,
.currency-pairs-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(9, 164, 151, 0.7);
  border-radius: 999px;
  background: rgba(9, 164, 151, 0.18);
  color: #8ee7d9;
  cursor: pointer;
  font: inherit;
  font-size: 10.5px;
  font-weight: var(--ui-font-weight);
  white-space: nowrap;
}

.currency-pairs-add:hover,
.currency-pairs-add:focus-visible,
.currency-pairs-refresh:hover,
.currency-pairs-refresh:focus-visible {
  border-color: var(--teal);
  background: rgba(9, 164, 151, 0.28);
  color: #f4fbff;
  outline: none;
}

.currency-pairs-add:disabled,
.currency-pairs-refresh:disabled {
  cursor: default;
  opacity: 0.52;
}

.currency-pairs-refresh {
  margin-left: auto;
  border-color: rgba(81, 163, 248, 0.45);
  background: rgba(81, 163, 248, 0.1);
  color: #dcecff;
}

.currency-pairs-refresh.is-syncing .currency-pairs-refresh-icon {
  animation: top-refresh-spin 780ms linear infinite;
}

.currency-pairs-refresh-icon {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  background: currentColor;
  mask: url("../assets/icons/nucleo-core-svg/outline/arrows/24px_refresh.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/outline/arrows/24px_refresh.svg") center / contain no-repeat;
}

.currency-pairs-table {
  overflow: hidden;
  border: 1px solid #2b3a50;
  border-radius: 11px;
  background: #121b29;
}

.currency-pairs-row {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) 104px 122px 142px 96px;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border-top: 1px solid rgba(51, 71, 97, 0.68);
}

.currency-pairs-row:first-child {
  border-top: 0;
}

.currency-pairs-header {
  min-height: 36px;
  background: var(--table-header-bg);
  color: var(--table-header-text);
  font-size: 10.5px;
  font-weight: var(--ui-font-weight);
}

.currency-pairs-header > span:nth-child(2),
.currency-pairs-header > span:nth-child(3),
.currency-pairs-header > span:nth-child(4),
.currency-pairs-header > span:nth-child(5) {
  text-align: center;
}

.currency-pairs-sort {
  display: inline-flex;
  align-items: center;
  justify-content: inherit;
  gap: 5px;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
  text-align: inherit;
}

.currency-pairs-sort:hover,
.currency-pairs-sort:focus-visible,
.currency-pairs-sort.is-active {
  color: #8ee7d9;
  outline: none;
}

.currency-pairs-sort-icon {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  background: currentColor;
  opacity: 0.48;
  mask: url("../assets/icons/nucleo-core-svg/outline/filtering-sorting/24px_sort-alpha-descending.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/outline/filtering-sorting/24px_sort-alpha-descending.svg") center / contain no-repeat;
}

.currency-pairs-sort[data-sort-direction="desc"] .currency-pairs-sort-icon {
  transform: rotate(180deg);
}

.currency-pairs-sort.is-active .currency-pairs-sort-icon,
.currency-pairs-sort:hover .currency-pairs-sort-icon,
.currency-pairs-sort:focus-visible .currency-pairs-sort-icon {
  opacity: 0.9;
}

/* Keep sortable table headers visually consistent with ISA dashboard sorting. */
.isa-date-sort,
.isa-monthly-sort,
.dividend-history-sort,
.current-position-sort,
.price-schedule-sort,
.withholding-tax-sort,
.currency-pairs-sort {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
  line-height: 1.15;
  text-align: center;
  opacity: 1;
  transition: background 140ms ease, color 140ms ease, opacity 140ms ease;
}

.isa-date-sort,
.isa-monthly-sort,
.dividend-history-sort,
.price-schedule-sort {
  width: 100%;
}

.current-position-sort {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  padding: 0;
}

.withholding-tax-sort,
.currency-pairs-sort {
  width: 100%;
  text-align: center;
}

.isa-date-sort::after,
.isa-monthly-sort::after,
.dividend-history-sort::after,
.current-position-sort::after,
.price-schedule-sort::after,
.withholding-tax-sort::after,
.currency-pairs-sort::after {
  display: block;
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  background: currentColor;
  content: "";
  opacity: 0.58;
  transition: opacity 140ms ease, transform 140ms ease, color 140ms ease;
  mask: url("../assets/icons/nucleo-core-svg/fill/arrows/24px_chevron-down.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/arrows/24px_chevron-down.svg") center / contain no-repeat;
}

.current-position-sort::after {
  width: 9px;
  height: 9px;
  flex-basis: 9px;
}

.isa-date-sort[data-sort-direction="asc"]::after,
.isa-monthly-sort[data-sort-direction="asc"]::after,
.dividend-history-sort[data-sort-direction="asc"]::after,
.current-position-sort[data-sort-direction="asc"]::after,
.price-schedule-sort[data-sort-direction="asc"]::after,
.withholding-tax-sort[data-sort-direction="asc"]::after,
.currency-pairs-sort[data-sort-direction="asc"]::after {
  transform: rotate(180deg);
}

.isa-date-sort:hover,
.isa-date-sort:focus-visible,
.isa-date-sort.is-active,
.isa-monthly-sort:hover,
.isa-monthly-sort:focus-visible,
.isa-monthly-sort.is-active,
.dividend-history-sort:hover,
.dividend-history-sort:focus-visible,
.dividend-history-sort.is-active,
.current-position-sort:hover,
.current-position-sort:focus-visible,
.current-position-sort.is-active,
.price-schedule-sort:hover,
.price-schedule-sort:focus-visible,
.price-schedule-sort.is-active,
.withholding-tax-sort:hover,
.withholding-tax-sort:focus-visible,
.withholding-tax-sort.is-active,
.currency-pairs-sort:hover,
.currency-pairs-sort:focus-visible,
.currency-pairs-sort.is-active {
  background: transparent;
  color: #8ee7d9;
  outline: none;
}

.isa-date-sort:hover::after,
.isa-date-sort:focus-visible::after,
.isa-date-sort.is-active::after,
.isa-monthly-sort:hover::after,
.isa-monthly-sort:focus-visible::after,
.isa-monthly-sort.is-active::after,
.dividend-history-sort:hover::after,
.dividend-history-sort:focus-visible::after,
.dividend-history-sort.is-active::after,
.current-position-sort:hover::after,
.current-position-sort:focus-visible::after,
.current-position-sort.is-active::after,
.price-schedule-sort:hover::after,
.price-schedule-sort:focus-visible::after,
.price-schedule-sort.is-active::after,
.withholding-tax-sort:hover::after,
.withholding-tax-sort:focus-visible::after,
.withholding-tax-sort.is-active::after,
.currency-pairs-sort:hover::after,
.currency-pairs-sort:focus-visible::after,
.currency-pairs-sort.is-active::after {
  opacity: 1;
}

.dividend-history-sort-icon,
.current-position-sort-icon,
.price-schedule-sort-icon,
.withholding-sort-icon,
.currency-pairs-sort-icon {
  display: none;
}

.currency-pair,
.currency-pair-rate,
.currency-pair-day-change,
.currency-pair-fetched {
  min-width: 0;
  color: #e8edf5;
  font-size: 12.5px;
  font-weight: var(--ui-font-weight);
}

.currency-pair {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.currency-pair-code {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.currency-pair-flag {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.currency-pair-divider {
  color: #66738a;
  font-size: 10px;
  font-weight: 700;
}

.currency-pair-rate {
  color: #64dcca;
  text-align: center;
}

.currency-pair-day-change {
  color: #c5cfdd;
  text-align: center;
}

.currency-pair-fetched {
  color: #9db0c6;
  font-size: 11px;
  text-align: center;
}

.currency-pair-day-change.is-positive {
  color: #64dcca;
}

.currency-pair-day-change.is-negative {
  color: #ff9a9a;
}

.currency-pair-rate.is-empty,
.currency-pair-day-change.is-empty,
.currency-pair-fetched.is-empty {
  color: #66738a;
}

.currency-pairs-actions {
  display: flex;
  min-width: 0;
  justify-content: center;
  gap: 6px;
}

.currency-pair-edit,
.currency-pair-delete,
.currency-pair-save,
.currency-pair-cancel {
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid #334761;
  border-radius: 8px;
  background: #121b29;
  color: #c7d3e4;
  cursor: pointer;
  font: inherit;
  font-size: 10.5px;
  font-weight: var(--ui-font-weight);
  white-space: nowrap;
}

.currency-pair-edit {
  display: inline-grid;
  place-items: center;
  width: 26px;
  padding: 0;
  border-radius: 999px;
  color: var(--teal);
  opacity: 0;
  transition: opacity 120ms ease, border-color 120ms ease, color 120ms ease;
}

.currency-pair-delete {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-color: rgba(255, 111, 125, 0.34);
  background: rgba(255, 111, 125, 0.16);
  color: #ffc4ca;
  opacity: 1;
  transition: opacity 120ms ease, border-color 120ms ease, color 120ms ease;
}

.currency-pair-cancel {
  border-color: rgba(255, 111, 125, 0.34);
  background: rgba(255, 111, 125, 0.16);
  color: #ffc4ca;
}

.currency-pairs-row:hover .currency-pair-edit,
.currency-pairs-row:focus-within .currency-pair-edit,
.currency-pairs-row:hover .currency-pair-delete,
.currency-pairs-row:focus-within .currency-pair-delete {
  opacity: 1;
}

.currency-pair-edit:hover,
.currency-pair-edit:focus-visible,
.currency-pair-delete:hover,
.currency-pair-delete:focus-visible,
.currency-pair-save:hover,
.currency-pair-save:focus-visible,
.currency-pair-cancel:hover,
.currency-pair-cancel:focus-visible {
  border-color: var(--teal);
  color: #e8edf5;
  outline: none;
}

.currency-pair-delete:hover,
.currency-pair-delete:focus-visible,
.currency-pair-cancel:hover,
.currency-pair-cancel:focus-visible {
  border-color: rgba(255, 111, 125, 0.76);
  background: rgba(255, 111, 125, 0.2);
  color: #ffd1d6;
}

.delete-icon {
  display: block;
  width: 12px;
  height: 12px;
  background: currentColor;
  mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_trash.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_trash.svg") center / contain no-repeat;
}

.currency-pair-save {
  border-color: rgba(9, 164, 151, 0.7);
  background: rgba(9, 164, 151, 0.16);
  color: #79f2d4;
}

.currency-pair-input-wrap {
  justify-self: center;
  width: 108px;
}

.currency-pair-input-wrap input {
  width: 100%;
  height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(9, 164, 151, 0.72);
  border-radius: 8px;
  background: #0f1826;
  color: #e8edf5;
  font: inherit;
  font-size: 12.5px;
  font-weight: var(--ui-font-weight);
  outline: none;
  text-align: right;
}

.currency-pair-input-wrap input:focus {
  box-shadow: 0 0 0 2px rgba(88, 113, 148, 0.12);
}

.currency-pairs-empty {
  grid-template-columns: 1fr;
}

.currency-pairs-empty > span {
  color: #95a1b4;
  font-size: 11px;
  text-align: center;
}

.settings-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 5000;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: var(--settings-panel-width, 390px);
  max-width: calc(100vw - 28px);
  min-height: 100dvh;
  padding: 20px 20px 28px;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: linear-gradient(180deg, #172131 0%, #111820 100%);
  color: #e8edf5;
  box-shadow: -24px 0 48px rgba(6, 12, 22, 0.42);
  font-family: var(--fixed-font);
  font-size: 13px;
  font-weight: 500;
  transform: translateX(100%);
  transition: transform 180ms ease;
}

.settings-panel-resizer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -8px;
  z-index: 2;
  width: 16px;
  border: 0;
  background: transparent;
  cursor: col-resize;
  outline: none;
  touch-action: none;
}

.settings-panel-resizer::before {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 7px;
  width: 2px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.1);
  content: "";
  opacity: 0;
  transition: opacity 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.settings-panel-resizer:hover::before,
.settings-panel-resizer:focus-visible::before,
.settings-panel-resizer.is-active::before {
  background: rgba(45, 212, 191, 0.72);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12), 0 0 18px rgba(20, 184, 166, 0.22);
  opacity: 1;
}

body.is-resizing-settings-panel,
body.is-resizing-settings-panel * {
  cursor: col-resize !important;
  user-select: none;
}

.settings-panel.is-open {
  transform: translateX(0);
}

.settings-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 14px;
  margin-bottom: 18px;
}

.settings-head h2 {
  grid-column: 1;
  justify-self: start;
  margin: 0;
  color: #e8edf5;
  font-size: 16px;
  font-weight: var(--ui-font-weight);
  white-space: nowrap;
}

.settings-head-actions {
  display: inline-flex;
  grid-column: 2;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 8px;
}

.reset-settings,
.close-settings {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: var(--ui-font-weight);
}

.pin-settings {
  appearance: none;
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(70, 93, 126, 0.82);
  border-radius: 10px;
  background: rgba(20, 31, 48, 0.78);
  color: #95a1b4;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.pin-settings-icon {
  display: block;
  width: 16px;
  height: 16px;
  background: currentColor;
  mask: url("../assets/icons/nucleo-core-svg/fill/maps-location/24px_pin-tack.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/maps-location/24px_pin-tack.svg") center / contain no-repeat;
}

.settings-content {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 3px;
}

.settings-section-title {
  display: block;
  margin: 0 0 12px;
  color: #e8edf5;
  font-size: 13px;
  font-weight: var(--ui-font-weight);
  line-height: 1.2;
  text-align: left;
}

.close-settings {
  color: #95a1b4;
  font-size: 24px;
  line-height: 1;
}

.pin-settings:hover,
.pin-settings.is-active {
  border-color: rgba(20, 184, 166, 0.78);
  background: rgba(20, 184, 166, 0.14);
  color: var(--teal);
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.08);
}

.settings-panel.is-pinned {
  border-left-color: rgba(20, 184, 166, 0.44);
}

.settings-footer {
  display: flex;
  justify-content: flex-start;
  padding-top: 16px;
  border-top: 1px solid rgba(50, 71, 97, 0.7);
}

.reset-settings {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.reset-settings::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: currentColor;
  mask: url("../assets/icons/nucleo-core-svg/outline/arrows/24px_undo.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/outline/arrows/24px_undo.svg") center / contain no-repeat;
}

.reset-settings:hover,
.reset-settings:focus-visible {
  color: var(--teal);
}

.close-settings:hover,
.close-settings:focus-visible {
  color: #f0746e;
}

.logo-dev-settings {
  display: grid;
  gap: 10px;
}

.icon-library-panel.api-settings-panel {
  grid-template-rows: auto auto;
  width: min(520px, calc(100vw - 56px));
  height: auto;
  max-height: none;
  overflow: visible;
}

.api-settings-content {
  display: grid;
  gap: 12px;
  min-height: 0;
  overflow: visible;
}

.api-settings-content .currency-api-card,
.api-settings-content .logo-dev-settings {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(48, 66, 92, 0.82);
  border-radius: 10px;
  background: rgba(15, 24, 37, 0.58);
}

.settings-toggle-row,
.settings-text-field {
  display: grid;
  gap: 7px;
}

.settings-toggle-row {
  grid-template-columns: auto 1fr;
  align-items: center;
  color: #d8e5f4;
}

.settings-toggle-row input {
  accent-color: var(--teal);
}

.settings-text-field span {
  color: var(--muted);
  font-size: 12px;
}

.settings-text-field input {
  width: 100%;
  height: 38px;
  border: 1px solid rgba(48, 66, 92, 0.9);
  border-radius: 10px;
  background: #111820;
  color: #e8edf5;
  font: inherit;
  outline: 0;
  padding: 0 12px;
}

.settings-text-field input:focus {
  border-color: rgba(88, 113, 148, 0.82);
  box-shadow: 0 0 0 2px rgba(88, 113, 148, 0.12);
}

.entry-editor-modal[hidden] {
  display: none;
}

.entry-editor-modal {
  position: fixed;
  inset: 0;
  z-index: 92;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 8, 14, 0.58);
  color: #e8edf5;
  font-family: var(--fixed-font);
}

.entry-editor-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: default;
}

.entry-editor-panel {
  position: relative;
  z-index: 1;
  width: min(540px, calc(100vw - 48px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #172131 0%, #111820 100%);
  box-shadow: 0 28px 72px rgba(3, 8, 17, 0.56);
}

.entry-editor-head {
  display: block;
  margin-bottom: 14px;
}

.entry-editor-head h2 {
  margin: 0;
  color: #e8edf5;
  font-size: 18px;
  line-height: 1.1;
}

.entry-editor-title-block {
  width: 100%;
  min-width: 0;
}

.entry-editor-company {
  display: flex;
  align-items: center;
  max-width: min(360px, calc(100vw - 140px));
  min-height: 32px;
  margin-top: 9px;
  padding: 5px 8px;
  gap: 9px;
  border: 1px solid rgba(51, 71, 97, 0.72);
  border-radius: 10px;
  background: rgba(18, 27, 41, 0.58);
}

[data-dividend-history-payment-modal] .entry-editor-head {
  margin-bottom: 20px;
}

[data-price-transaction-modal] .entry-editor-company,
[data-dividend-history-payment-modal] .entry-editor-company {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
}

[data-isa-input-modal] .entry-editor-panel {
  width: min(430px, calc(100vw - 48px));
}

.entry-editor-panel > .entry-editor-head + .entry-editor-form,
.entry-editor-panel .entry-editor-head {
  width: 100%;
}

.entry-editor-panel > .entry-editor-head > .close-icon-library {
  position: absolute;
  top: 18px;
  right: 18px;
}

.entry-editor-company-logo {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.entry-editor-company-logo .price-company-logo {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  border-radius: 8px;
}

.entry-editor-company-logo .price-company-logo.is-placeholder::before {
  width: 15px;
  height: 15px;
}

.entry-editor-company-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.entry-editor-company-copy strong,
.entry-editor-company-copy span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-editor-company-copy strong {
  color: #e8edf5;
  font-size: 12px;
  font-weight: var(--ui-font-weight);
  line-height: 1.1;
}

.entry-editor-company-copy span {
  color: #95a1b4;
  font-size: 10.5px;
  font-weight: var(--ui-font-weight);
  line-height: 1.1;
}

.entry-editor-form {
  display: grid;
  gap: 12px;
}

.entry-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(51, 71, 97, 0.68);
  border-radius: 12px;
  background: rgba(18, 27, 41, 0.45);
}

.entry-editor-field {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: #95a1b4;
  font-size: 11px;
  font-weight: var(--ui-font-weight);
}

.entry-editor-field[hidden] {
  display: none;
}

.entry-editor-field.full {
  grid-column: 1 / -1;
}

.entry-editor-field input,
.entry-editor-field select,
.entry-editor-select-button,
.entry-editor-number-wrap,
.entry-editor-fx-display {
  width: 100%;
  min-width: 0;
  height: 34px;
  border: 1px solid #2b3a50;
  border-radius: 10px;
  background: #111b29;
  color: #e8edf5;
  font: inherit;
  font-size: 12px;
  font-weight: var(--ui-font-weight);
  outline: 0;
}

.entry-editor-field input,
.entry-editor-field select {
  padding: 0 10px;
}

.entry-editor-field select {
  appearance: none;
  padding-right: 28px;
  background-image:
    linear-gradient(45deg, transparent 50%, #95a1b4 50%),
    linear-gradient(135deg, #95a1b4 50%, transparent 50%);
  background-position:
    calc(100% - 15px) 14px,
    calc(100% - 10px) 14px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.entry-editor-number-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
}

.entry-editor-fx-display {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: rgba(17, 27, 41, 0.72);
}

.entry-editor-fx-flag {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(142, 231, 217, 0.28);
  border-radius: 999px;
  background-color: rgba(20, 184, 166, 0.12);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #8ee7d9;
  font-size: 9px;
  font-weight: 900;
}

.entry-editor-fx-flag img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.entry-editor-fx-display input[readonly] {
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d8e2f0;
  cursor: default;
  pointer-events: none;
}

.entry-editor-fx-currency {
  min-width: 34px;
  padding: 3px 7px;
  border: 1px solid rgba(142, 231, 217, 0.26);
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.1);
  color: #8ee7d9;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.entry-editor-number-wrap > span {
  flex: 0 0 auto;
  color: var(--teal);
  font-weight: var(--ui-font-weight);
}

.entry-editor-number-wrap input {
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.entry-editor-field input:focus,
.entry-editor-field select:focus,
.entry-editor-select.is-open .entry-editor-select-button,
.entry-editor-select-button:hover,
.entry-editor-select-button:focus-visible,
.entry-editor-number-wrap:focus-within,
.entry-editor-fx-display:focus-within {
  border-color: rgba(88, 113, 148, 0.82);
  box-shadow: 0 0 0 2px rgba(88, 113, 148, 0.12);
}

.entry-editor-select {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.entry-editor-select.is-open {
  z-index: 25;
}

.entry-editor-select-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.entry-editor-select-button > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-editor-select-chevron {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  background: #95a1b4;
  clip-path: polygon(50% 70%, 12% 28%, 88% 28%);
}

.entry-editor-select.is-open .entry-editor-select-chevron {
  background: #8ee7d9;
  transform: rotate(180deg);
}

.entry-editor-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  max-height: 246px;
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(51, 71, 97, 0.86);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18, 27, 41, 0.99) 0%, rgba(13, 23, 36, 0.99) 100%);
  box-shadow: 0 18px 42px rgba(3, 8, 17, 0.48), inset 0 1px 0 rgba(142, 231, 217, 0.06);
}

.entry-editor-select-menu[hidden] {
  display: none;
}

.entry-editor-select-option {
  display: flex;
  align-items: center;
  min-height: 34px;
  width: 100%;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #e8edf5;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: var(--ui-font-weight);
  text-align: left;
}

.entry-editor-select-option:hover,
.entry-editor-select-option:focus-visible,
.entry-editor-select-option.is-selected {
  border-color: rgba(142, 231, 217, 0.34);
  background: rgba(20, 184, 166, 0.13);
  color: #e8fffb;
  outline: none;
}

.entry-editor-select-option.is-selected {
  box-shadow: inset 3px 0 0 var(--teal);
}

.isa-input-modal-account-picker {
  z-index: 2;
}

.isa-input-modal-account-picker.is-open {
  z-index: 25;
}

.isa-input-modal-account-picker .isa-account-menu {
  z-index: 30;
}

.isa-input-modal-account-picker .isa-account-option .isa-account-label {
  width: 100%;
}

.entry-editor-preview {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(51, 71, 97, 0.68);
  border-radius: 12px;
  background: rgba(11, 18, 29, 0.36);
}

.entry-editor-preview-head,
.entry-editor-preview-row {
  display: grid;
  grid-template-columns: minmax(116px, 1.14fr) repeat(4, minmax(64px, 1fr));
  align-items: center;
  min-height: 30px;
  column-gap: 8px;
  padding: 0 12px;
}

.entry-editor-preview-head {
  background: rgba(32, 55, 75, 0.54);
  color: #7f8fa5;
  font-size: 10px;
  font-weight: 800;
}

.entry-editor-preview-row {
  border-top: 1px solid rgba(51, 71, 97, 0.52);
  color: #95a1b4;
  font-size: 11px;
}

.entry-editor-preview-row strong {
  display: grid;
  gap: 1px;
  min-width: 0;
  overflow: hidden;
  color: #e8edf5;
  font-size: 11px;
  font-weight: var(--ui-font-weight);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-editor-preview-row strong small {
  min-width: 0;
  overflow: hidden;
  color: currentColor;
  font-size: 9px;
  line-height: 1;
  opacity: 0.78;
  text-overflow: ellipsis;
}

.entry-editor-preview-head span:not(:first-child) {
  justify-self: center;
  text-align: center;
}

.entry-editor-preview-row strong {
  justify-items: center;
  text-align: center;
}

.entry-editor-preview-row strong.is-positive {
  color: #8ee7d9;
}

.entry-editor-preview-row strong.is-negative {
  color: #ff9aaa;
}

.entry-editor-preview-row strong.is-empty {
  color: #5c6879;
}

.entry-editor-payment-preview {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(51, 71, 97, 0.68);
  border-radius: 12px;
  background: rgba(11, 18, 29, 0.36);
}

.entry-editor-payment-preview-item {
  display: grid;
  min-width: 0;
  gap: 4px;
  text-align: center;
}

.entry-editor-payment-preview-label {
  min-width: 0;
  overflow: hidden;
  color: #7f8fa5;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-editor-payment-preview-value {
  min-width: 0;
  overflow: hidden;
  color: #8ee7d9;
  font-size: 13px;
  font-weight: var(--ui-font-weight);
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-editor-error {
  min-height: 15px;
  margin: 0;
  color: #ff9aaa;
  font-size: 11px;
  font-weight: var(--ui-font-weight);
}

.entry-editor-error[hidden] {
  display: none;
}

.entry-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.entry-editor-primary,
.entry-editor-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #334761;
  border-radius: 11px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: var(--ui-font-weight);
}

.entry-editor-primary {
  border-color: rgba(20, 184, 166, 0.82);
  background: linear-gradient(135deg, #1663ff 0%, #14b8a6 100%);
  color: #f7fbff;
}

.entry-editor-secondary {
  border-color: rgba(255, 111, 125, 0.34);
  background: rgba(255, 111, 125, 0.16);
  color: #ffc4ca;
}

.entry-editor-primary:hover,
.entry-editor-primary:focus-visible {
  border-color: rgba(142, 231, 217, 0.82);
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.12);
  outline: 0;
}

.entry-editor-secondary:hover,
.entry-editor-secondary:focus-visible {
  border-color: rgba(255, 111, 125, 0.76);
  box-shadow: 0 0 0 2px rgba(255, 111, 125, 0.12);
  outline: 0;
}

@media (max-width: 620px) {
  .entry-editor-grid {
    grid-template-columns: 1fr;
  }

  .entry-editor-payment-preview {
    grid-template-columns: 1fr;
  }
}

.icon-library-modal[hidden] {
  display: none;
}

.icon-library-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(4, 8, 14, 0.58);
  color: #e8edf5;
  font-family: var(--fixed-font);
}

.icon-library-modal.is-selecting-sector-icon {
  z-index: 110;
}

.icon-library-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
}

.icon-library-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  width: min(1120px, calc(100vw - 56px));
  height: min(92vh, 980px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #172131 0%, #111820 100%);
  box-shadow: 0 28px 72px rgba(3, 8, 17, 0.56);
}

.icon-library-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.icon-library-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
}

.icon-library-head p {
  margin: 5px 0 0;
  color: #95a1b4;
  font-size: 12px;
}

.close-icon-library {
  width: 30px;
  height: 30px;
  border: 1px solid #334761;
  border-radius: 9px;
  background: #121b29;
  color: #95a1b4;
  cursor: pointer;
  font: inherit;
  font-size: 20px;
  line-height: 1;
}

.close-icon-library:hover,
.close-icon-library:focus-visible {
  border-color: var(--teal);
  color: #e8edf5;
  outline: none;
}

.icon-library-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.icon-library-controls input,
.icon-library-controls select {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 11px;
  border: 1px solid #2b3a50;
  border-radius: 9px;
  background: #121b29;
  color: #e8edf5;
  font: inherit;
  font-size: 12.5px;
  outline: none;
}

.icon-library-type-select {
  display: none;
}

.icon-library-controls input:focus,
.icon-library-controls select:focus {
  border-color: rgba(88, 113, 148, 0.82);
  box-shadow: 0 0 0 2px rgba(88, 113, 148, 0.12);
}

.icon-type-dropdown {
  position: relative;
  width: 178px;
}

.icon-type-toggle,
.icon-type-menu button {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #2b3a50;
  border-radius: 10px;
  background: #121b29;
  color: #e8edf5;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: var(--ui-font-weight);
  text-align: left;
}

.icon-type-toggle:hover,
.icon-type-toggle:focus-visible,
.icon-type-dropdown.is-open .icon-type-toggle {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(9, 164, 151, 0.16);
  outline: none;
}

.icon-type-chevron {
  color: #95a1b4;
  font-size: 14px;
}

.icon-type-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 24;
  display: grid;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 1px solid #334761;
  border-radius: 14px;
  background: #172131;
  box-shadow: 0 18px 38px rgba(3, 8, 17, 0.42);
}

.icon-type-menu[hidden] {
  display: none;
}

.icon-type-menu button {
  position: relative;
  grid-template-columns: 20px minmax(0, 1fr);
  min-height: 40px;
  padding: 0 34px 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #e8edf5;
}

.icon-type-menu button span:not(.icon-type-option-icon) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-type-menu button:hover,
.icon-type-menu button:focus-visible,
.icon-type-menu button.is-active {
  background: rgba(9, 164, 151, 0.2);
  color: #e8edf5;
  outline: none;
}

.icon-type-menu button.is-active::after {
  position: absolute;
  top: 50%;
  right: 14px;
  color: #8ef2e4;
  content: "✓";
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-50%);
}

.icon-type-option-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: currentColor;
  color: #95a1b4;
  mask: var(--icon-type-mask) center / contain no-repeat;
  -webkit-mask: var(--icon-type-mask) center / contain no-repeat;
}

.icon-type-toggle .icon-type-option-icon,
.icon-type-menu button.is-active .icon-type-option-icon,
.icon-type-menu button:hover .icon-type-option-icon,
.icon-type-menu button:focus-visible .icon-type-option-icon {
  color: currentColor;
}

.icon-type-icon-all {
  --icon-type-mask: url("../assets/icons/nucleo-core-svg/outline/design-development/48px_grid-system.svg");
}

.icon-type-icon-favourites {
  --icon-type-mask: url("../assets/icons/nucleo-core-svg/outline/healthcare-medical/24px_heart.svg");
}

.icon-type-icon-nucleo {
  --icon-type-mask: url("../assets/icons/nucleo-core-svg/outline/business-finance/24px_puzzle-piece-2.svg");
}

.icon-type-icon-flag {
  --icon-type-mask: url("../assets/icons/nucleo-core-svg/outline/maps-location/24px_flag.svg");
}

.icon-type-icon-custom {
  --icon-type-mask: url("../assets/icons/custom/24px_swiss-franc.png");
}

.icon-region-filters,
.icon-category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 10px;
}

.icon-category-filters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  align-items: stretch;
  gap: 8px;
}

.icon-region-filters[hidden],
.icon-category-filters[hidden] {
  display: none;
}

.icon-region-button {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/files-folders/24px_folder.svg");
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #2b3a50;
  border-radius: 999px;
  background: #121b29;
  color: #95a1b4;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
}

.icon-category-button {
  width: 100%;
  justify-content: flex-start;
  min-width: 0;
  padding-inline: 11px;
  text-align: left;
}

.icon-region-button::before {
  display: block;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  background: currentColor;
  content: "";
  mask: var(--icon-filter-mask) center / contain no-repeat;
  -webkit-mask: var(--icon-filter-mask) center / contain no-repeat;
}

.icon-region-button[data-icon-region="all"],
.icon-category-button[data-icon-category="all"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/maps-location/24px_map.svg");
}

.icon-region-button[data-icon-region="favourites"],
.icon-category-button[data-icon-category="favourites"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/healthcare-medical/24px_heart.svg");
}

.icon-region-button[data-icon-region="North America"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/travel/24px_statue-of-liberty.svg");
}

.icon-region-button[data-icon-region="Europe"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/travel/24px_eiffel-tower.svg");
}

.icon-region-button[data-icon-region="Asia"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/travel/24px_torii-gate.svg");
}

.icon-region-button[data-icon-region="Africa"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/travel/24px_pyramids.svg");
}

.icon-region-button[data-icon-region="South America"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/travel/24px_christ-the-redeemer.svg");
}

.icon-region-button[data-icon-region="Oceania"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/travel/24px_sydney-opera-house.svg");
}

.icon-region-button[data-icon-region="Other"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/maps-location/24px_compass.svg");
}

.icon-category-button[data-icon-category="accessibility"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/accessibility/24px_screen-reader.svg");
}

.icon-category-button[data-icon-category="animals-nature"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/animals-nature/24px_leaf.svg");
}

.icon-category-button[data-icon-category="arrows"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/arrows/24px_arrows-all-directions.svg");
}

.icon-category-button[data-icon-category="bookmarks-favorites"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/bookmarks-favorites/24px_bookmark.svg");
}

.icon-category-button[data-icon-category="business-finance"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/business-finance/24px_coins.svg");
}

.icon-category-button[data-icon-category="charts"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/charts/24px_chart-pie.svg");
}

.icon-category-button[data-icon-category="communication"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/communication/24px_message.svg");
}

.icon-category-button[data-icon-category="design-development"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/design-development/24px_color-palette.svg");
}

.icon-category-button[data-icon-category="editing"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/fill/ui-layout/24px_input-password-edit.svg");
}

.icon-category-button[data-icon-category="emoji"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/emoji/24px_face-smile.svg");
}

.icon-category-button[data-icon-category="energy-environment"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/energy-environment/24px_earth.svg");
}

.icon-category-button[data-icon-category="entertainment"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/entertainment/24px_theatre-masks.svg");
}

.icon-category-button[data-icon-category="family-kids"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/family-kids/24px_baby.svg");
}

.icon-category-button[data-icon-category="farming-gardening"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/farming-gardening/24px_watering-can.svg");
}

.icon-category-button[data-icon-category="fashion-beauty"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/fashion-beauty/24px_tshirt.svg");
}

.icon-category-button[data-icon-category="files-folders"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/files-folders/24px_folder.svg");
}

.icon-category-button[data-icon-category="filtering-sorting"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/filtering-sorting/24px_filter.svg");
}

.icon-category-button[data-icon-category="food"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/food/24px_bowl.svg");
}

.icon-category-button[data-icon-category="gaming"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/entertainment/24px_arcade-joystick.svg");
}

.icon-category-button[data-icon-category="healthcare-medical"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/healthcare-medical/24px_heart.svg");
}

.icon-category-button[data-icon-category="holidays"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/holidays/24px_gift.svg");
}

.icon-category-button[data-icon-category="home-buildings"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/home-buildings/24px_house-4.svg");
}

.icon-category-button[data-icon-category="love-romance"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/love-romance/24px_hand-heart.svg");
}

.icon-category-button[data-icon-category="maps-location"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/maps-location/24px_map-pin.svg");
}

.icon-category-button[data-icon-category="military-war"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/military-war/24px_military-helmet.svg");
}

.icon-category-button[data-icon-category="photography-video"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/photography-video/24px_camera.svg");
}

.icon-category-button[data-icon-category="real estate"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/home-buildings/24px_house-4.svg");
}

.icon-category-button[data-icon-category="school-education"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/school-education/24px_graduation-cap.svg");
}

.icon-category-button[data-icon-category="security"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/security/24px_shield-lock.svg");
}

.icon-category-button[data-icon-category="shopping"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/shopping/24px_basket-24.svg");
}

.icon-category-button[data-icon-category="signs-symbols"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/signs-symbols/24px_ampersand.svg");
}

.icon-category-button[data-icon-category="sound-music"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/sound-music/24px_music-album.svg");
}

.icon-category-button[data-icon-category="sport"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/sport/24px_trophy.svg");
}

.icon-category-button[data-icon-category="technology"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/technology-devices/24px_computer.svg");
}

.icon-category-button[data-icon-category="time"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/time/24px_clock.svg");
}

.icon-category-button[data-icon-category="touch gestures"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/arrows/24px_arrows-all-directions.svg");
}

.icon-category-button[data-icon-category="transportation"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/transportation/24px_car.svg");
}

.icon-category-button[data-icon-category="travel"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/travel/24px_luggage.svg");
}

.icon-category-button[data-icon-category="ui-layout"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/ui-layout/24px_app-stack.svg");
}

.icon-category-button[data-icon-category="users"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/users/24px_user.svg");
}

.icon-category-button[data-icon-category="weather"] {
  --icon-filter-mask: url("../assets/icons/nucleo-core-svg/outline/weather/24px_sun-cloud-2.svg");
}

.icon-region-button:hover,
.icon-region-button:focus-visible {
  border-color: #2f7b84;
  color: #e8edf5;
  outline: none;
}

.icon-region-button.is-active {
  border-color: rgba(9, 164, 151, 0.85);
  background: rgba(9, 164, 151, 0.18);
  color: #79f2d4;
}

.icon-region-button.icon-favourites-filter.is-active {
  border-color: rgba(255, 77, 94, 0.78);
  background: rgba(255, 77, 94, 0.16);
  color: #ffb3bd;
}

.icon-library-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: #95a1b4;
  font-size: 11px;
}

.icon-library-grid {
  min-height: 0;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-content: start;
  gap: 8px;
  padding-right: 4px;
}

.company-icons-panel {
  grid-template-rows: auto auto auto minmax(0, 1fr);
  width: min(1180px, calc(100vw - 56px));
  height: min(82vh, 760px);
}

.company-icons-controls {
  grid-template-columns: minmax(0, 1fr) auto;
}

.company-icon-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(17, 184, 170, 0.78);
  border-radius: 13px;
  background: rgba(17, 184, 170, 0.18);
  color: #8ff2e5;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.company-icon-upload-button::before {
  display: block;
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  background: currentColor;
  content: "";
  mask: url("../assets/icons/nucleo-core-svg/fill/photography-video/24px_image-plus.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/photography-video/24px_image-plus.svg") center / contain no-repeat;
}

.company-icon-upload-button:hover,
.company-icon-upload-button:focus-visible {
  background: rgba(17, 184, 170, 0.28);
  box-shadow: 0 0 0 2px rgba(17, 184, 170, 0.14);
  outline: none;
}

.company-icons-grid {
  min-height: 0;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-content: start;
  gap: 8px;
  padding-right: 4px;
}

.company-icon-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 60px;
  padding: 7px 8px;
  border: 1px solid #26364f;
  border-radius: 10px;
  background: #121b29;
  cursor: context-menu;
}

.company-icon-card.has-variants {
  padding-right: 42px;
}

.company-icon-card:hover,
.company-icon-card:focus-within,
.company-icon-card:focus-visible {
  border-color: rgba(17, 184, 170, 0.72);
  box-shadow: 0 0 0 2px rgba(17, 184, 170, 0.1);
  outline: none;
}

.company-icon-thumb {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: transparent;
}

.company-icon-thumb.is-tone-normalized {
  border: 1px solid rgba(75, 106, 144, 0.34);
  background: rgba(18, 27, 41, 0.78);
}

.company-icon-thumb.is-tone-normalized::after {
  display: none;
}

.company-icon-thumb.is-placeholder {
  border: 1px solid rgba(75, 106, 144, 0.42);
  background: rgba(18, 27, 41, 0.78);
  color: #9ee9dc;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.company-icon-thumb.is-placeholder::after {
  display: none;
}

.company-icon-thumb.logo-crop-rounded,
.company-icon-thumb.logo-crop-circle {
  width: 44px;
  height: 44px;
}

.company-icon-thumb.logo-crop-rounded {
  border-radius: 10px;
}

.company-icon-thumb.logo-crop-circle {
  border-radius: 999px;
}

.company-icon-thumb img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.company-icon-thumb.is-tone-normalized img {
  filter: saturate(0.78) brightness(0.92) hue-rotate(-4deg);
}

.company-icon-thumb.logo-adjustable img {
  width: auto;
}

.company-icon-thumb.is-api-icon img,
.company-icon-thumb.is-api-icon.logo-adjustable > img {
  width: 32px;
  max-width: 32px;
  height: 32px;
  max-height: 32px;
  object-fit: contain;
  transform: none;
}

.company-icon-detail {
  min-width: 0;
}

.company-icon-card strong {
  display: block;
  overflow: hidden;
  color: #e8edf5;
  font-size: 11px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-icon-meta {
  display: block;
  margin-top: 5px;
  color: #95a1b4;
  font-size: 9.5px;
  font-weight: 700;
}

.company-icon-variant-controls {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: inline-flex;
  gap: 2px;
  padding: 1px;
  border: 1px solid rgba(75, 106, 144, 0.7);
  border-radius: 999px;
  background: rgba(8, 17, 30, 0.78);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.company-icon-variant-button {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #9ee9dc;
  cursor: pointer;
}

.company-icon-variant-button::before {
  display: block;
  width: 10px;
  height: 10px;
  background: currentColor;
  content: "";
  mask: url("../assets/icons/nucleo-core-svg/fill/arrows/24px_chevron-left.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/arrows/24px_chevron-left.svg") center / contain no-repeat;
}

.company-icon-variant-button[data-company-icon-variant-direction="1"]::before {
  mask-image: url("../assets/icons/nucleo-core-svg/fill/arrows/24px_chevron-right.svg");
  -webkit-mask-image: url("../assets/icons/nucleo-core-svg/fill/arrows/24px_chevron-right.svg");
}

.company-icon-variant-button:hover,
.company-icon-variant-button:focus-visible {
  background: rgba(17, 184, 170, 0.22);
  color: #e8fffb;
  outline: none;
}

@media (max-width: 940px) {
  .company-icons-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .company-icons-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.logo-adjustable {
  --logo-adjust-x: 0;
  --logo-adjust-y: 0;
  --logo-adjust-scale: 1;
  --logo-background-color: transparent;
  --logo-fill-color: #ffffff;
  position: relative;
  overflow: hidden;
}

.logo-adjustable > img {
  transform: translate(calc(var(--logo-adjust-x) * 1%), calc(var(--logo-adjust-y) * 1%)) scale(var(--logo-adjust-scale));
  transform-origin: center;
}

.logo-adjustable.logo-has-background {
  background: var(--logo-background-color) !important;
}

.logo-adjustable.logo-has-fill > img {
  opacity: 0;
}

.logo-fill-overlay {
  position: absolute;
  inset: 6%;
  z-index: 1;
  display: block;
  background: var(--logo-fill-color);
  mask: var(--logo-mask-url) center / contain no-repeat;
  -webkit-mask: var(--logo-mask-url) center / contain no-repeat;
  pointer-events: none;
  transform: translate(calc(var(--logo-adjust-x) * 1%), calc(var(--logo-adjust-y) * 1%)) scale(var(--logo-adjust-scale));
  transform-origin: center;
}

.logo-crop-rounded {
  border-radius: 10px;
}

.logo-crop-circle {
  border-radius: 999px;
}

.logo-editor-modal[hidden] {
  display: none;
}

.logo-editor-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
}

.logo-editor-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(5, 10, 18, 0.74);
  cursor: default;
}

.logo-editor-panel {
  --logo-editor-original-edge-offset: 32px;
  position: relative;
  z-index: 1;
  display: grid;
  width: min(920px, calc(100vw - 48px));
  max-height: min(88vh, 720px);
  overflow: auto;
  gap: 14px;
  padding: 20px;
  border: 1px solid #26364f;
  border-radius: 16px;
  background: #121b29;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.logo-editor-head,
.logo-editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo-editor-head h2 {
  margin: 2px 0 0;
  color: #e8edf5;
  font-size: 18px;
  line-height: 1.15;
}

.logo-editor-body {
  display: grid;
  grid-template-columns: minmax(430px, 1fr) minmax(270px, 0.68fr);
  gap: 20px;
  align-items: center;
}

.logo-editor-stage {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.logo-editor-previews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.logo-editor-preview-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
}

.logo-editor-preview-card > span {
  color: #9fb0c7;
  font-size: 11px;
  font-weight: 800;
}

.logo-editor-stage p {
  margin: 0;
  color: #9fb0c7;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.logo-editor-original-frame,
.logo-editor-frame {
  position: relative;
  display: grid;
  width: min(190px, 100%);
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(142, 231, 217, 0.34);
  background: #0d1724;
}

.logo-editor-original-frame {
  border-radius: 12px;
}

.logo-editor-original-wrap {
  position: relative;
  display: grid;
  width: min(258px, 100%);
  padding-inline: var(--logo-editor-original-edge-offset);
  place-items: center;
  box-sizing: border-box;
}

.logo-editor-variant-button {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 4;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(142, 231, 217, 0.34);
  border-radius: 999px;
  background: rgba(18, 27, 41, 0.92);
  color: #8ff2e5;
  cursor: pointer;
  transform: translateY(-50%);
}

.logo-editor-variant-button::before {
  width: 14px;
  height: 14px;
  background: currentColor;
  content: "";
  mask: url("../assets/icons/nucleo-core-svg/fill/arrows/24px_chevron-left.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/arrows/24px_chevron-left.svg") center / contain no-repeat;
}

.logo-editor-variant-button.is-next {
  right: 0;
  left: auto;
}

.logo-editor-variant-button.is-next::before {
  mask-image: url("../assets/icons/nucleo-core-svg/fill/arrows/24px_chevron-right.svg");
  -webkit-mask-image: url("../assets/icons/nucleo-core-svg/fill/arrows/24px_chevron-right.svg");
}

.logo-editor-variant-button:disabled {
  opacity: 0;
  pointer-events: none;
}

.logo-editor-frame {
  cursor: grab;
  touch-action: none;
}

.logo-editor-frame.is-dragging {
  cursor: grabbing;
}

.logo-editor-frame::before,
.logo-editor-frame::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  content: "";
}

.logo-editor-frame::before {
  background:
    linear-gradient(90deg, transparent 33.333%, rgba(232, 237, 245, 0.18) 33.333%, rgba(232, 237, 245, 0.18) calc(33.333% + 1px), transparent calc(33.333% + 1px), transparent 66.666%, rgba(232, 237, 245, 0.18) 66.666%, rgba(232, 237, 245, 0.18) calc(66.666% + 1px), transparent calc(66.666% + 1px)),
    linear-gradient(0deg, transparent 33.333%, rgba(232, 237, 245, 0.18) 33.333%, rgba(232, 237, 245, 0.18) calc(33.333% + 1px), transparent calc(33.333% + 1px), transparent 66.666%, rgba(232, 237, 245, 0.18) 66.666%, rgba(232, 237, 245, 0.18) calc(66.666% + 1px), transparent calc(66.666% + 1px));
}

.logo-editor-frame::after {
  box-shadow: inset 0 0 0 999px rgba(5, 10, 18, 0.02), inset 0 0 0 1px rgba(232, 237, 245, 0.08);
}

.logo-editor-original-frame img,
.logo-editor-frame img {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  user-select: none;
}

.logo-editor-controls {
  display: grid;
  gap: 14px;
}

.logo-editor-field {
  display: grid;
  gap: 8px;
  color: #9fb0c7;
  font-size: 12px;
  font-weight: 800;
}

.logo-editor-segments {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.logo-editor-colors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.logo-editor-color-field {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: #9fb0c7;
  font-size: 12px;
  font-weight: 800;
}

.logo-editor-color-field input {
  width: 100%;
  height: 34px;
  padding: 3px;
  border: 1px solid #31425f;
  border-radius: 10px;
  background: #172337;
  cursor: pointer;
}

.logo-editor-segments button,
.logo-editor-secondary,
.logo-editor-cancel,
.logo-editor-primary,
.logo-editor-url-row button,
.logo-editor-upload-button {
  min-height: 34px;
  border: 1px solid #31425f;
  border-radius: 11px;
  background: #172337;
  color: #e8edf5;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.logo-editor-segments button.is-active {
  border-color: rgba(17, 184, 170, 0.9);
  background: rgba(17, 184, 170, 0.2);
  color: #8ff2e5;
}

.logo-editor-field input[type="range"] {
  width: 100%;
  accent-color: #11b8aa;
}

.logo-editor-upload-tools {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.logo-editor-url-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.logo-editor-url-row input {
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #31425f;
  border-radius: 10px;
  background: #0d1724;
  color: #e8edf5;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.logo-editor-url-row input:focus {
  border-color: rgba(142, 231, 217, 0.7);
  outline: none;
  box-shadow: 0 0 0 2px rgba(17, 184, 170, 0.14);
}

.logo-editor-actions {
  justify-content: flex-start;
  padding-left: var(--logo-editor-original-edge-offset);
}

.logo-editor-secondary {
  margin-right: auto;
  color: #9fb0c7;
}

.logo-editor-cancel {
  border-color: rgba(255, 111, 125, 0.34);
  background: rgba(255, 111, 125, 0.16);
  color: #ffc4ca;
}

.logo-editor-primary {
  border-color: rgba(17, 184, 170, 0.88);
  background: linear-gradient(135deg, #278df3, #11b8aa);
}

.logo-editor-segments button:hover,
.logo-editor-segments button:focus-visible,
.logo-editor-secondary:hover,
.logo-editor-secondary:focus-visible,
.logo-editor-primary:hover,
.logo-editor-primary:focus-visible,
.logo-editor-url-row button:hover,
.logo-editor-url-row button:focus-visible,
.logo-editor-upload-button:hover,
.logo-editor-upload-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(17, 184, 170, 0.14);
}

.logo-editor-cancel:hover,
.logo-editor-cancel:focus-visible {
  border-color: rgba(255, 111, 125, 0.76);
  box-shadow: 0 0 0 2px rgba(255, 111, 125, 0.12);
  outline: none;
}

.icon-group-heading {
  grid-column: 1 / -1;
  margin: 8px 0 1px;
  color: #e8edf5;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.icon-group-heading:first-child {
  margin-top: 0;
}

.icon-card {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 7px 34px 7px 7px;
  border: 1px solid #26364f;
  border-radius: 9px;
  background: #121b29;
}

.icon-library-modal.is-selecting-sidebar-icon .icon-card[data-icon-type="Nucleo"] {
  cursor: pointer;
}

.icon-library-modal.is-selecting-sidebar-icon .icon-card[data-icon-type="Nucleo"]:hover,
.icon-library-modal.is-selecting-sidebar-icon .icon-card[data-icon-type="Nucleo"]:focus-visible {
  border-color: rgba(17, 184, 170, 0.75);
  box-shadow: 0 0 0 2px rgba(17, 184, 170, 0.12);
  outline: none;
}

.icon-favourite-button {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  width: 22px;
  height: 22px;
  padding: 0;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  appearance: none;
  background: transparent;
  color: #7e8ca0;
  cursor: pointer;
  line-height: 0;
}

.icon-favourite-button svg {
  display: block;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transform: translateY(0.5px);
}

.icon-favourite-button:hover,
.icon-favourite-button:focus-visible {
  border-color: rgba(255, 77, 94, 0.5);
  color: #ffb3bd;
  outline: none;
}

.icon-favourite-button.is-favourite {
  color: #ff4d5e;
}

.icon-favourite-button.is-favourite svg {
  fill: currentColor;
}

.icon-thumb {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: #f4f7fb;
}

.icon-thumb img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  object-position: center center;
}

.icon-card[data-icon-type="Flag"] .icon-thumb {
  border-radius: 999px;
  background: transparent;
}

.icon-card[data-icon-type="Flag"] .icon-thumb img {
  width: 26px;
  height: 26px;
  border-radius: 999px;
}

.icon-card[data-icon-type="Nucleo"] .icon-thumb img {
  width: 23px;
  height: 23px;
}

.icon-card[data-icon-type="Custom"] .icon-thumb img {
  width: 24px;
  height: 24px;
}

.icon-detail {
  display: block;
  min-width: 0;
}

.icon-card strong {
  display: block;
  overflow: visible;
  color: #e8edf5;
  font-size: 11px;
  line-height: 1.15;
  text-overflow: clip;
  white-space: normal;
}

.icon-card .icon-meta {
  display: block;
  overflow: visible;
  margin-top: 2px;
  color: #95a1b4;
  font-size: 9.5px;
  line-height: 1.15;
  text-overflow: clip;
  white-space: normal;
}

.settings-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.setting-block {
  margin: 14px 0 18px;
}

.setting-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  color: #95a1b4;
  font-size: 13px;
  font-weight: 600;
}

.setting-label output {
  color: #e8edf5;
  font-size: 13px;
}

.color-control {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 9px;
  align-items: center;
}

.color-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 60;
  display: grid;
  gap: 9px;
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(51, 71, 97, 0.84);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(21, 33, 49, 0.98) 0%, rgba(13, 23, 36, 0.98) 100%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(142, 231, 217, 0.08);
}

.color-popover.is-fixed {
  position: fixed;
  right: auto;
  bottom: auto;
  z-index: 132;
}

.settings-row {
  --settings-color-row-gap: 12px;
}

.settings-row .color-popover {
  width: calc(200% + var(--settings-color-row-gap) - 2px);
}

.settings-row > div:nth-child(2) .color-popover {
  right: 0;
  left: auto;
}

.color-popover[hidden],
.color-favorites[hidden],
.color-popover-panel[hidden] {
  display: none;
}

.color-popover-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.color-popover-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(142, 231, 217, 0.22);
  border-radius: 999px;
  background: rgba(18, 27, 41, 0.72);
  color: #c7d3e4;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: var(--calendar-font-weight);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.color-popover-action-icon {
  display: block;
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  background: currentColor;
}

.color-popover-action[data-color-mode="hex"] .color-popover-action-icon {
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/design-development/24px_text-color.svg") center / contain no-repeat;
  mask: url("../assets/icons/nucleo-core-svg/fill/design-development/24px_text-color.svg") center / contain no-repeat;
}

.color-popover-action[data-color-mode="favorites"] .color-popover-action-icon {
  background: #ff6b6b;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/healthcare-medical/24px_heart.svg") center / contain no-repeat;
  mask: url("../assets/icons/nucleo-core-svg/fill/healthcare-medical/24px_heart.svg") center / contain no-repeat;
}

.color-popover-action:hover,
.color-popover-action:focus-visible,
.color-popover-action.is-active {
  border-color: rgba(142, 231, 217, 0.62);
  background: rgba(20, 184, 166, 0.16);
  color: #e8fffb;
  box-shadow: inset 0 0 0 1px rgba(142, 231, 217, 0.08);
  outline: none;
}

.color-hex-panel {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(51, 71, 97, 0.64);
  border-radius: 16px;
  background: rgba(10, 18, 29, 0.58);
  box-shadow: inset 0 1px 0 rgba(232, 237, 245, 0.04);
}

.color-hex-preview-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.color-eyedropper-button,
.color-favorite-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(142, 231, 217, 0.24);
  border-radius: 12px;
  background: rgba(18, 27, 41, 0.9);
  color: #e8edf5;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.color-eyedropper-button::before,
.color-favorite-toggle::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("../assets/icons/nucleo-core-svg/fill/design-development/24px_eye-dropper.svg") center / contain no-repeat;
  mask: url("../assets/icons/nucleo-core-svg/fill/design-development/24px_eye-dropper.svg") center / contain no-repeat;
}

.color-favorite-toggle {
  margin-left: auto;
}

.color-favorite-toggle::before {
  -webkit-mask: url("../assets/icons/nucleo-core-svg/outline/healthcare-medical/24px_heart.svg") center / contain no-repeat;
  mask: url("../assets/icons/nucleo-core-svg/outline/healthcare-medical/24px_heart.svg") center / contain no-repeat;
}

.color-favorite-toggle.is-active {
  border-color: rgba(255, 107, 107, 0.56);
  background: rgba(255, 107, 107, 0.13);
  color: #ff7b78;
}

.color-favorite-toggle.is-active::before {
  -webkit-mask-image: url("../assets/icons/nucleo-core-svg/fill/healthcare-medical/24px_heart.svg");
  mask-image: url("../assets/icons/nucleo-core-svg/fill/healthcare-medical/24px_heart.svg");
}

.color-eyedropper-button:hover,
.color-eyedropper-button:focus-visible,
.color-favorite-toggle:hover,
.color-favorite-toggle:focus-visible {
  border-color: rgba(142, 231, 217, 0.68);
  background: rgba(20, 184, 166, 0.14);
  color: #e8fffb;
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.12);
  outline: none;
}

.color-eyedropper-button.is-unavailable {
  opacity: 0.5;
  cursor: default;
}

.color-eyedropper-button.is-sampling,
body.is-color-eyedropper-sampling {
  cursor: crosshair;
}

body.is-color-eyedropper-sampling * {
  cursor: crosshair !important;
}

.color-hex-preview {
  display: block;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(232, 237, 245, 0.22);
  border-radius: 999px;
  background: var(--selected-color);
  box-shadow: inset 0 0 0 1px rgba(7, 13, 22, 0.28);
}

.color-hex-preview.is-transparent,
.color-control-trigger-swatch.is-transparent,
.color-favorite.is-transparent {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(45deg, rgba(232, 237, 245, 0.24) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(232, 237, 245, 0.24) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(232, 237, 245, 0.24) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(232, 237, 245, 0.24) 75%),
    rgba(10, 18, 29, 0.92);
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
  background-size: 12px 12px;
}

.color-hex-preview.is-transparent::before,
.color-control-trigger-swatch.is-transparent::before,
.color-favorite.is-transparent::before {
  position: absolute;
  inset: 5px;
  z-index: 1;
  background: #e8edf5;
  content: "";
  -webkit-mask: url("../assets/icons/nucleo-core-svg/outline/design-development/24px_transparent.svg") center / contain no-repeat;
  mask: url("../assets/icons/nucleo-core-svg/outline/design-development/24px_transparent.svg") center / contain no-repeat;
}

.color-hex-field,
.color-channel-field {
  display: grid;
  gap: 4px;
}

.color-hex-field span,
.color-channel-field span {
  color: #91a2b7;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.color-hex-field input,
.color-channel-field input {
  width: 100%;
  min-width: 0;
  height: 32px;
  border: 1px solid rgba(119, 137, 158, 0.42);
  border-radius: 11px;
  background: rgba(14, 23, 36, 0.9);
  color: #e8edf5;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  outline: none;
}

.color-hex-field input:focus,
.color-channel-field input:focus {
  border-color: rgba(88, 113, 148, 0.82);
  box-shadow: 0 0 0 2px rgba(88, 113, 148, 0.12);
}

.color-rgb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.color-favorites {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 24px;
  justify-items: center;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(51, 71, 97, 0.64);
  border-radius: 16px;
  background: rgba(10, 18, 29, 0.58);
  box-shadow: inset 0 1px 0 rgba(232, 237, 245, 0.04);
}

.color-favorite {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(232, 237, 245, 0.2);
  border-radius: 999px;
  background: var(--favorite-color);
  cursor: pointer;
}

.color-favorite:hover,
.color-favorite:focus-visible {
  border-color: rgba(142, 231, 217, 0.78);
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.16);
  outline: none;
}

.color-control input[type="text"] {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #121b29;
  color: #e8edf5;
  font: inherit;
  font-size: 13px;
  outline: none;
  text-transform: uppercase;
}

.color-control input[type="text"]:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(74, 163, 255, 0.18);
}

.color-control input[type="color"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.color-control-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 3px;
  border: 1px solid rgba(142, 231, 217, 0.28);
  border-radius: 999px;
  background: rgba(18, 27, 41, 0.72);
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.color-control-trigger:hover,
.color-control-trigger:focus-visible,
.color-control.is-open .color-control-trigger {
  border-color: rgba(142, 231, 217, 0.66);
  background: rgba(20, 184, 166, 0.1);
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.14);
  outline: none;
}

.color-control-trigger-swatch {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(232, 237, 245, 0.22);
  border-radius: 999px;
  background: var(--selected-color);
}

.logo-editor-color-control .color-popover {
  width: min(312px, calc(100vw - 48px));
}

input[type="range"] {
  width: 100%;
  accent-color: var(--teal);
}

.choice-list {
  display: grid;
  gap: 7px;
}

.choice-list label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(29, 42, 63, 0.68);
  color: #e8edf5;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

.choice-list label:hover {
  border-color: #3a5575;
  background: rgba(34, 50, 76, 0.82);
}

.choice-list input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--teal);
}

.choice-list label:has(input:checked) {
  border-color: var(--teal);
  background: rgba(9, 164, 151, 0.16);
  box-shadow: inset 0 0 0 1px rgba(9, 164, 151, 0.42);
}

.segmented-choice {
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 6px;
}

.segmented-choice label {
  justify-content: center;
  min-height: 30px;
  padding: 0 9px;
  border-radius: 9px;
  font-size: 12px;
}

.segmented-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 980px) {
  body {
    min-width: 0;
  }

  .browser-shell {
    padding: 0;
  }

  .window-bar {
    display: none;
  }

  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    border-radius: 0;
  }

  .sidebar {
    display: none;
  }

  .main-grid {
    grid-template-columns: 1fr;
  }

  .page-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .page-shortcuts {
    order: 3;
    flex: 1 1 100%;
    justify-content: flex-start;
  }

  .stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .holdings-summary-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .holdings-summary-currency-card {
    grid-column: auto;
    grid-row: auto;
  }

  .holdings-summary-price-gain-values {
    flex-wrap: wrap;
    gap: 8px;
  }

  .holdings-summary-price-gain-values .holdings-summary-gain-badge {
    min-width: 96px;
  }

  .regular-investment-card .calendar-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 10px;
  }

  .regular-investment-toolbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .regular-investment-upcoming {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .regular-investment-upcoming-panel,
  .regular-investment-upcoming-main {
    width: 100%;
  }

  .regular-investment-upcoming-panel {
    min-width: 0;
  }

  .regular-investment-upcoming-main {
    flex-wrap: wrap;
  }

  .regular-investment-upcoming-pill {
    width: 100%;
  }

  .regular-investment-upcoming-progress {
    width: 100%;
    margin-left: 0;
    text-align: left;
  }

  .regular-investment-card .calendar-month-controls {
    width: 100%;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
  }

  .regular-investment-dates-calendar-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .regular-investment-dates-calendar .calendar-month-controls {
    width: 100%;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
  }

  .regular-investment-next-events {
    width: 100%;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .regular-investment-next-events-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .regular-investment-card .month-title {
    width: auto;
  }

  .regular-investment-card .subtitle {
    justify-self: start;
    text-align: left;
  }

  .regular-investment-card .weekday-row {
    display: none;
  }

  .weekday-row,
  .calendar-grid {
    grid-template-columns: 1fr;
  }
}
