.k201-trade-shade{position:fixed!important;inset:0!important;z-index:2147483500!important;background:#061c35b0;display:grid;place-items:center;padding:12px;font:14px system-ui,Arial,sans-serif}
.k201-trade-modal{background:#fff;color:#17354f;border-radius:17px;width:min(510px,100%);max-height:95dvh;overflow-y:auto;box-shadow:0 25px 75px #001f3a78}
.k201-trade-head{padding:16px 18px;display:flex;align-items:center;justify-content:space-between;background:#103b63;color:white;font-size:15px;gap:6px}
.k201-trade-head button{background:#ffffff26;border:0;color:white;border-radius:9px;padding:7px 13px;cursor:pointer}
.k201-trade-content{padding:17px}.k201-trade-date{font-weight:750;margin-bottom:9px}.k201-trade-hint{line-height:1.5;color:#506b82;margin:8px 0 15px;font-size:12px}
.k201-trade-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.k201-trade-field{display:flex;flex-direction:column;gap:6px;font-weight:720;font-size:13px}
.k201-trade-field input{width:100%;box-sizing:border-box;border:1px solid #c8d5e5;border-radius:9px;padding:11px;font:inherit;font-size:16px;color:#123f65;background:#fff}
.k201-trade-field input:focus{outline:2px solid #8bb8ed;border-color:#538fca}
.k201-trade-total{background:#e9f3fb;border-radius:10px;padding:12px;font-weight:800;font-size:13px;margin:14px 0}.k201-trade-warning{font-size:12px;color:#a56800;margin:8px 0}
.k201-trade-controls{display:flex;gap:9px}.k201-trade-controls button{flex:1;padding:12px 7px;border-radius:9px;font-weight:700;cursor:pointer}
.k201-trade-secondary{background:#fff;color:#235579;border:1px solid #cbdbea}.k201-trade-primary{background:#2168aa;color:white;border:1px solid #2168aa}.k201-trade-primary:disabled{opacity:.55;cursor:wait}
.k201-trade-status{padding:11px 17px;background:#eaf2f9;color:#2d638c;font-size:12px;margin:0}.k201-trade-error{color:#a61f2e!important}
@media(max-width:390px){.k201-trade-grid{gap:8px}.k201-trade-field{font-size:11.5px}.k201-trade-head{font-size:13px}}

/* v202: large Cow input spans both columns; donuts and candy below. */
.k201-trade-grid>.k201-trade-field:first-child{grid-column:1/-1}
.k201-trade-grid>.k201-trade-field:first-child input{min-height:50px}

/* v203: native mobile date picker with full-width accessible tap target */
.k201-trade-date{display:flex;flex-direction:column;gap:7px;margin:0 0 4px;font-weight:750;color:#17354f}
.k201-trade-date input[type=date]{display:block;box-sizing:border-box;width:100%;min-height:48px;padding:11px 13px;border:1px solid #b9cfe1;border-radius:10px;background:#fff;color:#123f68;font:700 16px system-ui,-apple-system,Arial,sans-serif;cursor:pointer}
.k201-trade-date input[type=date]:focus{outline:2px solid #8bb8ed;outline-offset:1px}
.k201-trade-date-note{font-size:12px;line-height:1.45;color:#60768b;margin:4px 0 13px}

/* v204: stable mobile date control, avoids iOS full-width input overflow. */
.k201-trade-date,.k201-trade-content,.k201-trade-modal{min-width:0;box-sizing:border-box}
.k204-date-row{display:grid;grid-template-columns:42px minmax(0,1fr) 42px;gap:8px;align-items:stretch;width:100%;max-width:100%;min-width:0}
.k204-date-step{min-width:0;min-height:50px;border:1px solid #c5d9eb;background:#f4f8fc;color:#245981;border-radius:10px;font-size:25px;line-height:1;cursor:pointer}
.k204-date-step:disabled{opacity:.32;cursor:default}
.k204-date-shell{position:relative;display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0;width:100%;min-height:50px;box-sizing:border-box;padding:11px 12px;background:#fff;border:1px solid #b9cfe1;border-radius:10px;overflow:hidden}
.k204-date-display{font-size:15px;font-weight:730;color:#123f68;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.k204-date-icon{font-size:16px;flex:none}
.k201-trade-date .k204-date-native[type=date]{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-width:0!important;max-width:100%!important;min-height:0!important;box-sizing:border-box!important;opacity:0!important;padding:0!important;margin:0!important;border:0!important;cursor:pointer;z-index:2}
.k204-date-shell:focus-within{outline:2px solid #8bb8ed;outline-offset:2px}
@media(max-width:390px){.k204-date-row{grid-template-columns:38px minmax(0,1fr) 38px;gap:6px}.k204-date-display{font-size:14px}}
