/* Phone · 演练室选择 */
@media (max-width:599px) {
  .page:has(>.practice-workspace) { padding:0; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }
  .practice-workspace { display:flex; flex-direction:column; gap:var(--m-gap); height:auto; min-height:100%; padding:var(--m-gutter) var(--m-gutter) 0; }
  .practice-heading,.practice-config-heading { display:none; }

  .practice-mode-tabs { position:relative; display:grid; grid-template-columns:1fr 1fr; gap:3px; flex:none; min-height:0; height:46px; padding:3px; border:0; border-radius:var(--m-r-control); background:var(--mist); }
  .practice-mode-tabs>button { justify-content:center; gap:0; height:40px; padding:0; border:0; border-radius:calc(var(--m-r-control) - 3px); color:var(--t-3); font-size:var(--m-fs-body); font-weight:500; transition:background var(--m-dur) var(--m-ease),color var(--m-dur) var(--m-ease); }
  .practice-mode-tabs>button>.i { display:none; }
  .practice-mode-tabs>button[aria-selected=true] { background:var(--white); color:var(--blue); font-weight:600; box-shadow:0 1px 3px rgba(11,18,32,.12),0 0 0 .5px rgba(11,18,32,.04); }

  .practice-layout { display:flex; flex-direction:column; gap:var(--m-gap); flex:none; min-height:0; overflow:visible; }
  .practice-config,.practice-config.templates { display:flex; flex-direction:column; gap:var(--m-gap); flex:none; overflow:visible; }

  .practice-object-grid { grid-template-columns:minmax(0,1fr); gap:10px; height:auto; align-self:stretch; }
  .practice-object { position:relative; display:grid; grid-template-columns:52px minmax(0,1fr) auto; grid-template-areas:'visual kicker change' 'visual name change' 'visual sub change'; align-items:center; column-gap:12px; row-gap:0; min-height:84px; padding:14px 8px 14px 14px; border-radius:var(--m-r-card); box-shadow:none; transition:transform var(--m-dur) var(--m-ease); }
  .practice-object:has(>footer>a:active,.practice-object-change:active:not(:disabled)) { transform:scale(.98); }
  .practice-object>header,.practice-object-main,.practice-object-main>div,.practice-object>footer { display:contents; }
  .practice-object>header>span { grid-area:kicker; gap:5px; min-width:0; font-size:var(--m-fs-meta); font-weight:500; line-height:1.4; }
  .practice-object>header>span>.i { display:none; }
  .practice-object>footer>span { display:none; }
  .practice-object>footer>a { position:absolute; inset:0; z-index:1; border-radius:inherit; font-size:var(--m-fs-meta); color:transparent; overflow:hidden; -webkit-tap-highlight-color:transparent; }
  .practice-object>footer>a>.i { display:none; }
  .practice-object>footer>a:focus-visible { outline:2px solid var(--blue); outline-offset:-2px; }
  .practice-object-change { position:relative; z-index:2; grid-area:change; align-self:center; justify-content:center; gap:2px; min-height:var(--m-tap); padding:0 10px 0 12px; border-radius:var(--m-r-pill); background:var(--white); color:var(--blue); font-size:var(--m-fs-meta); font-weight:600; line-height:1; transition:transform var(--m-dur) var(--m-ease); }
  .practice-object.doctor .practice-object-change { color:var(--teal-ink); }
  .practice-object-change:active:not(:disabled) { transform:scale(.95); }
  .practice-object-change>.i { width:14px; height:14px; }
  .practice-object-visual { grid-area:visual; display:grid; place-items:center; width:52px; height:52px; border-radius:var(--m-r-inner); overflow:hidden; }
  .practice-object.drug .practice-object-visual { padding:4px; background:var(--white); }
  .practice-object-visual>img { padding:0; }
  .practice-object.doctor .practice-object-visual { border-radius:var(--m-r-pill); color:var(--teal-ink); }
  .practice-object-visual>span { font-size:var(--m-fs-title); line-height:1; }
  .practice-object-visual>.i { width:24px; height:24px; }
  .practice-object-main h2 { position:relative; grid-area:name; justify-self:start; max-width:100%; min-width:0; font-size:var(--m-fs-head); font-weight:600; line-height:1.35; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .practice-object:has(>footer>a) .practice-object-main h2 { padding-right:14px; }
  .practice-object:has(>footer>a) .practice-object-main h2::after { content:""; position:absolute; right:3px; top:50%; width:6px; height:6px; border:solid var(--t-3); border-width:1.5px 1.5px 0 0; transform:translateY(-50%) rotate(45deg); }
  .practice-object-main p { grid-area:sub; min-width:0; margin:1px 0 0; font-size:var(--m-fs-meta); line-height:1.5; color:var(--t-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .practice-object.drug { grid-template-areas:'visual kicker change' 'visual name change' 'visual sub change' 'visual detail detail'; }
  .practice-object.drug>.practice-object-detail { grid-area:detail; display:block; min-width:0; margin:2px 0 0; padding-right:6px; font-size:var(--m-fs-meta); line-height:1.5; color:var(--t-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .practice-object.doctor>.practice-object-detail,.practice-object-tags,.practice-object-note { display:none; }

  .practice-level-section { position:relative; }
  .practice-level-section>h2 { margin:0 0 8px; font-size:var(--m-fs-meta); font-weight:500; line-height:1.5; color:var(--t-3); }
  .practice-difficulty { gap:3px; padding:3px; border-radius:var(--m-r-control); background:var(--mist); }
  .practice-difficulty>button { display:flex; align-items:center; justify-content:center; height:40px; padding:0; border:0; border-radius:calc(var(--m-r-control) - 3px); background:transparent; color:var(--t-3); transition:background var(--m-dur) var(--m-ease),color var(--m-dur) var(--m-ease); }
  .practice-difficulty>button>span { gap:0; }
  .practice-difficulty b { font-size:var(--m-fs-body); }
  .practice-difficulty .i { display:none; }
  .practice-difficulty small { display:none; }
  .practice-difficulty>button[aria-checked=true] { border:0; background:var(--white); color:var(--blue); box-shadow:0 1px 3px rgba(11,18,32,.12),0 0 0 .5px rgba(11,18,32,.04); }
  .practice-difficulty>button[aria-checked=true] b { font-weight:600; }
  .practice-difficulty>button[aria-checked=true]>small { display:block; position:absolute; top:0; right:0; max-width:64%; font-size:var(--m-fs-meta); line-height:1.5; color:var(--t-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

  .practice-object-main h2 { display:block; }
  .practice-object-main h2>span { display:inline; }
  .practice-object-main h2>.practice-role { display:inline-block; margin-left:6px; padding:0 7px; border-radius:var(--m-r-pill); font-size:var(--m-fs-meta); line-height:20px; vertical-align:2px; }
  .practice-object.doctor .practice-object-visual>span { font-size:var(--m-fs-title); font-weight:500; }
  .practice-object.doctor .practice-object-visual.persona-avatar { font-size:var(--m-fs-title); font-weight:500; }
  .practice-insight>footer>a.practice-insight-more { display:none; }

  /* 交流对象性格与病症速览：与“这次怎么练”的折叠要点同一形态 */
  .practice-insight-rows { flex:none; padding:4px 16px; border:1px solid var(--line); border-radius:var(--m-r-card); background:var(--white); }
  .practice-insight-rows>.practice-coaching-point.collapsible { display:block; border-top:1px solid var(--line); }
  .practice-insight-rows>.practice-coaching-point.collapsible:first-child { border-top:0; }
  .practice-insight-rows .practice-point-number { background:var(--cyan-pale); color:var(--teal-ink); }
  .practice-insight-rows .practice-point-number>.i { width:13px; height:13px; }
  .practice-insight-rows .practice-point-toggle>span:nth-child(2) { display:flex; align-items:baseline; gap:8px; min-width:0; }
  .practice-insight-rows .practice-point-toggle b { flex:none; font-size:14px; font-weight:500; line-height:1.5; color:var(--t-1); }
  .practice-insight-rows .practice-point-toggle small { min-width:0; font-size:var(--m-fs-meta); color:var(--t-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .practice-insight-panel { margin:0 0 12px 34px; }
  .practice-insight-panel[hidden] { display:none; }
  .practice-insight { display:flex; flex-direction:column; gap:8px; min-width:0; padding:0; border:0; border-radius:0; background:none; }
  .practice-insight dd,.practice-insight-lead { display:block; -webkit-line-clamp:unset; overflow:visible; }
  .practice-insight>footer { margin:0; padding-top:0; border-top:0; }
  .practice-insight>header { display:none; }
  .practice-insight>h3 { display:none; }
  .practice-insight-lead,.practice-insight-note { margin:0; font-size:14px; line-height:1.65; color:var(--t-1); }
  .practice-insight-hint { margin:0; font-size:13px; line-height:1.6; color:var(--t-3); }
  .practice-insight dl { display:grid; gap:6px; margin:0; }
  .practice-insight dl>div { display:grid; grid-template-columns:auto minmax(0,1fr); gap:10px; align-items:baseline; }
  .practice-insight dt { font-size:var(--m-fs-meta); color:var(--t-3); white-space:nowrap; }
  .practice-insight dd { margin:0; font-size:13px; line-height:1.65; color:var(--t-2); }
  .practice-insight-chips { display:flex; flex-wrap:wrap; gap:6px; }
  .practice-insight-chips>span { max-width:100%; padding:3px 10px; border-radius:var(--m-r-pill); background:var(--mist); color:var(--t-2); font-size:13px; line-height:1.5; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .practice-insight-chips.quotes>span { background:var(--cyan-pale); color:var(--teal-ink); }
  .practice-insight>footer { font-size:var(--m-fs-meta); line-height:1.5; color:var(--t-3); }
  .practice-insight>footer>a { display:inline-flex; align-items:center; gap:4px; min-height:var(--m-tap); margin:-8px 0 -12px; font-size:14px; text-decoration:none; }
  .practice-insight>footer .i,.practice-insight-action>.i { width:13px; height:13px; }
  .practice-insight-action { align-self:flex-start; display:inline-flex; align-items:center; gap:4px; min-height:var(--m-tap); margin:-6px 0 -12px; padding:0; border:0; background:none; color:var(--blue); font-size:14px; }

  .practice-picker-group+.practice-picker-group { margin-top:4px; }
  .practice-picker-group>h3 { display:flex; justify-content:space-between; padding:10px 8px 4px; font-size:var(--m-fs-meta); font-weight:500; color:var(--t-3); }
  .practice-picker-group>h3>small { font-size:var(--m-fs-meta); color:var(--t-4); }
  .practice-picker-item b { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
  .practice-picker-item .practice-role { padding:0 7px; border-radius:var(--m-r-pill); font-size:var(--m-fs-meta); line-height:20px; }

  .practice-brief { display:block; flex:none; padding:16px; border:1px solid var(--line); border-radius:var(--m-r-card); background:var(--white); overflow:visible; }
  .practice-brief-frame,.practice-brief-scroll { height:auto; min-height:0; overflow:visible; padding:0; }
  .practice-brief-frame::before,.practice-brief-frame::after { display:none; }
  .practice-brief-label { margin-bottom:6px; font-size:var(--m-fs-meta); }
  .practice-brief-scroll>h2 { font-size:var(--m-fs-head); font-weight:600; line-height:1.4; }
  .practice-brief-facts { gap:14px; margin-top:6px; font-size:var(--m-fs-meta); }
  .practice-coaching-list { gap:14px; margin-top:16px; }
  .practice-coaching-point { grid-template-columns:24px minmax(0,1fr); gap:10px; }
  .practice-point-number { width:24px; height:24px; border-radius:var(--m-r-pill); font-size:12px; }
  .practice-coaching-point h3 { font-size:14px; line-height:1.5; }
  .practice-coaching-point p { font-size:13px; line-height:1.7; white-space:pre-line; }
  .practice-coaching-list:has(>.collapsible) { gap:0; margin-top:8px; }
  .practice-coaching-point.collapsible { display:block; border-top:1px solid var(--line); }
  .practice-coaching-point.collapsible:first-child { border-top:0; }
  .practice-point-toggle { display:grid; grid-template-columns:24px minmax(0,1fr) 16px; align-items:center; gap:10px; width:100%; min-height:var(--m-tap); padding:4px 0; border:0; background:none; color:inherit; font:inherit; text-align:left; cursor:pointer; }
  .practice-point-toggle>.i { width:14px; height:14px; color:var(--t-3); transition:transform var(--m-dur) var(--m-ease); }
  .practice-point-toggle[aria-expanded=true]>.i { transform:rotate(90deg); }
  .practice-point-toggle:active { opacity:.7; }
  .practice-point-toggle>.practice-point-number { align-self:center; }
  .practice-coaching-point.collapsible>p { margin:0 0 10px 34px; }
  .practice-brief-material { min-height:var(--m-tap); margin:8px 0 0; font-size:14px; }
  .practice-blocker,.practice-warning { padding:10px 12px; border-radius:var(--m-r-inner); font-size:13px; line-height:1.7; }
  .practice-brief-status { min-height:var(--m-tap); margin-top:12px; padding-top:0; font-size:var(--m-fs-meta); }
  .practice-preview-retry { min-height:var(--m-tap); padding-left:8px; font-size:14px; }
  .practice-preview-retry>.i { width:14px; height:14px; }

  .practice-dock { position:sticky; bottom:0; z-index:5; display:block; flex:none; min-height:0; margin:auto 0 0; padding:4px 0 12px; border-top:0; background:none; pointer-events:none; }
  .practice-dock::before { content:''; position:absolute; z-index:-1; inset:-20px calc(-1 * var(--m-gutter)) 0; background:linear-gradient(to bottom,transparent,var(--paper) 36px); pointer-events:none; }
  .practice-dock>* { pointer-events:auto; }
  .practice-dock>div>span { display:none; }
  .practice-dock>div:has(>.practice-error:empty) { display:none; }
  .practice-dock>div { margin-bottom:8px; padding:10px 12px; border-radius:var(--m-r-control); background:var(--m-glass-strong); backdrop-filter:var(--m-glass-blur); -webkit-backdrop-filter:var(--m-glass-blur); box-shadow:var(--m-shadow-float); }
  .practice-error { margin:0; max-height:none; font-size:13px; line-height:1.6; }
  .practice-dock>.btn { width:100%; min-width:0; height:50px; min-height:50px; justify-content:center; border-radius:var(--m-r-control); font-size:16px; font-weight:600; box-shadow:var(--m-shadow-float); transition:transform var(--m-dur) var(--m-ease); }
  .practice-dock>.btn:active:not(:disabled) { transform:scale(.98); }
  .practice-dock>.btn[data-phase=ready]>.i { display:none; }
  .practice-workspace:has(.practice-empty)>.practice-dock { display:none; }

  .practice-template-list { gap:10px; overflow:visible; }
  .practice-template-item { min-height:64px; gap:12px; padding:12px 14px; border-radius:var(--m-r-card); transition:transform var(--m-dur) var(--m-ease); }
  .practice-template-item:active:not(:disabled) { transform:scale(.98); }
  .practice-template-symbol { width:40px; height:40px; border-radius:var(--m-r-inner); }
  .practice-template-item>span:nth-child(2) { gap:2px; }
  .practice-template-item b { font-size:var(--m-fs-body); font-weight:600; line-height:1.45; }
  .practice-template-item small { font-size:var(--m-fs-meta); line-height:1.5; }
  .practice-template-time { gap:4px; font-size:var(--m-fs-meta); }
  .practice-empty { padding:32px 20px; border:1px dashed var(--line); border-radius:var(--m-r-card); font-size:14px; line-height:1.7; text-align:center; text-wrap:balance; }
  .practice-empty-action { align-self:center; min-width:160px; height:var(--m-tap); min-height:var(--m-tap); justify-content:center; border-radius:var(--m-r-control); font-size:var(--m-fs-body); font-weight:600; }
  .practice-layout:has(.practice-empty)>.practice-brief { display:none; }

  /* 抽屉里搜索框固定在上方，只有列表滚动；列表自己声明可上下拖动，触摸滚动不交给外层。 */
  .popover-sheet>.popover-body:has(.practice-picker) { display:flex; flex-direction:column; overflow:hidden; }
  .popover-sheet .prep-library-picker:has(>.practice-picker) { display:flex; flex-direction:column; flex:1 1 auto; min-height:0; }
  .practice-picker { display:flex; flex-direction:column; flex:1 1 auto; min-height:0; width:auto; padding:0; }
  .practice-picker>.input { height:var(--m-tap); margin-bottom:8px; font-size:16px; }
  .practice-picker-list { flex:1 1 auto; min-height:0; max-height:none; overflow-y:auto; overscroll-behavior:contain; touch-action:pan-y; -webkit-overflow-scrolling:touch; }
  .practice-picker-item { min-height:60px; gap:12px; padding:10px 8px; border-radius:var(--m-r-control); }
  .practice-picker-item>.i { width:20px; height:20px; }
  .practice-picker-item>.i:last-child { width:14px; height:14px; }
  .practice-picker-item>.practice-picker-text { gap:2px; }
  .practice-picker-item b { font-size:var(--m-fs-body); }
  .practice-picker-item small { font-size:var(--m-fs-meta); line-height:1.5; }
}
