/* generated by scripts/sync_prototype.py from the prototype: portal phone: open.css. Do not edit. */
/* ============================================================
   KCM Trade — phone: Open live account, Open demo account, Ready.
   Appended after the desktop sheet and shell.css by build.py; every
   rule sits inside the one media query, so desktop never sees it.

   All three screens are docked (the shell drops the tab bar and paints
   the one action of the step into #dock). The plans stack as folded
   cards that open in place; the demo form comes before the info; the
   ready screen ends in Open in MT5 · Done at the thumb, Done taking
   the gold only once a password has been copied.
   ============================================================ */
@media (max-width:760px){
  /* ---------- flow head ---------- */
  .flow-sub{font-size:13.4px;color:var(--ink-3);margin:0 0 12px;line-height:1.5}
  body[data-page="Open live account"] ol.dsteps,
  body[data-page="Open demo account"] ol.dsteps{margin-bottom:12px}
  /* the ready screen has no back and one thing to look at, "Your account
     is ready": the flow title above it steps down to a kicker */
  .flow-top.is-ready > h1{font-size:12.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;
    color:var(--ink-4);line-height:1.2}

  /* ---------- live: the plan cards ---------- */
  .plans{display:flex;flex-direction:column;gap:10px}
  .plan{display:flex;flex-direction:column;grid-template-rows:none;grid-row:auto;padding:12px 16px 11px;
    border-radius:18px;border:1.5px solid var(--line-2);box-shadow:var(--lift-card);
    transition:border-color var(--t-quick) var(--ease)}
  .plan:hover{transform:none;border-color:var(--line-2);box-shadow:var(--lift-card)}
  /* chosen = the gold ring; the frame goes ink, the tile ink with a white
     glyph, so gold stays the ring and Continue */
  .plan.is-on,.plan.is-on:hover{border-color:var(--ink);box-shadow:var(--lift-card)}
  .plan.is-on .plan-i{background:var(--ink);color:#fff}
:where(html[data-appearance="dark"]) .plan.is-on .plan-i{background:var(--ink-fill)}
  .plan:active{transform:scale(.985)}
  .plan-head{align-items:center;gap:12px}
  .plan-i{width:40px;height:40px}
  /* the name alone must fit one line beside the ring at 375 (214px):
     15px, the tag a step smaller; the kicker never wraps the head */
  .plan-name b{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .plan-name b em{font-size:13px}
  .plan-kick{font-size:10.8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  /* the ring: a 44px hit box round a 24px radio that fills gold; the
     2px it stands above the 40px icon is taken back with margins, so the
     head measures 40 and the folded card stays under 110 */
  .plan-cta{margin:-2px -8px -2px auto;width:44px;height:44px;padding:0;border-radius:50%;background:none;color:var(--ink);
    overflow:visible;align-self:center;flex:none;transition:none}
  .plan-cta:hover{color:var(--ink)}
  .plan-cta:active{background:#EEF1F7}
:where(html[data-appearance="dark"]) .plan-cta:active{background:rgba(255,255,255,0.1)}
  .plan-cta:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
  .plan-cta-t{width:24px;height:24px;border-radius:50%;border:2px solid #C3CCDD;display:grid;place-items:center;gap:0;
    transition:border-color var(--t-quick) var(--ease),background var(--t-base) var(--ease)}
:where(html[data-appearance="dark"]) .plan-cta-t{border:2px solid rgba(255,255,255,0.09)}
  .plan-cta-t svg{width:14px;height:14px;stroke-width:3;color:var(--gold-ink);opacity:0;
    transition:opacity var(--t-quick) var(--ease)}
  .plan.is-on .plan-cta{color:var(--ink)}
  .plan.is-on .plan-cta-t{background:var(--gold);border-color:var(--gold)}
  .plan.is-on .plan-cta-t svg{opacity:1}
  /* one line: the phone copy (psub) is cut to fit 312px at 375, the
     ellipsis is only the safety net */
  .plan-sub{padding:4px 0 0;font-size:13px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .plan-facts{display:flex;gap:6px;flex-wrap:wrap;padding-top:4px;font-size:12.5px;color:var(--ink-3);line-height:1.2}
  .plan-facts > span + span::before{content:'\00b7';margin-right:6px;color:var(--ink-4)}
  /* the rows, only on the open card */
  .plan-row{min-height:40px;padding:6px 0;font-size:13.6px}
  .plan-facts + .plan-row{margin-top:10px;padding-top:10px}
  .plan-row.is-lev{flex-direction:column;align-items:stretch;gap:8px}
  .plan-row.is-lev > span:first-child{flex:none}
  .lev-chips{display:flex;gap:6px}
  .lev-chips .fchip{flex:1 1 0;min-width:0;min-height:40px;padding:0;display:grid;place-items:center;
    font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:13px;background:#fff;border:1px solid var(--line-2);color:var(--ink-2)}
:where(html[data-appearance="dark"]) .lev-chips .fchip{background:#10152A}
  .lev-chips .fchip:hover{background:#fff;color:var(--ink-2)}
:where(html[data-appearance="dark"]) .lev-chips .fchip:hover{background:rgba(255,255,255,0.05)}
  .lev-chips .fchip:active{background:#EEF1F7}
:where(html[data-appearance="dark"]) .lev-chips .fchip:active{background:rgba(255,255,255,0.1)}
  .lev-chips .fchip.is-on{background:var(--ink);border-color:var(--ink);color:#fff}
:where(html[data-appearance="dark"]) .lev-chips .fchip.is-on{background:var(--ink-fill)}
  /* the six detail rows fold behind one 44px Details row, so the open
     card stays near 240 and both folded cards keep their place above the
     dock at 375; the chevron turns, the rows arrive through the card's
     own view transition (the card is named in open.js) */
  .plan-more{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:44px;
    margin:2px 0 -7px;padding:0;border-top:1px solid var(--line);border-radius:0;
    font-size:13.6px;font-weight:500;color:var(--ink-2);text-align:left;transition:color var(--t-quick) var(--ease)}
  .plan-more svg{width:16px;height:16px;flex:none;color:var(--ink-4);transition:transform var(--t-base) var(--ease)}
  .plan-more[aria-expanded="true"]{color:var(--ink)}
  .plan-more[aria-expanded="true"] svg{transform:rotate(180deg)}
  .plan-more:active{color:var(--ink)}
  .plan-more:focus-visible{outline:2px solid var(--ink);outline-offset:-2px;border-radius:8px}
  .plan-rows{display:flex;flex-direction:column;margin-top:7px}
  .plan-rows[hidden]{display:none}
  .plan-rows > .plan-row:first-child{border-top:0;padding-top:2px}
  .plan-note{font-size:12.4px;padding-top:8px}

  /* ---------- demo: the form first, the account second ---------- */
  .demo-form,.demo-info{padding:16px;border:0}
  .demo-form{background:var(--surface);margin-bottom:12px}
  .demo-form h2{font-size:16px;margin-bottom:12px}
  .demo-form label{margin-bottom:12px}
  .demo-form label:last-child{margin-bottom:0}
  .demo-form label > span{font-size:12.5px}
  /* 16px stops iOS zooming into the field; the native picker is the phone's own sheet */
  .demo-form select{min-height:48px;padding:0 40px 0 14px;font-size:16px;appearance:none;-webkit-appearance:none;border-radius:12px;
    background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5l3.5 3.5 3.5-3.5' fill='none' stroke='%236B778F' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center/12px}
:where(html[data-appearance="dark"]) .demo-form select{background:#10152A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5l3.5 3.5 3.5-3.5' fill='none' stroke='%236B778F' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center/12px}
  .demo-form select:focus-visible{border-color:var(--ink);outline:0}
  /* where the page styles the picker itself (style.css, base-select) the
     field keeps its own chevron and drops the painted one */
  @supports (appearance:base-select){
    .demo-form select{appearance:base-select;background-image:none;padding-right:14px}
  }
  /* every picker's rows reach the 44px floor under a thumb, in the field's size */
  select option{min-height:44px;padding:0 14px 0 10px;font-size:15px}
  .demo-info .plan-i{width:40px;height:40px}
  .demo-info .plan-sub{padding:10px 0 8px;font-size:13px;white-space:normal;overflow:visible;text-overflow:clip}
  .demo-info .kv > div{min-height:44px;padding:8px 0;font-size:13.6px}

  /* ---------- ready ----------
     The shown-once warning must sit above the dock top (innerHeight - 76)
     on the tightest case, the demo (six account rows) at 375x812: kicker
     row 32, check 56, 44px account rows (the shared kv row height), and
     the password rows are exactly the 44px copy button. The spacing
     between the blocks is held to 8s so the stack fits with room to spare. */
  .flow-top.is-ready + ol.dsteps{margin-bottom:8px}   /* (0,2,1): only the ready steps sit tighter */
  .flow-top.is-ready{min-height:32px}
  .ready-top{padding:0 0 4px}
  /* the pop waits for its section's cascade slot (--i:2 = 90ms), so it
     lands after the block is up instead of sliding and popping at once */
  .ready-i{width:56px;height:56px;margin:0 auto 8px}
  .ready .ready-i{animation-delay:90ms}   /* scoped: the withdraw pop-ups keep their own check */
  .ready-top h2{font-size:24px}
  .ready-top p{font-size:13.6px;margin-top:4px}
  .ready .sub-h{margin-bottom:8px}
  .ready .ready-sub{margin-top:10px}
  /* (0,2,1): out-ranks the desktop .demo-info / shell .kv rows; 44 is the shared row height */
  .ready .kv > div{min-height:44px;padding:10px 0;font-size:13.8px}
  .kv dd{flex-wrap:wrap;justify-content:flex-end}
  .secret{padding:4px 16px 12px}
  .secret .kv > div{padding:0}              /* 44: the copy button alone sets the row */
  /* the investor label is two short lines ("Investor password" / "Read-only"),
     so the value and its copy button always stay on one line at 375 */
  .secret dt .dt-sub{display:block;font-size:12px;font-weight:400;color:#7C8AA5;line-height:1.3;letter-spacing:0}
:where(html[data-appearance="dark"]) .secret dt .dt-sub{color:#84A7EB}
  .secret dd .mono{font-size:15px}
  .secret-warn{margin-top:2px;padding-top:8px}
  /* a 44px hit box drawing a 40px tile: the two tiles sit 8px apart with
     the row hairline running between them, and the rows stay 44 */
  .copy{width:44px;height:44px;padding:2px;border-radius:12px;margin-right:-8px;background-clip:content-box}
  .copy:hover,.copy:active{background:rgba(255,255,255,.16);color:#fff;background-clip:content-box}
  .copy.is-done{background-clip:content-box}

  /* ---------- the docks ----------
     Live and demo: disc · text · Continue (shell sizes). Ready: two buttons
     share the row, the gold one the wider — MT5 leads until a copy has
     fired, then Done. The first-child selector keeps the ready sizing off
     the Continue docks (they begin with the disc). */
  .dock-t > span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}   /* one line, so the dock stays 76 */
  .dock > .btn:first-child,.dock > .btn:first-child + .btn{flex:1 1 0;min-height:48px;min-width:0}
  .dock > .btn-gold:first-child,.dock > .btn:first-child + .btn-gold{flex:1.4 1 0}
  /* a Continue with nothing chosen is a state, not a faded action: sunk
     grey, no sheen; the gold appears when it goes live */
  body[data-page="Open live account"] .dock .btn-gold[disabled]{opacity:1;background:var(--surface-sunk);color:var(--ink-4);box-shadow:none}
  /* the dock's content crossfades (open.js dockSwap): out in 130 with
     the page, in over 130 once the new html is written. The base rule
     keeps the shell's disc and the .btn transitions it out-ranks. */
  body[data-page="Open live account"] .dock > *,
  body[data-page="Open demo account"] .dock > *{
    transition:opacity var(--t-quick) var(--ease-out),transform .16s var(--ease),box-shadow .16s var(--ease),
      background .16s var(--ease),border-color .16s var(--ease),color var(--t-base) var(--ease)}
  body[data-page="Open live account"] .dock.is-swap > *,
  body[data-page="Open demo account"] .dock.is-swap > *{opacity:0;transition:opacity var(--t-quick) var(--ease-in)}

  /* ---------- the question over the glass ----------
     Done with nothing copied: a card in #glass, the house pop-up, with
     Copy both leading and Done anyway beneath. The close is 44. */
  .open-ask{padding:24px 20px 20px}
  .open-ask .modal-x{width:44px;height:44px;top:6px;right:6px}
  .open-ask-i{width:56px;height:56px;border-radius:50%;background:var(--gold-soft);color:var(--gold-deep);display:grid;
    place-items:center;margin:0 auto 14px;animation:circlepop var(--t-slow) var(--ease-out) both 90ms}
  .open-ask-i svg{width:24px;height:24px;stroke-width:2.4}
  .open-ask h2{font-size:21px}
  .open-ask p{font-size:13.8px}
  .open-ask .btn{min-height:48px;margin-top:20px}
  .open-ask .btn + .btn{margin-top:10px}

  /* ---------- reduced motion ---------- */
  @media (prefers-reduced-motion:reduce){
    .plan,.plan-cta-t,.plan-cta-t svg,.plan-more,.plan-more svg{transition:none}
    .plan:active{transform:none}
    .plan.is-on .plan-cta svg path{animation:none;stroke-dashoffset:0}
    .ready-i,.open-ask-i{animation:none}
    body[data-page="Open live account"] .dock > *,body[data-page="Open demo account"] .dock > *,
    body[data-page="Open live account"] .dock.is-swap > *,body[data-page="Open demo account"] .dock.is-swap > *{transition:none;opacity:1}
  }
}
