/* Keep date controls beside the order table without changing trade logic. */
body[data-view="orders"] #content { overflow-anchor:none; }
body[data-view="orders"] main { padding-top:18px; }
body[data-view="orders"] .demo-banner { margin-bottom:14px; padding-block:10px; }
body[data-view="orders"] .page-title { margin-block:14px; }
body[data-view="orders"] .page-title h1 { font-size:28px; margin-block:0 4px; }
body[data-view="orders"] .page-title p { margin-block:0; }
body[data-view="orders"] .account-toolbar { padding-block:9px; margin-bottom:12px; }
body[data-view="orders"] #content .order-hero { padding-block:12px; margin-bottom:10px; gap:18px; }
body[data-view="orders"] .hero-main { display:flex; flex-wrap:wrap; align-items:center; gap:5px 12px; }
body[data-view="orders"] .order-hero h2 { font-size:16px; margin:0; }
body[data-view="orders"] .hero-date { font-size:28px; line-height:1.15; }
body[data-view="orders"] .hero-date span { margin-left:8px; }
body[data-view="orders"] .order-hero p { flex-basis:100%; margin:0; line-height:1.45; }
body[data-view="orders"] .hero-tag { padding:3px 7px; }
body[data-view="orders"] .hero-meta { gap:5px; padding-left:16px; }
body[data-view="orders"] .hero-meta div { gap:0; }
body[data-view="orders"] .kpi-grid { gap:10px; margin:0 0 12px; }
body[data-view="orders"] .kpi { min-height:0; padding:11px 14px; }
body[data-view="orders"] .kpi-title { margin-bottom:5px; }
body[data-view="orders"] .kpi-value { font-size:23px; line-height:1.2; }
body[data-view="orders"] .kpi-note { margin-top:4px; line-height:1.35; }
body[data-view="orders"] #content .history-toolbar { position:sticky; top:8px; z-index:20; gap:10px; padding-block:9px; margin-bottom:10px; box-shadow:0 4px 16px #0004; }
body[data-view="orders"] .history-title small { display:none; }
body[data-view="orders"] #content .order-action-card .card-heading { padding-block:12px; gap:8px; }
body[data-view="orders"] .order-action-card .card-heading p { margin-block:3px 0; line-height:1.4; }
body[data-view="orders"] #content .order-action-card .quote-strip { padding-block:9px; gap:8px 18px; }
body[data-view="orders"] #content .order-action-card .card-body { padding-block:8px; }
body[data-view="orders"] .order-action-card .card-body .note { margin-block:0; line-height:1.45; }
body[data-view="orders"] .order-action-card th,
body[data-view="orders"] .order-action-card td { padding-block:9px; }
body[data-view="orders"] #content .order-disclaimer { margin-block:9px; line-height:1.45; }
@media (min-width:820px) {
 body[data-view="orders"]:not(.mobile-ui) #content .order-hero { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; }
 body[data-view="orders"]:not(.mobile-ui) .kpi-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
 body[data-view="orders"]:not(.mobile-ui) .hero-meta { display:flex; flex-wrap:wrap; border-top:0; border-left:1px solid #79744455; margin-top:0; padding-block:0; min-width:0; gap:8px 18px; }
 body[data-view="orders"]:not(.mobile-ui) .hero-meta div:first-child { display:none; }
 body[data-view="orders"]:not(.mobile-ui) .order-action-card .card-heading>div:first-child { display:flex; align-items:center; flex-wrap:wrap; gap:5px 10px; }
 body[data-view="orders"]:not(.mobile-ui) .order-action-card .card-heading p { margin:0; }
}
body[data-view="orders"].mobile-ui #content .order-hero { padding-block:12px; }
body[data-view="orders"].mobile-ui .hero-date { font-size:26px; }
body[data-view="orders"].mobile-ui .hero-meta { margin-top:8px; padding-top:7px; gap:5px 12px; }
body[data-view="orders"].mobile-ui .kpi-value { font-size:22px; }
body[data-view="orders"].mobile-ui .history-toolbar { grid-template-columns:1fr; gap:7px; }
body[data-view="orders"].mobile-ui .history-title { display:none; }
body[data-view="orders"].mobile-ui .v4-mobile-orders { gap:6px; padding-block:8px; }
/* Phone order desk: retain legible prices and 44px date controls. */
.latest-phone { display:none; }
body[data-view="orders"].mobile-ui .latest-wide { display:none; }
body[data-view="orders"].mobile-ui .latest-phone { display:inline; }
body[data-view="orders"].mobile-ui main { padding:12px 12px 20px; }
body[data-view="orders"].mobile-ui .topbar { padding-block:9px; min-height:0; gap:6px; }
body[data-view="orders"].mobile-ui .mobile-nav { padding-block:5px; }
body[data-view="orders"].mobile-ui .mobile-nav button { min-height:44px; padding:8px 10px; }
body[data-view="orders"].mobile-ui .demo-banner { margin-bottom:10px; padding:7px 10px; gap:6px; font-size:13px; line-height:1.45; }
body[data-view="orders"].mobile-ui .page-title { margin-block:10px; gap:8px; flex-wrap:nowrap; align-items:center; }
body[data-view="orders"].mobile-ui .page-title .eyebrow,
body[data-view="orders"].mobile-ui .page-title p { display:none; }
body[data-view="orders"].mobile-ui .page-title h1 { font-size:24px; margin:0; }
body[data-view="orders"].mobile-ui .page-title>.button { padding:8px 12px; min-height:44px; }
body[data-view="orders"].mobile-ui .account-toolbar { display:grid; grid-template-columns:minmax(0,1fr) auto; padding:9px 12px; gap:6px 8px; margin-bottom:10px; }
body[data-view="orders"].mobile-ui .account-toolbar>div:first-child { min-width:0; }
body[data-view="orders"].mobile-ui .account-toolbar label { display:none; }
body[data-view="orders"].mobile-ui .account-toolbar select { width:100%; min-width:0; }
body[data-view="orders"].mobile-ui .account-context { grid-row:2; grid-column:1 / -1; font-size:13px; line-height:1.4; }
body[data-view="orders"].mobile-ui #content .order-hero { padding:10px 12px; margin-bottom:8px; }
body[data-view="orders"].mobile-ui .hero-main { gap:4px 8px; }
body[data-view="orders"].mobile-ui .hero-tag { font-size:12px; }
body[data-view="orders"].mobile-ui .hero-date { font-size:24px; }
body[data-view="orders"].mobile-ui .hero-date span { display:inline; margin:0 0 0 6px; font-size:13px; }
body[data-view="orders"].mobile-ui .order-hero p { font-size:13px; line-height:1.4; }
body[data-view="orders"].mobile-ui .hero-meta { grid-template-columns:repeat(2,minmax(0,1fr)); font-size:13px; padding-left:0; margin-top:6px; padding-top:6px; gap:4px 8px; }
body[data-view="orders"].mobile-ui .hero-meta span,
body[data-view="orders"].mobile-ui .hero-meta strong { font-size:13px; line-height:1.4; }
body[data-view="orders"].mobile-ui .kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin-bottom:8px; }
body[data-view="orders"].mobile-ui .kpi { min-height:0; padding:9px 10px; }
body[data-view="orders"].mobile-ui .kpi-title { font-size:13px; margin-bottom:3px; }
body[data-view="orders"].mobile-ui .kpi-value { font-size:clamp(18px,5vw,22px); line-height:1.2; overflow-wrap:anywhere; }
body[data-view="orders"].mobile-ui .kpi-note { margin-top:3px; font-size:12px; line-height:1.35; }
body[data-view="orders"].mobile-ui #content .history-toolbar { padding:6px 8px; gap:5px; top:59px; margin-bottom:8px; }
body[data-view="orders"].mobile-ui .history-controls { gap:4px; }
body[data-view="orders"].mobile-ui .history-controls input { width:110px; min-width:0; padding-inline:5px; }
body[data-view="orders"].mobile-ui .history-controls .button { min-height:44px; padding:8px; white-space:nowrap; }
body[data-view="orders"].mobile-ui .history-toolbar>select { min-height:36px; padding-block:5px; font-size:13px; }
body[data-view="orders"].mobile-ui #content .order-action-card .card-heading { display:flex; padding:10px 12px; gap:7px; }
body[data-view="orders"].mobile-ui .order-action-card .card-heading h2 { font-size:16px; }
body[data-view="orders"].mobile-ui .order-action-card .card-heading .badge { margin-top:3px; font-size:12px; }
body[data-view="orders"].mobile-ui .order-action-card .card-heading p { font-size:13px; }
body[data-view="orders"].mobile-ui .order-action-card .button-row { margin:0; gap:5px; }
body[data-view="orders"].mobile-ui .order-action-card .button-row .button { min-height:36px; padding:6px 8px; font-size:13px; }
body[data-view="orders"].mobile-ui #content .order-action-card .quote-strip { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding:8px 12px; gap:5px 8px; }
body[data-view="orders"].mobile-ui .order-action-card .quote-strip div { display:flex; flex-wrap:wrap; gap:2px 6px; font-size:13px; }
body[data-view="orders"].mobile-ui .order-action-card .quote-strip b { font-size:14px; margin-left:0; }
body[data-view="orders"].mobile-ui #content .order-action-card .card-body { padding:7px 12px; }
body[data-view="orders"].mobile-ui .order-action-card .card-body .note { font-size:13px; }
body[data-view="orders"].mobile-ui #content .v4-mobile-orders { padding:0 12px; gap:0; }
body[data-view="orders"].mobile-ui .v4-order-tile { min-height:52px; padding:7px 0; gap:10px; }
body[data-view="orders"].mobile-ui .v4-order-tile .channel { flex-shrink:0; }
body[data-view="orders"].mobile-ui .v4-order-tile>div { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:flex-end; gap:3px 10px; }
body[data-view="orders"].mobile-ui .v4-order-tile b { font-size:21px; line-height:1.2; }
body[data-view="orders"].mobile-ui .v4-order-tile small { margin-top:0; font-size:13px; line-height:1.4; }
body[data-view="orders"].mobile-ui #content .order-disclaimer { margin:8px 12px; font-size:12px; line-height:1.5; }
@media print { body[data-view="orders"] .history-toolbar { display:none; } }

/* Keep phone branding and controls on one row. */
.mobile-ui .topbar{flex-wrap:nowrap;align-items:center;gap:8px;padding:9px 12px;min-height:52px;}
.mobile-ui .topbar .header-identity{display:none;}
.mobile-ui .topbar .mobile-brand{display:flex;align-items:center;flex:0 0 auto;gap:5px;font-size:22px;letter-spacing:.02em;white-space:nowrap;}
.mobile-ui .topbar .mobile-brand .csr-coin{width:34px;height:34px;flex:0 0 34px;}
.mobile-ui .topbar .top-actions{width:auto;min-width:0;margin-left:auto;justify-content:flex-end;flex-wrap:nowrap;gap:6px;white-space:nowrap;}
.mobile-ui .topbar .top-actions select{width:96px;min-height:34px;padding:4px 5px;font-size:12px;}
.mobile-ui .topbar .top-actions .text-button{font-size:13px;min-height:34px;white-space:nowrap;}
.mobile-ui .topbar .top-actions .motion-toggle{padding:4px 7px;}
@media(max-width:360px){.mobile-ui .topbar{padding-inline:8px;gap:5px;}.mobile-ui .topbar .mobile-brand{font-size:18px;gap:3px;}.mobile-ui .topbar .top-actions{gap:4px;}.mobile-ui .topbar .top-actions select{width:92px;}}

@media(max-width:360px){.mobile-ui .topbar .mobile-brand .csr-coin{width:30px;height:30px;flex-basis:30px;}}

/* Keep compact desktop hero columns from squeezing the date and Korean title. */
.workspace{container-type:inline-size;}
body[data-view="orders"] .hero-main{min-width:0;}
body[data-view="orders"] .order-hero h2{word-break:keep-all;}
body[data-view="orders"] .hero-date{white-space:nowrap;}
@media(min-width:820px){
 body[data-view="orders"]:not(.mobile-ui) #content .order-hero{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);}
 body[data-view="orders"]:not(.mobile-ui) .hero-meta{width:auto;max-width:none;}
}
@container(max-width:900px){
 body[data-view="orders"]:not(.mobile-ui) #content .order-hero{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;}
 body[data-view="orders"]:not(.mobile-ui) .hero-meta{width:100%;max-width:none;border-left:0;border-top:1px solid #79744455;padding:8px 0 0;}
}
@media(min-width:700px){.mobile-ui .shell{max-width:960px;}}

.sidebar .nav-caption{display:none!important;}

/* Approved option 03: translucent panels, fully opaque text and controls. */
@media screen{
 #shell .topbar,#shell .mobile-nav,#shell .sidebar,#shell .card,#shell .order-hero,#shell .kpi,#shell .history-toolbar,#shell .account-toolbar{
  background:rgba(24,23,20,.4)!important;backdrop-filter:none!important;
 }
 #shell .card-heading,#shell .card-body,#shell .quote-strip,#shell .table-foot,#shell .chart-common-toolbar,#shell .chart-window-header,#shell .chart-navigator{
  background:transparent!important;
 }
}
