/* Reuse the verified app shell; these rules only describe the preparation mode. */
.prep-app .app-layout{margin-top:28px}
.prep-intro{padding:26px 28px;background:var(--surface);border-radius:var(--radius);margin-bottom:28px}
.prep-intro h1{font-size:26px;margin-bottom:8px}
.prep-intro>p{color:var(--muted);max-width:48em;margin-bottom:18px}
.prep-kicker{font-size:13px;font-weight:600;color:var(--blue);margin-bottom:6px;letter-spacing:.015em}
.prep-search{display:flex;align-items:center;gap:10px;min-height:48px;background:var(--bg);border-radius:13px;padding:0 12px;max-width:620px}
.prep-search>svg{width:19px;height:19px;color:var(--muted)}
.prep-search input{flex:1;width:0;border:0;border-radius:0;padding:12px 0;background:transparent;box-shadow:none;outline:none;font-size:16px;min-height:48px}
.prep-search:focus-within{box-shadow:inset 0 -2px var(--line)}
html[data-input-mode=keyboard] .prep-search:focus-within{outline:2px solid var(--focus);outline-offset:3px}
.prep-search button{min-width:44px;width:44px;min-height:44px;padding:0;background:transparent;color:var(--muted);flex:none}
.prep-search button svg{width:18px;height:18px}
.prep-section{margin:28px 0}
.prep-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.prep-section-head h2{margin:0;font-size:19px}
.prep-section-head>a{display:flex;align-items:center;min-height:44px;font-size:14px;text-decoration:none;white-space:nowrap}
.prep-section>p,.prep-lead{color:var(--muted);font-size:15px}
.prep-paths{display:grid;grid-template-columns:1fr 1fr;background:var(--surface);border-radius:16px;overflow:hidden;padding:0 20px}
.prep-paths>a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 0;text-decoration:none;color:var(--text);border-bottom:1px solid var(--line);margin-right:20px;min-height:80px}
.prep-paths>a:nth-child(even){margin-right:0;margin-left:20px}
.prep-paths>a:nth-last-child(-n+2){border:0}
.prep-paths strong{display:block;font-size:16px;font-weight:650}
.prep-paths small{display:block;margin-top:3px;color:var(--muted);font-size:13px}
.prep-paths svg{width:18px;height:18px;color:var(--muted)}
.prep-strip{padding:18px 20px;border-left:3px solid var(--blue);background:var(--blue-soft);border-radius:0 12px 12px 0;line-height:1.75}
.prep-strip strong{display:block;font-size:16px;margin-bottom:4px}
.prep-strip p{margin:0;font-size:14px;color:var(--muted)}
.prep-map{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-top:20px}
.prep-map section{padding:0 0 14px;border-bottom:1px solid var(--line)}
.prep-map h3{font-size:16px;margin-bottom:4px}
.prep-map p{font-size:14px;color:var(--muted);margin-bottom:6px}
.prep-map a{display:inline-flex;align-items:center;min-height:44px;font-size:14px}
.prep-area-heading{margin-bottom:20px}
.prep-area-heading h1{font-size:27px;margin-bottom:8px}
.prep-area-heading p{max-width:48em;color:var(--muted);font-size:15px}
.prep-outline{padding-left:0;list-style:none;counter-reset:steps}
.prep-outline>li{counter-increment:steps;border-bottom:1px solid var(--line);margin:0;padding:14px 0;display:flex;align-items:flex-start;gap:14px}
.prep-outline>li:before{content:counter(steps,decimal-leading-zero);color:var(--muted);font-size:13px;font-variant-numeric:tabular-nums;padding-top:3px}
.prep-outline a{color:var(--text);font-weight:600;text-decoration:none;display:block;min-height:44px}
.prep-outline small{display:block;color:var(--muted);font-weight:400;margin-top:3px}
.prep-rows{background:var(--surface);padding:0 22px;border-radius:16px}
.prep-topic-row{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px;padding:18px 0;border-bottom:1px solid var(--line)}
.prep-topic-row:last-child{border-bottom:0}
.prep-topic-link{display:block;color:var(--text);text-decoration:none;min-height:44px}
.prep-topic-row h3{font-size:17px;font-weight:650;line-height:1.5;margin:5px 0}
.prep-topic-row p{color:var(--muted);font-size:14px;margin:4px 0 0;line-height:1.75}
.prep-meta{display:flex;flex-wrap:wrap;align-items:center;gap:5px 12px;font-size:12px;color:var(--muted)}
.prep-meta .read-mark{color:var(--blue)}
.prep-bookmark{align-self:start;padding:0;min-width:44px;min-height:44px;background:transparent!important;color:var(--muted);border-radius:50%}
.prep-bookmark[aria-pressed=true]{color:var(--blue)}
.prep-bookmark[aria-pressed=true] svg{fill:var(--blue-soft)}
.prep-bookmark svg{width:21px;height:21px}
.prep-results-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 8px;font-size:16px}
.prep-results-title button{background:transparent;color:var(--blue);padding:8px 0;font-size:14px}
.prep-empty{padding:28px 20px;text-align:left;background:var(--surface);border-radius:16px}
.prep-empty h2{font-size:19px;margin-bottom:8px}
.prep-empty p{color:var(--muted);font-size:14px}
.prep-empty a{display:inline-flex;align-items:center;min-height:44px;font-weight:600}
.prep-article{max-width:740px;margin:0 auto;background:var(--surface);border-radius:18px;padding:28px}
.prep-article-header{border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:24px}
.prep-article-header h1{font-size:27px;line-height:1.5;margin:10px 0 12px;letter-spacing:-.025em}
.prep-article-header>p{font-size:16px;line-height:1.8;color:var(--muted)}
.prep-article-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.prep-article-actions>button{background:transparent;color:var(--blue);padding:8px 0;gap:7px;font-size:14px}
.prep-article-actions>button svg{width:18px;height:18px}
.prep-article section{margin:26px 0}
.prep-article h2{font-size:19px;margin-bottom:12px}
.prep-article section>p,.prep-article section>ul{font-size:15px;line-height:1.9}
.prep-essentials{padding:18px 20px;background:var(--bg);border-radius:12px}
.prep-essentials h2{font-size:16px}
.prep-essentials ul{margin:0;padding-left:20px;font-size:15px}
.prep-checklist{list-style:none;padding:0;margin:10px 0}
.prep-checklist li{margin:0;border-bottom:1px solid var(--line)}
.prep-checklist li:last-child{border:0}
.prep-checklist label{display:flex;align-items:flex-start;gap:12px;padding:14px 0;min-height:48px;cursor:pointer;font-size:15px;line-height:1.75}
.prep-checklist input{margin:3px 0 0;flex:none;width:20px;height:20px;min-height:20px;accent-color:var(--blue)}
.prep-checklist input:checked+span{color:var(--muted)}
.prep-checklist small{display:block;font-size:12px;color:var(--muted);margin-top:4px}
.prep-source-details{border-top:1px solid var(--line);padding:8px 0;margin-top:24px}
.prep-source-details summary{padding:12px 0;min-height:48px;color:var(--blue);font-size:14px;font-weight:600}
.prep-source-details p{font-size:13px;color:var(--muted)}
.prep-source{padding:10px 0;border-bottom:1px solid var(--line)}
.prep-source:last-child{border:0}
.prep-source a{display:flex;gap:12px;align-items:center;justify-content:space-between;min-height:44px;font-size:14px;text-decoration:none}
.prep-source small{color:var(--muted);display:block}
.prep-next{display:flex;flex-direction:column;justify-content:center;min-height:72px;padding:18px 0;border-top:1px solid var(--line);color:var(--blue);text-decoration:none;gap:5px}
.prep-next small{color:var(--muted)}
.prep-progress{display:flex;gap:18px;align-items:center;justify-content:space-between;padding:18px 0;border-bottom:1px solid var(--line);margin-bottom:18px}
.prep-progress strong{font-size:23px;letter-spacing:-.03em}
.prep-progress p{margin:0;color:var(--muted);font-size:13px}
.prep-progress progress{width:38%;max-width:220px;height:7px;accent-color:var(--blue)}
.prep-filters{display:flex;gap:6px;flex-wrap:wrap;margin:14px 0}
.prep-filters button{background:transparent;padding:8px 12px;color:var(--muted);font-size:14px;min-height:44px;border-radius:10px}
.prep-filters button[aria-pressed=true]{background:var(--blue-soft);color:var(--blue)}
.prep-my-group{padding:0 20px;margin:10px 0;background:var(--surface);border-radius:14px}
.prep-my-group>summary{display:flex;align-items:center;gap:14px;min-height:64px;padding:14px 0;list-style:none;font-size:15px;font-weight:600;line-height:1.6}
.prep-my-group>summary::-webkit-details-marker{display:none}
.prep-my-group>summary>span{flex:1}
.prep-my-group>summary>small{white-space:nowrap;color:var(--muted);font-size:12px;font-weight:400}
.prep-my-group>summary:after{content:'';width:7px;height:7px;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(45deg);flex:none;margin-right:3px;margin-top:-4px}
.prep-my-group[open]>summary:after{transform:rotate(225deg);margin-top:4px}
.prep-my-group[open]>summary{border-bottom:1px solid var(--line)}
.prep-check-context{display:flex;align-items:center;min-height:48px;font-size:14px;text-decoration:none;padding-bottom:8px}
.prep-my-group h3{font-size:16px;margin:0}
.prep-my-group h3>a{color:var(--text);text-decoration:none;display:flex;align-items:center;min-height:44px}
.prep-menu-note{margin:8px 24px 24px;font-size:13px;color:var(--muted)}
.prep-content-note{font-size:12px;color:var(--muted);line-height:1.8;margin-top:12px}
.prep-app .app-footer{margin-top:28px}
@media(max-width:700px), (hover:none) and (pointer:coarse) and (max-width:1000px) and (max-height:500px){
  .prep-app .app-layout{margin:0;padding:0}
  .prep-app #main{padding:18px 20px 20px}
  .prep-intro{margin:-18px -20px 0;border-radius:0;padding:22px 20px 20px;background:var(--bg)}
  .prep-intro h1{font-size:24px;line-height:1.4}
  .prep-intro>p{font-size:14px;margin-bottom:16px}
  .prep-search{background:var(--surface);max-width:none}
  .prep-section{margin:24px 0}
  .prep-paths{padding:0 16px;grid-template-columns:1fr}
  .prep-paths>a,.prep-paths>a:nth-child(even){padding:14px 0;margin:0;min-height:72px;border-bottom:1px solid var(--line)}
  .prep-paths>a:last-child{border:0}
  .prep-paths strong{font-size:15px}
  .prep-paths small{font-size:12px}
  .prep-map{gap:12px;grid-template-columns:1fr}
  .prep-area-heading h1{font-size:25px}
  .prep-rows{padding:0 16px;border-radius:14px}
  .prep-topic-row{padding:16px 0;gap:3px}
  .prep-topic-row h3{font-size:16px}
  .prep-topic-row p{font-size:13px}
  .prep-article{padding:0;border-radius:0;background:transparent}
  .prep-app:has(.prep-article) #app-scroll{background:var(--surface)}
  .prep-article-header h1{font-size:25px}
  .prep-article-header>p{font-size:15px}
  .prep-article section>p,.prep-article section>ul{font-size:15px}
  .prep-essentials{padding:16px}
  .prep-my-group{padding:0 16px}
  .prep-section-head h2{font-size:18px}
  .prep-app .app-footer{margin-left:20px;margin-right:20px}
}
@media(max-width:350px){.prep-app #main{padding-left:16px;padding-right:16px}.prep-intro{margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px}.prep-app .main-nav>a{font-size:12px}.prep-intro h1{font-size:23px}.prep-article-header h1{font-size:23px}}
