

.ug-rail { display: none; }
.chlog-head > p.ug-standfirst { font-size: 18px; line-height: 1.6; color: var(--text-secondary); margin: 20px 0 4px; }
.chlog-entry.ug .chlog-tags { margin-top: 14px; }
.ug-toc { margin: 18px 0 6px; border: 1px solid #e3e8ec; border-radius: 12px; background: #fff; }
.ug-toc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 16px; font-size: 15px; font-weight: 700; color: var(--text); }
.ug-toc summary::-webkit-details-marker { display: none; }
.ug-toc summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid #64748b; border-bottom: 2px solid #64748b; transform: rotate(45deg) translateY(-3px); flex: none; margin-left: auto; transition: transform .15s; }
.ug-toc[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.ug-toc summary .n { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.ug-toc ol { list-style: none; margin: 0; padding: 4px 8px 10px; border-top: 1px solid #eff1f3; counter-reset: ug; }
.ug-toc li { counter-increment: ug; }
.ug-toc a { display: flex; gap: 10px; align-items: baseline; padding: 9px 8px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 15px; line-height: 1.35; }
.ug-toc a::before { content: counter(ug); min-width: 18px; font-size: 12.5px; font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.ug-toc a:hover { background: #f4f7f9; }

@media (min-width: 1180px) {
  .chlog.ug { display: grid; grid-template-columns: 220px minmax(0, 720px); column-gap: 64px; justify-content: center; }
  .chlog.ug > * { grid-column: 2; }
  .chlog.ug > .ug-rail { display: block; grid-column: 1; grid-row: 1 / span 4; position: sticky; top: 88px; align-self: start; max-height: calc(calc(100vh / var(--bs-zoom, 1)) - 112px); overflow-y: auto; padding-top: 6px; }
  .chlog.ug .chlog-head, .chlog.ug .update-post, .chlog.ug .chlog-nav { margin-left: 0; margin-right: 0; }
  .chlog.ug .ug-toc { display: none; }
}
.ug-rail-h { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 10px; }
.ug-rail ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid #e6eaee; }
.ug-rail a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text-secondary); text-decoration: none; font-size: 13.5px; line-height: 1.4; }
.ug-rail a:hover { color: var(--text); }
.ug-rail a.on { color: var(--brand-dark); border-left-color: var(--brand); font-weight: 600; }

.ug .update-post h2 { font-size: 22px; letter-spacing: -0.01em; margin: 44px 0 12px; scroll-margin-top: 88px; }
.ug .update-post h2:first-child { margin-top: 8px; }
.ug .update-post .ug-proves { font-size: 13px; color: var(--text-muted); margin: -4px 0 14px; }
.ug .update-post .ug-proves a { color: var(--brand-dark); }

.ug-shot { margin: 18px 0 22px; }
.ug .update-post .ug-shot img { display: block; width: auto; max-width: 100%; height: auto; max-height: 560px; margin: 0 auto; border: 1px solid #e3e8ec; border-radius: 12px; background: #f6f8f9; }

@media (max-width: 560px) { .ug .update-post .ug-shot img { max-height: calc(70vh / var(--bs-zoom, 1)); } }
.ug-shot figcaption { text-align: center; }

.update-post ul.ug-caps { list-style: none; padding: 0; margin: 12px 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.update-post ul.ug-caps li { margin: 0; font-size: 14.5px; line-height: 1.5; }
.update-post ul.ug-caps b { color: var(--text); }
@media (max-width: 560px) { .update-post ul.ug-caps { grid-template-columns: 1fr; } }
.ug-shot figcaption { font-size: 13.5px; line-height: 1.55; color: #5b6b78; margin-top: 8px; }
.ug-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 22px; }
.ug-pair .ug-shot { margin: 0; }
.ug-phones { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 18px 0 22px; max-width: 560px; }
.ug-phones .ug-shot { margin: 0; }
.ug .update-post .ug-phones .ug-shot img { border-radius: 18px; }
@media (max-width: 560px) { .ug-pair { grid-template-columns: 1fr; } }
.ug-pending { display: flex; align-items: center; justify-content: center; min-height: 120px; border: 1px dashed #cdd6dd; border-radius: 12px; background: #f6f8f9; color: #7a8894; font-size: 13px; padding: 14px; text-align: center; }

.update-post ol.ug-diff { list-style: none; margin: 14px 0 8px; padding: 0; counter-reset: d; border-top: 1px solid #e6eaee; }
.update-post .ug-diff > li { counter-increment: d; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 10px; padding: 16px 0; border-bottom: 1px solid #e6eaee; margin: 0; }
.ug-diff > li::before { content: counter(d); font-size: 15px; font-weight: 800; color: var(--brand-dark); font-variant-numeric: tabular-nums; line-height: 1.5; }
.ug-diff strong { display: block; font-size: 16px; color: var(--text); margin-bottom: 2px; }
.ug-diff p { margin: 0 !important; }
.ug-diff .ug-see { font-size: 13.5px; }

.update-post .ug-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 20px 0 22px; border-top: 1px solid #e3e8ec; border-bottom: 1px solid #e3e8ec; }
.ug-facts > div { padding: 18px 20px; border-left: 1px solid #e3e8ec; }
.ug-facts > div:first-child { border-left: 0; padding-left: 0; }
.ug-facts b { display: block; font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.ug-facts span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.35; color: var(--text-secondary); white-space: nowrap; }
@media (max-width: 560px) {
  .update-post .ug-facts { grid-template-columns: 1fr 1fr; }
  .ug-facts > div { padding: 14px 16px; }
  .ug-facts > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .ug-facts > div:nth-child(n+3) { border-top: 1px solid #e3e8ec; }
}

.ug .update-post .ug-shot img[data-full] { cursor: zoom-in; }
.ug .update-post .ug-shot img[data-full]:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.ug-lb { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; background: rgba(8, 12, 18, .97); padding: 56px 64px 40px; }
.ug-lb.on { display: flex; animation: ugLbIn .16s ease-out; }
.ug-lb-still.on { animation: none; }
@keyframes ugLbIn { from { opacity: 0; } to { opacity: 1; } }
html.ug-lb-open { overflow: hidden; }
.ug-lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 100%; max-height: 100%; }
.ug-lb-fig img { display: block; max-width: 100%; max-height: calc(calc(100vh / var(--bs-zoom, 1)) - 150px); width: auto; height: auto; border-radius: 8px; background: #f6f8f9; }
.ug-lb-fig figcaption { color: #dbe3ea; font-size: 14px; line-height: 1.5; margin-top: 12px; max-width: 760px; text-align: center; }
.ug-lb button { position: absolute; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.ug-lb button:hover { background: rgba(255, 255, 255, .22); }
.ug-lb button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ug-lb button:disabled { opacity: .25; cursor: default; }
.ug-lb-x { top: 10px; right: 12px; }
.ug-lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.ug-lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.ug-lb-n { position: absolute; top: 20px; left: 0; right: 0; margin: 0; text-align: center; color: #9fb0bf; font-size: 13px; pointer-events: none; }
@media (max-width: 700px) {
  .ug-lb { padding: 56px 8px 24px; }
  .ug-lb-prev, .ug-lb-next { top: auto; bottom: 12px; transform: none; }
  .ug-lb-fig img { max-height: calc(calc(100vh / var(--bs-zoom, 1)) - 190px); }
}
