:root {
          --bg: #ffffff;
          --border: #ece8e6;
          --text: #4e4744;
          --muted: #a0928d;
          --orange: #d83a12;
        }
        .stApp { background: var(--bg); color: var(--text); }
        .block-container { max-width: 100%; padding: 16px 22px 28px; }
        header, footer, [data-testid="stToolbar"] { visibility: hidden; }
        [data-testid="stSidebar"] { display: none; }
        html, body, [class*="css"] { font-family: "Segoe UI", Arial, sans-serif; }
        body { margin: 0; padding: 4px 0 20px 0; background: #ffffff; }
        label, [data-testid="stWidgetLabel"] p { color: #9b8983 !important; font-size: 13px !important; }
        [data-baseweb="select"] > div, [data-testid="stDateInput"] input {
          min-height: 40px; border-color: #e7e1de !important; border-radius: 3px !important;
          background: #fff !important; color: #776c68 !important;
        }
        [data-testid="stDateInput"] input:disabled { background: #f2f1f1 !important; color: #a59d99 !important; }
        .live-mode { display: flex; align-items: center; min-height: 40px; color: #6b625e; font-size: 14px; }
        .live-dot { width: 14px; height: 14px; margin-right: 9px; border: 4px solid #ef4c2f; border-radius: 50%; box-sizing: border-box; }
        .stButton button {
          min-height: 40px; width: 64px; border-radius: 3px; border: 0;
          background: var(--orange); color: white; font-weight: 600;
          box-shadow: 0 1px 3px rgba(118, 35, 12, .25);
        }
        .stButton button:hover { background: #c8320d; color: white; border: 0; }
        .stButton button[kind="secondary"] { width: 100%; min-width: 130px; padding: 0 14px; white-space: nowrap; background: #fff; color: #b34a38; border: 1px solid #d58a7d; box-shadow: none; }
        .stButton button[kind="secondary"]:hover { background: #fff7f4; color: #9f351f; border: 1px solid #c96c5b; }
        .updated { color: #9b8983; font-size: 13px; text-align: right; margin: 5px 3px 18px 0; }
        .updated strong { color: #5f5652; }
        .oi-wrap { overflow-x: hidden; border-bottom: 1px solid #ece8e6; box-shadow: 0 7px 14px rgba(70, 50, 40, .08); }
        .oi-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; color: #625955; }
        .oi-table th, .oi-table td, .strike-table th, .strike-table td,
        .chain-table th, .chain-table td, .sentiment-table th, .sentiment-table td,
        .market-watch-table th, .market-watch-table td { box-sizing: border-box; }
        .oi-table th { height: 46px; padding: 0 10px; color: #705e58; font-weight: 650; text-align: center; border-bottom: 1px solid #e9e5e2; white-space: nowrap; }
        .oi-table td { height: 51px; padding: 0 10px; text-align: center; border-bottom: 1px solid #eeeae8; white-space: nowrap; }
        .oi-table th:first-child, .oi-table td:first-child { width: 32px; text-align: left; }
        .oi-table th:nth-child(2), .oi-table td:nth-child(2) { width: 105px; text-align: left; }
        .oi-table th:nth-child(7), .oi-table td:nth-child(7) { width: 12%; }
        .oi-table th:nth-child(8), .oi-table td:nth-child(8) { width: 8%; }
        .oi-table td:first-child { font-weight: 700; color: #6d6561; }
        .oi-table .num-strong { color: #514946; font-weight: 650; }
        .tag { display: inline-block; min-width: 128px; padding: 6px 11px; border-radius: 4px; color: #fff; font-weight: 650; line-height: 1; }
        .tag.green { background: #43a85b; }
        .tag.red { background: #ff5137; }
        .tag.blue { background: #0b4c88; }
        .tag.yellow { background: #f6b900; color: #765800; }
        .oi-table th:nth-child(7), .oi-table td:nth-child(7),
        .oi-table th:nth-child(8), .oi-table td:nth-child(8) { overflow: hidden; padding-left: 12px; padding-right: 12px; }
        .oi-table td:nth-child(7) .tag { min-width: 0; max-width: 100%; padding-left: 7px; padding-right: 7px; box-sizing: border-box; overflow: hidden; font-size: 11px; }
        .volume-hot { display: block; width: fit-content; max-width: 100%; margin: 0 auto; padding: 7px 8px; box-sizing: border-box; overflow: hidden; border-radius: 4px; background: #ffc000; color: #7a5a00; font-weight: 700; }
        .table-footer { display: flex; justify-content: space-between; align-items: center; min-height: 65px; padding: 0 14px; color: #a39b97; font-size: 12px; gap: 12px; flex-wrap: wrap; }
        .footer-left { display: flex; align-items: center; gap: 10px; min-height: 62px; flex-wrap: wrap; }
        .footer-tab { align-self: stretch; display: flex; align-items: center; padding: 0 10px; color: #867b77; font-weight: 650; border-top: 3px solid transparent; text-decoration: none !important; white-space: nowrap; }
        .footer-tab.active { color: #d83a12; border-top-color: #d83a12; background: #fff8f5; }
        .view-title { margin: -7px 0 13px; text-align: center; color: #665a55; font-size: 14px; font-weight: 650; }
        .strike-wrap {
          overflow-x: auto;
          overflow-y: hidden;
          width: 100%;
          border: 1px solid #ece8e6;
          border-radius: 4px;
          box-shadow: 0 4px 12px rgba(70, 50, 40, .06);
          background: #fff;
          -webkit-overflow-scrolling: touch;
        }
        .strike-table {
          min-width: 1420px;
          width: 100%;
          border-collapse: collapse;
          table-layout: auto;
          font-size: 11px;
          color: #554b47;
        }
        .strike-table th {
          height: 38px;
          padding: 7px 10px;
          color: #705e58;
          font-weight: 650;
          text-align: center;
          border-bottom: 1px solid #e2ddd9;
          border-right: 1px solid #ede8e5;
          white-space: nowrap;
          background: #fbfaf8;
          font-size: 11px;
          box-sizing: border-box;
        }
        .strike-table td {
          height: 42px;
          padding: 5px 8px;
          text-align: center;
          border-bottom: 1px solid #eeeae8;
          border-right: 1px solid #f5f1ef;
          white-space: nowrap;
          font-size: 11px;
          box-sizing: border-box;
        }
        .strike-table tbody tr:hover {
          background-color: #fdfaf8;
        }
        .strike-table th.call-header {
          background: #eaf5ec !important;
          color: #27773d !important;
          font-weight: 700;
          font-size: 13px;
          letter-spacing: 0.5px;
          border-bottom: 2px solid #3ca554 !important;
          text-align: center;
        }
        .strike-table th.put-header {
          background: #fdf0ec !important;
          color: #c03823 !important;
          font-weight: 700;
          font-size: 13px;
          letter-spacing: 0.5px;
          border-bottom: 2px solid #e84c30 !important;
          text-align: center;
        }
        .strike-table th.strike-header {
          background: #fff0be !important;
          color: #634d02 !important;
          font-weight: 700;
          font-size: 13px;
          letter-spacing: 0.5px;
          border-bottom: 2px solid #dbb320 !important;
          text-align: center;
        }
        .strike-table th.strike-cell, .strike-table td.strike {
          background: #fff8df !important;
          font-weight: 700;
          color: #43391b !important;
          font-size: 12px;
          text-align: center;
        }
        .strike-table td:first-child {
          color: #8c807b;
          font-weight: 600;
          width: 36px;
        }
        .strike-table td:nth-child(2) {
          font-weight: 600;
          color: #554d49;
        }
        .strike-table .tag {
          display: inline-block;
          min-width: 114px;
          padding: 5px 8px;
          border-radius: 4px;
          color: #fff;
          font-weight: 650;
          line-height: 1.2;
          text-align: center;
          white-space: nowrap;
          box-sizing: border-box;
          font-size: 11px;
        }
        .chain-summary { margin: 8px 7px 24px; text-align: right; color: #756864; font-size: 13px; }
        .chain-summary strong { color: #514743; }
        .chain-summary .up { color: #3f9c58; font-weight: 650; }
        .chain-wrap { overflow-x: hidden; overflow-y: auto; max-height: 620px; border: 1px solid #e6e1df; box-shadow: 0 7px 14px rgba(70, 50, 40, .08); }
        .chain-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 8px; color: #5d5551; }
        .chain-table th { height: 36px; padding: 0 2px; border: 1px solid #e4e0dd; background: #fbfbfb; color: #756964; font-weight: 650; text-align: center; white-space: normal; line-height: 1.1; }
        .chain-table td { height: 35px; padding: 0 2px; border-bottom: 1px solid #ece8e6; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .chain-table .group-head { height: 38px; background: #f8f8f8; color: #625753; font-size: 13px; }
        .chain-table .strike-col { position: sticky; left: 0; z-index: 2; width: 4.5%; background: #fff2c7; color: #5c514c; font-weight: 700; text-align: center; }
        .chain-table th.strike-col { z-index: 3; }
        .chain-table .positive { color: #389250; font-weight: 600; }
        .chain-table .negative { color: #dc594f; font-weight: 600; }
        .chain-table .ltp { color: #074f8b; font-weight: 750; }
        .chain-table tr.call-otm td:nth-child(-n+11) { background-color: #f2f3f4; }
        .chain-table tr.put-otm td:nth-child(n+13) { background-color: #f2f3f4; }
        .chain-table tr.atm-row td:not(.oi-heat-call):not(.oi-heat-put) { background-color: #fff0bd !important; }
        .chain-table tr.atm-row td.oi-heat-call, .chain-table tr.atm-row td.oi-heat-put { background-color: #fff0bd; }
        .chain-table .oi-heat-call, .chain-table .oi-heat-put { position: relative; color: #514844; }
        .chain-table .oi-bar-fill { position: absolute; z-index: 0; left: 4px; top: 5px; bottom: 5px; border-radius: 6px; }
        .chain-table .oi-heat-call .oi-bar-fill { background: rgba(255, 91, 75, .45); }
        .chain-table .oi-heat-put .oi-bar-fill { left: auto; right: 4px; background: rgba(67, 168, 91, .45); }
        .chain-table .oi-bar-value { position: relative; z-index: 1; }
        .chain-table .hot { background: #063f74; color: #fff; border-radius: 3px; font-weight: 700; }
        .mini-tag { display: inline-block; min-width: 34px; padding: 5px 2px; border-radius: 3px; color: #fff; text-align: center; font-weight: 700; box-sizing: border-box; }
        .mini-tag.green { background: #38a85a; }
        .mini-tag.red { background: #ff563b; }
        .mini-tag.blue { background: #064a84; }
        .mini-tag.yellow { background: #ffbd00; color: #735700; }
        .chain-actions { display: flex; gap: 8px; align-items: flex-end; }
        .selected-strikes { margin: 8px 0 12px; color: #70645f; font-size: 13px; line-height: 1.55; }
        .selected-strikes strong { color: #514844; }
        .sentiment-wrap { overflow-x: hidden; overflow-y: auto; max-height: 610px; border: 1px solid #e7e3e0; box-shadow: 0 7px 14px rgba(70, 50, 40, .08); }
        .sentiment-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 10px; color: #625955; }
        .sentiment-table th { position: sticky; top: 0; z-index: 2; height: 52px; padding: 0 3px; background: #fff; color: #705f59; font-weight: 650; text-align: center; border-bottom: 1px solid #e6e1df; white-space: normal; line-height: 1.2; }
        .sentiment-table td { height: 49px; padding: 0 3px; text-align: center; border-bottom: 1px solid #ece8e6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .sentiment-table th:first-child, .sentiment-table td:first-child { width: 34px; }
        .sentiment-table .direction { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 28px; border-radius: 4px; color: #fff; font-size: 20px; font-weight: 700; }
        .sentiment-table .direction.up, .sentiment-table .sentiment.bullish { background: #42aa5d; }
        .sentiment-table .direction.down, .sentiment-table .sentiment.bearish, .sentiment-table .break-low { background: #ff563b; }
        .sentiment-table .value-up { color: #3f9c58; font-weight: 650; }
        .sentiment-table .value-down { color: #e05248; font-weight: 650; }
        .sentiment-table .sentiment, .sentiment-table .break-low { display: inline-block; min-width: 80px; padding: 6px 10px; border-radius: 4px; color: #fff; font-weight: 700; box-sizing: border-box; }
        .market-watch-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin: 0 0 10px; color: #70645f; }
        .market-watch-title { color: #4f4642; font-size: 15px; font-weight: 750; }
        .market-watch-status { color: #9b8983; font-size: 12px; text-align: right; line-height: 1.45; }
        .market-watch-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 14px; align-items: start; overflow-x: hidden; }
        .market-watch-nav { border: 1px solid #e7e2df; box-shadow: 0 7px 14px rgba(70, 50, 40, .08); background: #fff; }
        .market-watch-nav-title { height: 38px; display: flex; align-items: center; padding: 0 13px; border-bottom: 1px solid #ebe6e3; color: #5a504c; font-size: 13px; font-weight: 750; background: #fbfbfb; }
        .market-watch-side-tab { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 0 13px; border-bottom: 1px solid #f0ecea; color: #756964; font-size: 13px; font-weight: 700; text-decoration: none !important; }
        .market-watch-side-tab span:last-child { color: #b0a5a0; font-size: 12px; font-weight: 650; }
        .market-watch-side-tab.active { color: #d83a12; background: #fff8f5; border-left: 4px solid #d83a12; padding-left: 9px; }
        .market-watch-panel { min-width: 0; border: 1px solid #e7e2df; box-shadow: 0 7px 14px rgba(70, 50, 40, .08); background: #fff; overflow-x: hidden; }
        .market-watch-heading { height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px; border-bottom: 1px solid #ebe6e3; color: #5a504c; font-size: 14px; font-weight: 750; background: #fbfbfb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .market-watch-heading span:last-child { color: #9b8983; font-size: 12px; font-weight: 650; }
        .market-watch-scroll { max-height: 670px; overflow-y: auto; overflow-x: hidden; }
        .market-watch-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; color: #625955; }
        .market-watch-table th { position: sticky; top: 0; z-index: 2; height: 39px; padding: 0 8px; border-bottom: 1px solid #e7e2df; background: #fff; color: #756964; font-weight: 700; text-align: right; white-space: normal; line-height: 1.1; }
        .market-watch-table td { height: 39px; padding: 0 8px; border-bottom: 1px solid #eeeae8; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .market-watch-table th:first-child, .market-watch-table td:first-child { width: 25%; text-align: left; }
        .market-watch-table .mw-name { color: #504843; font-weight: 700; }
        .market-watch-table .positive { color: #2d944b; font-weight: 750; }
        .market-watch-table .negative { color: #df5148; font-weight: 750; }
        .market-watch-table tr.sample td { color: #968984; }
        .market-watch-table tr.sample .mw-name::after { content: " *"; color: #c78c27; }
        .market-watch-note { margin-top: 8px; color: #9b8983; font-size: 11px; line-height: 1.35; }
        div[data-testid="stPopover"] button { min-width: 154px !important; width: 100% !important; background: #fff !important; color: #ad4937 !important; border: 1px solid #cf7969 !important; box-shadow: none !important; white-space: nowrap; }
        .rows-select { margin-left: 20px; color: #5f5753; font-weight: 600; }
        .pager { display: flex; gap: 22px; align-items: center; }
        .pager .disabled { color: #d2cecb; }
        @media (max-width: 1100px) {
          .block-container { min-width: 0; padding-left: 10px; padding-right: 10px; overflow-x: hidden; }
          .oi-table { font-size: 10px; }
          .sentiment-table { font-size: 8px; }
          .chain-table { font-size: 7px; }
          .market-watch-layout { grid-template-columns: 154px minmax(0, 1fr); gap: 8px; }
          .market-watch-side-tab { min-height: 43px; padding-left: 9px; padding-right: 9px; font-size: 11px; }
          .market-watch-table { font-size: 10px; }
          .market-watch-table th:first-child, .market-watch-table td:first-child { width: 23%; }
          .market-watch-table th, .market-watch-table td { padding-left: 4px; padding-right: 4px; }
          .oi-table .tag { min-width: 0; padding-left: 4px; padding-right: 4px; }
        }