/* Guts AI model pages: the model detail page (/models/<id>, .md-*) and the compare page
   (/models/compare, .cmp-*). Load after theme.css, v2.css and pages.css. Colours come from the
   v2 tokens only, so the dark theme follows. */

/* Page tokens the v2 sheet does not define (the design's surface-hover, accent-text, warn and
   the app category tints). */
:root{--mp-hover:#E6EBE7;--mp-accent-text:#156B5C;--mp-pop-shadow:#0B201A29;--mp-warn:#8F6000;--mp-warn-soft:#E5B0121F;
  --mp-violet:#57487C;--mp-violet-soft:#57487C14;--mp-blue:#355C7E;--mp-blue-soft:#355C7E14}
[data-theme=dark]{--mp-hover:#232E30;--mp-accent-text:#5FD9BF;--mp-pop-shadow:#00000080;--mp-warn:#F0C445;--mp-warn-soft:#E8B7301F;
  --mp-violet:#CFC0EC;--mp-violet-soft:#CFC0EC1F;--mp-blue:#AECDEA;--mp-blue-soft:#AECDEA1F}

/* Shared bits */
.md-wrap{max-width:1120px;margin:0 auto}
.md-label{font-family:var(--font-code);font-size:11px;font-weight:400;letter-spacing:.3px;line-height:14px;text-transform:uppercase;color:var(--text-3)}
.md-crumb{display:flex;align-items:center;gap:6px;font-size:13px;line-height:17px;color:var(--text-3)}
.md-crumb a{color:var(--text-3);transition:color .15s ease}
.md-crumb a:hover{color:var(--text)}
.md-crumb .md-crumb-cur{color:var(--text)}
.md-h{font-size:22px;font-weight:600;letter-spacing:-.5px;line-height:28px;color:var(--text)}
.md-head{display:flex;flex-direction:column;gap:6px}
.md-sub{font-size:14px;line-height:21px;color:var(--text-2)}
.md-btn{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border-radius:8px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line-strong);font-size:14px;font-weight:500;line-height:18px;color:var(--text);white-space:nowrap;transition:background-color .15s ease}
.md-btn:hover{background:var(--tint-2)}
.md-btn .i{font-size:14px}
.md-btn-primary{background:var(--accent);box-shadow:none;color:var(--on-accent);font-weight:600}
.md-btn-primary:hover{background:color-mix(in srgb,var(--accent) 88%,var(--text))}
.md-btn-sm{padding:9px 14px;background:transparent}
.mp-skel{display:block;height:10px;border-radius:5px;background:var(--tint-2)}

/* ---------- Model detail ---------- */
.md-hero .shell{display:block;padding-top:48px;padding-bottom:48px}
.md-hero-in{display:flex;gap:56px}
.md-hero-left{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:18px}
.md-hero-right{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:20px;padding-top:28px}
.md-name{display:flex;align-items:center;gap:20px}
.md-logo{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:72px;height:72px;border-radius:18px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line-strong),0 4px 12px var(--tint-3)}
.md-logo img{width:38px;height:38px;object-fit:contain}
.md-title-stack{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0}
.md-title{font-size:48px;font-weight:500;letter-spacing:-1.8px;line-height:52px;color:var(--text);overflow-wrap:anywhere}
.md-id{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:4px 8px;border-radius:6px;background:var(--tint-2)}
.md-id code{font-size:13px;line-height:17px;color:var(--text-2);overflow-wrap:anywhere}
.md-id-copy{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:4px;color:var(--text-3)}
.md-id-copy:hover{color:var(--text)}
.md-id-copy .i,.md-id-copy svg{width:12px;height:12px;font-size:12px}
.md-desc{font-size:16px;line-height:26px;color:var(--text-2)}
/* Hero stats: the price card on the left, the other stats (context, max output, latency) stacked
   beside it as compact rows, label left and value right, so no value ever runs out of its card. */
.md-stats{display:grid;grid-template-columns:236px minmax(0,1fr);grid-auto-rows:minmax(0,1fr);gap:8px}
.md-stats:empty{display:none}
.md-stat{display:flex;flex-direction:column;gap:6px;min-width:0;padding:14px 16px;border-radius:12px;background:var(--tint-1)}
.md-stat .md-label{white-space:nowrap}
.md-stat-v{font-size:30px;font-weight:600;letter-spacing:-1px;line-height:36px;color:var(--text);white-space:nowrap}
.md-stat-price{grid-row:span 2}
.md-stats:has(> .md-stat:nth-child(4)) .md-stat-price{grid-row:span 3}
.md-stats:not(:has(> .md-stat-price)){grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}
.md-stats > .md-stat:not(.md-stat-price){display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:baseline;column-gap:10px;padding:10px 14px}
.md-stats > .md-stat:not(.md-stat-price) .md-stat-v{grid-column:2;justify-self:end;font-size:20px;letter-spacing:-.4px;line-height:24px}
.md-stats > .md-stat:not(.md-stat-price) .md-stat-v + .md-label{grid-column:3;min-width:0;overflow:hidden;text-overflow:ellipsis}
/* Price card: Guts AI and official prices per 1M, one row per token kind. */
.md-pt{display:grid;grid-template-columns:auto 1fr 1fr;align-items:baseline;gap:4px 12px;font-size:13px;line-height:18px;color:var(--text-3)}
.md-pt.is-solo{grid-template-columns:auto 1fr}
.md-pt-h{font-family:var(--font-code);font-size:10px;line-height:14px;letter-spacing:.04em;text-transform:uppercase;text-align:right;color:var(--text-3)}
.md-pt b{font-size:14px;font-weight:600;text-align:right;color:var(--text);white-space:nowrap}
.md-pt-off{text-align:right;white-space:nowrap;color:var(--text-3)}
.md-stat-row{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;line-height:18px;color:var(--text-3)}
.md-stat-row b{font-size:14px;font-weight:600;color:var(--text)}
.md-stat-row.is-official b{color:var(--text-3)}
.md-actions{display:flex;flex-wrap:wrap;gap:8px;padding-top:4px}

/* Code block: the docs' code container in the design's flat look */
.md-code.code-container{margin:0;border-radius:12px;background:var(--code-bg);box-shadow:none}
[data-theme=dark] .md-code.code-container{box-shadow:inset 0 0 0 1px var(--code-line)}
.md-code .code-tab-header{min-height:0;height:38px;padding:0 14px;gap:2px;align-items:stretch;background:transparent;border-bottom:1px solid var(--code-line-strong)}
.md-code .code-tabs{gap:2px}
.md-code .code-tab{padding:0 9px;font-family:var(--font-sans);font-size:12px;color:var(--code-text);opacity:.55}
.md-code .code-tab:hover,.md-code .code-tab.active{opacity:1;color:var(--code-text)}
.md-code .code-tab.active::after{height:2px;bottom:-1px;background:var(--code-text)}
.md-code .code-tabs .code-tab-ink{bottom:0;background:var(--code-text)}
.md-code .code-copy-btn{color:var(--code-text)}
.md-code .code-copy-btn .i,.md-code .code-copy-btn svg{width:13px;height:13px}
.md-code .code-pane{padding:22px 18px 26px;font-size:12px;line-height:22px;min-height:224px}
.md-code .code-line{padding-right:0}
.md-code .line-num{width:28px;padding:0;text-align:left;color:var(--code-text);opacity:.4}
.md-code .line-content{color:var(--code-text)}

/* Availability strip */
.md-avail{display:flex;flex-direction:column;gap:10px}
.md-avail-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.md-avail-top b{font-size:13px;font-weight:600;line-height:17px;color:var(--text)}
/* Uptime bars: the console's status bars (console/p-status.css .md-up, .ms-cells), same fills
   (console/console.css --ok-fill, --warn-fill, --err-fill, light and dark). */
:root{--ok-fill:#2EA36B;--warn-fill:#E5B012;--err-fill:#E5484D}
[data-theme=dark]{--ok-fill:#46C38A;--warn-fill:#E8B730;--err-fill:#EE5A5E}
.md-bars{display:flex;gap:2px;align-items:center;height:22px}
.md-bars i{flex:1;height:22px;border-radius:2px;background:var(--tint-4);transition:opacity .15s ease}
.md-bars i.g{background:var(--ok-fill)}
.md-bars i.a{background:var(--warn-fill)}
.md-bars i.r{background:var(--err-fill)}
.md-bars i.n{background:color-mix(in srgb,var(--ok-fill) 22%,transparent)}
.md-bars:hover i{opacity:.55}
.md-bars:hover i:hover{opacity:1}
/* Bar tooltip, as the console's chart tip (console.css .tip). */
.md-tip{position:fixed;z-index:90;pointer-events:none;background:var(--surface);border:1px solid var(--line-strong);border-radius:8px;box-shadow:0 12px 32px var(--card-shadow);padding:9px 11px;font-size:12px;min-width:150px;opacity:0;transition:opacity .12s ease}
.md-tip.show{opacity:1}
.md-tip .th{font-weight:500;margin-bottom:6px;color:var(--text)}
.md-tip .tr{display:flex;justify-content:space-between;gap:16px;color:var(--text-2);line-height:20px}
.md-tip .tr b{font-family:var(--font-code);font-weight:400;color:var(--text)}
.md-tip .tr i{display:inline-block;width:7px;height:7px;border-radius:2px;margin-right:6px;vertical-align:1px}
@media (prefers-reduced-motion:reduce){.md-tip{transition:none}}
.md-avail-legend{display:flex;align-items:center;justify-content:space-between;gap:12px}
.md-keys{display:flex;align-items:center;flex-wrap:wrap;justify-content:center;gap:12px}
.md-key{display:inline-flex;align-items:center;gap:5px;font-family:var(--font-code);font-size:11px;letter-spacing:.3px;line-height:14px;text-transform:uppercase;color:var(--text-3)}
.md-key i{width:6px;height:6px;border-radius:50%;background:var(--ok-fill)}
.md-key i.a{background:var(--warn-fill)}
.md-key i.r{background:var(--err-fill)}
.md-key i.n{background:color-mix(in srgb,var(--ok-fill) 22%,transparent)}

/* Body */
.md-body{display:flex;flex-direction:column;gap:64px;padding:56px 0 72px}
.md-specs{display:flex;flex-direction:column;gap:20px}
/* Every row is the same 12-column grid (md-c<n> spans n columns); the 1px gaps over the line
   colour are the dividers, so they line up from row to row. */
.md-spec-grid{display:flex;flex-direction:column;gap:1px;overflow:hidden;border-radius:12px;background:var(--line);box-shadow:0 6px 24px var(--card-shadow)}
[data-theme=dark] .md-spec-grid{box-shadow:inset 0 0 0 1px var(--line),0 6px 24px var(--card-shadow)}
.md-spec-row{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:1px}
.md-cell{display:flex;flex-direction:column;gap:6px;min-width:0;padding:16px 18px;background:var(--surface)}
.md-c3{grid-column:span 3}
.md-c4{grid-column:span 4}
.md-c6{grid-column:span 6}
.md-c8{grid-column:span 8}
.md-c9{grid-column:span 9}
.md-c12{grid-column:span 12}
.md-cell-v{display:flex;align-items:flex-end;gap:6px;flex-wrap:wrap}
.md-cell-v b{font-size:26px;font-weight:600;letter-spacing:-.6px;line-height:32px;color:var(--text)}
.md-cell-v .md-label{padding-bottom:5px}
.md-spec-row.is-chips .md-cell{gap:10px}
.md-chips{display:flex;flex-wrap:wrap;gap:8px}
/* Available: a tinted chip, full-contrast label, its icon in the accent. Unavailable: the same
   icon and label faded, no box. */
.md-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:7px;background:color-mix(in srgb,var(--accent) 11%,var(--surface));font-size:13px;font-weight:500;line-height:17px;color:var(--text)}
.md-chip .i{font-size:14px;color:var(--accent)}
.md-chip.is-off{background:transparent;font-weight:400;color:var(--text-3);opacity:.5}
.md-chip.is-off .i{color:inherit}
.md-plain{font-size:13px;line-height:27px;color:var(--text-3)}

.md-two{display:flex;gap:48px}
.md-pricing,.md-side{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:16px}
.md-two > .md-side:only-child,.md-two > .md-pricing:only-child{flex:1 1 100%}
.md-price-rows{display:flex;flex-direction:column}
.md-price-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.md-price-l{display:flex;flex:1 1 0;flex-direction:column;gap:3px;min-width:0}
.md-price-l b{font-size:14px;font-weight:500;line-height:18px;color:var(--text)}
.md-price-l span{font-size:12px;line-height:15px;color:var(--text-3)}
.md-price-idr{font-size:12px;line-height:15px;color:var(--text-3);white-space:nowrap}
.md-price-usd{font-size:20px;font-weight:600;line-height:25px;color:var(--text);white-space:nowrap}

.md-vs{display:flex;flex-direction:column;gap:10px;padding:16px;border-radius:12px;background:var(--tint-1)}
.md-vs-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.md-save{padding:3px 8px;border-radius:6px;background:var(--ok-soft);font-family:var(--font-code);font-size:11px;font-weight:500;line-height:14px;color:var(--ok)}
.md-vs-row{display:flex;align-items:center;gap:12px}
.md-vs-row > span:first-child{flex:0 0 64px;font-family:var(--font-code);font-size:11px;line-height:14px;color:var(--text-2)}
.md-track{position:relative;flex:1 1 auto;height:10px}
.md-track i{position:absolute;left:0;top:0;height:10px;border-radius:3px;background:var(--line-strong)}
.md-track i.is-guts{background:var(--accent)}
.md-vs-row b{flex:0 0 auto;min-width:56px;text-align:right;font-family:var(--font-code);font-size:13px;font-weight:500;line-height:17px;color:var(--text)}
.md-vs-row b.is-official{color:var(--text-3)}
.md-vs-none{flex:1 1 auto;font-size:12px;line-height:14px;color:var(--text-3)}

.md-calc{display:flex;flex-direction:column;gap:16px}
.md-divider{height:1px;background:var(--line)}
.md-slider{display:flex;flex-direction:column;gap:10px}
.md-slider-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.md-slider-top output{font-size:14px;font-weight:600;line-height:18px;color:var(--text)}
.md-ticks{display:flex;justify-content:space-between;font-family:var(--font-code);font-size:11px;letter-spacing:.3px;line-height:14px;color:var(--text-3)}
.md-slider input[type=range]{--p:33.33%;-webkit-appearance:none;appearance:none;width:100%;height:14px;margin:0;background:transparent;cursor:pointer}
.md-slider input[type=range]:focus{outline:none}
.md-slider input[type=range]::-webkit-slider-runnable-track{height:3px;border-radius:2px;background:linear-gradient(90deg,var(--accent) 0 var(--p),var(--line-strong) var(--p) 100%)}
.md-slider input[type=range]::-moz-range-track{height:3px;border-radius:2px;background:linear-gradient(90deg,var(--accent) 0 var(--p),var(--line-strong) var(--p) 100%)}
.md-slider input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:14px;height:14px;margin-top:-5.5px;border-radius:50%;background:var(--surface);box-shadow:inset 0 0 0 2px var(--accent)}
.md-slider input[type=range]::-moz-range-thumb{width:14px;height:14px;border:0;border-radius:50%;background:var(--surface);box-shadow:inset 0 0 0 2px var(--accent)}
.md-slider input[type=range]:focus-visible::-webkit-slider-thumb{outline:2px solid var(--accent);outline-offset:2px}
.md-slider input[type=range]:focus-visible::-moz-range-thumb{outline:2px solid var(--accent);outline-offset:2px}
.md-cache{display:flex;align-items:center;justify-content:space-between;gap:12px}
.md-seg{position:relative;display:inline-flex;gap:2px;padding:3px;border-radius:8px;background:var(--tint-2)}
.md-seg button{padding:5px 12px;border-radius:6px;font-family:var(--font-code);font-size:12px;line-height:15px;color:var(--text-3)}
.md-seg button[aria-pressed=true]{background:var(--surface);box-shadow:0 1px 3px var(--tint-3);color:var(--text);font-weight:500}
.md-seg .seg-ind{border-radius:6px;background:var(--surface);box-shadow:0 1px 3px var(--tint-3)}
.md-seg.seg-live > [aria-pressed=true]{box-shadow:none}
/* The total sits on the last line of the text beside it (last baseline). */
.md-est{display:flex;align-items:flex-end;align-items:last baseline;justify-content:space-between;gap:16px;padding-top:8px}
.md-est-l{display:flex;flex-direction:column;gap:3px;min-width:0}
.md-est-l p:first-child{font-size:14px;line-height:18px;color:var(--text-2)}
.md-est-sub{font-size:12px;line-height:16px;color:var(--text-3)}
.md-est-r{display:flex;align-items:baseline;gap:8px;flex-shrink:0}
.md-est-r span{font-size:12px;line-height:20px;color:var(--text-3);white-space:nowrap}
.md-est-r b{font-size:22px;font-weight:600;line-height:27px;color:var(--text);white-space:nowrap}

.md-side{gap:0}
.md-perf{display:flex;flex-direction:column;gap:16px}
.md-perf-table{width:100%;border-collapse:collapse}
.md-perf-table th{padding:0 0 10px;border-bottom:1px solid var(--line);font-family:var(--font-code);font-size:11px;font-weight:400;letter-spacing:.3px;line-height:14px;text-align:right;text-transform:uppercase;color:var(--text-3)}
.md-perf-table th:first-child{text-align:left}
.md-perf-table td{height:54px;padding:0;border-bottom:1px solid var(--line);font-size:13px;line-height:17px;text-align:right;color:var(--text-3);white-space:nowrap}
.md-perf-table th + th,.md-perf-table td + td{width:90px}
.md-perf-table td:first-child{text-align:left;color:var(--text-2);white-space:normal}
.md-perf-table td.is-p50{font-size:18px;font-weight:600;line-height:22px;color:var(--text)}
.md-api{display:flex;flex-direction:column;gap:16px;margin-top:auto;padding-top:40px}
.md-perf[hidden] + .md-api{padding-top:0;margin-top:0}
.md-api-rows{margin:0;border-top:1px solid var(--line)}
.md-api-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line)}
.md-api-row dt{font-family:var(--font-code);font-size:13px;line-height:17px;color:var(--text)}
.md-api-row dd{margin:0;font-size:13px;line-height:17px;text-align:right;color:var(--text-3)}

.md-related{display:flex;flex-direction:column;gap:20px;padding-top:48px;border-top:1px solid var(--line)}
.md-related-top{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}
.md-cards{display:flex;gap:14px}
.md-card{display:flex;flex:1 1 0;flex-direction:column;gap:22px;min-width:0;padding:18px;border-radius:12px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);transition:box-shadow .15s ease}
.md-card:hover{box-shadow:inset 0 0 0 1px var(--line-strong)}
.md-card-top{display:flex;align-items:center;gap:10px}
.md-card-top img{width:20px;height:20px;object-fit:contain}
.md-card-name{display:flex;flex:1 1 0;flex-direction:column;gap:2px;min-width:0}
.md-card-name b{font-size:14px;font-weight:600;line-height:18px;color:var(--text);overflow-wrap:anywhere}
.md-card-top > .i{font-size:15px;color:var(--text)}
.md-card-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
/* A card's prices as rows (label left, price right), as the catalog's price cells; "per 1M" and
   the context sit at the bottom right. */
.md-card-pr{display:grid;grid-template-columns:auto auto;justify-content:start;column-gap:14px;row-gap:3px;margin:0}
.md-card-pr div{display:contents}
.md-card-pr dt{font-family:var(--font-code);font-size:11px;line-height:20px;letter-spacing:.04em;text-transform:uppercase;color:var(--text-3)}
.md-card-pr dd{margin:0;font-size:15px;font-weight:600;line-height:20px;text-align:right;white-space:nowrap;color:var(--text)}
.md-card-meta{display:flex;flex-direction:column;align-items:flex-end;gap:4px;text-align:right}

/* Usage and "Apps using" */
.md-usage,.md-apps{display:flex;flex-direction:column;gap:20px}
.md-sec-top{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}
.md-range{display:inline-flex;flex-shrink:0;gap:2px;padding:4px;border-radius:10px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line-strong)}
.md-range button{padding:7px 12px;border-radius:7px;font-size:14px;font-weight:500;line-height:18px;color:var(--text-3);transition:background-color .15s ease,color .15s ease}
.md-range button:hover{color:var(--text)}
.md-range button[aria-selected=true]{background:var(--surface-2);color:var(--text)}
/* The period's highlight slides between the tabs ([data-seg], landing.js), a touch quicker than the
   shared .3s; one weight for every tab, so no label moves on a switch. */
.md-range .seg-ind{transition-duration:.24s}
.md-usage-card,.md-apps-list{border-radius:14px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);overflow:hidden}
.md-ustats{display:flex;border-bottom:1px solid var(--line)}
.md-ustat{display:flex;flex:1 1 0;flex-direction:column;gap:6px;min-width:0;padding:18px 24px;border-right:1px solid var(--line)}
.md-ustat:last-child{border-right:0}
.md-ustat-l,.md-ustat-s{font-family:var(--font-code);font-size:11px;line-height:14px;color:var(--text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.md-ustat-l{text-transform:uppercase}
.md-ustat-v{font-size:26px;font-weight:500;letter-spacing:-.6px;line-height:32px;color:var(--text)}
.md-ustat-s.is-up{color:var(--ok)}
.md-ustat-s.is-down{color:var(--err)}
.md-ustat-s a{color:inherit;text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:2px}
.md-ustat-s a:hover{color:var(--mp-accent-text);text-decoration-color:currentColor}
.md-uchart{--ugap:14px;display:flex;gap:12px;padding:18px 24px 20px}
.md-uchart.is-dense{--ugap:6px}
.md-uaxis{display:flex;flex-direction:column;justify-content:space-between;flex-shrink:0;width:36px;height:212px;margin-top:-6px;font-family:var(--font-code);font-size:10px;line-height:12px;text-align:right;color:var(--text-3)}
.md-uplot{display:flex;flex:1 1 0;flex-direction:column;gap:8px;min-width:0}
.md-ubars{display:flex;align-items:flex-end;gap:var(--ugap);height:200px;border-bottom:1px solid var(--line)}
.md-ubar{display:flex;flex:1 1 0;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px;min-width:0;height:100%}
.md-ubar i{display:block;width:100%;border-radius:4px 4px 0 0;background:var(--accent);opacity:.3;transition:opacity .15s ease}
.md-ubar:hover i{opacity:.5}
.md-ubar.is-cur i{opacity:1}
.md-ubar i.is-none{height:0}
.md-ubar b{font-family:var(--font-code);font-size:11px;font-weight:400;line-height:14px;color:var(--text);white-space:nowrap}
.md-uxaxis{display:flex;gap:var(--ugap);will-change:transform}
.md-uxaxis span{flex:1 1 0;min-width:0;font-family:var(--font-code);font-size:10px;line-height:13px;text-align:center;color:var(--text-3);white-space:nowrap;overflow:visible}
.md-uxaxis span.is-cur{color:var(--text)}
.md-apps-cols{display:flex;align-items:center;gap:14px;padding:12px 24px;border-bottom:1px solid var(--line);background:var(--bg-alt);font-family:var(--font-code);font-size:11px;line-height:13px;text-transform:uppercase;color:var(--text-3)}
.md-apps-c-app{flex:1 1 0}
.md-apps-rows{margin:0;padding:0;list-style:none}
.md-apps-empty{margin:0;padding:32px 24px;text-align:center;font-size:14px;line-height:20px;color:var(--text-3)}
.md-apps-list:has(> .md-apps-empty) > .md-apps-cols{display:none}
.md-app{display:flex;align-items:center;gap:14px;padding:14px 24px;border-bottom:1px solid var(--line)}
.md-apps-list > .md-apps-rows:last-child > .md-app:last-child{border-bottom:0}
.md-app-rank{flex-shrink:0;width:24px;font-family:var(--font-code);font-size:13px;line-height:17px;text-align:right;color:var(--text-3)}
.md-apps-cols .md-app-rank{font-size:11px;line-height:13px}
.md-app-main{display:flex;flex:1 1 0;align-items:center;gap:14px;min-width:0;color:inherit}
/* An app with a page: its name turns accent on hover, as the Apps pages' list rows (apps.css .ax-lrow). */
.md-app-main:hover .md-app-title b,.md-app-main:focus-visible .md-app-title b{color:var(--accent)}
.md-app-logo{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;height:36px;border-radius:9px;background:#EEF1EE;overflow:hidden;font-size:15px;font-weight:600;color:#162022}
.md-app-logo img{width:22px;height:22px;border-radius:4px;object-fit:contain}
.md-app-text{display:flex;flex:1 1 0;flex-direction:column;gap:4px;min-width:0}
.md-app-title{display:flex;align-items:center;gap:8px;min-width:0}
.md-app-title b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:500;line-height:18px;color:var(--text);transition:color .15s ease}
.md-tag{flex-shrink:0;padding:2px 6px;border-radius:4px;background:var(--accent-soft);font-size:11px;font-weight:500;line-height:14px;color:var(--mp-accent-text);white-space:nowrap}
.md-tag[data-cat=ide-extension]{background:var(--mp-warn-soft);color:var(--mp-warn)}
.md-tag[data-cat=general-chat],.md-tag[data-cat=roleplay],.md-tag[data-cat=creative-writing],.md-tag[data-cat=writing-assistant],.md-tag[data-cat=game],.md-tag[data-cat=image-gen],.md-tag[data-cat=video-gen],.md-tag[data-cat=audio-gen]{background:var(--mp-violet-soft);color:var(--mp-violet)}
.md-tag[data-cat=personal-agent],.md-tag[data-cat=legal]{background:var(--mp-blue-soft);color:var(--mp-blue)}
.md-app-desc{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;line-height:17px;color:var(--text-2)}
.md-app-share{display:flex;align-items:center;flex-shrink:0;gap:10px;width:220px}
.md-apps-cols .md-app-share{display:block}
.md-app-track{position:relative;flex:1 1 0;height:6px;border-radius:3px;background:var(--tint-2)}
.md-app-track i{position:absolute;top:0;left:0;height:6px;border-radius:3px;background:var(--accent)}
.md-app-pct{flex-shrink:0;width:44px;font-family:var(--font-code);font-size:12px;line-height:15px;text-align:right;color:var(--text-2)}
.md-app-tok{flex-shrink:0;width:110px;font-size:13px;line-height:17px;text-align:right;color:var(--text-3);white-space:nowrap}
.md-app-tok b{font-family:var(--font-code);font-weight:400;color:var(--text)}
.md-apps-more{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;padding:14px 0;font-size:13px;font-weight:500;line-height:17px;color:var(--text-2);transition:color .15s ease}
.md-apps-more:hover{color:var(--text)}
.md-apps-more .i{font-size:14px;transition:transform .15s ease}
.md-apps-more[aria-expanded=true] .i{transform:rotate(180deg)}

/* ---------- Compare ---------- */
.cmp-hero .shell{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:32px;padding-top:40px;padding-bottom:40px}
.cmp-crumb{gap:8px}
.cmp-crumb .i{font-size:12px;color:var(--text-2)}
.cmp-crumb [aria-current]{color:var(--text-2)}
.cmp-title-block{display:flex;flex-direction:column;gap:14px;max-width:640px}
.cmp-title{font-size:56px;font-weight:500;letter-spacing:-2.2px;line-height:60px;color:var(--text)}
.cmp-desc{font-size:18px;line-height:27px;color:var(--text-2)}
/* The model picker opens below the hero: clip the hero's backdrop sideways only. */
.cmp-hero{overflow:visible;overflow-x:clip;position:relative;z-index:2}
.cmp-pickers{position:relative;display:flex;gap:16px}
.cmp-slot{position:relative;display:flex;flex:1 1 0;align-items:center;gap:14px;min-width:0;min-height:76px;padding:16px 18px;border-radius:14px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line-strong),0 4px 16px var(--tint-3)}
.cmp-slot-logo{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;border-radius:11px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line-strong)}
.cmp-slot-logo img{width:24px;height:24px;object-fit:contain}
.cmp-slot-name{display:flex;flex:1 1 0;flex-direction:column;gap:4px;min-width:0}
.cmp-slot-name b{font-family:var(--font-code);font-size:16px;font-weight:500;line-height:20px;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cmp-slot-name span{font-size:13px;line-height:17px;color:var(--text-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cmp-change{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;padding:6px 10px;border-radius:7px;box-shadow:inset 0 0 0 1px var(--line-strong);font-size:13px;font-weight:500;line-height:17px;color:var(--text);transition:background-color .15s ease}
.cmp-change:hover{background:var(--tint-2)}
.cmp-change .i{font-size:13px}
.cmp-remove{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:24px;height:24px;border-radius:6px;color:var(--text-3)}
.cmp-remove:hover{background:var(--tint-2);color:var(--text)}
.cmp-remove .i{font-size:16px}
.cmp-slot.is-empty{gap:12px;background:var(--bg-alt);box-shadow:inset 0 0 0 1px var(--line-strong);text-align:left;cursor:pointer;transition:background-color .15s ease}
.cmp-slot.is-empty:hover{background:var(--tint-2)}
.cmp-slot.is-empty .cmp-slot-logo{background:var(--surface)}
.cmp-slot.is-empty .cmp-slot-logo .i{font-size:18px;color:var(--text)}
.cmp-slot.is-empty .cmp-slot-name b{font-family:var(--font-sans);font-size:15px;font-weight:600;line-height:19px}

/* Picker popover: a list pane and a preview pane under the slot; a bottom sheet on phones. */
.cmp-pop{position:absolute;z-index:40;display:flex;width:760px;max-width:calc(100% - 32px);height:466px;border-radius:14px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line-strong),0 24px 56px var(--mp-pop-shadow);overflow:hidden}
.cmp-pop-list{display:flex;flex:1 1 0;flex-direction:column;gap:4px;min-width:0;padding:12px}
.cmp-pop-search{display:flex;align-items:center;flex-shrink:0;gap:10px;padding:10px 12px;border-radius:9px;box-shadow:inset 0 0 0 1px var(--line-strong)}
.cmp-pop-search:focus-within{box-shadow:inset 0 0 0 1.5px var(--accent)}
.cmp-pop-search > .i{flex-shrink:0;font-size:15px;color:var(--text-3)}
.cmp-pop-search input{flex:1 1 0;min-width:0;height:18px;padding:0;border:0;background:none;font:inherit;font-size:14px;line-height:18px;color:var(--text);outline:0}
.cmp-pop-search input::placeholder{color:var(--text-3)}
.cmp-pop-count{flex-shrink:0;font-family:var(--font-code);font-size:10px;line-height:13px;text-transform:uppercase;color:var(--text-3)}
.cmp-pop-close{display:none;align-items:center;justify-content:center;flex-shrink:0;width:28px;height:28px;margin:-5px -6px -5px 0;border-radius:7px;color:var(--text-2)}
.cmp-pop-close .i{font-size:16px}
.cmp-pop-filters{display:flex;flex-shrink:0;flex-wrap:wrap;gap:6px;padding:6px 0}
.cmp-filter{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border-radius:6px;box-shadow:inset 0 0 0 1px var(--line);font-size:12px;line-height:15px;color:var(--text-2);transition:background-color .15s ease}
.cmp-filter:hover{background:var(--tint-2)}
.cmp-filter .i{font-size:12px}
.cmp-filter[aria-pressed=true]{background:var(--accent-soft);box-shadow:inset 0 0 0 1px var(--accent-line);font-weight:500;color:var(--mp-accent-text)}
.cmp-pop ul{display:flex;flex:1 1 0;flex-direction:column;gap:4px;min-height:0;margin:0;padding:0;list-style:none;overflow-y:auto;overscroll-behavior:contain}
.cmp-pop-sec{flex-shrink:0;padding-top:4px;font-family:var(--font-code);font-size:10px;letter-spacing:.4px;line-height:13px;text-transform:uppercase;color:var(--text-3)}
.cmp-opt{display:flex;align-items:center;flex-shrink:0;gap:10px;padding:9px 10px;border-radius:8px;cursor:pointer}
.cmp-opt img{width:16px;height:16px;object-fit:contain;flex-shrink:0}
.cmp-opt b{flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--font-code);font-size:13px;font-weight:500;line-height:17px;color:var(--text)}
.cmp-opt > span{flex-shrink:0;font-family:var(--font-code);font-size:12px;line-height:15px;color:var(--text-3)}
.cmp-opt > .i{flex-shrink:0;font-size:15px;color:var(--accent)}
.cmp-opt.is-current{background:var(--tint-2)}
.cmp-opt.is-active{background:var(--mp-hover)}
.cmp-opt.is-taken{cursor:default}
.cmp-opt.is-taken img{opacity:.5}
.cmp-opt.is-taken b{font-weight:400;color:var(--text-3)}
.cmp-pop-empty{padding:12px 10px;font-size:13px;color:var(--text-3)}
.cmp-prev{display:flex;flex-direction:column;flex-shrink:0;gap:14px;width:320px;padding:18px;border-left:1px solid var(--line);background:var(--bg-alt);overflow-y:auto}
.cmp-prev-head{display:flex;align-items:center;gap:10px}
.cmp-prev-logo{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;height:36px;border-radius:9px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line-strong)}
.cmp-prev-logo img{width:20px;height:20px;object-fit:contain}
.cmp-prev-name{display:flex;flex-direction:column;gap:2px;min-width:0}
.cmp-prev-name b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--font-code);font-size:14px;font-weight:500;line-height:18px;color:var(--text)}
.cmp-prev-name span{font-size:12px;line-height:15px;color:var(--text-3)}
.cmp-prev-desc{display:-webkit-box;margin:0;overflow:hidden;font-size:13px;line-height:20px;color:var(--text-2);-webkit-box-orient:vertical;-webkit-line-clamp:3}
.cmp-prev-stats{display:flex;flex-direction:column;margin:0}
.cmp-prev-stats div{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line)}
.cmp-prev-stats dt{font-family:var(--font-code);font-size:10px;letter-spacing:.3px;line-height:16px;text-transform:uppercase;color:var(--text-3)}
.cmp-prev-stats dd{margin:0;font-size:13px;font-weight:600;line-height:16px;color:var(--text);white-space:nowrap}
.cmp-prev-l{font-family:var(--font-code);font-size:10px;letter-spacing:.3px;line-height:13px;text-transform:uppercase;color:var(--text-3)}
.cmp-prev-caps{display:flex;flex-wrap:wrap;gap:6px}
.cmp-prev-cap{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:7px;background:var(--tint-2);color:var(--text-2)}
.cmp-prev-cap .i{font-size:14px}
.cmp-prev-fill{flex:1 1 0;min-height:0}
.cmp-prev-go{display:flex;align-items:center;justify-content:center;flex-shrink:0;gap:6px;width:100%;padding:10px 14px;border-radius:8px;background:var(--accent);font-size:14px;font-weight:600;line-height:18px;color:var(--on-accent);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:background-color .15s ease}
.cmp-prev-go:hover{background:color-mix(in srgb,var(--accent) 88%,var(--text))}
.cmp-scrim{position:absolute;left:0;right:0;z-index:1;background:color-mix(in srgb,var(--surface) 40%,transparent)}

.cmp-body{display:flex;flex-direction:column;gap:40px;padding-top:48px;padding-bottom:72px}
.cmp-glance{display:flex;gap:16px}
.cmp-card{display:flex;flex:1 1 0;flex-direction:column;gap:10px;min-width:0;padding:20px;border-radius:14px;background:var(--surface)}
[data-theme=dark] .cmp-card{box-shadow:inset 0 0 0 1px var(--line)}
.cmp-card-top{display:flex;align-items:center;gap:8px;font-family:var(--font-code);font-size:11px;line-height:14px;text-transform:uppercase;color:var(--text-3)}
.cmp-card-top .i{font-size:14px}
.cmp-card > b{font-family:var(--font-code);font-size:16px;font-weight:500;line-height:20px;color:var(--text);overflow-wrap:anywhere}
.cmp-card > p{font-size:13px;line-height:19px;color:var(--text-2)}

.cmp-scroll{position:relative;overflow-x:auto;overscroll-behavior-x:contain}
.cmp-area{display:flex;flex-direction:column;gap:36px}
.cmp-sec{display:flex;flex-direction:column;gap:10px}
.cmp-sec-h{position:sticky;left:0;align-self:flex-start;font-size:20px;font-weight:600;letter-spacing:-.4px;line-height:25px;color:var(--text)}
.cmp-sec.is-activity{gap:14px}
.cmp-cols{display:flex;gap:16px}
.cmp-col{display:flex;flex:1 1 0;flex-direction:column;min-width:0;border-top:1px solid var(--line)}
.cmp-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:0 4px;border-bottom:1px solid var(--line)}
.cmp-l{font-size:14px;line-height:18px;color:var(--text-2)}
.cmp-v{display:inline-flex;align-items:flex-end;gap:5px;font-size:14px;line-height:18px;color:var(--text-3);white-space:nowrap;text-align:right}
.cmp-v small{font-size:12px;line-height:16px;color:var(--text-3);opacity:.8}
.cmp-v.is-best{font-size:15px;font-weight:600;color:var(--text)}
.cmp-v.is-best small{opacity:1}
.cmp-v.is-strong{font-weight:500;color:var(--text)}
.cmp-v .i{font-size:16px}
/* A price cell with its rupiah equivalent on a second, smaller line. */
.cmp-v.cmp-v2{flex-direction:column;align-items:flex-end;gap:1px}
.cmp-vm{display:inline-flex;align-items:flex-end;gap:5px}
.cmp-v .cmp-rp{font-size:11px;line-height:14px;font-weight:400}
/* Modality and feature marks: as the detail page's chips, emphasised when on, faded when off. */
.cmp-mods{display:inline-flex;gap:4px}
.cmp-mod,.cmp-feat{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:5px;color:var(--text-3);opacity:.45}
.cmp-mod .i,.cmp-feat .i{font-size:13px}
.cmp-feat{width:24px;height:24px;border-radius:6px}
.cmp-feat .i{font-size:14px}
.cmp-mod.is-on,.cmp-feat.is-on{background:color-mix(in srgb,var(--accent) 11%,var(--surface));color:var(--accent);opacity:1}
.cmp-col.is-skel .cmp-l{opacity:.55;color:var(--text-3)}
.cmp-chart-col{display:flex;flex-direction:column;gap:10px;padding-top:14px}
.cmp-total{display:flex;align-items:flex-end;gap:6px}
.cmp-total b{font-size:22px;font-weight:600;letter-spacing:-.5px;line-height:27px;color:var(--text)}
.cmp-total span{padding-bottom:3px;font-size:13px;line-height:17px;color:var(--text-3)}
.cmp-chart{display:flex;align-items:flex-end;gap:3px;height:80px}
.cmp-chart i{display:flex;flex:1 1 0;flex-direction:column;min-height:1px;overflow:hidden;border-radius:2px 2px 0 0;background:var(--accent)}
.cmp-chart i.is-today{background:var(--line-strong)}
.cmp-axis{display:flex;justify-content:space-between;font-size:11px;line-height:14px;color:var(--text-3)}
.cmp-legend{font-size:12px;line-height:16px;color:var(--text-3)}
.cmp-skel-total{width:140px;height:20px}
.cmp-skel-chart{height:80px;border-radius:6px;background:var(--tint-1)}
.cmp-skel-legend{width:200px}
.cmp-note{font-size:13px;color:var(--text-3)}

.cmp-popular{border-top:1px solid var(--line);background:var(--bg-alt)}
.cmp-popular .shell{display:flex;flex-direction:column;gap:20px;padding-top:56px;padding-bottom:80px}
.cmp-pop-head{display:flex;flex-direction:column;gap:6px}
.cmp-pop-head h2{font-size:24px;font-weight:500;letter-spacing:-.6px;line-height:30px;color:var(--text)}
.cmp-pop-head p{font-size:14px;line-height:18px;color:var(--text-3)}
.cmp-pop-cards{display:flex;gap:16px}
.cmp-pc{display:flex;flex:1 1 0;flex-direction:column;gap:16px;min-width:0;padding:20px;border-radius:14px;background:var(--surface);color:inherit;box-shadow:inset 0 0 0 1px var(--line);transition:box-shadow .15s ease}
.cmp-pc:hover{box-shadow:inset 0 0 0 1px var(--line-strong)}
.cmp-pc-top{display:flex;align-items:center;gap:8px;font-family:var(--font-code);font-size:11px;line-height:14px;text-transform:uppercase;color:var(--accent)}
.cmp-pc-top .i{font-size:14px}
.cmp-pc-top span{flex:1 1 0}
.cmp-pc-top .i-go-ne{font-size:15px;color:var(--text)}
.cmp-pc-models{display:flex;flex-direction:column;gap:8px}
.cmp-pc-m{display:flex;align-items:center;gap:10px}
.cmp-pc-m img{width:16px;height:16px;object-fit:contain;flex-shrink:0}
.cmp-pc-m b{flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--font-code);font-size:13px;font-weight:400;line-height:17px;color:var(--text)}
.cmp-pc-m span{font-family:var(--font-code);font-size:12px;line-height:15px;color:var(--text-3)}
.cmp-vs{display:flex;align-items:center;gap:8px;font-family:var(--font-code);font-size:11px;line-height:14px;color:var(--text-3)}
.cmp-vs::before,.cmp-vs::after{content:"";flex:1 1 0;height:1px;background:var(--line)}
.cmp-pc > p{font-size:13px;line-height:17px;color:var(--text-2)}

/* ---------- Responsive ---------- */
@media (max-width:1100px){
  .md-hero-in{flex-direction:column;gap:32px}
  .md-hero-right{padding-top:0}
  .cmp-glance,.cmp-pop-cards{flex-wrap:wrap}
  .cmp-card,.cmp-pc{flex:1 1 calc(50% - 8px)}
  .cmp-area{min-width:880px}
  .cmp-area.is-two{min-width:600px}
}
@media (max-width:960px){
  .md-two{flex-direction:column;gap:56px}
  .md-api{margin-top:0}
  .md-cards{flex-direction:column}
  /* Two columns: facts in pairs, Input across, a lone last cell across. */
  .md-spec-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .md-spec-row .md-cell{grid-column:span 1}
  .md-spec-row .md-cell:last-child:nth-child(odd),.md-spec-row .md-cell.is-input{grid-column:1 / -1}
  .md-cell.is-input ~ .md-cell:last-child:nth-child(odd){grid-column:span 1}
  .md-cell.is-input ~ .md-cell:last-child:nth-child(even){grid-column:1 / -1}
  .cmp-pickers{flex-direction:column}
  .md-app-share{width:160px}
}
@media (max-width:760px){
  .cmp-prev{width:260px}
}
@media (max-width:640px){
  .md-hero .shell{padding-top:28px;padding-bottom:32px}
  .md-name{align-items:flex-start;gap:14px}
  .md-logo{width:56px;height:56px;border-radius:14px}
  .md-logo img{width:30px;height:30px}
  .md-title{font-size:34px;letter-spacing:-1.2px;line-height:38px}
  .md-desc{font-size:15px;line-height:24px}
  .md-stats{grid-template-columns:minmax(0,1fr)}
  .md-stat-price,.md-stats:has(> .md-stat:nth-child(4)) .md-stat-price{grid-row:auto}
  .md-stat-v{font-size:26px;line-height:32px}
  .md-avail-legend{flex-wrap:wrap}
  .md-keys{order:3;justify-content:flex-start;width:100%}
  .md-body{gap:48px;padding:40px 0 56px}
  .md-spec-row{grid-template-columns:minmax(0,1fr)}
  .md-cell-v b{font-size:22px;line-height:28px}
  .md-price-usd{font-size:18px}
  .md-cache{flex-wrap:wrap}
  .md-est{flex-direction:column;align-items:flex-start}
  .md-related-top{flex-direction:column;align-items:flex-start}
  .cmp-title{font-size:40px;letter-spacing:-1.4px;line-height:44px}
  .cmp-desc{font-size:16px;line-height:24px}
  .cmp-card,.cmp-pc{flex-basis:100%}
  .cmp-area{min-width:820px}
  .cmp-area.is-two{min-width:560px}
  .cmp-popular .shell{padding-top:40px;padding-bottom:56px}
  .md-sec-top{flex-direction:column;align-items:flex-start}
  .md-ustats{display:grid;grid-template-columns:1fr 1fr}
  .md-ustat{padding:14px 16px;border-bottom:1px solid var(--line)}
  .md-ustat:nth-child(2n){border-right:0}
  .md-ustat:nth-child(n+3){border-bottom:0}
  .md-ustat-v{font-size:22px;line-height:28px}
  .md-ustat-l,.md-ustat-s{white-space:normal}
  .md-uchart{--ugap:4px;gap:8px;padding:14px 16px 16px}
  .md-uchart.is-dense{--ugap:2px}
  .md-uaxis{width:30px;height:172px}
  .md-ubars{height:160px}
  .md-ubar b{font-size:10px}
  .md-ubar.is-cur b{align-self:flex-end}
  .md-uxaxis span.is-sub{visibility:hidden}
  .md-uxaxis span.is-cur{display:flex;justify-content:flex-end}
  .md-apps-cols{display:none}
  .md-app{flex-wrap:wrap;gap:10px 12px;padding:14px 16px}
  .md-app-main{flex:1 1 calc(100% - 36px);order:1}
  .md-app-rank{order:0;width:auto;min-width:16px}
  .md-app-title{flex-wrap:wrap;gap:4px 6px}
  .md-app-desc{display:-webkit-box;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2}
  .md-app-share{order:2;flex:1 1 0;width:auto;padding-left:28px}
  .md-app-tok{order:3;width:auto}
  /* The picker is a bottom sheet without the preview; the page behind it is dimmed and still. */
  .cmp-pop{position:fixed;top:auto!important;right:0;bottom:0;left:0!important;width:100%;max-width:none!important;height:min(78vh,560px);border-radius:16px 16px 0 0;box-shadow:0 -12px 40px var(--mp-pop-shadow)}
  .cmp-pop-list{padding:14px 16px calc(14px + env(safe-area-inset-bottom))}
  .cmp-pop-close{display:inline-flex}
  .cmp-prev{display:none}
  .cmp-scrim{position:fixed;top:0!important;bottom:0;height:auto!important;z-index:1;background:color-mix(in srgb,var(--text) 32%,transparent)}
  .cmp-sheet-open,.cmp-sheet-open body{overflow:hidden}
  .cmp-opt{padding:11px 10px}
}
