/* Scoped compact quote table: no global stock-card or workspace overrides. */
.wlp {display:flex;flex-direction:column;min-width:0;min-height:0;color:#272b33;background:#fff;font:13px/1.45 Inter,"PingFang SC","Microsoft YaHei UI",sans-serif;font-variant-numeric:tabular-nums;}
.wlp button,.wlp-page-tabs button,.wlp-dialog button,.wlp-dialog input,.wlp-dialog select {font:inherit;cursor:pointer;}
.wlp button:focus-visible,.wlp-page-tabs button:focus-visible,.wlp-dialog :is(button,input,select):focus-visible {outline:2px solid #d92d32;outline-offset:-2px;}
.wlp-tabs,.wlp-page-tabs {display:flex;flex-shrink:0;gap:24px;padding:0 12px;border-bottom:1px solid #e5e8ed;}
.wlp-tabs button,.wlp-page-tabs button {border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:#4e5561;padding:9px 2px;font-size:14px;font-weight:600;white-space:nowrap;}
.wlp-tabs button[aria-pressed=true],.wlp-page-tabs button[aria-pressed=true] {color:#d92d32;border-bottom-color:#d92d32;}
.wlp-toolbar {display:flex;align-items:center;gap:8px;padding:5px 8px;border-bottom:1px solid #e5e8ed;flex-shrink:0;min-width:0;}
.wlp-groups {display:flex;flex:1;min-width:0;overflow-x:auto;gap:4px;scrollbar-width:thin;}
.wlp-groups button,.wlp-tools button {height:28px;flex-shrink:0;border:1px solid transparent;border-radius:6px;background:transparent;color:#4e5561;padding:3px 8px;font-size:12px;white-space:nowrap;}
.wlp-groups button[aria-pressed=true] {background:#fff1f1;color:#d92d32;font-weight:600;}
.wlp-groups small {font-size:11px;margin-left:5px;opacity:.7;}
.wlp-tools {display:flex;gap:4px;flex-shrink:0;}
.wlp-tools button {border-color:#e5e8ed;background:#fff;}
.wlp button:hover,.wlp-dialog button:hover {background:#f7f8fa;}
.wlp-status {padding:3px 10px;color:#737b87;font-size:10px;flex-shrink:0;}
.wlp-scroll {overflow:auto;min-height:0;flex:1;scrollbar-width:thin;}
.wlp table {border-collapse:separate;border-spacing:0;width:100%;font-size:13px;white-space:nowrap;}
.wlp th,.wlp td {text-align:right;padding:6px 10px;border-right:1px solid #edf0f3;border-bottom:1px solid #edf0f3;min-width:76px;height:38px;box-sizing:border-box;}
.wlp th {position:sticky;top:0;z-index:2;background:#f7f8fa;color:#4e5561;font-size:12px;font-weight:500;height:32px;}
.wlp th button {border:0;padding:0;background:none;color:inherit;font-size:inherit;}
.wlp .wlp-seq {min-width:32px;width:32px;text-align:center;color:#737b87;font-size:11px;}
.wlp .wlp-name {position:sticky;left:0;min-width:118px;text-align:left;background:#fff;z-index:1;}
.wlp th.wlp-name {z-index:3;background:#f7f8fa;}
.wlp td.wlp-name button {display:block;border:0;padding:0;background:none;text-align:left;color:#272b33;}
.wlp .wlp-name b {font-size:13px;font-weight:600;}
.wlp .wlp-name small {display:block;color:#737b87;font-size:10px;}
.wlp tbody tr:hover td {background:#f7f8fa;}
.wlp tbody tr.is-selected td {background:#fff1f1;}
.wlp .wlp-up {color:#d92d32;}.wlp .wlp-down {color:#15956f;}
.wlp-empty {padding:30px 14px;text-align:center;color:#737b87;font-size:12px;}
.wlp-dialog {width:min(560px,calc(100vw - 32px));max-height:80vh;padding:18px;border:1px solid #e5e8ed;border-radius:12px;color:#272b33;background:white;box-shadow:0 12px 40px #0002;font-size:13px;}
.wlp-dialog::backdrop {background:#17202e55;}
.wlp-dialog header {display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;}.wlp-dialog h2 {margin:0;font-size:16px;}
.wlp-dialog button,.wlp-dialog select,.wlp-dialog input {border:1px solid #e5e8ed;border-radius:6px;background:#fff;color:#4e5561;padding:5px 9px;min-height:30px;box-sizing:border-box;}
.wlp-dialog select {appearance:none;-webkit-appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4 3 3 3-3' fill='none' stroke='%23737b87'/%3E%3C/svg%3E") no-repeat right 7px center;padding-right:24px;}
.wlp-dialog form {display:grid;gap:12px;}.wlp-dialog label {display:grid;gap:6px;}.wlp-dialog input {width:100%;cursor:text;}.wlp-dialog [type=submit] {color:#d92d32;background:#fff1f1;}
.wlp-dialog-error {color:#d92d32;font-size:12px;}.wlp-help {color:#737b87;font-size:11px;}
.wlp-manage-list {max-height:52vh;overflow:auto;}.wlp-manage-list>div {display:flex;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid #edf0f3;}.wlp-manage-list span {flex:1;}.wlp-manage-list small {color:#737b87;}.wlp-manage-group {display:flex;gap:8px;}
.wlp-board-options {max-height:280px;overflow:auto;display:grid;gap:4px;}.wlp-board-options button {text-align:left;}.wlp-board-options small {color:#737b87;}.wlp-dialog button:disabled {opacity:.5;cursor:default;}
#workspaceHome #focusPanel {display:flex;flex-direction:column;height:100%;min-height:0;padding:0;}
#workspaceHome #wbWatchPanel {padding:0;flex:1;min-height:0;overflow:hidden;}
#watchlistBoardPage {min-height:280px;max-height:calc(100dvh - 190px);border:1px solid #e5e8ed;border-radius:8px;}
#watchlistStockPage[hidden],#watchlistBoardPage[hidden] {display:none!important;}
@media(max-width:520px) {.wlp-toolbar {flex-wrap:wrap;}.wlp-groups {flex-basis:100%;}.wlp-tools {margin-left:auto;}.wlp th,.wlp td {padding:6px 8px;}.wlp-dialog {padding:12px;}.wlp-manage-list>div {flex-wrap:wrap;}}

/* 自选面板密度：正文与工作台标题同为12px，仅约束自选，不污染弹卡。 */
#wbWatchPanel.wlp {font-size:12px!important;line-height:1.3;}
#wbWatchPanel .wlp-tabs {gap:18px;padding:0 8px;}
#wbWatchPanel .wlp-tabs button {font-size:12px!important;line-height:18px;padding:5px 2px;min-height:30px;}
#wbWatchPanel .wlp-toolbar {gap:4px;padding:3px 6px;}
#wbWatchPanel .wlp-groups button,#wbWatchPanel .wlp-tools button {font-size:12px!important;line-height:18px;height:26px;min-height:26px;padding:3px 6px;}
#wbWatchPanel .wlp-status {font-size:10px;line-height:14px;padding:2px 7px;}
#wbWatchPanel .wlp-scroll {border-radius:0;}
#wbWatchPanel table {font-size:12px!important;line-height:16px;min-width:0;border-radius:0;}
#wbWatchPanel th,#wbWatchPanel td {font-size:12px!important;line-height:16px;min-width:60px;height:32px;padding:2px 6px!important;}
#wbWatchPanel th {height:26px;padding:3px 6px;font-weight:500;}
#wbWatchPanel th button {font-size:12px!important;line-height:18px;min-height:0;}
#wbWatchPanel .wlp-seq {width:25px;min-width:25px;padding:2px 4px;font-size:11px;}
#wbWatchPanel .wlp-name {min-width:88px;}
#wbWatchPanel .wlp-name b {font-size:12px!important;line-height:16px;font-weight:600;}
#wbWatchPanel .wlp-name small {font-size:10px;line-height:12px;}
#wbWatchPanel td.wlp-name button {line-height:16px;min-height:0;padding:0;}

@media (max-width:1024px) {
  #wbWatchPanel.wlp {font-size:13px!important;line-height:1.4;}
  #wbWatchPanel .wlp-tabs button {font-size:13px!important;min-height:36px;padding:7px 2px;}
  #wbWatchPanel .wlp-toolbar {padding:4px 6px;gap:4px;}
  #wbWatchPanel .wlp-groups button,#wbWatchPanel .wlp-tools button {height:34px;min-height:34px;font-size:12px!important;}
  #wbWatchPanel :is(th,td) {font-size:13px!important;height:38px;line-height:18px;padding:4px 7px!important;}
  #wbWatchPanel th {height:32px;font-size:12px!important;}
  #wbWatchPanel .wlp-name {min-width:100px;}
  #wbWatchPanel .wlp-name b {font-size:13px!important;line-height:18px;}
  #wbWatchPanel .wlp-name small,#wbWatchPanel .wlp-status {font-size:11px;line-height:16px;}
  #wbWatchPanel td.wlp-name button {min-height:32px;}
  .wlp-dialog {box-sizing:border-box;width:min(560px,calc(100vw - 20px));max-height:calc(100dvh - 24px);overflow-y:auto;padding:14px;}
  .wlp-dialog :is(button,select,input) {min-height:36px;}
  .wlp-dialog input {font-size:16px;}
  .wlp-dialog header button {min-width:36px;}
  .wlp-dialog .wlp-help {font-size:12px;line-height:1.5;}
  .wlp-manage-list {max-height:calc(100dvh - 220px);}
  .wlp-manage-list>div>span {min-width:0;overflow-wrap:anywhere;}
}
