.model-square {
  --ms-ink: #0a0a0a;
  --ms-muted: #606060;
  --ms-subtle: #808080;
  --ms-line: #e4e4e4;
  --ms-muted-surface: #f2f2f2;
  --ms-blue: #3ba2e9;
  --ms-link: #0089e8;
  padding: 120px 0 48px;
  color: var(--ms-ink);
  background:
    radial-gradient(ellipse 52% 235px at 20% 115px, #dceffc, transparent 86%),
    radial-gradient(ellipse 43% 210px at 80% 90px, #dff2f4, transparent 85%),
    radial-gradient(ellipse 33% 180px at 50% 408px, #f6f6f9, transparent 85%),
    #fdfdfd;
  font: 14px/1.4 Arial, sans-serif;
  scroll-margin-top: 90px;
}
.model-square [hidden] { display: none !important; }
.model-square h1, .model-square h3, .model-square h4 { color: var(--ms-ink); }
.ms-container { width: 100%; max-width: 1536px; margin: auto; padding-inline: 32px; }
.ms-heading { text-align: center; margin-bottom: 40px; }
.ms-heading h1 { margin: 0 0 16px; font: 700 clamp(32px, 5vw, 56px)/1.15 Arial, sans-serif; letter-spacing: -.035em; }
.ms-heading p { color: var(--ms-subtle); margin: 0 auto; }
.ms-heading [data-ms-summary] { font-size: 16px; }
.ms-heading .ms-intro { max-width: 650px; min-height: 44px; margin: 10px auto 0; color: #949494; line-height: 22px; }
.ms-search { position: relative; width: min(100%, 672px); margin: 25px auto 0; }
.ms-search input { display: block; width: 100%; height: 40px; min-height: 40px; padding: 0 42px 0 40px; border: 1px solid #ececec; border-radius: 16px; background: #fff; color: var(--ms-ink); font: inherit; }
.ms-search input::placeholder { color: #a3a3a3; }
.ms-search > i, .ms-search > kbd { position: absolute; top: 50%; transform: translateY(-50%); pointer-events: none; }
.ms-search > i { left: 15px; color: #a3a3a3; font-size: 13px; }
.ms-search > kbd { right: 10px; color: var(--ms-muted); background: var(--ms-muted-surface); border: 1px solid var(--ms-line); border-radius: 4px; padding: 2px 5px; font-size: 10px; }
.ms-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.ms-filter, .ms-toolbar, .ms-card, .ms-table { background: #fff; border: 1px solid var(--ms-line); border-radius: 22px; }
.ms-filter { position: sticky; top: 85px; max-height: calc(100dvh - 100px); overflow: auto; padding: 12px; scrollbar-width: thin; scrollbar-color: transparent transparent; }
.ms-filter:hover, .ms-filter:focus-within { scrollbar-color: #d5d5d5 transparent; }
.ms-filter > summary { font-weight: 700; padding-right: 64px; cursor: pointer; list-style: none; }
.ms-filter > summary::-webkit-details-marker, .ms-facet summary::-webkit-details-marker { display: none; }
.ms-filter-hint { max-width: 166px; color: var(--ms-muted); margin: 4px 0 8px; font-size: 12px; line-height: 16px; }
.ms-reset { position: absolute; right: 12px; top: 26px; }
.ms-facet { border-bottom: 1px solid #ececec; padding: 11px 0 12px; }
.ms-facet:last-child { border-bottom: 0; }
.ms-facet summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 600; list-style: none; }
.ms-facet summary::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid #777; border-bottom: 1.5px solid #777; transform: rotate(45deg); margin-right: 4px; }
.ms-facet[open] summary::after { transform: rotate(225deg); }
.ms-chips, .ms-actions, .ms-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ms-chips { margin-top: 10px; }
.model-square button, .model-square select { font: 13px/1.35 Arial, sans-serif; color: var(--ms-ink); background: #fff; padding: 5px 9px; border: 1px solid var(--ms-line); border-radius: 13px; cursor: pointer; }
.model-square button[aria-pressed="true"], .model-square button:hover:not(:disabled) { background: var(--ms-muted-surface); }
.model-square button:disabled { opacity: .48; cursor: default; }
.model-square button:focus-visible, .model-square input:focus-visible, .model-square select:focus-visible { outline: 2px solid var(--ms-blue); outline-offset: 1px; }
.model-square .ms-reset { border-color: transparent; color: var(--ms-muted); font-size: 12px; }
.ms-chips button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; min-height: 29px; font-size: 12px; }
.ms-chips button[aria-pressed="true"] { color: #0055a5; background: #ebebeb; border-color: transparent; }
.ms-chips small { padding: 2px 6px; border-radius: 999px; background: var(--ms-muted-surface); color: var(--ms-muted); font-size: 11px; }
.ms-chips button[aria-pressed="true"] small { background: #fff; color: var(--ms-ink); }
.ms-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; min-height: 58px; gap: 8px; padding: 12px; margin-bottom: 15px; }
.ms-toolbar [data-ms-count] { color: var(--ms-muted); }
.ms-toolbar [data-ms-count] strong { color: var(--ms-ink); }
.ms-actions { gap: 8px; }
.ms-toggle { display: inline-flex; border: 1px solid var(--ms-line); border-radius: 999px; overflow: hidden; }
.model-square .ms-toggle button { border: 0; border-radius: 0; padding: 5px 8px; }
.ms-toggle button + button { border-left: 1px solid var(--ms-line) !important; }
.ms-view-toggle { padding: 2px; gap: 2px; background: #f6f6f6; }
.model-square .ms-view-toggle button { border: 0 !important; border-radius: 999px; width: 26px; height: 26px; padding: 0; background: transparent; }
.model-square .ms-view-toggle button[aria-pressed="true"] { color: #fff; background: var(--ms-blue); }
.ms-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ms-card { min-height: 286px; padding: 16px; display: flex; flex-direction: column; gap: 12px; overflow-wrap: anywhere; }
.ms-card header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px; }
.ms-card h3 { color: var(--ms-ink); font: 600 15px/1.4 ui-monospace, monospace; margin: 0 0 4px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.ms-card header small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-brand-icon { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: #f7f7f7; color: var(--ms-muted); }
.ms-brand-icon > * { grid-area: 1 / 1; }
.ms-brand-icon img { display: block; width: 28px; height: 28px; object-fit: contain; background: #f7f7f7; }
.ms-icon-label { display: inline-flex; align-items: center; gap: 8px; }
.ms-chips .ms-brand-icon { width: 15px; height: 15px; border-radius: 0; background: transparent; font-size: 11px; }
.ms-chips .ms-brand-icon img { width: 14px; height: 14px; background: #fff; }
.ms-chips button[aria-pressed="true"] .ms-brand-icon img { background: #ebebeb; }
.ms-card p { margin: 0; color: var(--ms-muted); font-size: 13px; line-height: 20px; }
.ms-card small, .ms-cost dt, .ms-meta dt { color: var(--ms-muted); font-size: 12px; }
.ms-card .ms-billing, .model-square a { color: var(--ms-link); }
.ms-card-prices { margin-top: auto; }
.ms-card-prices .ms-billing { display: block; margin-bottom: 6px; }
.ms-cost, .ms-meta { display: grid; gap: 8px 12px; margin: 0; }
.ms-cost { grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); }
.ms-cost dd { margin: 4px 0 0; font: 600 14px/1.4 ui-monospace, monospace; color: var(--ms-ink); }
.ms-cost dd small { font: 400 12px/1.4 ui-monospace, monospace; }
.ms-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); font-size: 12px; }
.ms-meta > div, .ms-card footer { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.ms-meta dt { flex: none; }
.ms-meta dd { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; }
.ms-card footer { justify-content: space-between; gap: 6px; margin-top: 0; padding-top: 8px; border-top: 1px solid #ececec; align-items: center; }
.ms-status { display: flex; gap: 14px; margin: 0; font-size: 11px; }
.ms-status dt { color: var(--ms-muted); }
.ms-status dd { margin: 3px 0 0; color: var(--ms-ink); }
.ms-card [data-copy], .ms-card [data-details] { border-color: transparent; border-radius: 6px; }
.ms-card [data-copy] { padding: 4px 6px; font-size: 13px; }
.ms-table { overflow-x: auto; }
.ms-table table { width: 100%; min-width: 570px; border-collapse: collapse; margin: 0; }
.ms-table th { color: var(--ms-muted); font-weight: 500; background: #fafafa; }
.ms-table td, .ms-table th { padding: 10px; border-bottom: 1px solid #ececec; text-align: left; }
.ms-table tr:hover td { background: #fafafa; }
.ms-pages { justify-content: center; padding: 16px 0; }
.ms-message { text-align: center; padding: 16px; }
@media (max-width: 1279px) {
  .ms-layout { grid-template-columns: minmax(0, 1fr); }
  .ms-filter { position: relative; top: auto; max-height: none; }
  .ms-filter:not([open]) > summary::after { content: ' ▾'; }
}
@media (max-width: 900px) { .ms-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 590px) {
  .model-square { padding-top: 88px; }
  .ms-container { padding-inline: 12px; }
  .ms-heading { margin-bottom: 28px; }
  .ms-cards { grid-template-columns: minmax(0, 1fr); }
}

.ms-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(896px, 100%);
  height: 100dvh;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--ms-line);
  background: #fdfdfd;
  color: var(--ms-ink);
}
.ms-drawer::backdrop { background: rgb(0 0 0 / .10); backdrop-filter: blur(5px); }
.ms-drawer-body { position: relative; padding: 46px 24px 24px; overflow-wrap: anywhere; }
.ms-drawer form { position: absolute; right: 12px; top: 12px; margin: 0; }
.ms-drawer form button, .msd-heading button { padding: 3px 7px; border-color: transparent; border-radius: 6px; background: transparent; }
.ms-drawer form button { font-size: 18px; line-height: 1; }
.msd-heading { padding-bottom: 16px; margin-bottom: 16px; }
.msd-heading > div { display: flex; align-items: center; gap: 10px; }
.msd-heading h3 { margin: 0; font: 700 24px/1.3 ui-monospace, monospace; letter-spacing: -.035em; }
.msd-heading .ms-brand-icon { width: 20px; height: 20px; background: transparent; }
.msd-heading .ms-brand-icon img { width: 20px; height: 20px; background: #fdfdfd; }
.msd-heading p { margin: 7px 0 0; font-size: 12px; color: var(--ms-muted); }
.msd-heading p span { margin: 0 5px; color: #b3b3b3; }
.msd-heading p strong { color: var(--ms-link); font: 400 14px Arial, sans-serif; }
.msd-heading .msd-description { font-size: 14px; margin-top: 10px; }
.msd-tabs, .msd-toggle { display: flex; gap: 4px; padding: 4px; background: #f6f6f6; border-radius: 16px; }
.msd-tabs { margin-bottom: 16px; }
.model-square .msd-tabs button, .model-square .msd-toggle button { border: 0; color: var(--ms-muted); background: transparent; border-radius: 12px; }
.model-square .msd-tabs button { flex: 1; height: 32px; padding: 0 5px; font-size: 14px; }
.msd-tabs i, .msd-panel h4 i { margin-right: 6px; }
.model-square .msd-tabs button[aria-selected="true"], .model-square .msd-toggle button[aria-pressed="true"] { color: var(--ms-ink); background: #fff; box-shadow: 0 1px 3px #0002; }
.msd-panel { display: grid; gap: 24px; }
.msd-panel h4 { color: var(--ms-muted); margin: 0 0 12px; font: 600 12px/1.35 Arial, sans-serif; letter-spacing: .035em; text-transform: uppercase; }
.msd-panel p { margin: 8px 0 0; color: var(--ms-muted); font-size: 12px; }
.msd-metrics, .msd-model { display: grid; overflow: hidden; background: #fafafa; border: 1px solid var(--ms-line); border-radius: 16px; margin: 0; }
.msd-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.msd-metrics > div { display: flex; gap: 9px; align-items: center; padding: 8px 12px; }
.msd-metrics > div + div { border-left: 1px solid var(--ms-line); }
.msd-metrics i { color: #898989; font-size: 12px; }
.msd-metrics small, .msd-model dt { display: block; color: var(--ms-muted); font-size: 10px; letter-spacing: .035em; text-transform: uppercase; font-weight: 400; }
.msd-metrics strong { color: var(--ms-ink); font: 600 14px/1.55 ui-monospace, monospace; }
.msd-pricing { border: 1px solid var(--ms-line); border-radius: 22px; padding: 16px; box-shadow: 0 1px 3px #0002; }
.msd-pricing h4:not(:first-child) { margin-top: 12px; }
.msd-pricing .msd-extra-prices + h4, .msd-pricing .msd-base-prices + h4 { margin-top: 20px; }
.msd-base-prices, .msd-extra-prices { display: grid; gap: 8px; margin: 0 0 12px; }
.msd-base-prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.msd-base-prices > div, .msd-extra-prices { background: #fafafa; border: 1px solid var(--ms-line); border-radius: 16px; padding: 12px; }
.msd-base-prices dt { color: var(--ms-muted); font-size: 12px; font-weight: 400; }
.msd-base-prices dd, .msd-extra-prices dd { margin: 4px 0 0; font: 600 15px/1.4 ui-monospace, monospace; }
.msd-base-prices dd small, .msd-extra-prices dd small { color: #a4a4a4; font: 400 12px ui-monospace, monospace; }
.msd-extra-prices > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.msd-extra-prices dt, .msd-extra-prices dd { color: var(--ms-muted); font-weight: 400; margin: 0; font-size: 13px; }
.msd-panel .msd-chain { margin: 0 0 10px; }
.msd-chain span { margin-left: 4px; }
.msd-group { color: var(--ms-link); }
.msd-panel .msd-unit-note { color: #a4a4a4; margin-top: 10px; font-size: 10px; }
.msd-table { overflow-x: auto; }
.msd-table table { width: 100%; border-collapse: collapse; margin: 0; font-size: 14px; }
.msd-table th, .msd-table td { border-bottom: 1px solid var(--ms-line); padding: 10px 8px; text-align: left; }
.msd-table th { color: var(--ms-muted); font-weight: 400; white-space: nowrap; }
.msd-table tr:last-child td { border-bottom: 0; }
.msd-overview .msd-table th, .msd-overview .msd-table td { text-align: right; }
.msd-overview .msd-table :is(th,td):nth-child(-n+2) { text-align: left; }
.msd-overview .msd-table th { text-transform: uppercase; letter-spacing: .03em; }
.msd-overview .msd-table td:not(:first-child) { font-family: ui-monospace, monospace; }
.msd-model { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--ms-line); }
.msd-model > div { background: #fdfdfd; padding: 10px 12px; }
.msd-model dd { margin: 3px 0 0; }
.msd-model dd span { display: inline-block; margin: 1px 5px 1px 0; background: #f2f2f2; padding: 2px 7px; border-radius: 5px; font-size: 12px; }
.msd-panel .msd-empty { border: 1px solid var(--ms-line); border-radius: 14px; text-align: center; padding: 24px 16px; margin: 0; font-size: 14px; }
.msd-chart { display: block; width: 100%; height: 160px; border: 1px solid var(--ms-line); border-radius: 12px; margin-top: 10px; }
.msd-uptime { display: flex; gap: 3px; margin-top: 8px; }
.msd-uptime span { display: block; width: 9px; height: 18px; background: #10b981; border-radius: 3px; }
.msd-uptime .msd-incident { background: #f59e0b; }
.msd-api h4, .msd-performance h4 { color: var(--ms-ink); text-transform: none; font-size: 14px; letter-spacing: 0; }
.msd-code-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.msd-code-controls > :last-child { margin-left: auto; }
.msd-toggle { border-radius: 10px; padding: 3px; }
.model-square .msd-toggle button { border-radius: 7px; font-size: 12px; }
.msd-code { position: relative; margin-top: 12px; }
.msd-code button { position: absolute; top: 8px; right: 8px; border-radius: 6px; }
.msd-panel pre, .msd-auth { background: #f7f7f7; border: 1px solid var(--ms-line); border-radius: 12px; margin: 0; padding: 14px; color: var(--ms-ink); }
.msd-panel pre { overflow: auto; white-space: pre; font: 13px/1.65 ui-monospace, monospace; }
.msd-code pre { padding-right: 40px; }
.msd-panel code { color: var(--ms-ink); }
.msd-auth p:first-child { margin-top: 0; }
@media (max-width: 1279px) { .ms-drawer { width: min(768px, 100%); } }
@media (max-width: 1023px) { .ms-drawer { width: min(672px, 100%); } }
@media (max-width: 639px) {
  .ms-drawer { width: 100%; }
  .ms-drawer-body { padding: 44px 16px 20px; }
  .msd-heading h3 { font-size: 20px; }
  .msd-metrics i { display: none; }
}
