/* Scoped reference layout; quotes and configured offers remain separate. */
.customer.pre-market-route main.container{width:100%;max-width:1400px;min-height:0;margin:0 auto;padding:32px 16px;flex:1}
.pre-market-route #app{min-height:100dvh;display:flex;flex-direction:column}
.customer.pre-market-route .gtcr-footer{margin-top:64px}
.pre-market-heading{display:flex;flex-direction:column;gap:16px;margin-bottom:24px}
.customer .pre-market-heading h1{font-size:24px;line-height:32px;font-weight:700;letter-spacing:0;margin:0}
.pre-market-heading p{font-size:14px;line-height:20px;color:var(--muted);margin:4px 0 0}
.pre-market-actions{display:flex;gap:8px;flex-wrap:wrap}
html[data-theme] .customer .pre-market-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;min-height:0;border:1px solid #14b8a6;border-radius:8px;background:transparent;color:#0d9488;font:600 14px/20px Inter,'Noto Sans TC',system-ui,sans-serif;text-decoration:none;white-space:nowrap}
html[data-theme=dark] .customer .pre-market-button{color:#5eead4}
.customer .pre-market-button:hover{background:rgb(20 184 166 / .08)}
.customer .pre-market-button:disabled{opacity:.45;cursor:not-allowed;background:transparent}
.pre-market-window-notice{padding:12px 16px;margin-bottom:16px;border:1px solid #fcd34d;border-radius:8px;background:#fffbeb;color:#92400e;font-size:14px;line-height:20px}
html[data-theme=dark] .pre-market-window-notice{border-color:#854d0e;background:#422006;color:#fde68a}
html[data-theme] .customer .pre-market-buy{padding:6px 12px}
.customer .pre-market-table{display:block;border:1px solid var(--border);border-radius:12px;overflow-x:auto;scrollbar-gutter:auto;background:transparent;box-shadow:none}
.pre-market-table table{width:100%;min-width:640px;border-collapse:collapse}
.customer .pre-market-table th{padding:12px 16px;background:#f8fafc;font-size:12px;line-height:16px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:0;text-align:right;border-bottom:1px solid var(--border)}
html[data-theme=dark] .customer .pre-market-table th{background:rgb(255 255 255 / .05)}
.customer .pre-market-table td{padding:12px 16px;font-size:14px;line-height:20px;text-align:right;white-space:nowrap;border-bottom:1px solid var(--border)}
.pre-market-table th:first-child,.pre-market-table td:first-child{text-align:left!important}
.pre-market-table tbody tr:last-child td{border-bottom:0}
.pre-market-table td strong{font-weight:700}
.pre-market-table tbody tr:hover{background:rgb(20 184 166 / .03)}
.customer .pre-market-table .pre-market-empty{text-align:center!important;padding:32px;color:var(--muted)}
.pre-market-cards{display:none}
.pre-market-card{padding:16px;border:1px solid var(--border);border-radius:12px;background:var(--card)}
.pre-market-card dl{margin:0;display:grid;gap:8px}
.pre-market-card dl>div{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;font-size:14px;line-height:20px}
.pre-market-card dt{font-size:12px;line-height:16px;padding-top:2px;color:var(--muted);flex-shrink:0}
.pre-market-card dd{margin:0;text-align:right;min-width:0;overflow-wrap:anywhere;font-weight:500}
.pre-market-card-action{display:flex;justify-content:flex-end;gap:8px;padding-top:8px;margin-top:8px;border-top:1px solid var(--border)}
.pre-market-quote-note{font-size:12px;line-height:18px;color:var(--muted);margin:12px 0 0}
.customer .modal-backdrop:has(.pre-market-dialog){padding:16px;align-items:center}
.customer .pre-market-dialog{width:512px;height:auto;min-height:0;max-width:100%;max-height:min(85dvh,calc(var(--available-height,100dvh) - 32px));padding:0;border:1px solid var(--border);border-radius:16px;overflow:auto;box-shadow:0 20px 25px -5px #0002}
.customer .pre-market-dialog .modal-header{padding:16px 24px;margin:0;border-bottom:1px solid var(--border);position:sticky;top:0;background:var(--card);z-index:1}
.customer .pre-market-dialog .modal-header h2{font-size:16px;line-height:24px;font-weight:700;margin:0}
.customer .pre-market-dialog .modal-header button{border:0;padding:6px;min-height:30px;min-width:30px}
.pre-market-form-body{padding:20px 24px;display:grid;gap:16px}
.pre-market-purchase .field{margin:0;gap:6px}
.pre-market-purchase .field>span{font-size:12px;line-height:16px;font-weight:500;color:var(--muted)}
.customer .pre-market-purchase input{font:400 14px/20px Inter,system-ui,sans-serif;padding:10px 12px;width:100%;background:var(--bg);border:1px solid var(--border);border-radius:8px}
.pre-market-percent{display:flex;gap:8px}
html[data-theme] .customer .pre-market-percent button{flex:1;padding-block:6px}
.pre-market-total{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:14px;line-height:20px}
.pre-market-total>span:first-child{color:var(--muted)}
.pre-market-total>span:last-child,.pre-market-total output{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;text-align:right;overflow-wrap:anywhere}
.pre-market-deduction{border-top:1px solid var(--border);padding-top:12px}
.pre-market-deduction output{font-weight:700;color:var(--link)}
.pre-market-terms{font-size:12px;line-height:18px;color:var(--muted);margin:0}
.pre-market-form-footer{padding:16px 24px;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:12px}
.customer .pre-market-form-footer button{font-size:14px;line-height:20px;font-weight:600;padding:10px 16px;min-height:42px;border-radius:8px}
.customer .pre-market-cancel{border:0;background:transparent;color:var(--muted)}
.pre-market-purchase>.kyc-gate{margin:16px 24px 0}
.customer .pre-market-records-dialog{width:1100px;max-width:calc(100vw - 32px)}
.pre-market-records-body{padding:20px 24px}
.pre-market-records-body .table-wrap{border:0;border-radius:0}
.pre-market-records-body table{min-width:1040px}
.pre-market-records-body th{font-size:12px;line-height:16px;text-transform:uppercase}
.pre-market-records-body td{font-size:14px;line-height:20px}
.pre-market-records-body .pre-market-button{margin-top:16px}
@media(min-width:640px){.pre-market-heading{flex-direction:row;align-items:flex-end;justify-content:space-between}}
@media(min-width:1024px){.customer.pre-market-route main.container{padding-inline:24px}}
@media(max-width:639px){.customer .pre-market-table{display:none}.pre-market-cards{display:grid;gap:12px}.pre-market-actions{width:100%}html[data-theme] .customer .pre-market-actions .pre-market-button{white-space:normal;text-align:center;min-height:44px}html[data-theme] .customer .pre-market-buy,html[data-theme] .customer .pre-market-percent button{min-height:44px}.pre-market-records-body{padding:20px 16px}.pre-market-total{gap:8px;font-size:13px}.pre-market-form-body{padding:20px}.customer .pre-market-dialog .modal-header,.pre-market-form-footer{padding:16px 20px}}
