:root{font-family:"Segoe UI",Meiryo,sans-serif;color:#142b46;background:#f8f1dc;color-scheme:light;--app:#f8f1dc;--surface:#fffaf0;--alt:#f3f0df;--text:#142b46;--line:#e4dfd2;--blue:#2864e8;--green:#148239;--red:#e62323}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:#fbfaf6;color:var(--text);overflow-x:hidden}button,input{font:inherit}.demo-caption{height:27px;display:flex;align-items:center;gap:7px;padding:0 12px;background:#fbfaf6;color:#74602a;font-size:11px}.demo-caption i,.guide-heading i{width:7px;height:7px;border-radius:50%;background:#dfa81d}.window{height:calc(100vh - 130px);min-height:520px;margin:0 7px;border:1px solid #d3cbb7;background:var(--app);box-shadow:0 2px 7px #172d481a;display:flex;flex-direction:column;overflow:hidden}.titlebar{height:32px;flex:none;display:flex;align-items:center;gap:7px;padding-left:9px;background:#f3f3f3;color:#777;font-size:14px}.titlebar img{width:17px;height:17px;object-fit:contain}.window-controls{margin-left:auto;height:100%;display:flex;align-items:stretch;color:#555}.window-controls span{width:44px;display:grid;place-items:center}.window-controls span:last-child{width:48px}.app{min-height:0;flex:1;display:flex;flex-direction:column;padding:4px 7px 5px;background:var(--app)}.app-heading{height:80px;flex:none;display:flex;align-items:center;justify-content:space-between}.app-heading h1{margin:0;font-size:20px}.heading-actions{display:flex;gap:6px}.icon-button{width:40px;height:36px;border:1px solid #ddd6c5;border-radius:10px;background:#fffdf7;color:#4d6a91;font-size:23px;cursor:pointer}.icon-button.gear{font-size:26px;color:#5630d2}.add-row{height:60px;flex:none;display:flex;align-items:center;gap:14px}.native-button{min-height:38px;padding:7px 13px;border:1px solid #d8d2c2;border-radius:9px;background:#fffdf7;color:var(--text);cursor:pointer}.native-button:hover,.row-action:hover{background:#f2efe5}.add-row span{font-size:13px;color:#6d839c}.compact{min-height:30px;border-radius:5px;padding:4px 12px;font-size:13px}.fit-row{height:45px;flex:none;display:flex;align-items:center}.fit-row .native-button{border-radius:5px 0 0 5px}.fit-row .native-button+.native-button{border-left:0;border-radius:0 5px 5px 0}.selected{background:var(--blue)!important;color:white!important;border-color:var(--blue)!important;font-weight:650}.toolbar{height:44px;flex:none;position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px}.toolbar-left,.toolbar-right{min-width:0;display:flex;align-items:center;gap:9px}.toolbar-left>strong{font-size:14px;white-space:nowrap}.refresh-button{width:32px;height:32px;border:1px solid #cbd8df;border-radius:10px;background:#edf4f4;color:#3183a1;font-size:25px;line-height:1;cursor:pointer}.segmented{display:flex;border:1px solid #d7d1c3;border-radius:7px;overflow:hidden;flex:none}.segmented button{height:34px;padding:0 11px;border:0;background:#eeeadb;color:#334967;font-size:13px;white-space:nowrap;cursor:pointer}.segmented button+button{border-left:1px solid #dbd5c7}.segmented .active{background:var(--blue);color:white;font-weight:650}.toolbar-hint{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#768ba5;font-size:12px}.toolbar-right{flex:none}.columns-menu{position:absolute;z-index:5;right:65px;top:40px;width:190px;max-height:300px;overflow:auto;padding:8px;background:#fffdf7;border:1px solid var(--line);box-shadow:0 4px 14px #172d4822;border-radius:6px}.columns-menu label{display:flex;gap:8px;padding:5px;font-size:12px}.grid-viewport{position:relative;min-height:0;flex:1;overflow:auto;border:1px solid #e4ddcc;background:var(--surface);scrollbar-color:#c9c5b9 #f8f5eb}.watch-grid{width:100%;min-width:1380px;border-collapse:collapse;table-layout:fixed;background:var(--surface);font-size:20px;font-variant-numeric:tabular-nums}.watch-grid th,.watch-grid td{height:41px;padding:2px 5px;border-right:1px solid #e4e0d5;border-bottom:1px solid #e4e0d5;text-align:left;white-space:nowrap;overflow:hidden}.watch-grid th{position:sticky;top:0;z-index:1;height:39px;background:#f4efdf;font-size:18px;font-weight:650}.watch-grid th:nth-child(1){width:95px}.watch-grid th:nth-child(2){width:280px}.watch-grid th:nth-child(3),.watch-grid th:nth-child(4){width:100px}.watch-grid th:nth-child(n+5):nth-child(-n+12){width:105px}.watch-grid th:last-child{width:86px}.watch-grid tbody tr{background:var(--surface)}.watch-grid tbody tr:nth-child(even){background:var(--alt)}.watch-grid td[data-col=code],.watch-grid td[data-col=name],.positive{color:var(--green)}.negative{color:var(--red)}.flat{color:var(--text)}.row-action{width:32px;height:29px;margin-right:3px;border:1px solid #d8d3c6;border-radius:8px;background:#fffdf7;color:#314c70;font-size:16px;cursor:pointer}.sample-notice{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:9px;padding:8px 14px;border:1px solid #bfd5ed;border-radius:8px;background:#f5f8fc;color:#396c9f;font-size:13px;white-space:nowrap}.sample-notice span{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:#2870e9;color:white;font-weight:700}.app-footer{height:38px;flex:none;display:flex;align-items:end;justify-content:space-between;border-top:1px solid #ddd7c9;padding:0 3px}.history{display:flex;align-items:center;gap:10px;color:#7185a0;font-size:13px}.history button{min-height:29px;padding:3px 10px;border:1px solid #d7d0c1;border-radius:8px;background:#fffdf7;color:#314967;font-size:13px}.powered{display:flex;align-items:center;gap:6px;color:#617995;font-size:12px}.powered img{width:22px;height:22px;border-radius:50%;object-fit:cover;border:1px solid #ed91b0}.demo-guide{max-width:960px;margin:3px auto 6px;padding:4px 8px;border:0;border-left:2px solid #d8bd71;border-radius:0;background:transparent;box-shadow:none;color:#344a63}.guide-heading{display:flex;align-items:center;gap:7px;font-size:12px}.guide-heading span{margin-left:auto;color:#aa945e;font-size:10px}.guide-options{display:flex;gap:6px;margin-top:5px}.guide-option{padding:6px 10px;border:1px solid #ded6c3;border-radius:5px;background:white;color:#415875;font-size:12px;cursor:pointer}.guide-option.selected{background:#eaf0ff!important;color:#245ac0!important;border-color:#9db7eb!important}.demo-guide p{margin:4px 0 0;color:#718095;font-size:11px}.demo-guide #guide-result{font-weight:650;color:#33623b}.demo-guide #replay-button{margin-top:7px;padding:5px 9px;border:1px solid #ccd7ca;border-radius:5px;background:#f7fbf4;color:#43634b;font-size:11px;cursor:pointer}.dialog-backdrop,.detail-backdrop{position:fixed;inset:0;z-index:10;display:grid;place-items:center;background:#101a26a1;padding:18px}.editor-dialog{width:min(680px,100%);padding:18px;border:1px solid #ddd5c4;border-radius:12px;background:var(--surface);box-shadow:0 16px 55px #1b293b4a;color:var(--text)}.dialog-heading{display:flex;justify-content:space-between}.dialog-heading h2{margin:0;font-size:17px}.dialog-heading p{margin:3px 0;color:#78879a;font-size:11px}.dialog-close{width:30px;height:30px;border:1px solid #d9d2c5;border-radius:7px;background:#fffdf7;color:#51647b;font-size:19px;cursor:pointer}.field-grid{display:grid;grid-template-columns:76px 1fr;row-gap:9px;margin-top:17px;align-items:center}.field-grid label{display:contents;color:#6e7d91;font-size:12px}.field-grid input{height:33px;padding:5px 8px;border:1px solid #dcd6ca;border-radius:6px;background:#fbf8ee;color:#30445d}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.setting-group{min-height:133px;padding:12px;border:1px solid #dfdacd;border-radius:8px;background:#f6f2e7}.setting-group h3{margin:0;font-size:13px}.switch-line{display:flex;align-items:center;gap:8px;margin-top:12px;font-size:12px}.switch-line input{position:absolute;opacity:0}.switch-ui{width:40px;height:22px;border-radius:15px;background:#512bd4;position:relative}.switch-ui:after{content:"";position:absolute;right:2px;top:2px;width:18px;height:18px;border-radius:50%;background:white}.step-field{display:flex;align-items:center;justify-content:space-between;margin-top:11px;color:#748196;font-size:12px}.step-field input,.sudden-fields input{width:58px;height:28px;border:1px solid #dad4c8;border-radius:5px;background:#fffdf7;text-align:right;color:var(--text)}.step-field small,.sudden-fields small{font-size:11px;color:#718197}.sudden-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:13px}.sudden-fields label{display:flex;align-items:center;gap:4px;color:#6f7d90;font-size:12px}.helper-text{display:block;margin-top:10px;color:#758398;font-size:11px}.editor-footnote{margin:10px 0 0;color:#7b899a;font-size:11px}.dialog-actions{display:flex;justify-content:end;gap:8px;margin-top:14px}.dialog-actions .native-button{min-height:32px;padding:5px 12px;font-size:12px}.save-button{min-width:115px;padding:7px 14px;border:0;border-radius:7px;background:#512bd4;color:white;font-weight:700;cursor:pointer}.detail-dialog{width:min(820px,100%);max-height:94vh;overflow:auto;padding:18px;border:1px solid #d9d2c3;border-radius:13px;background:var(--surface);box-shadow:0 16px 55px #1b293b4a;color:var(--text)}.detail-title{display:flex;align-items:center;gap:10px;color:#6f8095;font-size:12px}.detail-code{padding:5px 9px;border:1px solid #bfd1e5;border-radius:6px;background:#f1f5fa;color:#4279a8;font-weight:650}.detail-title button{margin-left:auto}.detail-dialog h2{margin:8px 0;font:600 21px Consolas,monospace}.detail-price{display:grid;grid-template-columns:1fr auto;padding:13px 15px;border:1px solid #e2dccf;border-radius:10px;background:#fffdf7}.detail-price span:first-child{grid-column:1/3;color:#6d7f95;font-size:12px}.detail-price strong{font-size:32px;color:var(--green)}.detail-change{color:var(--green);font-weight:650}.detail-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:9px}.detail-facts>div{min-height:72px;padding:10px;border:1px solid #e3ddcf;border-radius:9px;color:#6c7f95;font-size:12px}.detail-facts strong{display:block;margin-top:5px;color:var(--text);font:16px Consolas,monospace}.detail-facts small{display:block;margin-top:4px;font-size:10px}.detail-settings{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:9px;padding:8px;border:1px solid #e1dbcf;border-radius:9px}.detail-settings div{padding:7px;border:1px solid #e4dfd5;border-radius:6px}.detail-settings span,.detail-settings strong{display:block}.detail-settings span{color:#74849a;font-size:11px}.detail-settings strong{margin-top:2px;font:12px Consolas,monospace}#notification-slot{position:fixed;right:22px;bottom:18px;z-index:20;width:min(370px,calc(100vw - 24px));pointer-events:none}.toast{display:flex;gap:11px;padding:13px;border:1px solid #d6d6d6;border-radius:9px;background:#fbfbfb;color:#222;box-shadow:0 4px 20px #121a2434;pointer-events:auto;animation:toast-in .22s ease-out}.toast-icon{width:35px;height:35px;object-fit:contain}.toast-copy{min-width:0;flex:1}.toast-app{margin:0 0 5px;color:#666;font-size:11px}.toast-title{margin:0;font-size:13px;font-weight:700}.toast-message{margin:4px 0 0;color:#424242;font-size:12px;line-height:1.45}.toast-price{font-weight:700;color:#16813a}.toast-close{border:0;background:transparent;color:#777;font-size:17px;cursor:pointer}[hidden]{display:none!important}@keyframes toast-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}body.dark{--app:#24272b;--surface:#2d3034;--alt:#292c30;--text:#e9edf1;color-scheme:dark}body.dark .titlebar{background:#202226;color:#bdc1c6}body.dark .watch-grid th{background:#303237}body.dark .native-button,body.dark .row-action,body.dark .icon-button,body.dark .history button{background:#35393e;color:#e9edf1;border-color:#50555b}body.dark .demo-caption{background:#22252a;color:#d9c888}body.dark .demo-guide{background:transparent;color:#e6e9ec;border-color:#887a55}body.dark .setting-group{background:#303338}body.dark .editor-dialog,body.dark .detail-dialog{background:#2b2e32;color:#edf0f2}body.dark .detail-price,body.dark .step-field input,body.dark .sudden-fields input{background:#33373b;color:#f0f1f3}body.dark .toast{background:#292b2e;color:#eee;border-color:#52565a}@media(max-width:700px){.window{height:calc(100vh - 125px);min-height:500px;margin:0 2px}.app{padding-left:3px;padding-right:3px}.app-heading{height:60px}.app-heading h1{font-size:18px}.add-row{height:50px}.fit-row{height:40px}.toolbar{height:74px;align-items:flex-start;flex-direction:column;justify-content:center}.toolbar-left{width:100%;gap:6px}.toolbar-left>strong{font-size:12px}.toolbar-hint{display:none}.toolbar-right{position:absolute;right:0;bottom:3px}.refresh-button{height:28px;width:28px}.segmented button{height:29px;padding:0 7px;font-size:11px}.compact{min-height:27px;padding:3px 8px;font-size:11px}.watch-grid{min-width:1320px;font-size:17px}.watch-grid th{font-size:16px}.watch-grid th,.watch-grid td{height:36px}.app-footer{height:32px}.powered{font-size:10px}.demo-guide{margin:7px 7px 16px;padding:9px}.guide-options{flex-wrap:wrap}.guide-option{font-size:11px}.settings-grid{grid-template-columns:1fr}.setting-group{min-height:auto}.editor-dialog{max-height:94vh;overflow:auto}.detail-facts{grid-template-columns:repeat(2,1fr)}.sample-notice{font-size:11px;white-space:normal;width:max-content;max-width:90%;text-align:center}.detail-settings{grid-template-columns:1fr 1fr}#notification-slot{right:12px;bottom:12px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important}}


/* Native Kiribell alert feedback: table emphasis plus its in-app banner. */
.demo-guide{position:relative}
.guide-actions{display:flex;gap:6px;margin-top:5px;flex-wrap:wrap}
.guide-action{padding:6px 10px;border:1px solid #d4cbb7;border-radius:5px;background:#fffdf7;color:#243d5d;font-size:12px;font-weight:600;cursor:pointer}
.guide-action:hover,.guide-action:focus-visible{background:#eaf0ff;border-color:#9db7eb;outline:none}
.guide-action:disabled{opacity:.6;cursor:wait}
.window{position:relative}
.alert-banner{position:absolute;z-index:8;top:87px;left:14px;right:14px;min-height:40px;padding:10px 14px;border:1px solid #8cb5df;border-radius:8px;background:#d7ebff;color:#203a5c;text-align:center;font-size:14px;font-weight:700;opacity:0;transform:translateY(-12px);pointer-events:none}
.alert-banner.is-visible{animation:native-banner-in .16s ease-out both}
.alert-banner.is-hiding{animation:native-banner-out .24s ease-in both}
.watch-grid td.native-alert-target{position:relative;outline:3px solid var(--alert-color);outline-offset:-3px;z-index:2}
.watch-grid td.native-alert-up{--alert-color:#16813a}
.watch-grid td.native-alert-down{--alert-color:#d92d20}
.watch-grid td.native-alert-name{animation:native-alert-fill 3s ease-out both}
.watch-grid td.native-alert-symbol-cell{overflow:visible;z-index:3}
.native-alert-symbol{position:absolute;z-index:5;left:50%;top:2px;transform:translateX(-50%) scale(.3);color:#ffc107;font-size:24px;font-weight:700;white-space:nowrap;pointer-events:none;text-shadow:0 1px 3px #fff9}
.native-alert-symbol.is-up{animation:native-alert-up 1.25s ease-out both}
.native-alert-symbol.is-down{color:#d92d20;animation:native-alert-down 1.05s ease-out both}
@keyframes native-banner-in{from{opacity:0;transform:translateY(-12px)}to{opacity:1;transform:translateY(0)}}
@keyframes native-banner-out{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-12px)}}
@keyframes native-alert-fill{0%,86%{background-color:color-mix(in srgb,var(--surface) 68%,var(--alert-color))}100%{background-color:var(--surface)}}
@keyframes native-alert-up{0%{opacity:0;transform:translate(-50%,4px) scale(.3) rotate(0)}20%{opacity:1;transform:translate(-50%,-10px) scale(2) rotate(0)}30%{transform:translate(-50%,-16px) scale(1.55) rotate(0)}65%{opacity:1;transform:translate(-50%,-34px) scale(1.55) rotate(10deg)}100%{opacity:0;transform:translate(-50%,-50px) scale(1.55) rotate(0)}}
@keyframes native-alert-down{0%{opacity:0;transform:translate(-50%,-3px) scale(.6)}20%{opacity:1;transform:translate(-50%,0) scale(1.5)}100%{opacity:0;transform:translate(-50%,38px) scale(1.25)}}
@media(prefers-reduced-motion:reduce){.alert-banner.is-visible,.alert-banner.is-hiding,.watch-grid td.native-alert-name,.native-alert-symbol{animation-duration:.01ms!important;animation-iteration-count:1!important}}

/* Compact stock columns, native-style column picker, and an in-app alert log. */
.watch-grid{min-width:1235px;width:100%;font-size:20px}
.watch-grid th[data-col="code"]{width:116px}.watch-grid th[data-col="name"]{width:510px}.watch-grid th[data-col="price"]{width:91px}.watch-grid th[data-col="extended"]{width:100px}.watch-grid th[data-col="prevDiff"]{width:106px}.watch-grid th[data-col="prevPct"]{width:118px}.watch-grid th[data-col="prevClose"]{width:115px}.watch-grid th[data-col="open"]{width:96px}.watch-grid th[data-col="high"],.watch-grid th[data-col="low"]{width:91px}.watch-grid th[data-col="openDiff"],.watch-grid th[data-col="openPct"]{width:108px}.watch-grid th[data-col="actions"]{width:86px}
.watch-grid th.grid-fill{width:auto}.watch-grid td.grid-fill{padding:0}.watch-grid [hidden]{display:none!important}
.columns-backdrop{position:fixed;inset:0;z-index:15;display:grid;place-items:center;background:#101a2680;padding:12px}
.columns-dialog{width:min(560px,100%);max-height:min(890px,96vh);display:flex;flex-direction:column;overflow:hidden;border:1px solid #d8d2c4;border-radius:12px;background:#fbf8ee;box-shadow:0 10px 34px #172d483d;color:#243c58}
.columns-titlebar{height:38px;flex:none;display:flex;align-items:center;gap:8px;padding:0 10px;background:#f3f3f3;color:#5b6571;font-size:15px}.columns-titlebar img{width:17px;height:17px}.columns-titlebar button{margin-left:auto;width:38px;height:36px;border:0;background:transparent;font-size:20px;color:#555;cursor:pointer}
.columns-content{min-height:0;display:flex;flex-direction:column;padding:14px 22px 18px}.columns-content>p{margin:8px 0 14px;color:#7185a0;font-size:14px}.columns-list{min-height:0;overflow:auto;border:1px solid #d7d0c1;background:#fffdf6;padding:2px 12px;scrollbar-color:#c8c4ba #f8f5eb}.column-option{min-height:52px;display:grid;grid-template-columns:24px 1fr 36px 36px;align-items:center;gap:8px;border-bottom:1px solid #eee9dd;color:#233d5c;font-size:14px}.column-option:last-child{border-bottom:0}.column-option input{width:17px;height:17px;accent-color:#1876e8}.column-option input:disabled{opacity:.65}.column-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.column-option button{width:35px;height:37px;border:1px solid #d8d3c8;border-radius:10px;background:#fffdf8;color:#365372;font-size:17px;cursor:pointer}.column-option button:disabled{opacity:.45;cursor:default}.columns-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:14px}.columns-actions button{min-height:37px}.history-panel{height:130px;flex:none;overflow:auto;border-bottom:1px solid #e1dbcf;background:var(--surface);padding:3px 5px;scrollbar-color:#c9c5b9 #f8f5eb}.history-entry{min-height:28px;display:flex;align-items:center;gap:7px;padding:3px 4px;border-bottom:1px solid #eee9dd;color:#29435f;font-size:13px;white-space:nowrap;overflow:hidden}.history-entry time{flex:none;color:#74869c;font-variant-numeric:tabular-nums}.history-entry span{overflow:hidden;text-overflow:ellipsis}.app-footer{align-items:center}
body.dark .columns-dialog{background:#2d3034;color:#e9edf1}body.dark .columns-titlebar{background:#202226;color:#bdc1c6}body.dark .columns-list{background:#282b2f;border-color:#50555b}body.dark .column-option{color:#e9edf1;border-color:#41454a}body.dark .column-option button{background:#35393e;color:#e9edf1;border-color:#50555b}body.dark .history-entry{color:#e9edf1;border-color:#41454a}
@media(max-width:700px){.watch-grid{min-width:1235px}.columns-content{padding:10px 12px 12px}.column-option{min-height:45px}.history-panel{height:110px}.history-entry{font-size:12px}}.app-heading>div{display:flex;gap:8px;align-items:center}#theme-button{width:50px;height:44px;border-radius:9px;font-size:32px;line-height:1;color:#4d6f9c;display:grid;place-items:center;padding:0}#settings-button{display:none!important}.demo-stock-row{cursor:pointer}.demo-stock-row.selected{background:#dce8f7!important}.demo-stock-row.selected td{background:#dce8f7}.demo-stock-row:focus-visible{outline:2px solid #2870e9;outline-offset:-2px}.app-heading>div{display:flex;gap:8px;align-items:center}#theme-button{width:50px;height:44px;border-radius:9px;font-size:32px;line-height:1;color:#4d6f9c;display:grid;place-items:center;padding:0}#settings-button{display:none!important}.demo-stock-row{cursor:pointer}.demo-stock-row.selected{background:#dce8f7!important}.demo-stock-row.selected td{background:#dce8f7}.demo-stock-row:focus-visible{outline:2px solid #2870e9;outline-offset:-2px}

/* Compact embedding mode: retain the live Kiribell table, price provider and alert engine. */
html.compact-mode,html.compact-mode body{width:100%;height:100%;min-height:0;margin:0;overflow:hidden;background:var(--app)}
html.compact-mode .demo-caption,html.compact-mode .demo-guide{display:none!important}
html.compact-mode .window{position:relative;width:100%;height:100vh;min-height:0;margin:0;border:1px solid #d3cbb7;box-shadow:none}
html.compact-mode .titlebar{height:27px;font-size:12px}html.compact-mode .window-controls{display:none}
html.compact-mode .app{padding:0 5px 4px}
html.compact-mode .compact-disclaimer{display:flex;align-items:center;min-height:26px;flex:none;padding:2px 8px;border-bottom:1px solid var(--line);color:#806522;font-size:11px}
html.compact-mode .app-heading{height:43px;min-height:43px}
html.compact-mode .app-heading h1{font-size:17px}
html.compact-mode .app-heading>div,.add-row,.fit-row,.toolbar .segmented,.toolbar-hint,.toolbar-right,.refresh-button,.sample-notice{display:none!important}
html.compact-mode .add-row,html.compact-mode .fit-row{height:0;min-height:0}
html.compact-mode .toolbar{position:relative;height:34px;min-height:34px;flex:none;padding:0 4px}
html.compact-mode .toolbar-left{min-width:0}
html.compact-mode .toolbar-left>strong{font-size:12px}
html.compact-mode .grid-viewport{min-height:0;flex:1;overflow:auto}
html.compact-mode .watch-grid{width:100%;min-width:0;table-layout:fixed;font-size:14px}
html.compact-mode .watch-grid th,html.compact-mode .watch-grid td{height:35px;padding:4px 7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.compact-mode .watch-grid th{font-size:13px}
html.compact-mode .watch-grid [data-col="code"],html.compact-mode .watch-grid [data-col="extended"],html.compact-mode .watch-grid [data-col="prevClose"],html.compact-mode .watch-grid [data-col="open"],html.compact-mode .watch-grid [data-col="openDiff"],html.compact-mode .watch-grid [data-col="openPct"],html.compact-mode .watch-grid [data-col="actions"],html.compact-mode .watch-grid .grid-fill{display:none!important}
html.compact-mode .watch-grid th[data-col="name"]{width:37%}html.compact-mode .watch-grid th[data-col="price"]{width:19%}html.compact-mode .watch-grid th[data-col="prevDiff"]{width:16%}html.compact-mode .watch-grid th[data-col="prevPct"]{width:16%}html.compact-mode .watch-grid th[data-col="high"],html.compact-mode .watch-grid th[data-col="low"]{width:12%}
html.compact-mode .compact-launch{position:fixed;z-index:30;inset:0;display:block;background:transparent;cursor:pointer}
html.compact-mode .compact-launch:focus-visible{outline:3px solid #2864e8;outline-offset:-4px}
html.compact-mode .alert-banner{position:absolute;z-index:12;top:68px;left:10px;right:10px;min-height:36px;padding:8px 10px;font-size:12px}
html.compact-mode .native-alert-symbol{font-size:12px}
@media(max-width:560px){html.compact-mode .app-heading{height:38px;min-height:38px}html.compact-mode .watch-grid th[data-col="prevDiff"],html.compact-mode .watch-grid td[data-col="prevDiff"],html.compact-mode .watch-grid th[data-col="high"],html.compact-mode .watch-grid td[data-col="high"],html.compact-mode .watch-grid th[data-col="low"],html.compact-mode .watch-grid td[data-col="low"]{display:none!important}html.compact-mode .watch-grid th[data-col="name"]{width:55%}html.compact-mode .watch-grid th[data-col="price"]{width:23%}html.compact-mode .watch-grid th[data-col="prevPct"]{width:22%}}
.compact-disclaimer{display:none}
html.compact-mode .compact-disclaimer{display:flex}
.demo-language{height:25px;display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:0 14px;background:#fbfaf6;color:#708096;font-size:11px}
.demo-language a{color:inherit;text-decoration:none}.demo-language a:hover,.demo-language a:focus-visible{text-decoration:underline;color:#2864e8}
.sound-button{display:grid;place-items:center;padding:0}.sound-button svg{width:21px;height:21px}.sound-button.sound-off{color:#78808a!important;background:#f0eee8!important}
body.dark .demo-language{background:#22252a;color:#c0c5cc}.demo-guide #guide-result{white-space:normal}
html.compact-mode .demo-language{display:none!important}

/* Full demo controls sit outside the simulated app window; let the app use the remaining viewport height. */
body{height:100vh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.demo-caption,.demo-topbar,.demo-guide{flex:none}
.demo-topbar{height:38px;width:calc(100% - 14px);margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:0 8px;background:#fbfaf6}
.demo-language{height:auto;justify-content:flex-start;gap:8px;padding:0;background:transparent}
.demo-sound-toggle{display:inline-flex;align-items:center;gap:7px;min-height:30px;padding:4px 10px;border:1px solid #d8d2c2;border-radius:7px;background:#fffdf7;color:#243c58;font-size:12px;cursor:pointer}
.demo-sound-toggle:hover,.demo-sound-toggle:focus-visible{border-color:#8ca6c5;outline-color:#2864e8}
.demo-sound-toggle[aria-pressed="true"]{border-color:#b7cbb6;background:#f4f8f1}
.demo-sound-toggle.sound-off{background:#f1efe9;color:#687583}
.sound-icon{font-size:15px;line-height:1}
.demo-guide{width:calc(100% - 14px);max-width:none;margin:3px auto 7px;padding:5px 8px;border-left:2px solid #d8bd71}
.guide-heading strong{font-size:13px}
.guide-heading span{max-width:70%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#74869b;font-size:11px}
.guide-actions{margin-top:6px;gap:8px}
.guide-action{min-height:38px;padding:8px 14px;border:1px solid #2864e8;border-radius:7px;background:#2864e8;color:white;font-size:13px;font-weight:650;cursor:pointer;box-shadow:0 1px 2px #172d481a}
.guide-action:hover,.guide-action:focus-visible{background:#1f54ca;border-color:#1f54ca;outline:2px solid #8daaf1;outline-offset:1px}
.guide-action:active{transform:translateY(1px)}
.window{height:auto;min-height:0;flex:1;margin:0 7px 7px}
html.compact-mode body{height:100%;min-height:0;display:block}
html.compact-mode .demo-topbar{display:none!important}
.demo-topbar{justify-content:flex-end;gap:12px}
.demo-language{gap:3px;color:#536a84;font-size:12px}
.demo-language a{padding:5px 8px;border:1px solid transparent;border-radius:6px;color:inherit;font-weight:600}
.demo-language a[aria-current="page"]{border-color:#d9d2c1;background:#f4efdf;color:#243c58}
.demo-language a:focus-visible{outline:2px solid #2864e8;outline-offset:1px}
.sound-icon{font-size:initial}
.sound-icon svg{width:18px;height:18px;overflow:visible}
.sound-wave{display:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.sound-on .sound-wave{display:block}
.sound-slash{display:none;fill:none;stroke:#d23c3c;stroke-width:2.5;stroke-linecap:round}
.sound-off .sound-slash{display:block}
body.dark .demo-topbar{background:#22252a}
body.dark .demo-sound-toggle{border-color:#555b61;background:#303236;color:#edf0f4}
body.dark .demo-sound-toggle.sound-off{border-color:#a66363;background:#342c2d}
body.dark .demo-language a[aria-current="page"]{border-color:#555b61;background:#303236;color:#f0f2f4}
.powered{color:#617995;text-decoration:none}.powered:hover,.powered:focus-visible{text-decoration:underline;text-underline-offset:3px;color:#2864e8}
.store-float{position:fixed;z-index:20;right:20px;bottom:54px;display:inline-flex;align-items:center;gap:8px;padding:12px 17px;border:1px solid #1f54ca;border-radius:999px;background:#2864e8;color:#fff;font-size:14px;font-weight:650;text-decoration:none;box-shadow:0 5px 18px #172d4833;opacity:0;transform:translateY(18px);transition:opacity .35s ease,transform .35s ease}
.store-float.is-visible{opacity:1;transform:translateY(0)}.store-float:hover,.store-float:focus-visible{background:#1f54ca;outline:3px solid #9bb5f5;outline-offset:2px}
body.dark .store-float{background:#4f7ef0;border-color:#7599f5;color:#101c32}
@media(max-width:700px){.store-float{right:12px;bottom:50px;padding:10px 14px;font-size:13px}}
@media(prefers-reduced-motion:reduce){.store-float{transition:none}}
/* Native Kiribell always keeps its history toggle and count in the bottom row. */
html.compact-mode .history-panel,html.compact-mode .app-footer{display:none!important}
html.compact-mode .app-footer{display:flex!important;height:38px;min-height:38px;align-items:center}
html.compact-mode .history-panel[hidden]{display:none!important}
html.compact-mode .history-panel:not([hidden]){display:block!important;height:82px;min-height:82px;max-height:82px;flex:none;overflow:auto}
html.compact-mode .compact-launch{bottom:42px}
html.compact-mode.history-open .compact-launch{bottom:42px}
@media(max-width:700px){
  .demo-topbar{width:calc(100% - 4px);padding:0 4px;gap:7px}
  .demo-sound-toggle{font-size:11px}
  .demo-guide{width:calc(100% - 4px);margin:3px auto 5px;padding:4px 6px}
  .guide-heading{align-items:flex-start}
  .guide-heading span{max-width:58%;white-space:normal;text-align:right}
  .guide-actions{gap:6px}
  .guide-action{flex:1 1 auto;min-height:36px;padding:7px 8px}
  .window{height:auto;min-height:0;margin:0 2px 5px}
}
