/* Approved cycle layout; scoped away from existing market, asset and trade layouts. */
.stock-page-home .stock-home-bot-entry { margin: 24px 0; }
.stock-page-home .stock-home-bot-entry .stock-ai-entry { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 160px; padding: 22px; border: 1px solid rgba(200,243,95,.25); border-radius: 24px; background: radial-gradient(ellipse at 95% 58%,rgba(70,230,144,.13),transparent 62%),linear-gradient(125deg,#15251a,#0a130e 75%); overflow: hidden; text-decoration: none; box-shadow: inset 0 1px 0 rgba(242,247,238,.05); transition: border-color .18s,transform .18s; }
.stock-page-home .stock-home-bot-entry .stock-ai-entry::before { content: ""; position: absolute; pointer-events: none; inset: 0; border-radius: inherit; background: linear-gradient(105deg,rgba(242,247,238,.05),transparent 42%); z-index: -1; }
.stock-page-home .stock-home-bot-entry .stock-home-bot-title { position: relative; z-index: 1; margin: 0; font-size: 25px; font-weight: 760; letter-spacing: -.045em; line-height: 1.2; white-space: nowrap; }
.stock-page-home .stock-home-bot-title em { font-style: normal; color: var(--stock-lime); }
.stock-page-home .stock-home-bot-action { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 44px; min-width: 136px; margin-top: 18px; padding: 0 18px; border-radius: 99px; background: linear-gradient(115deg,var(--stock-lime),var(--stock-mint)); color: #07110b; font-size: 13px; font-weight: 760; white-space: nowrap; box-shadow: inset 0 1px 0 #f2f7ee66; }
.stock-page-home .stock-home-bot-action svg { display: block; width: 16px; height: 16px; transition: transform .18s; }
.stock-page-home .stock-home-bot-art { position: absolute; right: 10px; top: 20px; width: 126px; height: 126px; pointer-events: none; z-index: -1; }
.stock-page-home .stock-home-bot-art::before, .stock-page-home .stock-home-bot-art::after { content: ""; position: absolute; inset: 3px; border: 1px solid rgba(200,243,95,.13); border-radius: 50%; transform: rotateX(24deg) rotateZ(-25deg); }
.stock-page-home .stock-home-bot-art::after { inset: 17px; border-color: rgba(200,243,95,.1); }
.stock-page-home .stock-home-bot-art img { position: absolute; left: 27px; top: 24px; width: 76px; height: 76px; object-fit: contain; border-radius: 20px; transform: perspective(350px) rotateY(-17deg) rotateZ(-13deg); box-shadow: 9px 10px 0 #07110b,13px 16px 30px #050805b3; filter: brightness(1.08); transition: transform .24s; }
.stock-page-home .stock-home-bot-entry .stock-ai-entry:hover { border-color: rgba(200,243,95,.55); }
.stock-page-home .stock-home-bot-entry .stock-ai-entry:hover .stock-home-bot-art img { transform: perspective(350px) rotateY(-9deg) rotateZ(-8deg) translateY(-2px); }
.stock-page-home .stock-home-bot-entry .stock-ai-entry:hover .stock-home-bot-action svg { transform: translate(1px,-1px); }
.stock-page-home .stock-home-bot-entry .stock-ai-entry:active { transform: scale(.992); }
@media (max-width:360px) {
  .stock-page-home .stock-home-bot-entry .stock-ai-entry { padding: 20px; min-height: 144px; }
  .stock-page-home .stock-home-bot-entry .stock-home-bot-title { font-size: 23px; }
  .stock-page-home .stock-home-bot-art { right: 3px; top: 42px; width: 106px; height: 106px; }
  .stock-page-home .stock-home-bot-art img { left: 24px; top: 24px; width: 64px; height: 64px; border-radius: 17px; }
  .stock-page-home .stock-home-bot-action { min-width: 124px; gap: 12px; }
}
@media (prefers-reduced-motion:reduce) {
  .stock-page-home .stock-home-bot-entry .stock-ai-entry, .stock-page-home .stock-home-bot-art img, .stock-page-home .stock-home-bot-action svg { transition: none; }
}
.cycle-live a.stock-ai-icon-button { text-decoration: none; }
.cycle-live, .cycle-orders { font-variant-numeric: tabular-nums; }
.cycle-live-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 0 0 14px; }
.cycle-live-label, .cycle-orders-notice { color: var(--stock-muted); font-size: 10px; line-height: 1.6; }
.cycle-live-tools > div { display: flex; gap: 2px; }
.cycle-live-tools button, .cycle-order-filters button { min-height: 36px; padding: 6px 10px; font: 550 11px var(--stock-font-product); border: 1px solid transparent; border-radius: 18px; color: #a9b6aa; background: transparent; }
.cycle-live-tools button[aria-pressed="true"], .cycle-order-filters button[aria-pressed="true"] { color: var(--stock-ink); border-color: #415542; background: #203026; }
.cycle-assets-link { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 550; color: var(--stock-mint); text-decoration: none; white-space: nowrap; }
.cycle-assets-link svg { width: 14px; height: 14px; }
.cycle-live .stock-ai-head h1 { font-size: 21px; }
.cycle-live .stock-ai-head { gap: 2px; }
.cycle-plan-cap { color: #a9b6aa; font-size: 11px; }
.cycle-live .stock-ai-plan-metrics strong small { margin-left: 4px; }
.cycle-outcome { display: flex; align-items: flex-start; gap: 10px; padding: 18px 0; }
.cycle-outcome-icon { display: grid; place-items: center; flex: 0 0 26px; height: 26px; border-radius: 50%; background: #39e78d15; color: var(--stock-mint); font-size: 17px; }
.cycle-outcome strong { font-size: 12px; font-weight: 650; line-height: 1.6; }
.stock-ai .cycle-outcome p { color: #a9b6aa; font-size: 11px; line-height: 1.7; margin-top: 3px; }
.cycle-records { margin-top: 25px; }
.cycle-records-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #d7ffde24; }
.cycle-records-head h2 { font: 650 15px var(--stock-font-product); }
.cycle-records-head h2 span { margin-left: 4px; color: #a9b6aa; font-size: 11px; font-weight: 450; }
.cycle-records-head > span { color: #a9b6aa; font-size: 10px; }
.cycle-record { border-bottom: 1px solid #d7ffde1a; }
.cycle-record > summary { display: flex; align-items: center; gap: 10px; min-height: 74px; padding: 13px 0; list-style: none; cursor: pointer; }
.cycle-record > summary::-webkit-details-marker { display: none; }
.cycle-symbol { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border: 1px solid #395139; border-radius: 10px; background: #1b2b20; color: var(--stock-lime); font-size: 14px; font-weight: 700; }
.cycle-record-name { flex: 1; min-width: 0; }
.cycle-record-name b { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; line-height: 1.5; }
.cycle-record-name i { font-style: normal; font-size: 9px; font-weight: 650; color: #8be9c4; background: #39ca9514; border: 1px solid #39ca9526; padding: 1px 4px; border-radius: 4px; }
.cycle-record-name small { display: block; color: #a9b6aa; font-size: 10px; line-height: 1.5; margin-top: 3px; }
.cycle-record-net { font-size: 15px; font-weight: 600; white-space: nowrap; }
.cycle-chevron { color: #a9b6aa; font-size: 16px; }
.cycle-record[open] .cycle-chevron { transform: rotate(180deg); }
.cycle-record-detail { padding: 4px 0 16px; }
.cycle-record-detail dl, .cycle-summary dl { display: grid; gap: 11px; font-size: 11px; line-height: 1.5; }
.cycle-record-detail dl > div, .cycle-summary dl > div { display: flex; justify-content: space-between; gap: 14px; }
.cycle-record-detail dt, .cycle-summary dt { color: #a9b6aa; flex-shrink: 0; }
.cycle-record-detail dd, .cycle-summary dd { text-align: right; overflow-wrap: anywhere; }
.stock-ai .cycle-record-detail p, .stock-ai .cycle-summary p { font-size: 10px; line-height: 1.7; color: #a9b6aa; margin: 13px 0 0; }
.cycle-summary { margin-top: 18px; padding: 12px 14px; border: 1px solid #d7ffde1a; border-radius: 12px; background: #142017; }
.cycle-summary > summary { font-size: 12px; cursor: pointer; min-height: 30px; line-height: 30px; }
.cycle-summary dl { margin-top: 12px; }
.cycle-orders { margin-top: 16px; padding: 18px 16px; border: 1px solid var(--stock-stroke-2); border-radius: 20px; background: #0e1912; scroll-margin-top: 18px; }
.stock-ai .cycle-orders-notice { margin: 10px 0; }
.cycle-order-filters { display: flex; gap: 6px; margin-bottom: 4px; }
.cycle-order-filters span { margin-left: 4px; opacity: .7; font-size: 10px; }
.cycle-order-total { display: flex; justify-content: space-between; gap: 12px; padding-top: 18px; font-size: 11px; color: #a9b6aa; }
.cycle-order-total b { white-space: nowrap; font-size: 13px; font-weight: 600; }
.cycle-live input#cycle-amount { width: 100%; min-width: 0; padding: 14px 0; border: 0; outline: 0; background: none; color: var(--stock-ink); font: 500 26px var(--stock-font-product); box-shadow: none; }
.cycle-quota { margin: 16px 0 24px; padding: 16px; border: 1px solid #d7ffde24; border-radius: 14px; background: #15231acc; }
.cycle-quota-values { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cycle-quota-values > div { min-width: 0; }
.cycle-quota-values > div:last-child { text-align: right; }
.cycle-quota-values span { display: block; color: #a9b6aa; font-size: 11px; margin-bottom: 6px; }
.cycle-quota-values b { display: block; font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.cycle-quota-values small { font-size: 9px; color: #a9b6aa; font-weight: 500; }
.cycle-quota .stock-ai-progress { margin: 14px 0 8px; }
.cycle-renewal { padding: 16px; border: 1px solid #d7ffde24; background: #132018bb; border-radius: 14px; margin: 12px 0 20px; }
.cycle-renewal h3 { font-size: 13px; font-weight: 650; margin-bottom: 12px; }
.cycle-renewal-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cycle-renewal-options button { min-height: 44px; border: 1px solid #364b3c; background: #0c170f; color: #a9b6aa; border-radius: 10px; font: 600 12px var(--stock-font-product); cursor: pointer; }
.cycle-renewal-options button[aria-pressed="true"] { color: #c6f96b; border-color: #b7ed59; background: #25351c; }
.stock-ai .cycle-renewal p, .stock-ai .cycle-quota p { font-size: 11px; line-height: 1.75; color: #a9b6aa; margin: 12px 0 0; }
.cycle-renew-amount { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; margin: 18px 0 12px; }
.cycle-renew-amount span { color: #a9b6aa; }
.cycle-renewal .stock-ai-button { font-size: 13px; }
.cycle-live .cycle-renewal-options button:focus-visible { outline: 2px solid #b7ed59; outline-offset: 3px; }
/* Let translated labels wrap without competing with amounts or controls. */
.cycle-live .stock-ai-head h1 { min-width: 0; }
.cycle-live .stock-ai-icon-button { flex-shrink: 0; }
.cycle-live .stock-ai-amount > span { flex: 0 0 auto; white-space: nowrap; }
.cycle-live :is(.stock-ai-field-head,.stock-ai-row,.stock-ai-today,.stock-ai-line-caption) { flex-wrap: wrap; }
.cycle-live .stock-ai-review > div, .cycle-record-detail dl > div { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.35fr); align-items: baseline; }
.cycle-live .stock-ai-review :is(dt,dd), .cycle-record-detail :is(dt,dd) { min-width: 0; overflow-wrap: anywhere; }
.cycle-live .stock-ai-plan-metrics > div { min-width: 0; }
.cycle-live .stock-ai-plan-metrics span { min-height: 2.8em; line-height: 1.4; }
.cycle-renewal-options button { min-width: 0; padding: 10px 8px; line-height: 1.5; text-wrap: balance; }
.cycle-records-head { flex-wrap: wrap; align-items: baseline; }
.cycle-record-detail dt { flex-shrink: 1; }
.cycle-quota-values b { font-size: clamp(12px,3.4vw,15px); }
.cycle-order-total { flex-wrap: wrap; }
.cycle-order-total b { margin-left: auto; }
html:lang(ja) :is(.cycle-live,.cycle-orders) { --stock-font-product: "Inter Variable", Inter, "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif; letter-spacing: 0; line-break: strict; }
html:lang(ko) :is(.cycle-live,.cycle-orders) { --stock-font-product: "Inter Variable", Inter, "Noto Sans KR", "Malgun Gothic", sans-serif; letter-spacing: 0; word-break: keep-all; overflow-wrap: anywhere; }
html:is([lang="ja"],[lang="ko"]) :is(.cycle-live-tools button,.cycle-order-filters button,.cycle-assets-link,.cycle-record-name small,.cycle-record-detail dl) { font-size: 12px; line-height: 1.6; }
html:is([lang="ja"],[lang="ko"]) .cycle-live .stock-ai-button { font-size: 14px; font-weight: 700; }
html:is([lang="ja"],[lang="ko"]) .cycle-live .stock-ai-intro { line-height: 1.8; text-wrap: pretty; }
html:is([lang="ja"],[lang="ko"]) .cycle-plan-cap { font-size: 11px; }
html:is([lang="ja"],[lang="ko"]) .cycle-record-name b { font-size: 13px; flex-wrap: wrap; gap: 4px; }
html:lang(zh-Hant) :is(.cycle-live,.cycle-orders) { --stock-font-product: "Inter Variable", Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK TC", sans-serif; letter-spacing: 0; }
html:lang(zh-Hant) :is(.cycle-live-tools button,.cycle-order-filters button,.cycle-assets-link) { font-size: 12px; font-weight: 650; }
html:lang(zh-Hant) .cycle-live .stock-ai-button { font-size: 15px; font-weight: 700; letter-spacing: .04em; }
html:lang(zh-Hant) .cycle-record-name b { font-size: 14px; font-weight: 650; }
html:lang(zh-Hant) :is(.cycle-record-name small,.cycle-record-detail dl,.cycle-live .stock-ai-balances dt,.cycle-live .stock-ai-plan-metrics span) { font-size: 12px; line-height: 1.65; font-weight: 500; }
html:lang(zh-Hant) .cycle-records-head { align-items: baseline; }
html:lang(zh-Hant) .cycle-records-head h2 { font-weight: 700; }
html:lang(zh-Hant) .cycle-record-detail dl > div { align-items: baseline; }
html:lang(zh-Hant) :is(.cycle-outcome p,.cycle-live .stock-ai-consent,.cycle-live .stock-ai-intro) { font-size: 12px; line-height: 1.8; text-wrap: pretty; }
html:lang(zh-Hant) :is(.cycle-live .stock-ai-review,.cycle-live .stock-ai-amount-label) { font-size: 13px; }
html:lang(zh-Hant) :is(.cycle-renewal-options button,.cycle-quota-values span,.cycle-renewal h3) { font-size: 13px; font-weight: 650; }
html:lang(zh-Hant) .stock-ai .cycle-renewal p { font-size: 12px; }
@media (max-width: 359px) {
  .cycle-live .stock-ai-head h1 { font-size: 18px; }
  .cycle-live-tools { gap: 4px; }
  .cycle-record > summary { gap: 7px; }
  .cycle-record-name b { flex-wrap: wrap; gap: 3px; font-size: 12px; }
  .cycle-record-net { font-size: 13px; }
  .cycle-record-detail dl > div { flex-wrap: wrap; gap: 2px; }
  .cycle-record-detail dd { margin-left: auto; }
}


.stock-ai .cycle-terms { color:#a9b6aa; font-size:11px; line-height:1.75; margin:12px 0; }
.cycle-live .cycle-assets-link[type=button] { background:none; border:0; padding:12px 0; min-height:44px; cursor:pointer; }
.cycle-live [data-cycle-message]:empty { display:none; }
.cycle-live button:disabled { opacity:.55; cursor:default; }
.cycle-live:has(.stock-ai-overview) { padding-bottom:calc(96px + env(safe-area-inset-bottom, 0px)); }
.cycle-live .cycle-record-detail p { scroll-margin-bottom:100px; }
