:root{
  --accent:#00d9ff;
  --text:#666666;
  --text-dark:#444444;
  --gray:#808080;
  --line:#d9d9d9;
  --bg:#ffffff;
  --panel:#ffffff;
  --soft:#f4f8fa;
}

*{
  box-sizing:border-box;
}

html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}

button,input,textarea{
  font-family:inherit;
}

button{
  cursor:pointer;
}

.app{
  max-width:980px;
  min-height:100vh;
  margin:0 auto;
  padding:24px 22px 92px;
}

.topbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  padding:0;
  border-bottom:none;
}

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

.logo{
  width:260px;
  height:260px;
  object-fit:contain;
}

.brand-name{
  color:var(--text-dark);
  font-size:30px;
  font-weight:700;
  letter-spacing:4px;
  line-height:1;
}

.brand-subtitle{
  margin-top:8px;
  color:var(--gray);
  font-size:15px;
}

.login-btn{
  border:1px solid var(--line);
  background:#fff;
  color:var(--text-dark);
  border-radius:999px;
  padding:11px 22px;
  font-size:15px;
}

.hero{
  padding:0 0 22px;
  margin-top:-55px;
}

.hero-label{
  color:var(--accent);
  font-size:14px;
  font-weight:800;
  letter-spacing:3px;
  margin-bottom:18px;
}

.hero h1{
  margin:0;
  color:var(--text-dark);
  font-size:48px;
  line-height:1.08;
  font-weight:650;
  letter-spacing:-1.2px;
}

.hero p{
  max-width:620px;
  margin:18px 0 0;
  color:var(--text);
  font-size:20px;
  line-height:1.5;
}

.modules{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin:10px 0 22px;
}

.module-card{
  min-height:132px;
  text-align:left;
  border:1px solid var(--line);
  background:#fff;
  border-radius:22px;
  padding:18px;
  transition:.15s ease;
}

.module-card:hover{
  transform:translateY(-2px);
  border-color:var(--accent);
}

.module-card.active{
  border-color:var(--accent);
  box-shadow:0 14px 34px rgba(0,217,255,.12);
}

.module-card span{
  display:block;
  color:var(--accent);
  font-size:13px;
  font-weight:800;
  margin-bottom:16px;
}

.module-card strong{
  display:block;
  color:var(--text-dark);
  font-size:18px;
  margin-bottom:8px;
}

.module-card em{
  display:block;
  color:var(--gray);
  font-style:normal;
  font-size:14px;
  line-height:1.35;
}

.chat-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:28px;
  padding:24px;
  box-shadow:0 18px 50px rgba(0,0,0,.05);
}

.chat-header{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
  margin-bottom:18px;
}

.chat-header h2{
  margin:0;
  color:var(--text-dark);
  font-size:26px;
  font-weight:650;
}

.chat-header p{
  margin:7px 0 0;
  color:var(--gray);
  font-size:15px;
}

.status{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--gray);
  font-size:13px;
  white-space:nowrap;
}

.status span{
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--accent);
}

.answer{
  min-height:260px;
  max-height:520px;
  overflow:auto;
  background:var(--soft);
  border:1px solid var(--line);
  border-radius:22px;
  padding:20px;
  color:var(--text-dark);
  font-size:15px;
  line-height:1.55;
  white-space:pre-wrap;
}

.placeholder{
  color:var(--gray);
}

.chat-form{
  display:grid;
  grid-template-columns:130px 1fr;
  gap:12px;
  margin-top:14px;
}

.chat-form input,
.chat-form textarea{
  width:100%;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text-dark);
  border-radius:16px;
  padding:14px;
  font-size:15px;
  outline:none;
}

.chat-form input:focus,
.chat-form textarea:focus{
  border-color:var(--accent);
}

.chat-form textarea{
  min-height:52px;
  resize:vertical;
}

.chat-form button{
  grid-column:1 / -1;
  border:none;
  border-radius:18px;
  background:var(--accent);
  color:#00313a;
  padding:16px;
  font-size:16px;
  font-weight:800;
}

.bottom-nav{
  position:fixed;
  z-index:10;
  left:50%;
  bottom:14px;
  transform:translateX(-50%);
  width:min(980px, calc(100% - 24px));
  display:grid;
  grid-template-columns:repeat(5,1fr);
  background:#fff;
  border:1px solid var(--line);
  border-radius:26px;
  box-shadow:0 16px 44px rgba(0,0,0,.10);
  overflow:hidden;
}

.bottom-nav button{
  border:none;
  background:#fff;
  color:var(--gray);
  padding:15px 4px;
  font-size:13px;
}

.bottom-nav .active{
  color:#00313a;
  font-weight:800;
  background:rgba(0,217,255,.18);
}

@media(max-width:760px){
  .app{
    padding:16px 14px 88px;
  }

  .topbar{
    align-items:flex-start;
  }

  .logo{
    width:210px;
    height:210px;
  }

  .brand{
    gap:12px;
  }

  .brand-name{
    font-size:22px;
    letter-spacing:3px;
  }

  .brand-subtitle{
    font-size:13px;
  }

  .hero{
    padding:30px 0 22px;
  }

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

  .hero p{
    font-size:17px;
  }

  .modules{
    grid-template-columns:1fr 1fr;
  }

  .module-card{
    min-height:118px;
    padding:16px;
  }

  .chat-card{
    padding:18px;
    border-radius:24px;
  }

  .chat-header{
    flex-direction:column;
  }

  .chat-form{
    grid-template-columns:1fr;
  }
}

@media(max-width:420px){
  .modules{
    grid-template-columns:1fr;
  }

  .bottom-nav button{
    font-size:12px;
  }
}

.chat-shell{
  background:#fff;
  border:1px solid var(--line);
  border-radius:28px;
  padding:22px;
  box-shadow:0 18px 50px rgba(0,0,0,.05);
}

.chat-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  padding-bottom:16px;
  border-bottom:1px solid var(--line);
}

.chat-top h2{
  margin:0;
  color:var(--text-dark);
  font-size:26px;
  font-weight:650;
}

.chat-top p{
  margin:7px 0 0;
  color:var(--gray);
  font-size:15px;
  line-height:1.4;
}

.messages{
  height:420px;
  overflow:auto;
  padding:20px 0;
  display:flex;
  flex-direction:column;
  gap:16px;
}

.message{
  display:flex;
  flex-direction:column;
  max-width:88%;
}

.message.user{
  align-self:flex-end;
  align-items:flex-end;
}

.message.assistant{
  align-self:flex-start;
}

.message-label{
  color:var(--gray);
  font-size:12px;
  margin-bottom:6px;
}

.message-bubble{
  white-space:pre-wrap;
  line-height:1.55;
  font-size:15px;
  border-radius:20px;
  padding:14px 16px;
}

.message.assistant .message-bubble{
  background:var(--soft);
  color:var(--text-dark);
  border:1px solid var(--line);
}

.message.user .message-bubble{
  background:var(--accent);
  color:#00313a;
  font-weight:600;
}

.composer{
  display:flex;
  gap:10px;
  align-items:flex-end;
  border-top:1px solid var(--line);
  padding-top:14px;
}

.composer textarea{
  flex:1;
  min-height:52px;
  max-height:140px;
  resize:vertical;
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px 16px;
  font-size:16px;
  outline:none;
  color:var(--text-dark);
}

.composer textarea:focus{
  border-color:var(--accent);
}

.composer button{
  width:54px;
  height:54px;
  border:none;
  border-radius:18px;
  background:var(--accent);
  color:#00313a;
  font-size:24px;
  font-weight:800;
}

@media(max-width:760px){
  .chat-shell{
    padding:16px;
    border-radius:24px;
  }

  .messages{
    height:430px;
  }

  .message{
    max-width:94%;
  }

  .chat-top{
    flex-direction:column;
  }
}

.chat-action-btn{
  margin-top:10px;
  align-self:flex-start;
  border:none;
  border-radius:16px;
  padding:12px 16px;
  background:#00c8e8;
  color:#00313a;
  font-weight:700;
  font-size:14px;
  cursor:pointer;
}

.chat-action-btn:disabled{
  opacity:.65;
  cursor:default;
}

.bond-form-vertical{
  display:flex;
  flex-direction:column;
  gap:14px;
  max-width:620px;
}

.bond-form-vertical label{
  display:flex;
  flex-direction:column;
  gap:7px;
  color:var(--gray);
  font-size:14px;
}

.bond-form-vertical input{
  width:100%;
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px 16px;
  color:var(--text-dark);
  font-size:16px;
  outline:none;
}

.bond-form-vertical input:focus{
  border-color:var(--accent);
}

.bond-calc-back{
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:var(--text-dark);
  padding:10px 16px;
  font-size:14px;
  font-weight:700;
}

.selected-bond-title{
  color:var(--text-dark);
  font-size:17px;
  font-weight:800;
  margin-bottom:4px;
}

.selected-bond-meta{
  color:var(--gray);
  font-size:14px;
  line-height:1.5;
}

.bond-result-grid{
  margin-top:12px;
}

.bond-result-card strong.small{
  font-size:18px;
}

.bond-result-note{
  margin-top:12px;
  color:var(--gray);
  font-size:13px;
  line-height:1.45;
}

.bond-form-vertical select{
  width:100%;
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px 16px;
  color:var(--text-dark);
  background:#fff;
  font-size:16px;
  outline:none;
}

.bond-form-vertical select:focus{
  border-color:var(--accent);
}

.bond-calc-result{
  margin-top:20px;
  padding:18px;
  border:1px solid rgba(0,217,255,.45);
  border-radius:24px;
  background:linear-gradient(180deg, rgba(0,217,255,.10), rgba(244,248,250,.90));
  box-shadow:0 16px 38px rgba(0,217,255,.10);
}

.bond-result-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}

.bond-result-card{
  min-height:92px;
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px;
  background:#fff;
}

.bond-result-card span{
  display:block;
  min-height:34px;
  color:var(--gray);
  font-size:13px;
  line-height:1.3;
  margin-bottom:8px;
}

.bond-result-card strong{
  display:block;
  color:var(--text-dark);
  font-size:22px;
  line-height:1.2;
  font-weight:800;
}

.bond-risk{
  margin-top:14px;
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  background:#fff;
  color:var(--text-dark);
  font-size:15px;
  line-height:1.65;
}

.bond-risk-title{
  display:block;
  color:var(--text-dark);
  font-size:18px;
  font-weight:800;
  margin-bottom:8px;
}

.bond-risk-row{
  display:grid;
  grid-template-columns:150px 1fr;
  gap:10px;
  border-top:1px solid #eef2f3;
  padding:7px 0;
}

.bond-risk-row:first-of-type{
  border-top:none;
}

.bond-risk-label{
  color:var(--gray);
}

.bond-risk-value{
  color:var(--text-dark);
  font-weight:650;
}

@media(max-width:760px){
  .bond-result-grid{
    grid-template-columns:1fr 1fr;
  }

  .bond-risk-row{
    grid-template-columns:1fr;
    gap:2px;
  }
}

@media(max-width:420px){
  .bond-result-grid{
    grid-template-columns:1fr;
  }
}

.hidden{
  display:none !important;
}

.bond-tabs{
  display:flex;
  gap:8px;
  margin:16px 0 18px;
  overflow:auto;
}

.bond-tab{
  border:1px solid var(--line);
  background:#fff;
  color:var(--gray);
  border-radius:999px;
  padding:10px 14px;
  font-size:14px;
  white-space:nowrap;
}

.bond-tab.active{
  border-color:var(--accent);
  background:rgba(0,217,255,.16);
  color:#00313a;
  font-weight:800;
}

.bond-tab-panel{
  animation:fadeIn .12s ease;
}

@keyframes fadeIn{
  from{opacity:.5; transform:translateY(3px);}
  to{opacity:1; transform:none;}
}

.showcase-filters{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:22px;
  background:var(--soft);
}

.showcase-filters label{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.showcase-filters label.wide{
  grid-column:1 / -1;
}

.showcase-filters span{
  color:var(--gray);
  font-size:13px;
}

.showcase-filters input,
.showcase-filters select{
  width:100%;
  border:1px solid var(--line);
  border-radius:14px;
  padding:11px 12px;
  color:var(--text-dark);
  background:#fff;
  font-size:14px;
}

.showcase-actions{
  grid-column:1 / -1;
  display:flex;
  gap:10px;
}

.showcase-actions button{
  border:none;
  border-radius:16px;
  padding:12px 16px;
  background:var(--accent);
  color:#00313a;
  font-weight:800;
}

.showcase-actions .secondary{
  background:#fff;
  border:1px solid var(--line);
  color:var(--text-dark);
}

.showcase-count{
  margin:16px 0 10px;
  color:var(--gray);
  font-size:14px;
}

.showcase-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.showcase-row{
  width:100%;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text-dark);
  border-radius:18px;
  padding:13px 14px;
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  text-align:left;
  font-size:15px;
  line-height:1.35;
}

.showcase-row:hover{
  border-color:var(--accent);
  box-shadow:0 10px 24px rgba(0,217,255,.10);
}

.showcase-name{
  font-weight:800;
  color:var(--text-dark);
}

.rating-badge{
  border-radius:999px;
  padding:4px 8px;
  font-size:12px;
  font-weight:900;
  background:#eef2f3;
  color:var(--text-dark);
}

.rating-AAA,
.rating-AA{
  background:#e4f8ec;
  color:#126b32;
}

.rating-A{
  background:#ecf9df;
  color:#4f7d00;
}

.rating-BBB{
  background:#e1f7ff;
  color:#006a7f;
}

.rating-BB{
  background:#fff4c7;
  color:#8a6500;
}

.rating-B{
  background:#ffe2c4;
  color:#9a4b00;
}

.rating-CCC,
.rating-CC,
.rating-C,
.rating-D{
  background:#ffe0e0;
  color:#9d1111;
}

.bond-empty-panel{
  border:1px dashed var(--line);
  border-radius:20px;
  padding:22px;
  color:var(--gray);
  background:var(--soft);
  line-height:1.5;
}

@media(max-width:760px){
  .showcase-filters{
    grid-template-columns:1fr 1fr;
  }

  .showcase-row{
    font-size:14px;
  }
}

@media(max-width:420px){
  .showcase-filters{
    grid-template-columns:1fr;
  }
}

.home-screen {
  margin-top: 16px;
}

.home-card {
  background: rgba(255,255,255,0.94);
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 12px 35px rgba(20, 40, 80, 0.08);
}

.home-card h2,
.home-card h3 {
  margin: 0 0 10px;
}

.home-card p {
  margin: 0 0 10px;
  line-height: 1.45;
  color: #334155;
}

.home-slogan {
  font-weight: 700;
  color: #17365D !important;
}

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

.indicator-card {
  border-radius: 16px;
  background: #f8fafc;
  padding: 12px;
  border: 1px solid #e2e8f0;
}

.indicator-card span {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 5px;
}

.indicator-card strong {
  display: block;
  font-size: 17px;
  color: #0f172a;
}

.home-status-list {
  margin: 0;
  padding-left: 18px;
  color: #334155;
  line-height: 1.55;
}

@media (max-width: 520px) {
  .indicator-grid {
    grid-template-columns: 1fr;
  }
}

.showcase-row.selected {
  outline: 2px solid rgba(37, 99, 235, 0.55);
  background: rgba(37, 99, 235, 0.08);
}


/* =========================
   BOND MARKET VIEW
========================= */

.market-view-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.market-view-head h3 {
  margin: 0 0 4px;
}

.market-view-head p {
  margin: 0;
  opacity: .72;
}

.market-view-filters .checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
}

.market-view-filters .checkbox-label input {
  width: auto;
}

.market-view-stats {
  margin: 12px 0;
  font-size: 14px;
  opacity: .86;
}

.market-view-chart-wrap {
  width: 100%;
  min-height: 460px;
  border: 1px solid rgba(120, 120, 120, .22);
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
  overflow: hidden;
}

.market-view-chart {
  width: 100%;
  min-height: 460px;
}

.market-svg {
  width: 100%;
  height: auto;
  display: block;
  touch-action: none;
  user-select: none;
}

.market-axis path,
.market-axis line {
  stroke: rgba(140, 140, 140, .42);
}

.market-axis text {
  fill: currentColor;
  opacity: .72;
  font-size: 12px;
}

.market-axis-title {
  fill: currentColor;
  opacity: .85;
  font-size: 13px;
  font-weight: 600;
}

.market-grid-line line {
  stroke: rgba(150, 150, 150, .15);
}

.market-grid-line path {
  display: none;
}

.duration-zone {
  stroke: rgba(120, 120, 120, .38);
  stroke-dasharray: 4 5;
}

.duration-label {
  fill: currentColor;
  opacity: .6;
  font-size: 11px;
}

.yield-line {
  stroke-width: 1.8;
}

.avg-line {
  stroke: rgba(47, 128, 237, .85);
}

.threshold-line {
  stroke: rgba(235, 87, 87, .8);
  stroke-dasharray: 7 5;
}

.yield-line-label {
  fill: currentColor;
  opacity: .72;
  font-size: 12px;
  font-weight: 600;
}

.market-point {
  stroke: rgba(255, 255, 255, .75);
  stroke-width: 1.2;
  opacity: .86;
  cursor: pointer;
  transition: opacity .15s ease, stroke-width .15s ease;
}

.market-point.hovered {
  opacity: 1;
  stroke-width: 2.8;
}

.market-point.is-anomaly {
  stroke: #eb5757;
  stroke-width: 2.2;
}

.market-tooltip {
  position: absolute;
  z-index: 9999;
  max-width: 260px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(20, 20, 24, .95);
  color: white;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  font-size: 12px;
  line-height: 1.45;
  pointer-events: none;
}

.market-view-legend {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
  font-size: 13px;
  opacity: .9;
}

.market-legend-block {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.market-rating-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.market-rating-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.market-rating-item i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.market-view-table {
  overflow-x: auto;
}

.market-view-table table tbody tr {
  cursor: pointer;
}

@media (max-width: 640px) {
  .market-view-chart-wrap,
  .market-view-chart {
    min-height: 420px;
  }

  .market-view-stats {
    font-size: 12px;
  }

  .market-view-legend {
    font-size: 12px;
  }
}

.market-methodology{
  margin:16px 0;
  border:1px solid rgba(120,120,120,.22);
  border-radius:12px;
  padding:12px 14px;
  background:rgba(255,255,255,.03);
}

.market-methodology summary{
  cursor:pointer;
  font-weight:600;
}

.market-methodology-body{
  margin-top:12px;
  line-height:1.6;
}

.market-methodology-body ul{
  margin:8px 0 8px 20px;
}

.market-methodology p{
  margin:8px 0;
}

.market-table-details{
  margin:16px 0;
  border:1px solid rgba(120,120,120,.22);
  border-radius:12px;
  padding:12px 14px;
  background:rgba(255,255,255,.03);
}

.market-table-details summary{
  cursor:pointer;
  font-weight:600;
}

.market-table-details .market-view-table{
  margin-top:12px;
}

.ofz-curve-line{
  fill:none;
  stroke:#2f80ed;
  stroke-width:2.4;
  opacity:.9;
}

.ofz-curve-point{
  fill:#2f80ed;
  stroke:rgba(255,255,255,.85);
  stroke-width:1;
  opacity:.95;
}

.ofz-curve-label{
  fill:#2f80ed;
  font-size:12px;
  font-weight:700;
}

.ofz-curve-smooth{
  stroke:#2f80ed;
  stroke-width:2.4;
  opacity:.95;
}

.ofz-curve-tail{
  stroke:#2f80ed;
  stroke-width:2.2;
  stroke-dasharray:7 5;
  opacity:.75;
}

.ofz-curve-point{
  fill:#2f80ed;
  stroke:rgba(255,255,255,.9);
  stroke-width:1.1;
  opacity:.85;
}

/* =========================
   EQUITIES MODULE
========================= */

.equity-layout{
  display:grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap:16px;
  align-items:start;
}

.equity-list-panel,
.equity-card-panel{
  min-width:0;
}

.equity-row.selected{
  outline:2px solid rgba(47,128,237,.65);
}

.equity-card{
  border:1px solid rgba(120,120,120,.22);
  border-radius:18px;
  padding:16px;
  background:rgba(255,255,255,.035);
}

.equity-card-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  margin-bottom:16px;
}

.equity-symbol{
  display:inline-flex;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(47,128,237,.16);
  color:#2f80ed;
  font-weight:700;
  margin-bottom:8px;
}

.equity-card h3{
  margin:0 0 4px;
}

.equity-card p{
  margin:0;
  opacity:.72;
}

.equity-price{
  text-align:right;
  min-width:130px;
}

.equity-price span{
  display:block;
  opacity:.65;
  font-size:12px;
}

.equity-price b{
  font-size:20px;
}

.equity-section{
  margin-top:16px;
}

.equity-section h4{
  margin:0 0 10px;
}

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

.equity-metric{
  border:1px solid rgba(120,120,120,.16);
  border-radius:12px;
  padding:10px;
  background:rgba(255,255,255,.025);
}

.equity-metric span{
  display:block;
  font-size:12px;
  opacity:.68;
  margin-bottom:4px;
}

.equity-metric b{
  font-size:15px;
}

@media (max-width: 820px){
  .equity-layout{
    grid-template-columns:1fr;
  }

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

  .equity-card-head{
    flex-direction:column;
  }

  .equity-price{
    text-align:left;
  }
}

@media (max-width: 820px){
  #equitiesModule.equity-mobile-list .equity-card-panel{
    display:none;
  }

  #equitiesModule.equity-mobile-card .equity-list-panel{
    display:none;
  }

  #equitiesModule.equity-mobile-card .equity-card-panel{
    display:block;
  }

  #equitiesModule.equity-mobile-card::before{
    content:"← свайп вправо к списку";
    display:block;
    margin:0 0 10px;
    font-size:12px;
    opacity:.65;
  }

  #equitiesModule.equity-mobile-list::before{
    content:"выберите акцию или свайпните влево к карточке";
    display:block;
    margin:0 0 10px;
    font-size:12px;
    opacity:.65;
  }
}

/* =========================
   AUTH / PROFILE
========================= */

.auth-screen{
  position:fixed;
  inset:0;
  z-index:10000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:radial-gradient(circle at top, rgba(47,128,237,.25), transparent 34%),
             rgba(10,10,14,.94);
  backdrop-filter:blur(10px);
}

.auth-card{
  width:min(420px, 100%);
  border:1px solid rgba(255,255,255,.14);
  border-radius:24px;
  padding:24px;
  background:rgba(22,22,28,.94);
  color:white;
  box-shadow:0 24px 80px rgba(0,0,0,.35);
}

.auth-brand h1{
  margin:0 0 6px;
  font-size:34px;
}

.auth-brand p{
  margin:0 0 18px;
  opacity:.72;
}

.auth-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-bottom:16px;
}

.auth-tabs button{
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
  color:white;
  border-radius:12px;
  padding:10px;
}

.auth-tabs button.active{
  background:#2f80ed;
  border-color:#2f80ed;
}

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

.auth-form label span{
  display:block;
  font-size:12px;
  opacity:.72;
  margin-bottom:5px;
}

.auth-form input{
  width:100%;
  border:1px solid rgba(255,255,255,.16);
  border-radius:12px;
  padding:12px;
  background:rgba(255,255,255,.08);
  color:white;
}

.auth-form button{
  margin-top:4px;
  border:0;
  border-radius:12px;
  padding:12px;
  background:#2f80ed;
  color:white;
  font-weight:700;
}

.auth-error{
  padding:10px 12px;
  border-radius:12px;
  background:rgba(235,87,87,.15);
  color:#ffb3b3;
  font-size:13px;
}

.auth-note{
  margin-top:16px;
  font-size:12px;
  line-height:1.45;
  opacity:.68;
}

.app-locked{
  filter:blur(2px);
  pointer-events:none;
  user-select:none;
}

.profile-card{
  max-width:760px;
}

.profile-card-inner{
  border:1px solid rgba(120,120,120,.22);
  border-radius:18px;
  padding:16px;
  background:rgba(255,255,255,.035);
}

.profile-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  margin-bottom:16px;
}

.profile-head h3{
  margin:0 0 4px;
}

.profile-head p{
  margin:0;
  opacity:.72;
}

.profile-note{
  margin-top:16px;
}

@media (max-width:640px){
  .auth-card{
    padding:20px;
    border-radius:20px;
  }

  .profile-head{
    flex-direction:column;
  }
}

.showcase-sort-panel {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 12px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.12);
}

.showcase-sort-panel span {
  font-size: 13px;
  color: var(--muted);
}

.showcase-sort-panel button {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.35);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 13px;
}

.showcase-sort-panel button:hover {
  border-color: rgba(96, 165, 250, 0.75);
}

.home-macro-model {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.home-macro-model .showcase-filters {
  align-items: end;
}

.home-macro-model .macro-forecast-btn {
  width: auto;
  min-width: 190px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  border: none;
  border-radius: 18px;
  background: var(--accent);
  color: #00313a;

  padding: 13px 18px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;

  box-shadow: 0 12px 28px rgba(0, 217, 255, 0.18);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.home-macro-model .macro-forecast-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0, 217, 255, 0.24);
}

.home-macro-model .macro-forecast-btn:active {
  transform: translateY(0);
  opacity: .85;
}

.home-card .showcase-filters .macro-actions .macro-forecast-btn {
  appearance: none;
  -webkit-appearance: none;

  width: 100%;
  min-height: 44px;

  border: none !important;
  border-radius: 16px !important;

  background: var(--accent) !important;
  color: #00313a !important;

  padding: 12px 18px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 217, 255, 0.22);
}

.home-card .showcase-filters .macro-actions .macro-forecast-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 217, 255, 0.28);
}

.home-card .showcase-filters .macro-actions .macro-forecast-btn:active {
  transform: translateY(0);
  opacity: 0.85;
}

/* =========================
   MARKET MONITOR
========================= */

.home-monitor-header {
  margin: 24px 0 16px;
}

.home-monitor-header h2 {
  margin: 0 0 12px;
}

.market-switch {
  display: flex;
  width: 100%;
  padding: 4px;
  box-sizing: border-box;
  border-radius: 12px;
  background: rgba(120, 120, 128, 0.16);
}

.market-switch-btn {
  flex: 1;
  border: 0;
  border-radius: 9px;
  padding: 9px 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.market-switch-btn.active {
  background: var(--card-bg, #fff);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16);
}

.market-monitor-panel {
  width: 100%;
}

/* =========================
   US MARKET MONITOR
========================= */

.market-monitor-date {
  margin: 12px 0 18px;
  opacity: 0.75;
  font-size: 14px;
}

.market-dimension {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid rgba(120, 120, 128, 0.22);
  border-radius: 14px;
}

.market-dimension:last-child {
  margin-bottom: 0;
}

.market-dimension-header {
  margin-bottom: 10px;
}

.market-dimension-title {
  font-size: 18px;
  font-weight: 700;
}

.market-dimension-action {
  margin-top: 5px;
  font-size: 16px;
  font-weight: 700;
}

.market-dimension-summary {
  margin: 12px 0 16px;
  line-height: 1.5;
}

.market-dimension-constraints {
  margin: 12px 0 16px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(120, 120, 128, 0.10);
  line-height: 1.45;
}

.market-dimension-constraints p {
  margin: 7px 0 0;
}

.market-indicator-list {
  display: grid;
  gap: 10px;
}

.market-indicator-detail {
  padding: 13px;
  border-radius: 11px;
  background: rgba(120, 120, 128, 0.08);
}

.market-indicator-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.market-indicator-name {
  font-weight: 700;
  line-height: 1.3;
}

.market-indicator-subtitle {
  margin-top: 3px;
  font-size: 13px;
  opacity: 0.7;
  line-height: 1.35;
}

.market-indicator-value {
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.market-indicator-state {
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.4;
}

.market-indicator-text {
  margin-top: 9px;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .market-dimension {
    padding: 13px;
  }

  .market-indicator-detail-head {
    display: block;
  }

  .market-indicator-value {
    margin-top: 7px;
  }
}

/* =========================
   COLLAPSIBLE MARKET DIMENSIONS
========================= */

details.market-dimension {
  display: block;
}

.market-dimension-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
  margin: 0;
}

.market-dimension-header::-webkit-details-marker {
  display: none;
}

.market-dimension-header::marker {
  display: none;
  content: "";
}

.market-dimension-chevron {
  flex: 0 0 auto;
  font-size: 28px;
  line-height: 1;
  opacity: 0.55;
  transition: transform 0.18s ease;
}

.market-dimension[open] .market-dimension-chevron {
  transform: rotate(90deg);
}

.market-dimension-body {
  padding-top: 12px;
}

.market-dimension[open] .market-dimension-header {
  padding-bottom: 2px;
}

@media (max-width: 600px) {
  .market-dimension-title {
    font-size: 17px;
  }

  .market-dimension-action {
    font-size: 14px;
    line-height: 1.35;
  }
}

/* =========================
   HOWARD MARKS KNOWLEDGE
========================= */

.marks-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(120, 120, 128, 0.22);
}

.marks-section-title {
  font-size: 17px;
  font-weight: 700;
}

.marks-section-subtitle {
  margin: 4px 0 12px;
  font-size: 13px;
  opacity: 0.7;
}

.marks-card {
  margin-top: 9px;
  border: 1px solid rgba(120, 120, 128, 0.20);
  border-radius: 10px;
  overflow: hidden;
}

.marks-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

.marks-card-header::-webkit-details-marker {
  display: none;
}

.marks-card-header::marker {
  display: none;
  content: "";
}

.marks-card-title {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}

.marks-card-status {
  margin-top: 5px;
  font-size: 12px;
  opacity: 0.65;
}

.marks-card-chevron {
  flex: 0 0 auto;
  font-size: 23px;
  line-height: 1;
  opacity: 0.5;
  transition: transform 0.18s ease;
}

.marks-card[open] .marks-card-chevron {
  transform: rotate(90deg);
}

.marks-card-body {
  padding: 0 12px 12px;
  font-size: 13px;
  line-height: 1.5;
}

.marks-block {
  margin-top: 10px;
}

.marks-evidence {
  margin-top: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(120, 120, 128, 0.08);
}

.marks-evidence-title {
  margin-bottom: 4px;
  font-weight: 650;
}

.marks-evidence-description {
  margin-top: 4px;
  opacity: 0.78;
}

.marks-missing {
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(120, 120, 128, 0.08);
}

.marks-principles {
  margin-top: 12px;
}

.marks-principles > summary {
  cursor: pointer;
  font-weight: 650;
}

.marks-principles-list {
  margin-top: 8px;
}

.marks-principle {
  padding: 8px 0;
  border-top: 1px solid rgba(120, 120, 128, 0.15);
}

.marks-principle:first-child {
  border-top: 0;
}

@media (max-width: 600px) {
  .marks-card-title {
    font-size: 13px;
  }

  .marks-card-body {
    font-size: 13px;
  }
}
