/* Exact wordmark crop from the approved 1536 x 1024 source, shared only by
   the site navigation and login. The assistant has its own separate assets. */
.oghma-site-wordmark {
  position: relative;
  display: block;
  overflow: hidden;
  width: 170px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 6.32;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 0;
}

.oghma-site-wordmark > img {
  position: absolute;
  display: block;
  width: 243.037975%;
  height: 1024%;
  max-width: none;
  left: -71.518987%;
  top: -193%;
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
}

/* Preserve the approved login's existing sizing and responsive composition. */
.auth-brand.oghma-site-wordmark {
  width: min(632px, 100%);
  height: 100px;
  margin: 0 auto 49px;
}

@media (max-width: 760px) {
  .auth-brand.oghma-site-wordmark {
    width: min(470px, 88%);
    height: auto;
    margin-bottom: 36px;
  }
}

@media (max-height: 850px) and (min-width: 761px) {
  .auth-brand.oghma-site-wordmark { margin-bottom: 35px; }
}

.oghma-brand-stock-mark {
  position: relative;
  width: fit-content;
  max-width: 100%;
}

body.sol-dashboard.dashboard-minimal #dashboardChrome .oghma-stock-eye {
  position: absolute;
  /* Center of the eye in the approved wordmark crop. */
  inset: 50% auto auto 9%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  touch-action: manipulation;
}

body.sol-dashboard.dashboard-minimal #dashboardChrome .oghma-stock-eye:is(:hover, :active) {
  transform: translate(-50%, -50%);
  background: transparent;
}

body.sol-dashboard.dashboard-minimal #dashboardChrome .oghma-stock-eye:focus-visible {
  outline: 2px solid #d2bd83;
  outline-offset: -7px;
}

.oghma-stock-eye:not([data-stage="6"])::before,
.oghma-stock-eye:not([data-stage="6"])::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
}

.oghma-stock-eye:not([data-stage="6"])::before {
  width: 20px;
  height: 11px;
  border-radius: 50%;
  background: #10140f;
}

.oghma-stock-eye:not([data-stage="6"])::after {
  width: 14px;
  height: 5px;
  border-bottom: 2px solid #aebb78;
  border-radius: 0 0 50% 50%;
}

.oghma-stock-hint {
  position: absolute;
  z-index: 1;
  inset: calc(100% + 5px) auto auto 0;
  margin: 0;
  box-sizing: border-box;
  width: max-content;
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid #65734d;
  border-radius: 6px;
  background: #1e281a;
  color: #f1eddf;
  font: 12px/1.35 system-ui, sans-serif;
  pointer-events: none;
}

.oghma-stock-hint:empty { opacity: 0; }
.oghma-brand-stock-mark:has(.oghma-stock-hint:not(:empty)) + span { visibility: hidden; }

#oghmaStockDialog {
  box-sizing: border-box;
  width: min(480px, calc(100% - 24px));
  max-height: min(640px, calc(100dvh - 24px));
  padding: 18px;
  border: 1px solid #687452;
  border-radius: 8px;
  background: #141c15;
  color: #f1eddf;
  color-scheme: dark;
  font: 14px/1.45 system-ui, sans-serif;
  overflow: auto;
  box-shadow: 0 18px 52px #080c08b3;
}

#oghmaStockDialog::backdrop { background: #070b07a8; }

.oghma-stock-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

#oghmaStockTitle { margin: 1px 0 0; color: inherit; font-size: 23px; }
.oghma-stock-kicker { margin: 0; color: #c5ca9d; font-size: 12px; }
.oghma-stock-offer p, .oghma-stock-status, .oghma-stock-count { margin: 10px 0; color: #c3c8b7; }

#oghmaStockDialog :is(button, input) {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #616d52;
  border-radius: 6px;
  background: #202b20;
  color: inherit;
  font: inherit;
}

#oghmaStockDialog button { cursor: pointer; }
#oghmaStockDialog button[aria-pressed="true"] { border-color: #d2bd83; background: #37442b; }
#oghmaStockDialog :is(button, input):focus-visible { outline: 2px solid #d2bd83; outline-offset: 2px; }
#oghmaStockDialog .oghma-stock-close { width: 44px; padding: 0; font-size: 22px; }
.oghma-stock-warehouses { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.oghma-stock-eye[hidden], .oghma-stock-warehouses[hidden] { display: none; }
#oghmaStockDialog .oghma-stock-search { display: block; margin-bottom: 4px; color: #c3c8b7; }
#oghmaStockDialog input { box-sizing: border-box; width: 100%; }
#oghmaStockDialog input::placeholder { color: #a6ae9a; }

.oghma-stock-rows { list-style: none; padding: 0; margin: 0; }
.oghma-stock-rows li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid #394435;
  overflow-wrap: anywhere;
}
.oghma-stock-rows strong { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.oghma-stock-rows .oghma-stock-negative { color: #efad9a; }
