/* Личный маршрут Global. Материал — арт и пиктограммы AION 2, не декоративные эмодзи. */
.account-plan-link { display: flex; align-items: center; gap: 18px; margin: 0 0 var(--gap); }
.account-plan-link > img { flex: none; width: 54px; height: 54px; object-fit: contain; padding: 8px; border-radius: 16px; background: var(--accent-soft); }
.account-plan-link > div { flex: 1; min-width: 0; }
.account-plan-link h2 { margin: 0 0 4px; font: 600 18px/1.3 var(--font-ui); }
.account-plan-link p { margin: 0; color: var(--ink-2); font-size: 14px; }

.pt-page { display: grid; gap: 20px; min-width: 0; padding-top: 4px; }
.pt-page h1, .pt-page h2, .pt-page h3, .pt-page p { margin-top: 0; }
.pt-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 310px; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: end; gap: 24px; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-xl);
  background: linear-gradient(110deg, #100B20 6%, #271044 62%, #3B1A6E); color: #F7F2FF;
  box-shadow: inset 0 0 0 1px rgba(218, 191, 255, .18), 0 24px 70px rgba(12, 5, 30, .42); }
.pt-hero-art { position: absolute; inset: 0; z-index: -2; }
.pt-hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 42%; opacity: .55; }
.pt-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 7, 21, .94) 0%, rgba(19, 10, 39, .75) 49%, rgba(29, 14, 56, .18) 100%); }
.pt-hero-copy { min-width: 0; position: relative; z-index: 1; }
.pt-kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px; color: #D6C8EF; font: 600 13px/1 var(--font-ui); }
.pt-kicker img { width: 30px; height: 30px; object-fit: contain; }
.pt-hero h1 { margin-bottom: 14px; max-width: 660px; font: 600 clamp(34px, 3.4vw, 52px)/1.06 var(--font-display); letter-spacing: -.03em; text-wrap: balance; }
.pt-hero-copy > p { color: #D6C8EF; font-size: 15px; }
.pt-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 28px; }
.pt-hero-actions .btn { color: #fff; background: rgba(255,255,255,.13); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.pt-hero-actions .btn.primary { color: #fff; background: linear-gradient(180deg, var(--btn-a), var(--btn-b)); box-shadow: 0 8px 24px -8px var(--accent-glow); }
.pt-hero-actions a, .pt-step-body > a, .pt-side li > a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px;
  color: var(--accent-hi); font: 600 13px/1.35 var(--font-ui); text-decoration: none; }
.pt-hero-actions a { color: #EBDEFF; }
.pt-hero-actions a:hover, .pt-step-body > a:hover, .pt-side li > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pt-page a svg { width: 14px; height: 14px; }
.pt-progress { align-self: end; position: relative; z-index: 1; display: grid; gap: 4px; width: 218px; padding: 20px 20px 24px;
  border-radius: 19px; background: rgba(11, 7, 27, .52); box-shadow: inset 0 0 0 1px rgba(255,255,255,.17);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.pt-progress strong { font: 600 clamp(32px, 3vw, 42px)/1 var(--font-num); font-variant-numeric: tabular-nums; }
.pt-progress strong small { font-size: 16px; color: #D6C8EF; }
.pt-progress > span { color: #D6C8EF; font-size: 13px; }
.pt-progress i { height: 4px; margin-top: 10px; border-radius: 99px; background: rgba(255,255,255,.2); overflow: hidden; }
.pt-progress i::before { content: ''; display: block; width: var(--pt-progress); height: 100%; background: #C3A5FF; box-shadow: 0 0 10px #AF8BFF; }
:root[data-faction="elyos"] .pt-hero { color: #1B1E3A; background: linear-gradient(110deg, #F3F5FF, #CDD9F9);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.85), 0 24px 56px rgba(73, 88, 150, .18); }
:root[data-faction="elyos"] .pt-hero-art img { opacity: .42; object-position: 72% 40%; }
:root[data-faction="elyos"] .pt-hero::before { background: linear-gradient(90deg, rgba(240,243,255,.97) 0%, rgba(232,237,253,.85) 48%, rgba(225,232,253,.16) 100%); }
:root[data-faction="elyos"] .pt-kicker, :root[data-faction="elyos"] .pt-hero-copy > p { color: #464C6B; }
:root[data-faction="elyos"] .pt-hero-actions .btn { color: #1B1E3A; background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px rgba(77,99,176,.25); }
:root[data-faction="elyos"] .pt-hero-actions .btn.primary { color: #fff; background: linear-gradient(180deg, var(--btn-a), var(--btn-b)); box-shadow: 0 8px 24px -8px var(--accent-glow); }
:root[data-faction="elyos"] .pt-hero-actions a { color: #3152D4; }
:root[data-faction="elyos"] .pt-progress { color: #1B1E3A; background: rgba(255,255,255,.72); box-shadow: inset 0 0 0 1px rgba(255,255,255,.9); }
:root[data-faction="elyos"] .pt-progress :is(strong small, span) { color: #464C6B; }
:root[data-faction="elyos"] .pt-progress i { background: rgba(79,123,255,.18); }
:root[data-faction="elyos"] .pt-progress i::before { background: #4F7BFF; box-shadow: 0 0 10px rgba(79,123,255,.3); }

.pt-note { display: flex; gap: 14px; align-items: center; padding: 15px 19px; border: 1px solid var(--edge-2); border-radius: var(--r-m); background: var(--well); }
.pt-note img { width: 36px; height: 36px; flex: none; object-fit: contain; }
.pt-note p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.pt-note b { color: var(--ink); }
.pt-weekline { padding: 20px 22px 22px; }
.pt-weekline > header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.pt-weekline > header img { width: 42px; height: 42px; object-fit: contain; padding: 6px; border-radius: 12px; background: var(--accent-soft); }
.pt-weekline h2 { margin: 0 0 3px; font: 600 19px/1.3 var(--font-ui); }
.pt-weekline header p { margin: 0; color: var(--ink-2); font-size: 13px; }
.pt-weekline ol { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 0; padding: 0; }
.pt-weekline ol:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 8px; }
.pt-weekline li { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 10px; min-width: 0; padding: 14px 12px; border-radius: 14px; background: var(--well-2); box-shadow: inset 0 0 0 1px var(--edge); }
.pt-weekline time { color: var(--accent-hi); font: 600 13px/1.4 var(--font-num); white-space: nowrap; }
.pt-weekline h3 { margin: 0 0 5px; font: 600 14px/1.3 var(--font-ui); }
.pt-weekline li p { margin: 0; color: var(--ink-2); font-size: 12px; line-height: 1.4; }
.pt-week-hint { display: none; }
.pt-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(275px, 320px); gap: 20px; align-items: start; min-width: 0; }
.pt-main, .pt-side { display: grid; gap: 20px; min-width: 0; }
.pt-group { padding: clamp(20px, 2vw, 28px); }
.pt-group > header { display: flex; justify-content: space-between; gap: 20px; align-items: start; padding-bottom: 16px; border-bottom: 1px solid var(--edge-2); }
.pt-group h2 { margin: 0 0 6px; font: 600 clamp(19px, 1.7vw, 23px)/1.22 var(--font-ui); }
.pt-group header p { margin: 0; max-width: 65ch; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.pt-group-count { flex: none; color: var(--accent-hi); font: 600 18px/1.3 var(--font-num); font-variant-numeric: tabular-nums; }
.pt-group-count.pt-group-pending { color: var(--ink-3); font: 600 12px/1.4 var(--font-ui); text-align: right; }
.pt-steps { list-style: none; margin: 0; padding: 0; }
.pt-step { position: relative; display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 15px; padding-top: 20px; }
.pt-step:not(:last-child)::before { content: ''; position: absolute; left: 21px; top: 63px; bottom: -20px; width: 1px; background: var(--edge-2); }
.pt-tick { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--edge-2); border-radius: 14px;
  color: var(--ink-2); background: var(--well-2); cursor: pointer; font: 600 12px var(--font-num); transition: transform .18s, box-shadow .18s, background .18s; }
.pt-warning-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid color-mix(in srgb, var(--hot) 40%, transparent); border-radius: 14px;
  color: var(--hot); background: color-mix(in srgb, var(--hot) 10%, var(--glass)); }
.pt-warning-icon svg { width: 20px; height: 20px; }
.pt-step.is-warning .pt-step-body { border-inline-start: 2px solid color-mix(in srgb, var(--hot) 50%, transparent); padding-inline-start: 14px; }
.pt-step.is-expired .pt-step-body { opacity: .7; }
.pt-step.is-future .pt-step-body { opacity: .76; }
.pt-tick:hover:not(:disabled), .pt-market-check:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 0 0 4px var(--accent-soft); }
.pt-tick[aria-pressed="true"], .pt-market-check[aria-pressed="true"] { color: var(--on-accent); background: var(--accent); border-color: transparent; }
.pt-tick svg, .pt-market-check svg { width: 20px; height: 20px; }
.pt-tick:disabled, .pt-market-check:disabled { cursor: default; opacity: .6; }
.pt-step-body { min-width: 0; padding-bottom: 21px; border-bottom: 1px solid var(--edge); }
.pt-step:last-child .pt-step-body { border-bottom: 0; padding-bottom: 0; }
.pt-step-head { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: space-between; align-items: baseline; }
.pt-step h3 { margin: 0; font: 600 17px/1.34 var(--font-ui); color: var(--ink); }
.pt-step.is-done h3 { color: var(--ink-2); }
.pt-repeat { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.pt-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 9px 0 12px; }
.pt-badges > span, .pt-source { display: inline-flex; width: max-content; max-width: 100%; padding: 4px 8px; border-radius: 7px; font: 600 11px/1.25 var(--font-ui); }
.pt-badges > span:not(.pt-source) { color: var(--ink-2); background: var(--well-2); }
.pt-badges > .pt-warning-label, .pt-badges > .pt-expired-label { color: var(--hot) !important; background: color-mix(in srgb, var(--hot) 12%, transparent) !important; }
.pt-badges > .pt-stage-label { color: var(--accent-hi) !important; background: var(--accent-soft) !important; }
.pt-source.official { color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); }
.pt-source.guide { color: var(--accent-hi); background: var(--accent-soft); }
.pt-source.unverified { color: var(--hot); background: color-mix(in srgb, var(--hot) 12%, transparent); }
.pt-facts { display: grid; gap: 6px; }
.pt-facts p { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 8px; margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.pt-facts p > span { color: var(--ink-3); font-size: 12px; padding-top: 2px; }
.pt-step-body > a { margin-top: 10px; }
.pt-empty h2 { font: 600 19px var(--font-ui); }
.pt-empty p { margin-bottom: 0; color: var(--ink-2); }
.pt-side > .card { padding: 20px; }
.pt-side h2 { margin: 0 0 6px; font: 600 18px/1.3 var(--font-ui); }
.pt-side h3 { margin: 0; font: 600 15px/1.4 var(--font-ui); }
.pt-side p { color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.pt-resets > p { margin-bottom: 14px; }
.pt-resets > div { display: flex; gap: 8px; flex-wrap: wrap; }
.pt-resets .btn { min-height: 36px; padding-inline: 12px; font-size: 12px; }
.pt-resets .btn:disabled { cursor: default; opacity: .5; }
.pt-history { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--edge); }
.pt-history summary { cursor: pointer; color: var(--accent-hi); font: 600 13px/1.4 var(--font-ui); }
.pt-history summary:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }
.pt-history > ol { display: grid; gap: 10px; max-height: 330px; overflow-y: auto; list-style: none; padding: 0 4px 0 0; margin: 12px 0 0; }
.pt-history > ol > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; padding: 10px; border-radius: 10px; background: var(--well-2); color: var(--ink-2); font-size: 12px; }
.pt-history strong { color: var(--ink); font-weight: 600; white-space: nowrap; }
.pt-history ul { grid-column: 1 / -1; margin: 2px 0 0; padding-left: 17px; color: var(--ink-3); }
.pt-history ul li { padding: 1px 0; border: 0; }
.pt-side :is(.pt-market,.pt-builds) > header { display: flex; gap: 12px; align-items: center; margin-bottom: 13px; }
.pt-side :is(.pt-market,.pt-builds) > header img { width: 42px; height: 42px; flex: none; padding: 7px; object-fit: contain; border-radius: 12px; background: var(--accent-soft); }
.pt-side :is(.pt-market,.pt-builds) > header p { margin: 0; }
.pt-side ul { list-style: none; margin: 0; padding: 0; }
.pt-side li { padding: 15px 0; border-top: 1px solid var(--edge); }
.pt-market-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.pt-market-check { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border: 1px solid var(--edge-2); border-radius: 9px;
  background: var(--well-2); color: var(--ink-2); cursor: pointer; transition: transform .18s, box-shadow .18s; }
.pt-market-check svg { width: 16px; height: 16px; }
.pt-side li > .pt-source { margin-bottom: 9px; }
.pt-side li > a { margin-top: 7px; }
.pt-builds li p { margin: 5px 0 9px; }
.pt-method { margin: 0; padding: 0 4px; color: var(--ink-3); font-size: 12px; line-height: 1.5; }

@media (max-width: 1180px) { .pt-layout { grid-template-columns: minmax(0,1fr); } .pt-side { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pt-method { grid-column: 1/-1; } .pt-weekline ol { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (min-width: 1680px) { .pt-weekline ol { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width: 760px) { .account-plan-link { flex-wrap: wrap; gap: 12px; }
  .account-plan-link > div { flex: 1 1 calc(100% - 70px); }
  .account-plan-link > .btn { width: 100%; }
  .pt-page { gap: 14px; }
  .pt-hero { display: flex; flex-direction: column; align-items: stretch; justify-content: end; gap: 18px; min-height: 330px; padding: 24px; }
  .pt-hero-art img { object-position: 72% center; }
  .pt-hero::before { background: linear-gradient(0deg, rgba(10,7,21,.98), rgba(16,9,30,.72) 62%, rgba(16,9,30,.06)); }
  :root[data-faction="elyos"] .pt-hero::before { background: linear-gradient(0deg, rgba(240,243,255,.98), rgba(234,239,253,.83) 62%, rgba(225,232,253,.07)); }
  .pt-kicker { margin-bottom: 10px; }
  .pt-hero h1 { font-size: clamp(28px, 8.5vw, 38px); margin-bottom: 8px; }
  .pt-hero-actions { margin-top: 16px; }
  .pt-progress { width: 100%; display: flex; align-items: baseline; gap: 12px; padding: 14px 16px 18px; }
  .pt-progress strong { font-size: 26px; }
  .pt-progress strong small { font-size: 13px; }
  .pt-progress i { position: absolute; left: 16px; right: 16px; bottom: 8px; margin: 0; }
  .pt-note { align-items: start; }
  .pt-weekline { padding: 17px 14px; }
  .pt-weekline > header { margin-bottom: 13px; }
  .pt-weekline ol { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .pt-weekline li { flex: 0 0 min(76vw, 285px); min-height: 142px; padding: 11px; scroll-snap-align: start; }
  .pt-week-hint { display: block; margin: 7px 2px 0 !important; color: var(--ink-3); font-size: 11px; }
  .pt-side { grid-template-columns: 1fr; gap: 14px; }
  .pt-method { grid-column: auto; }
  .pt-main { gap: 14px; }
  .pt-group { padding: 18px 16px; }
  .pt-step { grid-template-columns: 38px minmax(0,1fr); gap: 12px; }
  .pt-tick { width: 38px; height: 38px; border-radius: 12px; }
  .pt-warning-icon { width: 38px; height: 38px; border-radius: 12px; }
  .pt-step:not(:last-child)::before { left: 18px; top: 58px; }
  .pt-step h3 { font-size: 15px; }
  .pt-facts p { grid-template-columns: 62px minmax(0,1fr); font-size: 13px; }
}
@media (max-width: 360px) { .pt-hero { padding: 18px; } .pt-hero-actions { gap: 7px 13px; } .pt-group > header { gap: 10px; }
  .pt-group h2 { font-size: 17px; } .pt-group-count { font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { .pt-tick, .pt-market-check { transition: none; } .pt-tick:hover, .pt-market-check:hover { transform: none; } }

/* Компактный маршрут: сначала действие и наблюдаемое число, метод — по раскрытию. */
.pt-page { gap: 14px; }
.pt-hero { min-height: 222px; padding: 26px 34px; }
.pt-kicker { margin-bottom: 9px; }
.pt-hero h1 { margin-bottom: 8px; font-size: clamp(30px, 2.7vw, 40px); }
.pt-hero-actions { margin-top: 16px; }
.pt-progress { width: 198px; padding: 16px 18px 20px; }
.pt-progress strong { font-size: 34px; }
.pt-note { display: block; padding: 0; }
.pt-note summary, .pt-weekline > summary { display: flex; align-items: center; gap: 11px; list-style: none; cursor: pointer; }
.pt-note summary::-webkit-details-marker, .pt-weekline > summary::-webkit-details-marker,
.pt-step-more summary::-webkit-details-marker, .pt-counter-tools summary::-webkit-details-marker { display: none; }
.pt-note summary { padding: 11px 16px; font: 600 13px/1.4 var(--font-ui); }
.pt-note summary img { width: 28px; height: 28px; object-fit: contain; }
.pt-note summary svg, .pt-weekline summary svg { width: 16px; height: 16px; margin-left: auto; transition: transform .18s; }
.pt-note[open] summary svg, .pt-weekline[open] > summary svg { transform: rotate(180deg); }
.pt-note > p { padding: 0 16px 14px 55px; }
.pt-weekline { padding: 12px 18px; }
.pt-weekline > summary img { width: 33px; height: 33px; object-fit: contain; padding: 4px; border-radius: 9px; background: var(--accent-soft); }
.pt-weekline > summary strong { font: 600 15px/1.35 var(--font-ui); }
.pt-weekline > p { color: var(--ink-2); font-size: 12px; margin: 12px 0; }
.pt-weekline ol { margin-top: 13px; }
.pt-group { padding: 18px 22px; }
.pt-group > header { align-items: center; padding-bottom: 10px; }
.pt-group h2 { margin: 0; font-size: 18px; }
.pt-group-count { color: var(--ink-3); font: 600 12px/1.3 var(--font-ui); text-align: right; }
.pt-group-about summary, .pt-step-more summary, .pt-counter-meta summary { width: max-content; max-width: 100%; color: var(--accent-hi); cursor: pointer; list-style: none; font: 600 12px/1.4 var(--font-ui); }
.pt-group-about { padding-top: 7px; }
.pt-group-about p { margin: 6px 0 0; color: var(--ink-2); font-size: 12px; line-height: 1.45; }
.pt-step { grid-template-columns: 34px minmax(0,1fr); gap: 10px; padding-top: 13px; }
.pt-step:not(:last-child)::before { left: 17px; top: 49px; bottom: -13px; }
.pt-step-icon { z-index: 1; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--well-2); box-shadow: inset 0 0 0 1px var(--edge); }
.pt-step-icon img { width: 28px; height: 28px; object-fit: contain; }
.pt-step-body { padding-bottom: 12px; }
.pt-step h3 { font-size: 14px; }
.pt-step-more { margin-top: 5px; }
.pt-step-more summary { display: inline-flex; align-items: center; gap: 3px; }
.pt-step-more summary svg { width: 12px; height: 12px; transition: transform .18s; }
.pt-step-more[open] summary svg { transform: rotate(180deg); }
.pt-step-more > .pt-badges { margin-top: 9px; }
.pt-step-more > .pt-facts, .pt-market .pt-step-more > .pt-facts { margin-top: 8px; }
.pt-auto-status { display: inline-block; margin-top: 3px; color: var(--ink-3); font-size: 12px; }
.pt-auto-status.is-observed { color: var(--ok); }
.pt-auto-status.is-stale, .pt-inline-stage { color: var(--hot); }
.pt-inline-stage { display: inline-block; margin-left: 8px; font-size: 11px; }
.pt-resets { padding: 15px 18px !important; }
.pt-resets > summary, .pt-method > summary { list-style: none; display: flex; align-items: center; gap: 6px; color: var(--accent-hi); cursor: pointer; font: 600 13px/1.4 var(--font-ui); }
.pt-resets > summary svg, .pt-method > summary svg { width: 13px; height: 13px; margin-left: auto; }
.pt-resets > p { margin: 12px 0; }
.pt-reset-control { display: grid !important; gap: 8px; }
.pt-reset-control label { display: grid; gap: 5px; color: var(--ink-2); font-size: 11px; }
.pt-reset-control select { width: 100%; min-width: 0; height: 36px; padding: 6px 9px; border: 1px solid var(--edge-2); border-radius: 8px; color: var(--ink); background: var(--well-2); font: 12px var(--font-ui); }
.pt-reset-control button { justify-self: start; }
.pt-market-head > img { width: 26px; height: 26px; object-fit: contain; flex: none; }
.pt-market-head h3 { font-size: 13px; }
.pt-method { padding: 8px 4px; }
.pt-method p { margin: 9px 0 5px; }

/* Проходки: число не появляется, пока игрок не подтвердил наблюдение. */
.pt-counters { padding: 20px 22px; }
.pt-counters > header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pt-counters > header > img { width: 42px; height: 42px; object-fit: contain; padding: 5px; border-radius: 11px; background: var(--accent-soft); }
.pt-counters > header > div { flex: 1; min-width: 0; }
.pt-counters h2 { margin: 0 0 3px; font: 600 20px/1.3 var(--font-ui); }
.pt-counters header p { margin: 0; color: var(--ink-2); font-size: 12px; line-height: 1.4; }
.pt-counter-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.pt-counter-list > li { display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 9px; align-items: center; min-width: 0; padding: 10px 12px; border-radius: 11px; background: var(--well-2); box-shadow: inset 0 0 0 1px var(--edge); }
.pt-counter-list > li > img { width: 34px; height: 34px; object-fit: contain; border-radius: 7px; }
.pt-counter-main { min-width: 0; display: grid; gap: 2px; }
.pt-counter-main strong { color: var(--ink); font: 600 13px/1.25 var(--font-ui); }
.pt-counter-main span { color: var(--accent-hi); font: 600 13px/1.25 var(--font-num); }
.pt-counter-main .pt-counter-unknown { color: var(--ink-3); }
.pt-counter-main small { color: var(--ink-3); font-size: 10px; line-height: 1.25; }
.pt-counter-main .pt-counter-stale { color: var(--hot); }
.pt-counter-meta { grid-column: 2; }
.pt-counter-meta summary { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; }
.pt-counter-meta summary svg { width: 12px; height: 12px; }
.pt-counter-meta p { margin: 5px 0 0; color: var(--ink-2); font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.pt-counter-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.pt-counter-tools > details { min-width: 0; padding: 8px 11px; border-radius: 9px; background: var(--well); box-shadow: inset 0 0 0 1px var(--edge); }
.pt-counter-tools > details[open] { flex-basis: 100%; }
.pt-counter-tools > details > summary { color: var(--accent-hi); cursor: pointer; font: 600 12px/1.4 var(--font-ui); }
.pt-counter-tools > details > p { margin: 10px 0; color: var(--ink-2); font-size: 12px; line-height: 1.4; }
.pt-counter-foot { margin: 12px 0 0 !important; color: var(--ink-3); font-size: 11px; line-height: 1.4; }
.pt-candidate-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; list-style: none; padding: 0; margin: 12px 0 0; }
.pt-candidate-list > li { min-width: 0; padding: 12px; border-radius: 10px; background: var(--well-2); }
.pt-candidate-list > li > strong, .pt-candidate-list > li > span { display: block; font-size: 12px; }
.pt-candidate-list > li > span { margin-top: 3px; color: var(--ink-2); }
.pt-candidate-list > li > details { margin-top: 8px; font-size: 11px; color: var(--ink-2); }
.pt-counter-form { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-top: 10px; }
.pt-counter-form label { display: grid; gap: 4px; min-width: 0; color: var(--ink-2); font-size: 11px; }
.pt-counter-form :is(input:not([type="checkbox"]),select) { width: 100%; min-width: 0; height: 35px; padding: 6px 8px; border-radius: 7px; border: 1px solid var(--edge-2); color: var(--ink); background: var(--well-2); font: 13px var(--font-ui); }
.pt-counter-form .pt-counter-confirm { grid-column: 1/-1; display: flex; align-items: start; gap: 7px; line-height: 1.4; }
.pt-counter-confirm input { margin-top: 2px; accent-color: var(--accent); }
.pt-counter-form button { grid-column: 1/-1; justify-self: start; }
.pt-import-label { display: grid; gap: 5px; max-width: 370px; font-size: 12px; color: var(--ink-2); }
.pt-import-label input { max-width: 100%; }
.pt-counter-history ol { max-height: 280px; overflow-y: auto; list-style: none; padding: 0; margin: 12px 0 0; }
.pt-counter-history li { display: grid; gap: 2px; padding: 7px 0; border-bottom: 1px solid var(--edge); font-size: 11px; }
.pt-counter-history li span { color: var(--ink-2); }
:is(.pt-note,.pt-weekline,.pt-step-more,.pt-group-about,.pt-counter-meta,.pt-counter-tools > details,.pt-resets,.pt-method) > summary:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 760px) {
  .pt-hero { min-height: 238px; padding: 19px; gap: 10px; }
  .pt-hero h1 { font-size: clamp(27px, 7.7vw, 34px); }
  .pt-hero-actions { margin-top: 10px; gap: 7px; }
  .pt-hero-actions .btn { min-height: 37px; padding: 8px 10px; font-size: 11px; }
  .pt-progress { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px 16px; }
  .pt-progress strong { display: inline-flex; align-items: baseline; flex: none; white-space: nowrap; gap: 3px; font-size: 23px; }
  .pt-progress strong small { white-space: nowrap; font-size: 12px; }
  .pt-progress > span { flex: 1; }
  .pt-progress i { left: 12px; right: 12px; bottom: 6px; }
  .pt-counters { padding: 16px 13px; }
  .pt-counters > header > img { width: 34px; height: 34px; }
  .pt-counters h2 { font-size: 17px; }
  .pt-counter-list, .pt-candidate-list { grid-template-columns: 1fr; }
  .pt-counter-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pt-counter-form label:first-child { grid-column: 1/-1; }
  .pt-note summary { padding: 10px 12px; }
  .pt-note > p { padding: 0 12px 12px; }
  .pt-weekline { padding: 10px 12px; }
  .pt-group { padding: 15px 14px; }
  .pt-step { grid-template-columns: 30px minmax(0,1fr); gap: 9px; }
  .pt-step-icon { width: 30px; height: 30px; }
  .pt-step-icon img { width: 25px; height: 25px; }
  .pt-step:not(:last-child)::before { left: 15px; top: 44px; }
}
