:root { --ink: #20211e; --muted: #6e7268; --line: #e5e7df; --paper: #f7f8f4; --yellow: #e6ff57; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; font-size: 14px; line-height: 1.7; }
button, textarea, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.ui-icon { display: inline-block; width: 18px; height: 18px; flex: 0 0 18px; vertical-align: middle; }
a { color: inherit; text-underline-offset: 4px; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
:focus-visible { outline: 3px solid #a38a1d; outline-offset: 4px; }
[hidden] { display: none !important; }
.query-guidance { color: var(--muted); font-size: 13px; margin: 12px 0 20px; }
.query-guidance ul { margin: 0; padding-left: 1.3em; }
.query-guidance li + li { margin-top: 6px; }
.additional-usage-group + .additional-usage-group { margin-top: 20px; }
.additional-usage-group > h4 { margin: 0 0 8px; font-size: 14px; }
.additional-usage-group > p { margin: 8px 0; color: var(--muted); font-size: 13px; }
#additional-usage-list { margin-top: 12px; }
.usage-results + .usage-results { margin-top: 24px; }
.workspace-usage-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.workspace-usage-list .account-card dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.workspace-usage-list dd { overflow-wrap: anywhere; }
.site-header, main, footer { width: min(1140px, calc(100% - 80px)); margin-inline: auto; }
.site-header { height: 108px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; }
.brand img { width: 140px; height: 44px; object-fit: contain; }
.header-note { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 9px; }
.header-note i { width: 6px; height: 6px; background: #8d966a; border-radius: 50%; }
main { padding-top: 48px; padding-bottom: 40px; display: grid; grid-template-columns: .9fr 1.1fr; column-gap: 82px; align-items: start; }
.intro { padding-top: 18px; }
.eyebrow { margin: 0 0 22px; color: var(--muted); font-size: 10px; letter-spacing: .16em; font-weight: 600; }
h1 { margin: 0; font-size: clamp(42px, 5vw, 62px); font-weight: 550; line-height: 1.24; letter-spacing: -.035em; }
h1 > span { color: #b5a43a; }
.intro-copy { color: var(--muted); line-height: 1.9; font-size: 15px; margin: 28px 0 0; }
.query-panel { border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: 0 9px 35px #20211e04; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.panel-heading .eyebrow { margin-bottom: 5px; }
h2 { font-size: 22px; margin: 0; font-weight: 600; letter-spacing: -.02em; }
form > label[for="credential"] { display: block; font-size: 12px; font-weight: 600; margin-bottom: 10px; }
textarea { width: 100%; resize: vertical; min-height: 135px; max-height: 420px; display: block; padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink); font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
textarea::placeholder { color: var(--muted); }
textarea:focus-visible { outline: 2px solid var(--muted); outline-offset: 2px; }
.field-help { color: var(--muted); font-size: 11px; margin: 9px 0 22px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 11px; color: #62665d; line-height: 1.85; }
.consent input { flex: 0 0 16px; width: 16px; height: 16px; margin: 3px 0 0; accent-color: #596800; }
.consent strong { font-weight: 500; color: var(--ink); }
.actions { display: flex; gap: 10px; margin-top: 23px; }
.actions button { min-height: 46px; padding: 11px 17px; border-radius: 8px; border: 1px solid transparent; }
#query-button { display: flex; justify-content: space-between; align-items: center; flex: 1; background: var(--yellow); font-size: 13px; font-weight: 600; }
#query-button:hover { background: #d4ee43; }
.actions .secondary { background: #fff; color: var(--muted); border-color: var(--line); }
.status { font-size: 12px; color: #756215; margin: 14px 0 0; overflow-wrap: anywhere; }
.status:empty { display: none; }
.result { grid-column: 1 / -1; margin-top: 40px; background: #fff; padding: 32px; border: 1px solid var(--line); border-radius: 14px; overflow-wrap: anywhere; }
.result-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.query-time { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.unknown-badge { color: #716224; background: #eee9d3; padding: 3px 10px; border-radius: 16px; font-size: 11px; }
#result-message { color: #5b6055; font-size: 13px; }
.result-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 24px 0; }
dt { color: var(--muted); font-size: 11px; }
dd { margin: 5px 0 0; font-size: 13px; }
.account-results { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 24px; }
.account-results > h3 { font-size: 14px; margin: 0; }
.account-results > p, .account-card > p { font-size: 11px; color: var(--muted); }
.account-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; margin: 14px 0; }
.account-card h4 { font-size: 13px; margin: 0; }
.account-card dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 14px 0; }
@media (max-width: 680px) { .account-card dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
footer { padding: 24px 0 35px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 15px; font-size: 10px; color: var(--muted); }
dialog { width: min(470px, calc(100% - 36px)); padding: 36px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); }
dialog::backdrop { background: #1e241c55; }dialog > p:not(.eyebrow) { font-size: 13px; color: var(--muted); }.dialog-close { display: inline-flex; align-items: center; justify-content: center; position: absolute; right: 12px; top: 8px; background: transparent; border: 0; width: 36px; height: 36px; color: var(--muted); }.dialog-actions { display: grid; gap: 10px; margin-top: 24px; }.dialog-actions > * { text-align: center; padding: 11px; border: 1px solid var(--line); border-radius: 7px; text-decoration: none; background: #fff; font-size: 13px; }.dialog-actions > a { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--yellow); border-color: transparent; }.noscript { padding: 20px; text-align: center; }
@media (max-width: 900px) { main { column-gap: 35px; }.query-panel { padding: 25px; }h1 { font-size: 44px; }.result-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .site-header, main, footer { width: calc(100% - 36px); }.site-header { height: 80px; }.brand img { width: 118px; height: 38px; }.header-note { font-size: 10px; }main { grid-template-columns: minmax(0, 1fr); padding-top: 34px; }.intro { padding: 0 5px 32px; }h1 { font-size: 43px; }h1 br { display: none; }.intro-copy { margin-top: 16px; font-size: 13px; }.desktop-break { display: none; }.query-panel { padding: 24px 20px; }.eyebrow { margin-bottom: 13px; }.result { padding: 23px 20px; }footer { flex-direction: column; gap: 5px; }textarea { font-size: 16px; } }
@media (prefers-reduced-motion: no-preference) { .intro, .query-panel { animation: enter .45s ease-out both; }.query-panel { animation-delay: .08s; }@keyframes enter { from { opacity: 0; transform: translateY(10px); }to { opacity: 1; transform: translateY(0); } } }
/* Session is retrieved by the user in a separate ChatGPT tab. */
.session-entry { margin: 0 0 20px; }
.session-entry a { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; font-weight: 600; text-decoration: none; }
.session-entry a:hover { background: var(--yellow); }
.session-entry a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.session-entry p { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.75; }


.plan-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 24px; }
.field-label { margin: 0; color: var(--muted); font-size: 12px; }
.plan-name { margin: 3px 0 0; font-size: 40px; font-weight: 600; line-height: 1.3; letter-spacing: -.03em; }
.session-account { text-align: right; min-width: 0; }
.session-account p:not(.field-label) { margin: 3px 0 0; font-size: 13px; }
.result-facts { padding: 20px; border-radius: 10px; background: var(--paper); }
.result-facts dd { font-size: 16px; }
#result-message:empty { display: none; }
.detail-note { margin: 0 0 22px; }
.usage-results { padding-top: 4px; }
.usage-results h3 { margin: 0; font-size: 15px; }
#usage-message { color: var(--muted); font-size: 12px; margin: 6px 0 16px; }
.usage-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.usage-card { border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.usage-card h4 { margin: 0; font-size: 12px; color: var(--muted); font-weight: 400; }
.usage-remaining { font-size: 22px; margin: 6px 0 12px; font-weight: 500; }
.usage-card progress { display: block; width: 100%; height: 7px; border: 0; border-radius: 8px; overflow: hidden; background: var(--paper); accent-color: #8c9c35; }
.usage-card progress::-webkit-progress-bar { background: var(--paper); border-radius: 8px; }
.usage-card progress::-webkit-progress-value { background: #8c9c35; border-radius: 8px; }
.usage-reset { margin: 12px 0 0; color: var(--muted); font-size: 11px; }
@media (max-width: 680px) { .plan-heading { align-items: flex-start; flex-direction: column; gap: 16px; }.session-account { text-align: left; }.usage-list { grid-template-columns: minmax(0, 1fr); }.result-facts { padding: 16px; gap: 14px; }.result-facts dd { font-size: 14px; }.plan-name { font-size: 34px; } }

#migration-title:focus { outline: none; }


/* Same-origin storefront presentation; standalone tool keeps its existing shell. */
.storefront-query { --u-page-gutter: clamp(20px, 4vw, 80px); --ink: #171815; --muted: #6a6c65; --line: #e7e7e1; --paper: #fafaf7; --surface: #fff; color-scheme: light; }
.storefront-query.dark { --ink: #f4f4ed; --muted: #b1b5a6; --line: #383b32; --paper: #20221d; --surface: #171815; color-scheme: dark; }
.storefront-query body { background: var(--surface); color: var(--ink); font-family: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; padding-top: 72px; }
.storefront-query .site-header { position: fixed; inset: 0 0 auto; z-index: 50; width: 100%; height: 72px; padding: 0 max(var(--u-page-gutter), calc((100% - 1600px) / 2)); background: rgba(8, 14, 23, .94); border-bottom: 1px solid #35404c; color: #d4dce5; gap: 24px; }
.storefront-query .brand { flex-shrink: 0; }
.storefront-query .brand img { filter: brightness(0) saturate(100%) invert(93%) sepia(89%) saturate(459%) hue-rotate(13deg) brightness(105%) contrast(101%); }
.storefront-query #storefront-controls, .storefront-query .storefront-nav { display: flex; align-items: center; gap: 8px; }
.storefront-query #storefront-controls { margin-left: auto; }
.storefront-query .storefront-nav a, .storefront-query summary { text-decoration: none; min-height: 44px; display: flex; align-items: center; padding-inline: 10px; font-size: 13px; white-space: nowrap; }
.storefront-query .storefront-tools { position: relative; }
.storefront-query summary { cursor: pointer; list-style: none; gap: 8px; }
.storefront-query summary svg { flex-shrink: 0; }
.storefront-query summary::-webkit-details-marker { display: none; }
.storefront-query .storefront-tools > div { position: absolute; right: 0; top: 48px; min-width: 200px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); z-index: 10; }
.storefront-query .storefront-tools a { padding: 0 12px; border-radius: 6px; }
.storefront-query a[aria-current], .storefront-query .storefront-tools a:hover { background: var(--paper); font-weight: 600; }
.storefront-query #storefront-theme, .storefront-query #storefront-menu { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: #d4dce5; }
.storefront-query #storefront-menu { display: none; }
.storefront-query main, .storefront-query footer, .storefront-query #storefront-breadcrumb { width: min(1600px, calc(100% - var(--u-page-gutter) * 2)); margin-inline: auto; }
.storefront-query #storefront-breadcrumb { display: flex; gap: 12px; padding-top: 28px; font-size: 13px; color: var(--muted); }
.storefront-query #storefront-breadcrumb a { text-decoration: none; }
.storefront-query main { padding-top: 32px; padding-bottom: 64px; gap: 32px; grid-template-columns: minmax(0, 1fr); min-height: 70vh; }
.storefront-query h1 { font-size: clamp(32px, 3vw, 48px); font-weight: 500; letter-spacing: .015em; line-height: 1.3; }
.storefront-query .intro { padding: 0; }
.storefront-query h1 br { display: none; }
.storefront-query .intro-copy { margin-top: 16px; font-size: 16px; }
.storefront-query h2 { font-weight: 500; letter-spacing: .01em; }
.storefront-query .query-panel { padding: 28px; }
.storefront-query .panel-heading { margin-bottom: 20px; }
.storefront-query .result { margin-top: 0; }
.storefront-query .actions { justify-content: flex-start; }
.storefront-query #query-button { flex: 0 1 auto; gap: 28px; padding-inline: 24px; font-weight: 400; }
.storefront-query .field-help, .storefront-query .consent { font-size: 12px; }
.storefront-query textarea { font-size: 14px; }
.storefront-query .query-panel, .storefront-query .result { background: var(--surface); box-shadow: none; border-radius: 16px; }
.storefront-query .consent { color: var(--muted); }
.storefront-query #query-button { color: #080e17; }
.storefront-query .actions .secondary { background: var(--surface); }
.storefront-query .status, .storefront-query #result-message { color: var(--muted); }
.storefront-query .session-entry a:hover { background: var(--paper); }
.storefront-query #storefront-footer { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.storefront-query #storefront-footer a { min-height: 44px; display: flex; align-items: center; text-decoration: none; }
.storefront-query footer { align-items: center; font-size: 12px; padding-block: 20px; }
.storefront-query.dark .result-facts, .storefront-query.dark .usage-card, .storefront-query.dark .account-card { background: var(--paper); color: var(--ink); }
.storefront-query.dark .unknown-badge, .storefront-query.dark .plan-badge { background: var(--paper); color: var(--ink); }
@media (max-width: 1100px) {
  .storefront-query .storefront-nav { display: none; }
  .storefront-query #storefront-menu { display: block; }
  .storefront-query #storefront-controls { gap: 8px; }
  .storefront-query #storefront-mobile { position: fixed; top: 72px; inset-inline: 0; z-index: 49; background: var(--surface); max-height: calc(100dvh - 72px); overflow-y: auto; padding: 12px 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; border-bottom: 1px solid var(--line); }
  .storefront-query #storefront-mobile a { min-height: 44px; padding: 10px; text-decoration: none; border-radius: 6px; }
  .storefront-query main { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .storefront-query .intro { padding: 0; }
  .storefront-query h1 br { display: none; }
  .storefront-query .intro-copy { margin-top: 16px; }
}
@media (max-width: 700px) {
  .storefront-query .site-header { height: 72px; gap: 10px; }
  .storefront-query { --u-page-gutter: 20px; }
  .storefront-query main { padding-top: 28px; padding-bottom: 36px; }
  .storefront-query .query-panel, .storefront-query .result { padding: 22px 18px; }
  .storefront-query textarea { font-size: 16px; }
  .storefront-query footer { align-items: flex-start; }
  .storefront-query #storefront-footer { gap: 4px 18px; }
}

@media (max-width: 360px) { .storefront-query { --u-page-gutter: 16px; } }
