body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  color: #1b2430;
  background:
    radial-gradient(circle at top left, rgba(255, 248, 235, 0.9), transparent 30%),
    linear-gradient(135deg, #f4efe7, #e4dbcf);
}

* {
  box-sizing: border-box;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.hero {
  padding: 32px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(186, 146, 53, 0.25), transparent 28%),
    linear-gradient(135deg, #0d6a61, #173f5a);
  box-shadow: 0 24px 80px rgba(53, 42, 29, 0.18);
}

.hero__topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.hero__logout {
  flex: 0 0 auto;
}

.hero__eyebrow,
.section-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.card h2,
.feature h3 {
  font-family: Georgia, serif;
  font-weight: 600;
}

.hero h1 {
  margin: 10px 0 12px;
  font-size: 48px;
}

.hero p {
  margin: 0;
  max-width: 740px;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.main-tabs {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.main-tabs__button {
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.main-tabs__button.is-active {
  background: #fff;
  color: #173f5a;
  border-color: transparent;
}

.layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.view {
  display: none;
}

.view.is-active {
  display: grid;
}

.card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 252, 247, 0.94);
  border: 1px solid rgba(27, 36, 48, 0.08);
  box-shadow: 0 16px 40px rgba(53, 42, 29, 0.08);
}

.card--wide {
  grid-column: span 2;
}

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

.overview-tools,
.positions-tools {
  position: relative;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.overview-tools {
  align-items: flex-start;
}

.overview-tools--overview {
  display: grid;
  grid-template-columns: max-content max-content;
  justify-content: end;
  align-items: start;
  column-gap: 10px;
  row-gap: 8px;
}

.overview-tools--overview .refresh-button {
  justify-self: end;
}

.overview-tools--overview .status {
  justify-self: end;
}

.overview-tools--overview .refresh-meta {
  grid-column: 1 / -1;
  justify-self: end;
}

.positions-tools {
  align-items: center;
}

.refresh-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.refresh-meta {
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(13, 106, 97, 0.08);
  color: #2b4a56;
  font-size: 13px;
  line-height: 1.3;
  text-align: right;
}

.table-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.refresh-button,
.columns-toggle {
  padding: 10px 14px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  border-radius: 999px;
  background: #fff;
  color: #1b2430;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(53, 42, 29, 0.06);
}

.refresh-button:hover,
.columns-toggle:hover {
  border-color: rgba(13, 106, 97, 0.25);
}

.refresh-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.columns-toggle[aria-expanded="true"] {
  border-color: rgba(13, 106, 97, 0.25);
  color: #0d6a61;
}

.columns-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 96px;
  z-index: 5;
  min-width: 220px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 252, 247, 0.98);
  border: 1px solid rgba(27, 36, 48, 0.08);
  box-shadow: 0 20px 40px rgba(53, 42, 29, 0.16);
}

.columns-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  font-size: 14px;
  cursor: pointer;
}

.columns-option input {
  accent-color: #0d6a61;
}

.columns-option--reorder {
  justify-content: space-between;
  gap: 12px;
}

.columns-option__check {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.columns-option__actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

.columns-shift {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(27, 36, 48, 0.1);
  border-radius: 10px;
  background: #fff;
  color: #1b2430;
  cursor: pointer;
}

.columns-shift:disabled {
  opacity: 0.45;
  cursor: default;
}

.screen-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.screen-badge--focus {
  background: rgba(13, 106, 97, 0.12);
  color: #0d6a61;
}

.screen-badge--watch {
  background: rgba(201, 140, 46, 0.14);
  color: #8b5c06;
}

.screen-badge--reserve {
  background: rgba(72, 94, 128, 0.12);
  color: #45546b;
}

.screen-editor {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(27, 36, 48, 0.08);
}

.screen-auto {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(27, 36, 48, 0.08);
}

.screen-editor-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.screen-auto-filter {
  min-width: 180px;
}

.screen-auto-meta {
  margin-bottom: 14px;
  color: rgba(27, 36, 48, 0.68);
  font-size: 14px;
}

.screen-auto-note {
  margin-bottom: 12px;
}

.screen-auto-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.screen-auto-tabs__button {
  padding: 10px 16px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  border-radius: 999px;
  background: #fff;
  color: #1b2430;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(53, 42, 29, 0.06);
}

.screen-auto-tabs__button.is-active {
  background: #173f5a;
  color: #fff;
  border-color: transparent;
}

.positions-table--compact th,
.positions-table--compact td {
  padding: 10px 12px;
  font-size: 14px;
}

.screen-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.bonds-filter--wide {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}

.screen-input,
.screen-textarea,
.bonds-filter select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(27, 36, 48, 0.12);
  border-radius: 14px;
  background: #fff;
  color: #1b2430;
  font: inherit;
}

.screen-row-select {
  width: 100%;
  min-width: 78px;
  padding: 8px 10px;
  border: 1px solid rgba(27, 36, 48, 0.12);
  border-radius: 12px;
  background: #fff;
  color: #1b2430;
  font: inherit;
  text-align: center;
}

.screen-textarea {
  resize: vertical;
  min-height: 88px;
}

.screen-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #0d6a61;
}

.status {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(13, 106, 97, 0.1);
  color: #0d6a61;
  font-size: 13px;
}

.card h2 {
  margin: 8px 0 16px;
  font-size: 30px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.portfolio-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.bonds-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.bonds-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(27, 36, 48, 0.08);
}

.bonds-filter span {
  font-size: 14px;
  color: #6e7782;
}

.bonds-filter select {
  border: none;
  background: transparent;
  color: #1b2430;
  font-size: 14px;
  outline: none;
}

.switcher-btn {
  padding: 12px 16px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  border-radius: 999px;
  background: #fff;
  color: #1b2430;
  font-size: 14px;
  cursor: pointer;
}

.switcher-btn.is-active {
  background: #0d6a61;
  color: #fff;
  border-color: transparent;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat-card {
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(27, 36, 48, 0.07);
  min-height: 142px;
}

.stat-label {
  font-size: 13px;
  color: #6e7782;
  margin-bottom: 10px;
}

.stat-value {
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 6px;
}

.stat-note {
  color: #0d6a61;
  font-size: 13px;
}

.split-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
}

.feature {
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(27, 36, 48, 0.07);
}

.feature--summary h3 {
  margin-bottom: 14px;
}

.feature h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.allocation-list,
.compact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.allocation-list li,
.compact-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(27, 36, 48, 0.07);
  font-size: 14px;
  line-height: 1.4;
}

.compact-list li span:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.compact-list li span:last-child {
  flex: 0 0 auto;
  text-align: right;
}

.allocation-list li:first-child,
.compact-list li:first-child {
  border-top: none;
  padding-top: 0;
}

.allocation-value {
  color: #0d6a61;
  font-weight: 600;
  font-size: 12px;
}

.note-box {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(13, 106, 97, 0.08);
  color: #23404e;
  line-height: 1.5;
  font-size: 13px;
}

.positions-empty {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(13, 106, 97, 0.08);
  color: #23404e;
}

.table-wrap {
  overflow-x: auto;
}

.positions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: auto;
  min-width: 0;
  max-width: 100%;
}

.positions-table th,
.positions-table td {
  padding: 12px 10px;
  border-top: 1px solid rgba(27, 36, 48, 0.08);
  text-align: left;
  vertical-align: top;
}

.positions-table td {
  font-weight: 600;
}

.positions-table th:nth-child(1),
.positions-table td:nth-child(1) {
  width: 23%;
  white-space: normal;
}

.positions-table th:nth-child(2),
.positions-table td:nth-child(2) {
  width: 9%;
  white-space: nowrap;
}

.positions-table th:nth-child(3),
.positions-table td:nth-child(3) {
  width: 9%;
  white-space: normal;
}

.positions-table th:nth-child(4),
.positions-table td:nth-child(4) {
  width: 8%;
  white-space: nowrap;
}

.positions-table th:nth-child(5),
.positions-table td:nth-child(5) {
  width: 13%;
  white-space: nowrap;
}

.positions-table th:nth-child(6),
.positions-table td:nth-child(6) {
  width: 11%;
  white-space: nowrap;
}

.positions-table th:nth-child(7),
.positions-table td:nth-child(7) {
  width: 11%;
  white-space: nowrap;
}

.positions-table th:nth-child(8),
.positions-table td:nth-child(8) {
  width: 16%;
  white-space: nowrap;
}

#bonds-table-wrap .positions-table th:nth-child(1),
#bonds-table-wrap .positions-table td:nth-child(1) {
  width: 16%;
}

#bonds-table-wrap .positions-table th:nth-child(2),
#bonds-table-wrap .positions-table td:nth-child(2) {
  width: 23%;
}

#bonds-table-wrap .positions-table th:nth-child(3),
#bonds-table-wrap .positions-table td:nth-child(3) {
  width: 9%;
}

#bonds-table-wrap .positions-table th:nth-child(4),
#bonds-table-wrap .positions-table td:nth-child(4) {
  width: 8%;
}

#bonds-table-wrap .positions-table th:nth-child(5),
#bonds-table-wrap .positions-table td:nth-child(5) {
  width: 13%;
}

#bonds-table-wrap .positions-table th:nth-child(6),
#bonds-table-wrap .positions-table td:nth-child(6) {
  width: 11%;
}

#bonds-table-wrap .positions-table th:nth-child(7),
#bonds-table-wrap .positions-table td:nth-child(7) {
  width: 10%;
}

#bonds-table-wrap .positions-table th:nth-child(8),
#bonds-table-wrap .positions-table td:nth-child(8) {
  width: 10%;
}

#coupons-table-wrap .positions-table th:nth-child(1),
#coupons-table-wrap .positions-table td:nth-child(1) {
  width: 11%;
}

#coupons-table-wrap .positions-table th:nth-child(2),
#coupons-table-wrap .positions-table td:nth-child(2) {
  width: 23%;
}

#coupons-table-wrap .positions-table th:nth-child(3),
#coupons-table-wrap .positions-table td:nth-child(3) {
  width: 10%;
}

#coupons-table-wrap .positions-table th:nth-child(4),
#coupons-table-wrap .positions-table td:nth-child(4) {
  width: 15%;
}

#coupons-table-wrap .positions-table th:nth-child(5),
#coupons-table-wrap .positions-table td:nth-child(5) {
  width: 9%;
}

#coupons-table-wrap .positions-table th:nth-child(6),
#coupons-table-wrap .positions-table td:nth-child(6) {
  width: 11%;
}

#coupons-table-wrap .positions-table th:nth-child(7),
#coupons-table-wrap .positions-table td:nth-child(7) {
  width: 11%;
}

#coupons-table-wrap .positions-table th:nth-child(8),
#coupons-table-wrap .positions-table td:nth-child(8) {
  width: 10%;
}

#screen-table-wrap .positions-table {
  table-layout: fixed;
  width: 100%;
}

#screen-table-wrap .positions-table th,
#screen-table-wrap .positions-table td {
  width: auto;
  white-space: normal;
  word-break: break-word;
}

#screen-table-wrap .positions-table td:first-child,
#screen-table-wrap .positions-table th:first-child {
  width: 44px;
}

#screen-table-wrap .positions-table [data-column-id="status"] {
  width: 7%;
}

#screen-table-wrap .positions-table [data-column-id="name"] {
  width: 24%;
  min-width: 0;
}

#screen-table-wrap .positions-table [data-column-id="ticker"] {
  width: 7%;
}

#screen-table-wrap .positions-table [data-column-id="rating"] {
  width: 7%;
}

#screen-table-wrap .positions-table [data-column-id="coupon_type"] {
  width: 5%;
}

#screen-table-wrap .positions-table [data-column-id="months_to_maturity"] {
  width: 6%;
}

#screen-table-wrap .positions-table [data-column-id="coupon_payments_count"] {
  width: 5%;
}

#screen-table-wrap .positions-table [data-column-id="coupon_size"] {
  width: 6%;
}

#screen-table-wrap .positions-table [data-column-id="coupon_monthly"] {
  width: 6%;
}

#screen-table-wrap .positions-table [data-column-id="current_price"] {
  width: 6%;
}

#screen-table-wrap .positions-table [data-column-id="yield_value"] {
  width: 7%;
}

#screen-table-wrap .positions-table [data-column-id="maturity_date"] {
  width: 9%;
}

#screen-table-wrap .positions-table [data-column-id="comment"] {
  width: 10%;
  min-width: 0;
  white-space: normal;
}

#screen-table-wrap .positions-table th[data-column-id="status"] span,
#screen-table-wrap .positions-table th[data-column-id="ticker"] span,
#screen-table-wrap .positions-table th[data-column-id="rating"] span,
#screen-table-wrap .positions-table th[data-column-id="coupon_type"] span,
#screen-table-wrap .positions-table th[data-column-id="coupon_payments_count"] span,
#screen-table-wrap .positions-table th[data-column-id="current_price"] span,
#screen-table-wrap .positions-table th[data-column-id="yield_value"] span,
#screen-table-wrap .positions-table th[data-column-id="maturity_date"] span {
  white-space: nowrap;
}

#screen-table-wrap .positions-table th[data-column-id="months_to_maturity"] span,
#screen-table-wrap .positions-table th[data-column-id="coupon_size"] span,
#screen-table-wrap .positions-table th[data-column-id="coupon_monthly"] span {
  white-space: normal;
}

#screen-table-wrap .positions-table [data-column-id="coupon_type"],
#screen-table-wrap .positions-table .screen-cell-coupon-type,
#screen-table-wrap .positions-table .screen-cell-status,
#screen-table-wrap .positions-table .screen-cell-rating {
  text-align: center;
}

#screen-table-wrap .positions-table th {
  white-space: normal !important;
}

#screen-table-wrap .positions-table th span {
  min-height: auto;
  white-space: normal;
}

#screen-auto-table-wrap .positions-table {
  table-layout: fixed;
  width: 100%;
}

#screen-auto-table-wrap .positions-table th,
#screen-auto-table-wrap .positions-table td {
  width: auto;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
  vertical-align: middle;
}

#screen-auto-table-wrap .positions-table th {
  white-space: normal !important;
}

#screen-auto-table-wrap .positions-table th span {
  min-height: 38px;
  white-space: normal;
  line-height: 1.2;
}

#screen-auto-table-wrap .positions-table th:first-child,
#screen-auto-table-wrap .positions-table td:first-child {
  width: 78px;
}

#screen-auto-table-wrap .positions-table [data-column-id="name"] {
  width: 22%;
}

#screen-auto-table-wrap .positions-table [data-column-id="ticker"] {
  width: 8%;
}

#screen-auto-table-wrap .positions-table [data-column-id="rating"] {
  width: 8%;
}

#screen-auto-table-wrap .positions-table [data-column-id="coupon_type"] {
  width: 8%;
}

#screen-auto-table-wrap .positions-table [data-column-id="months_to_maturity"] {
  width: 10%;
}

#screen-auto-table-wrap .positions-table [data-column-id="coupon_payments_count"] {
  width: 7%;
}

#screen-auto-table-wrap .positions-table [data-column-id="coupon_size"] {
  width: 8%;
}

#screen-auto-table-wrap .positions-table [data-column-id="coupon_monthly"] {
  width: 8%;
}

#screen-auto-table-wrap .positions-table [data-column-id="current_price"] {
  width: 8%;
}

#screen-auto-table-wrap .positions-table [data-column-id="yield_value"] {
  width: 8%;
}

#screen-auto-table-wrap .positions-table [data-column-id="maturity_date"] {
  width: 11%;
}

#screen-table-wrap .positions-table td[data-column-id="maturity_date"],
#screen-auto-table-wrap .positions-table td[data-column-id="maturity_date"] {
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

#screen-auto-table-wrap .positions-table .screen-auto-select-cell {
  text-align: center;
}

#screen-auto-table-wrap .positions-table .screen-auto-select-cell input {
  width: 16px;
  height: 16px;
}

#screen-auto-table-wrap .positions-table .screen-auto-row--owned td {
  background: rgba(13, 106, 97, 0.06);
}

.screen-rating-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  vertical-align: middle;
  box-shadow: inset 0 0 0 1px rgba(27, 36, 48, 0.08);
}

.screen-rating-dot--high {
  background: #1f9d67;
}

.screen-rating-dot--medium {
  background: #e0a100;
}

.screen-rating-dot--low {
  background: #d65a4a;
}

.screen-rating-dot--unknown {
  background: #c9ced6;
}

#issues-table-wrap {
  margin-top: 8px;
}

.issues-date-group {
  margin-bottom: 34px;
}

.issues-date-header {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(27, 36, 48, 0.08);
}

.issues-date-day {
  font-size: 44px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #1b2430;
}

.issues-date-month {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1b2430;
}

.issues-date-subline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.issues-date-weekday {
  font-size: 12px;
  text-transform: uppercase;
  color: #8a94a3;
}

.issues-date-relative {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0d6a61;
}

.issues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.issues-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 188px;
  padding: 18px 18px 18px 22px;
  border-radius: 18px;
  background: #f6f4ef;
  border: 1px solid rgba(27, 36, 48, 0.06);
}

.issues-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  border-radius: 18px 0 0 18px;
  background: #d1d5db;
}

.issues-card--aaa::before,
.issues-card--aa::before {
  background: #2ecf9a;
}

.issues-card--a::before {
  background: #61dcae;
}

.issues-card--bbb::before {
  background: #ff9a3d;
}

.issues-card--bb::before {
  background: #ff6e2f;
}

.issues-card--none::before {
  background: #d1d5db;
}

.issues-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.issues-card__issuer {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: #1b2430;
}

.issues-card__series {
  margin-top: 6px;
  font-size: 13px;
  color: #768192;
}

.issues-card__meta {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #8a94a3;
}

.issues-card__rating {
  flex: 0 0 auto;
  max-width: 44%;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(27, 36, 48, 0.08);
  font-size: 13px;
  font-weight: 600;
  color: #687283;
  text-align: center;
}

.issues-card__bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  margin-top: 26px;
  align-items: end;
}

.issues-card__metric--right {
  text-align: right;
}

.issues-card__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a94a3;
  margin-bottom: 6px;
}

.issues-card__value {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: #1b2430;
}

.positions-table th {
  color: #6e7782;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0.01em;
  border-top: none;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap !important;
  vertical-align: middle;
}

.positions-table th span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  text-align: center;
}

.positions-table__sort {
  cursor: pointer;
  user-select: none;
}

.positions-table__sort span::after {
  content: "";
  margin-left: 6px;
}

.positions-table__sort[data-sort-direction="asc"] span::after {
  content: "▲";
  font-size: 10px;
  color: #0d6a61;
}

.positions-table__sort[data-sort-direction="desc"] span::after {
  content: "▼";
  font-size: 10px;
  color: #0d6a61;
}

.positions-table__number {
  text-align: center !important;
}

@media (max-width: 900px) {
  .overview-tools,
  .positions-tools {
    width: 100%;
    justify-content: flex-start;
  }

  .screen-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .refresh-block {
    align-items: flex-start;
  }

  .refresh-meta {
    text-align: left;
  }

  .table-toolbar {
    justify-content: flex-start;
  }

  .columns-panel {
    right: auto;
    left: 0;
  }

  .positions-table {
    table-layout: auto;
  }

  .positions-table th,
  .positions-table td {
    white-space: nowrap;
  }

  .positions-table th:nth-child(1),
  .positions-table td:nth-child(1),
  .positions-table th:nth-child(2),
  .positions-table td:nth-child(2),
  .positions-table th:nth-child(3),
  .positions-table td:nth-child(3),
  .positions-table th:nth-child(4),
  .positions-table td:nth-child(4),
  .positions-table th:nth-child(5),
  .positions-table td:nth-child(5),
  .positions-table th:nth-child(6),
  .positions-table td:nth-child(6),
  .positions-table th:nth-child(7),
  .positions-table td:nth-child(7),
  .positions-table th:nth-child(8),
  .positions-table td:nth-child(8) {
    width: auto;
  }
}

@media (max-width: 720px) {
  .screen-form-grid {
    grid-template-columns: 1fr;
  }
}

.positions-table tbody tr:first-child td {
  border-top: 1px solid rgba(27, 36, 48, 0.08);
}

.positions-positive {
  color: #0d6a61;
  font-weight: 600;
}

.positions-negative {
  color: #b44c56;
  font-weight: 600;
}

.positions-price-lower {
  color: #0d6a61;
  font-weight: 600;
}

.positions-price-higher {
  color: #b44c56;
  font-weight: 600;
}

.feature p,
.clean-list li,
.steps li {
  line-height: 1.5;
}

.clean-list,
.steps {
  margin: 0;
  padding-left: 20px;
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(13, 106, 97, 0.08);
}

.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(13, 106, 97, 0.18), transparent 34%),
    linear-gradient(180deg, #f5efe5 0%, #f9f6f0 100%);
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.auth-card {
  width: min(100%, 460px);
  padding: 34px 30px;
  border-radius: 28px;
  background: rgba(255, 252, 247, 0.96);
  border: 1px solid rgba(27, 36, 48, 0.08);
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.16);
}

.auth-card h1 {
  margin: 10px 0 14px;
  font-size: 42px;
  line-height: 1.04;
}

.auth-card__text {
  margin: 0 0 22px;
  color: #516170;
  line-height: 1.5;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field span {
  font-size: 13px;
  color: #6e7782;
}

.auth-field input {
  width: 100%;
  padding: 13px 15px;
  border-radius: 16px;
  border: 1px solid rgba(27, 36, 48, 0.12);
  background: #fff;
  font: inherit;
}

.auth-field input:focus {
  outline: none;
  border-color: rgba(13, 106, 97, 0.45);
  box-shadow: 0 0 0 4px rgba(13, 106, 97, 0.08);
}

.auth-submit {
  margin-top: 6px;
}

.auth-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(13, 106, 97, 0.08);
  color: #23404e;
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .layout,
  .feature-grid,
  .stats-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .card--wide {
    grid-column: span 1;
  }

  .hero h1 {
    font-size: 38px;
  }
}
