/* MG-34 guest ticket only. No market/layout/global theme overrides. */
.mygeste-app .terminal-ticket .guest-order34{position:relative;flex:1 1 auto;min-width:0;min-height:0;max-height:none;overflow:visible;color:var(--app-ink);background:var(--panel);font-size:.75rem}
.guest-order34 .guest-order34-preview{opacity:.3;pointer-events:none;user-select:none;padding:14px 12px}
.guest-order34 .guest-order34-fields{display:flex;flex-direction:column;gap:12px;min-width:0;margin:0;padding:0;border:0}
.guest-order34 .guest-order34-side,.guest-order34 .guest-order34-types{display:flex;min-width:0}
.guest-order34 .guest-order34-fields button,.guest-order34 .guest-order34-fields input{font:inherit;color:var(--app-ink);background:var(--panel);border:1px solid var(--border);border-radius:3px;min-height:34px;padding:7px 8px;min-width:0;opacity:1;-webkit-text-fill-color:currentColor}
.guest-order34 .guest-order34-fields button{cursor:default}
.guest-order34 .guest-order34-side button,.guest-order34 .guest-order34-types button{flex:1 1 0;width:0}
.guest-order34 .guest-order34-side .is-buy,.guest-order34 .guest-order34-estimate{background:#3155D9!important;color:#fff!important;border-color:#3155D9!important}
.guest-order34 .guest-order34-types button{min-height:29px;font-size:.68rem;color:var(--app-muted)}
.guest-order34 .guest-order34-types .is-limit{color:var(--app-ink);background:var(--panel-subtle)}
.guest-order34 .guest-order34-fields label{display:flex;flex-direction:column;gap:7px;margin:0}
.guest-order34 .guest-order34-fields input{display:block;width:100%}
.guest-order34 .guest-order34-size,.guest-order34 .guest-order34-total{display:flex;justify-content:space-between;gap:8px;margin:0}
.guest-order34 .guest-order34-size span{font-size:.68rem;color:var(--app-muted)}
.guest-order34 .guest-order34-limit,.guest-order34 .guest-order34-note{margin:0;color:var(--app-muted);font-size:.64rem;line-height:1.45}
.guest-order34 .guest-order34-gate{position:absolute;top:108px;left:12px;right:12px;padding:16px 12px 12px;background:var(--panel);border:1px solid color-mix(in srgb,#3155D9 42%,var(--border));border-radius:6px;box-shadow:0 6px 20px #10182b1a;overflow-wrap:anywhere}
.guest-order34 .guest-order34-gate h3{display:flex;align-items:center;gap:8px;margin:0 0 12px;font-size:.88rem;line-height:1.4;color:var(--app-ink)}
.guest-order34 .guest-order34-gate svg{width:22px;height:22px;flex:0 0 22px;color:#3155D9}
.guest-order34 .guest-order34-gate p{margin:0 0 14px;font-size:.71rem;line-height:1.5;color:var(--app-muted)}
.guest-order34 .guest-order34-gate a{display:flex;align-items:center;justify-content:center;min-height:38px;padding:8px 10px;font:600 .76rem/1.35 Inter,sans-serif;text-align:center;border-radius:3px}
.guest-order34 .guest-order34-login{background:#3155D9;color:#fff;text-decoration:none;border:1px solid #3155D9}
.guest-order34 .guest-order34-signup{margin-top:5px;color:#3155D9;text-decoration:underline;text-underline-offset:3px}
.guest-order34 .guest-order34-login:hover{background:#2848c3;color:#fff}
.guest-order34 .guest-order34-signup:hover{text-decoration-thickness:2px}
.guest-order34 .guest-order34-gate a:focus-visible{outline:3px solid var(--app-ink);outline-offset:3px}
:root[data-theme="dark"] .guest-order34 .guest-order34-signup,:root[data-theme="dark"] .guest-order34 .guest-order34-gate svg{color:#A7B9FF}
@media(max-width:520px){.guest-order34 .guest-order34-gate{left:14px;right:14px;padding:18px 14px 12px}.guest-order34 .guest-order34-gate h3{font-size:.95rem}}

/* Compact desktop gate stays in the upper ticket area, above the existing Income row. */
@media(min-width:1100px) and (min-height:600px){
 .guest-order34 .guest-order34-gate{top:80px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px 10px;box-shadow:none}
 .guest-order34 .guest-order34-gate h3{grid-column:1/-1;margin:0;font-size:.82rem;line-height:1.35;gap:6px}
 .guest-order34 .guest-order34-gate svg{width:19px;height:19px;flex-basis:19px}
 .guest-order34 .guest-order34-gate p{grid-column:1/-1;margin:0;font-size:.68rem;line-height:1.4}
 .guest-order34 .guest-order34-gate a{min-height:38px;padding:6px;font-size:.72rem;margin:0}
}

/* Guest refinement: centre each narrow gate in its own bounded container. */
.guest-order34 .guest-order34-gate{top:50%;left:50%;right:auto;transform:translate(-50%,-50%);width:calc(100% - 40px);max-width:320px}
.mygeste-app .terminal-orders .guest-orders34{position:relative;min-height:180px;height:180px;max-height:none;flex:0 0 auto;overflow:visible;isolation:auto}
.guest-orders34 .guest-orders34-gate{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px 12px;max-width:420px;box-shadow:none}
.guest-orders34 .guest-orders34-gate h3{grid-column:1/-1;margin:0;font-size:.82rem;line-height:1.35}
.guest-orders34 .guest-orders34-gate a{margin:0;min-height:34px;padding:6px;font-size:.72rem}
.guest-orders34 .guest-orders34-preview{padding:8px 12px;height:100%}
.guest-orders34 .guest-orders34-preview table{width:100%;border-collapse:collapse;font-size:.6rem;white-space:nowrap;text-align:left}
.guest-orders34 .guest-orders34-preview th,.guest-orders34 .guest-orders34-preview td{padding:4px 6px}
@media(min-width:1100px) and (min-height:600px){
 .mygeste-app .terminal-orders .guest-orders34{min-height:0;height:100%;flex:1 1 auto}
 /* Only guest MG-34: keep the existing 550px market area intact and reserve its height. */
 .mygeste-app .asset-terminal:has(.guest-orders34):has(.terminal-income){height:auto;min-height:0;max-height:none;flex:0 0 auto;grid-template-rows:64px 550px max-content clamp(144px,18dvh,240px)}
 .mygeste-app main.asset-container:has(.guest-orders34),.mygeste-app .asset-page:has(.guest-orders34){min-height:min-content;flex:0 0 auto}
}

/* Full inert order form fills its own ticket body; no cropped/scrolling preview. */
.mygeste-app .terminal-ticket .guest-order34-preview{height:100%}
.mygeste-app .terminal-ticket .guest-order34-fields{min-height:100%;justify-content:space-between}
