/* MAGIC STOCK design collection. Obsidian is preserved in luxury.css. */
html[data-theme="ivory"]{
  color-scheme:light;
  --ink:#25343b;--surface:#fffefb;--surface-2:#f7f0e6;
  --hairline:rgba(123,95,57,.18);--champagne:#8b673c;--champagne-deep:#87643b;
  --muted-luxe:#637079;--light-luxe:#27333b;
  background:#f1ede5;
}
html[data-theme="ivory"] body{
  color:#27333b;
  background:radial-gradient(ellipse at 50% -5%,#fdfaf4,#e9e2d7 67%,#e4dbcf);
}
html[data-theme="ivory"] .app{
  background:radial-gradient(ellipse 110% 35% at 55% 0%,#fffefd 0%,transparent 75%),
    linear-gradient(155deg,#fdfaf5 0%,#f4f0e9 80%,#f9f6f0);
  box-shadow:0 20px 90px #584a3920,0 0 0 1px #a78b652e;
  border-color:#bda6854a;
}
html[data-theme="ivory"] .app:before{
  background:linear-gradient(90deg,transparent,#bba57c 20%,#dcb879 50%,#bba57c 80%,transparent);
  box-shadow:0 1px 12px #9b79474d;
}
html[data-theme="ivory"] .brand .magic{color:#22323b}
html[data-theme="ivory"] .brand .stock{color:#987345}
html[data-theme="ivory"] .eyebrow{color:#856e51}
html[data-theme="ivory"] .mode{color:#245b45;background:#e8f2e8;border-color:#7ea88f60}
html[data-theme="ivory"] .hero-panel{
  background:radial-gradient(circle at 92% 30%,#dfcaa36b,transparent 50%),
    linear-gradient(123deg,#fffdf7 0%,#f5eadd 55%,#e9dcca 100%);
  border-color:#ad8d5f69;
  box-shadow:0 18px 40px #8f73502b,inset 0 1px 0 #fff;
}
html[data-theme="ivory"] .hero-panel:after{background:linear-gradient(110deg,transparent 25%,#ffffff88 48%,transparent 69%)}
html[data-theme="ivory"] .hero-noise{
  background-image:linear-gradient(90deg,#bd9d7430 1px,transparent 1px),linear-gradient(#bd9d7430 1px,transparent 1px);
}
html[data-theme="ivory"] .hero-kicker{color:#84653e}
html[data-theme="ivory"] .hero-kicker-line{background:#96764c}
html[data-theme="ivory"] .hero-copy h1{color:#263138;text-shadow:0 1px #fff9}
html[data-theme="ivory"] .hero-copy h1 em{color:#976838}
html[data-theme="ivory"] .hero-copy p{color:#54606a}
html[data-theme="ivory"] .radar-art{border-color:#9b774b4d;background:radial-gradient(circle,#98714413 0 2%,transparent 3%)}
html[data-theme="ivory"] .radar-circle{border-color:#af8a586b}
html[data-theme="ivory"] .radar-art:before,html[data-theme="ivory"] .radar-art:after{background:#a17c504a}
html[data-theme="ivory"] .radar-ray{background:conic-gradient(from 0deg,transparent 0deg,transparent 295deg,#be9d6a18 335deg,#ae854aa3 359deg,transparent 360deg)}
html[data-theme="ivory"] .radar-center{background:#997349;box-shadow:0 0 15px #ac865e}
html[data-theme="ivory"] .hero-foot{border-top-color:#987a5360;color:#806242}
html[data-theme="ivory"] .hero-foot b{color:#8b6235}
html[data-theme="ivory"] .gold-dot{background:#a77e49;box-shadow:0 0 7px #a77e4980}
html[data-theme="ivory"] .time-row{border-bottom-color:#9e876131}
html[data-theme="ivory"] .date{color:#64717a}
html[data-theme="ivory"] .clock{color:#23313a}
html[data-theme="ivory"] .weather strong{color:#6d5337}
html[data-theme="ivory"] .weather span{color:#65727a}
html[data-theme="ivory"] .session-bar{
  border-color:#c3b49d78;
  background:linear-gradient(120deg,#fffdf9,#eee9df);
  box-shadow:0 4px 18px #7f6d5420;
}
html[data-theme="ivory"] .market-symbol{color:#6f532f;border-color:#b79b74a3;background:linear-gradient(135deg,#f2e4cc,#fff9ef)}
html[data-theme="ivory"] .session-market strong{color:#2b343b}
html[data-theme="ivory"] .session-market small,html[data-theme="ivory"] .session-caption{color:#68727a}
html[data-theme="ivory"] .session-name{color:#695239}
html[data-theme="ivory"] .session-open .session-name{color:#216647}
html[data-theme="ivory"] .section-overline{color:#8f6c3d}
html[data-theme="ivory"] .section-title{color:#26333a}
html[data-theme="ivory"] .section-title span{color:#9a7042}
html[data-theme="ivory"] .counter,html[data-theme="ivory"] .counter>span,html[data-theme="ivory"] .counter small{color:#66757e}
html[data-theme="ivory"] .counter b{color:#89653a}
html[data-theme="ivory"] .radar-sub{color:#566770}
html[data-theme="ivory"] .radar-sub .connection{color:#27654f}
html[data-theme="ivory"] .stock-card{
  background:linear-gradient(145deg,#fffefa,#fcf9f3);
  border-color:#c3b29a78;
  box-shadow:0 7px 21px #8e795a20,inset 0 1px #fff;
}
html[data-theme="ivory"] .stock-card:before{background:linear-gradient(90deg,transparent,#ad885366,transparent)}
html[data-theme="ivory"] .stock-card:hover{border-color:#9b794d;box-shadow:0 12px 28px #8e795a36}
html[data-theme="ivory"] .market.kospi{color:#244d76;background:#e8f2ff;border-color:#7596b44d}
html[data-theme="ivory"] .market.kosdaq{color:#6c448e;background:#f6ebff;border-color:#a589c259}
html[data-theme="ivory"] .ticker{color:#293840}
html[data-theme="ivory"] .card-index{color:#a38f7945}
html[data-theme="ivory"] .price{color:#182b35}
html[data-theme="ivory"] .won,html[data-theme="ivory"] .capture{color:#64727c}
html[data-theme="ivory"] .rise{color:#b83143}
html[data-theme="ivory"] .rise.down{color:#2a5aab}
html[data-theme="ivory"] .stock-card.waiting{background:linear-gradient(150deg,#fbf8f1,#f4efe6);border-color:#ac95706e}
html[data-theme="ivory"] .slot-no{color:#7e633e;border-color:#bca17d6e;background:#ecddc54d}
html[data-theme="ivory"] .waiting .ticker,html[data-theme="ivory"] .waiting-caption{color:#65717a}
html[data-theme="ivory"] .waiting-signal span{background:linear-gradient(90deg,#d9c9b566,#e9ddccaa,#d9c9b566)}
html[data-theme="ivory"] .waiting-star{color:#9b7b4f}
html[data-theme="ivory"] .bottom{color:#65717a;border-top-color:#b8a7894d}
html[data-theme="ivory"] .bottom .preview-action{color:#80603c!important}
html[data-theme="ivory"] .demo{color:#79592f;background:#f9ebd5;border-color:#bda47e75}
html[data-theme="ivory"] .foot-disclaimer{color:#6a757d}
html[data-theme="ivory"] .detail{background:#f8f5ef}
html[data-theme="ivory"] .detail-head{border-bottom-color:#a8937459}
html[data-theme="ivory"] .back{background:#ece3d4;color:#543e29;border-color:#b99f7866}
html[data-theme="ivory"] .detail-brand{color:#916b3e}
html[data-theme="ivory"] .detail-title h1{color:#202e36}
html[data-theme="ivory"] .company{color:#63717a}
html[data-theme="ivory"] .detail-price{color:#192c38}
html[data-theme="ivory"] .detail-price small{color:#586771}
html[data-theme="ivory"] .block{background:linear-gradient(145deg,#fffefa,#f9f6ef);border-color:#c5b39986;box-shadow:0 8px 20px #6f5b4119}
html[data-theme="ivory"] .block h2{color:#293640}
html[data-theme="ivory"] .block h2 small{color:#66747c}
html[data-theme="ivory"] .facts .fact{background:#f1e9df}
html[data-theme="ivory"] .fact span{color:#66727a}
html[data-theme="ivory"] .fact b{color:#2c3c45}
html[data-theme="ivory"] .disclosure{background:#f4eee6;color:#51616d}
html[data-theme="ivory"] .detail .disclosure a{color:#7e4c20!important}
html[data-theme="ivory"] .chart-modal{background:#fbf8f1}
html[data-theme="ivory"] .chart-modal h2{color:#24343e}
html[data-theme="ivory"] .chart-modal button{color:#fff;background:#785e3b}

/* Royal Pink: a deep wine foundation keeps white/pink text legible. */
html[data-theme="rose"]{
  color-scheme:dark;
  --ink:#160c1b;--surface:#261328;--surface-2:#3b1b3c;
  --hairline:rgba(255,161,210,.25);--champagne:#ffb8db;--champagne-deep:#f45cae;
  --muted-luxe:#dbb0ca;--light-luxe:#fff3fb;
  background:#160718;
}
html[data-theme="rose"] body{
  color:#fff0f8;
  background:radial-gradient(ellipse at 50% -8%,#693052,#200b21 62%,#130816);
}
html[data-theme="rose"] .app{
  background:radial-gradient(ellipse 105% 37% at 60% -8%,#572548 0%,transparent 76%),
    linear-gradient(155deg,#251126 0%,#160d1e 70%,#231028 100%);
  box-shadow:0 20px 95px #000b,0 0 0 1px #ff85ba33;
  border-color:#e65c9d4d;
}
html[data-theme="rose"] .app:before{background:linear-gradient(90deg,transparent,#f54aa1 25%,#ffc1e3 50%,#f54aa1 75%,transparent);box-shadow:0 0 23px #eb369a8b}
html[data-theme="rose"] .brand .magic{color:#fff6fc}
html[data-theme="rose"] .brand .stock{color:#ff96c7}
html[data-theme="rose"] .eyebrow{color:#ec9fc9}
html[data-theme="rose"] .mode{color:#d7ffe9;background:#23534d57;border-color:#83d6a86b}
html[data-theme="rose"] .hero-panel{
  background:radial-gradient(circle at 90% 30%,#ee2c9970,transparent 54%),
    linear-gradient(120deg,#4b1d41,#2d1538 64%,#190e26);
  border-color:#fb81c080;box-shadow:0 18px 46px #dc379d35,inset 0 1px #ffc9e852;
}
html[data-theme="rose"] .hero-panel:after{background:linear-gradient(110deg,transparent 20%,#ffb4de20 45%,transparent 67%)}
html[data-theme="rose"] .hero-kicker{color:#ffc3df}
html[data-theme="rose"] .hero-kicker-line{background:#ff9dcf}
html[data-theme="rose"] .hero-copy h1{color:#fff9fc;text-shadow:0 2px 12px #0005}
html[data-theme="rose"] .hero-copy h1 em{color:#ff9bca}
html[data-theme="rose"] .hero-copy p{color:#efd2e4}
html[data-theme="rose"] .radar-art{border-color:#ff9fd058;background:radial-gradient(circle,#ffb0d32b 0 2%,transparent 3%)}
html[data-theme="rose"] .radar-circle{border-color:#ffc2e26b}
html[data-theme="rose"] .radar-art:before,html[data-theme="rose"] .radar-art:after{background:#ffd0e75b}
html[data-theme="rose"] .radar-ray{background:conic-gradient(from 0deg,transparent 0deg,transparent 295deg,#ff89c233 338deg,#ff9ad6e6 359deg,transparent 360deg)}
html[data-theme="rose"] .radar-center{background:#ffc9e2;box-shadow:0 0 17px #ff4ca9}
html[data-theme="rose"] .hero-foot{border-top-color:#ffc6e252;color:#ffd3e9}
html[data-theme="rose"] .hero-foot b{color:#ffb5d8}
html[data-theme="rose"] .gold-dot{background:#ff9ccd;box-shadow:0 0 9px #ff7abf}
html[data-theme="rose"] .date{color:#d7aec7}
html[data-theme="rose"] .clock{color:#fff8fd}
html[data-theme="rose"] .weather strong{color:#ffbddd}
html[data-theme="rose"] .weather span{color:#d19dbd}
html[data-theme="rose"] .session-bar{background:linear-gradient(135deg,#381b39,#271629);border-color:#ff92c753}
html[data-theme="rose"] .market-symbol{color:#ffe6f4;background:linear-gradient(135deg,#a43175,#56234f);border-color:#fb94c980}
html[data-theme="rose"] .session-market strong{color:#fff2f8}
html[data-theme="rose"] .session-market small,html[data-theme="rose"] .session-caption{color:#dbb1ca}
html[data-theme="rose"] .session-name{color:#ffc1df}
html[data-theme="rose"] .session-open .session-name{color:#aef5cd}
html[data-theme="rose"] .section-overline{color:#ff9bd0}
html[data-theme="rose"] .line-mark{background:#ff8dc0}
html[data-theme="rose"] .section-title{color:#fff1fa}
html[data-theme="rose"] .section-title span{color:#ff9dcb}
html[data-theme="rose"] .counter,html[data-theme="rose"] .counter>span,html[data-theme="rose"] .counter small{color:#ddaecc}
html[data-theme="rose"] .counter b{color:#ffb3d8}
html[data-theme="rose"] .radar-sub{color:#e0b4ce}
html[data-theme="rose"] .radar-sub .connection{color:#b0ecca}
html[data-theme="rose"] .stock-card{
  background:linear-gradient(145deg,#42223f 0%,#2d1933 74%,#351d38);
  border-color:#ffb1d43f;box-shadow:0 8px 27px #0006,inset 0 1px #ffe1f318;
}
html[data-theme="rose"] .stock-card:before{background:linear-gradient(90deg,transparent,#ffbad980,transparent)}
html[data-theme="rose"] .stock-card:hover{border-color:#ff85bc;box-shadow:0 12px 26px #ed3d9e35}
html[data-theme="rose"] .market.kospi{color:#e0eaff;background:#304365;border-color:#8baded76}
html[data-theme="rose"] .market.kosdaq{color:#f9d9ff;background:#663e71;border-color:#cd84de72}
html[data-theme="rose"] .ticker{color:#fff4fa}
html[data-theme="rose"] .card-index{color:#ffb4d04d}
html[data-theme="rose"] .price{color:#fffafd}
html[data-theme="rose"] .won,html[data-theme="rose"] .capture{color:#deb3ca}
html[data-theme="rose"] .rise{color:#ff9da9}
html[data-theme="rose"] .rise.down{color:#94c6ff}
html[data-theme="rose"] .fresh-badge{background:linear-gradient(100deg,#ff687f,#c12278);box-shadow:0 4px 12px #ff4a9b61}
html[data-theme="rose"] .stock-card.waiting{background:linear-gradient(140deg,#351d39,#271629);border-color:#ffa9d13c}
html[data-theme="rose"] .slot-no{color:#ffbadc;border-color:#ff93c353;background:#e7449531}
html[data-theme="rose"] .waiting .ticker,html[data-theme="rose"] .waiting-caption{color:#d5a6c1}
html[data-theme="rose"] .waiting-signal span{background:linear-gradient(90deg,#bd709d42,#f2a6d04d,#bd709d25)}
html[data-theme="rose"] .waiting-star{color:#ffa9d7}
html[data-theme="rose"] .bottom{color:#d5aac6}
html[data-theme="rose"] .bottom .preview-action{color:#ffafd7!important}
html[data-theme="rose"] .demo{color:#ffb3db;background:#ff75b622;border-color:#ff83c477}
html[data-theme="rose"] .foot-disclaimer{color:#d5a9c4}
html[data-theme="rose"] .detail{background:#1f1126}
html[data-theme="rose"] .back{background:#492745;color:#ffc9e5;border-color:#fc8cc17a}
html[data-theme="rose"] .detail-brand{color:#ffabd5}
html[data-theme="rose"] .detail-title h1{color:#fff4fa}
html[data-theme="rose"] .company{color:#d3abc6}
html[data-theme="rose"] .detail-price{color:#fff7fc}
html[data-theme="rose"] .detail-price small{color:#d9b0c8}
html[data-theme="rose"] .block{background:linear-gradient(135deg,#3a213c,#2b1932);border-color:#ff96c447}
html[data-theme="rose"] .block h2{color:#fff0f8}
html[data-theme="rose"] .block h2 small{color:#d8b2cc}
html[data-theme="rose"] .facts .fact{background:#502d4b}
html[data-theme="rose"] .fact span{color:#e5b9d6}
html[data-theme="rose"] .fact b{color:#fff2fa}
html[data-theme="rose"] .disclosure{background:#492b49;color:#eed1e4}
html[data-theme="rose"] .detail .disclosure a{color:#ffb8dc!important}
html[data-theme="rose"] .chart-modal{background:#210e23}
html[data-theme="rose"] .chart-modal h2{color:#fff1f9}
html[data-theme="rose"] .chart-modal button{background:#fb8fc5;color:#2a142d}
