@import "tailwindcss"; @theme inline { --color-background: #ffffff; --color-foreground: #25282d; --color-primary: #282e39; --color-primary-foreground: #ffffff; --color-secondary: #f1f2f4; --color-secondary-foreground: #25282d; --color-accent: #f1f2f4; --color-accent-foreground: #25282d; --color-input: #e0e4e9; --color-ring: #7094e4; --color-destructive: #b64949; --color-muted-foreground: #8c929a; } :root { font-family: Inter, "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #25282d; background: #fff; } * { box-sizing: border-box; } body { margin: 0; min-width: 320px; } button, input, textarea { font: inherit; } button { cursor: pointer; } button:disabled { cursor: not-allowed; opacity: .55; } :focus-visible { outline: 2px solid #608ee6; outline-offset: 2px; } .loading { min-height: 100vh; display: grid; place-items: center; color: #7b808a; } .shell { min-height: 100vh; display: flex; } .sidebar { width: 248px; flex: 0 0 248px; border-right: 1px solid #e9eaed; display: flex; flex-direction: column; min-height: 100vh; background: #fff; } .brand { height: 68px; display: flex; align-items: center; gap: 8px; padding: 0 14px; font-size: 13px; font-weight: 750; letter-spacing: .04em; } .brand-mark { width: 38px; height: 38px; display: grid; place-items: center; flex: none; } .brand-logo { display: block; width: 100%; height: 100%; object-fit: contain; } .sidebar nav { padding: 16px 10px; display: grid; gap: 3px; } .nav-item { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; border: 0; background: transparent; color: #555d68; border-radius: 6px; padding: 9px 10px; font-size: 14px; } .nav-item:hover, .nav-item.active { background: #f1f2f4; color: #24282f; } .nav-item.active { font-weight: 600; } .account { margin-top: auto; border-top: 1px solid #eceef0; display: flex; align-items: center; gap: 9px; padding: 16px; } .account-avatar { width: 30px; height: 30px; border-radius: 50%; background: #252a33; display: grid; place-items: center; color: #fff; font-size: 12px; } .account-name { min-width: 0; display: grid; font-size: 12px; line-height: 1.4; } .account-name strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; } .account-name span { color: #9298a0; } .account button, .mobile-close, .menu-button, .dialog-close, .key-reveal > button { border: 0; color: #777e89; background: none; padding: 5px; } .account button { margin-left: auto; } .mobile-close, .menu-button { display: none; } .main { flex: 1; min-width: 0; } .topbar { height: 68px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #eef0f2; padding: 0 34px; color: #4c535e; font-size: 13px; } .topbar-controls { margin-left: auto; display: flex; align-items: center; gap: 18px; } .topbar-note { color: #a0a5ad; } .locale-picker { display: inline-flex; align-items: center; gap: 5px; flex: none; color: #69717c; border: 1px solid #e5e8ec; border-radius: 6px; padding: 6px 7px; background: #fff; } .locale-picker select { border: 0; background: transparent; color: #4c535e; font-size: 12px; cursor: pointer; } .locale-picker select:focus-visible { outline-offset: 4px; } .content { padding: 30px 34px 80px; max-width: 1500px; margin: 0 auto; } .page-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 48px; } .page-title h1 { font-size: 25px; font-weight: 650; letter-spacing: -.025em; margin: 0 0 7px; } .page-title p { margin: 0; font-size: 13px; color: #8c929a; } .section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 17px; } .section-head h2, .chart-head h2 { font-size: 15px; font-weight: 650; margin: 0; } .section-head span { color: #9ca2a9; font-size: 12px; } .empty { border-top: 1px solid #edf0f2; padding: 72px 15px; display: flex; flex-direction: column; align-items: center; color: #9da3ab; text-align: center; } .empty h3 { color: #343942; font-size: 16px; margin: 15px 0 4px; } .empty p { margin: 0 0 22px; font-size: 13px; } .table-wrap { overflow-x: auto; border-top: 1px solid #e9ebee; } table { border-collapse: collapse; width: 100%; min-width: 650px; font-size: 13px; } th { text-align: left; color: #9299a2; font-weight: 500; padding: 12px 14px; } td { padding: 16px 14px; border-top: 1px solid #f0f1f3; color: #606772; } td.strong { color: #30353d; font-weight: 550; } @media (hover: hover) { .table-wrap > table > tbody > tr:hover { background-color: #f8fafc; } } td code, .docs code, .home-intro code { font-size: 12px; background: #f4f5f6; border-radius: 4px; padding: 3px 5px; } .status { color: #286a49; background: #ebf8f0; padding: 4px 8px; border-radius: 99px; font-size: 12px; } .status.revoked { color: #8a919a; background: #f2f3f4; } .text-danger { color: #b64949; background: none; border: 0; font-size: 12px; } .form-error { color: #ae3939; background: #fff2f1; border: 1px solid #fbd7d5; padding: 9px 12px; border-radius: 6px; font-size: 13px; margin: 12px 0; } .key-reveal { border: 1px solid #b9cbea; border-radius: 8px; background: #f7faff; padding: 17px; display: flex; gap: 16px; margin-bottom: 34px; } .key-reveal > div { min-width: 0; flex: 1; } .key-reveal strong { font-size: 14px; } .key-reveal p { margin: 5px 0 14px; color: #6e7888; font-size: 12px; } .key-value { display: flex; align-items: center; gap: 10px; } .key-value code { min-width: 0; overflow-wrap: anywhere; background: #fff; border: 1px solid #dce6f6; border-radius: 5px; padding: 9px; font-size: 12px; flex: 1; user-select: all; } .key-value .copy-success { border-color: #b8dcc6; color: #216845; background: #f1faf4; } .key-reveal .form-error { color: #ae3939; } .dialog-backdrop { position: fixed; inset: 0; background: #1f2937a6; display: grid; place-items: center; padding: 20px; z-index: 20; } .dialog { position: relative; background: #fff; border-radius: 10px; padding: 28px; width: min(100%, 430px); box-shadow: 0 20px 60px #1018272b; } .dialog-close { position: absolute; top: 16px; right: 16px; } .dialog h2 { font-size: 19px; margin: 0 0 7px; } .dialog p { color: #8a929e; font-size: 13px; margin: 0 0 25px; } .dialog form, .login-panel form { display: grid; gap: 9px; } .dialog label, .login-panel label { font-size: 13px; font-weight: 550; } .dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; } .login-shell { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: #fafbfc; } .login-panel { background: #fff; border: 1px solid #e9ebee; border-radius: 12px; padding: 35px; width: min(100%, 420px); } .login-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; } .login-panel .brand-mark { width: 58px; height: 58px; } .login-panel h1 { margin: 24px 0 5px; font-size: 23px; } .login-panel p { color: #858b94; font-size: 13px; margin: 0 0 27px; } .login-panel form input { margin-bottom: 10px; } .full-button { width: 100%; margin-top: 7px; } .home-intro { border-top: 1px solid #ebedf0; border-bottom: 1px solid #ebedf0; padding: 48px 0; max-width: 680px; } .intro-icon { color: #5d84d4; } .home-intro h2 { font-size: 21px; margin: 18px 0 9px; } .home-intro p { font-size: 14px; color: #727b86; line-height: 1.8; margin: 0 0 23px; } .home-links { display: flex; gap: 20px; margin-top: 25px; } .home-links button { width: 240px; display: grid; gap: 8px; text-align: left; background: none; border: 0; padding: 12px 0; color: #4e77c5; } .home-links strong { color: #313741; font-size: 14px; } .home-links span { color: #9298a0; font-size: 12px; } .chart-section { margin-bottom: 58px; } .chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 23px; } .chart-head strong { font-size: 21px; font-weight: 500; color: #555b64; } .bars { height: 210px; display: flex; gap: 9px; align-items: flex-end; border-bottom: 1px solid #dfe4e9; background: repeating-linear-gradient(to top, transparent 0, transparent 51px, #f0f2f4 52px); } .bar-column { min-width: 28px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 7px; color: #9ca3ad; font-size: 11px; } .bar { width: 17px; background: #6c93e9; border-radius: 3px 3px 0 0; } .bar-column span { height: 14px; } .chart-empty { align-self: center; width: 100%; text-align: center; color: #9ca3ad; font-size: 13px; } .playground-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .85fr); align-items: start; border: 1px solid #e7e9ec; border-radius: 8px; overflow: hidden; min-height: 670px; } .playground-editor { min-width: 0; } .playground-toolbar { min-height: 55px; padding: 9px 18px; border-bottom: 1px solid #eceef0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; } .playground-tabs, .playground-segmented { display: inline-flex; align-items: center; gap: 3px; padding: 3px; background: #f2f3f5; border-radius: 6px; } .playground-tabs button, .playground-segmented button { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 4px; padding: 6px 9px; background: transparent; color: #747c86; font-size: 12px; } .playground-tabs button.selected, .playground-segmented button.selected { background: #fff; color: #303741; box-shadow: 0 1px 3px #1e283115; } .sample-actions { display: flex; align-items: center; gap: 12px; } .sample-actions button { border: 0; background: none; padding: 4px 0; color: #5179c1; font-size: 12px; } .sample-actions button:hover, .playground-add-inline:hover { text-decoration: underline; } .playground-section { padding: 22px 24px 26px; border-bottom: 1px solid #eceef0; } .playground-section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 15px; } .playground-section-head h2, .playground-output-head h2 { margin: 0 0 5px; font-size: 15px; font-weight: 650; } .playground-section-head p, .playground-model p { margin: 0; color: #8f96a0; font-size: 12px; line-height: 1.5; } .playground-state, .playground-field textarea, .playground-raw textarea { width: 100%; border: 1px solid #dfe3e8; border-radius: 6px; background: #fff; color: #303842; padding: 12px 13px; line-height: 1.6; resize: vertical; } .playground-state { min-height: 130px; font-size: 13px; } .playground-state::placeholder, .playground-field textarea::placeholder, .playground-option-row input::placeholder { color: #a6acb4; } .playground-count { color: #a0a6af; font-size: 12px; } .playground-question-list { display: grid; gap: 14px; } .playground-question { border: 1px solid #e6e9ed; border-radius: 7px; padding: 17px; background: #fff; } .playground-question-head { display: flex; justify-content: space-between; align-items: center; color: #59616c; font-size: 12px; font-weight: 600; margin-bottom: 13px; } .playground-icon-button { border: 0; background: transparent; color: #9aa1aa; padding: 5px; display: inline-grid; place-items: center; border-radius: 4px; } .playground-icon-button:hover { background: #f4f5f6; color: #b64949; } .playground-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; } .playground-fields label, .playground-field, .playground-model label, .playground-raw label { display: grid; gap: 7px; color: #59616b; font-size: 12px; font-weight: 550; } .playground-fields select, .playground-model select { width: 100%; height: 36px; padding: 0 11px; border: 1px solid #dfe3e8; border-radius: 6px; background: #fff; color: #3b424c; font-size: 13px; } .playground-field { margin-top: 15px; } .playground-field textarea { min-height: 64px; font-size: 13px; } .playground-options { margin-top: 16px; padding-top: 14px; border-top: 1px solid #f0f1f3; } .playground-subhead { color: #6d7580; font-size: 12px; margin-bottom: 9px; } .playground-option-row { display: grid; grid-template-columns: minmax(80px, .8fr) minmax(110px, 1.2fr) 28px; gap: 8px; align-items: center; margin: 7px 0; } .playground-option-row.score { grid-template-columns: 20px minmax(0, 1fr) 28px; } .playground-option-row input { min-width: 0; } .playground-level-index { font-size: 12px; color: #9aa2ab; text-align: center; } .playground-add-inline, .playground-add-question { display: inline-flex; align-items: center; gap: 6px; color: #5379bb; background: none; border: 0; font-size: 12px; } .playground-add-inline { padding: 8px 0 0; } .playground-add-question { width: 100%; justify-content: center; margin-top: 14px; padding: 11px; border: 1px dashed #ced7e5; border-radius: 6px; } .playground-add-question:hover { background: #f8faff; border-color: #9ab1d7; } .playground-model { display: grid; grid-template-columns: minmax(80px, max-content) minmax(0, 1fr); align-items: center; gap: 8px 12px; } .playground-model select, .playground-model input { max-width: 240px; } .playground-model label { display: block; } .playground-model p { grid-column: 2; } .playground-raw { padding: 22px 24px; } .playground-raw label { margin-bottom: 9px; } .playground-raw textarea { min-height: 520px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; } .playground-submit { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 17px 24px; } .playground-submit .form-error { flex: 1; margin: 0; } .playground-output { min-width: 0; min-height: 670px; height: 100%; border-left: 1px solid #e7e9ec; background: #fafbfc; } .playground-output-head { min-height: 55px; padding: 17px 22px; border-bottom: 1px solid #eceef0; display: flex; justify-content: space-between; align-items: center; gap: 8px; } .playground-output-head h2 { margin: 0; } .playground-output-head span { color: #5b77a9; font-size: 12px; } .playground-output-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 110px 24px; text-align: center; color: #a6adb7; } .playground-output-empty p { max-width: 260px; margin: 0; line-height: 1.6; font-size: 13px; } .playground-usage { display: flex; gap: 20px; padding: 16px 22px; border-bottom: 1px solid #eceef0; color: #7c8590; font-size: 12px; } .playground-usage strong { margin-left: 5px; color: #343b45; font-weight: 600; } .playground-answer-list { padding: 10px 22px; } .playground-answer { border-bottom: 1px solid #e9ecf0; padding: 15px 0; } .playground-answer h3 { margin: 0 0 9px; font-size: 13px; font-weight: 600; } .playground-answer pre, .playground-full-response pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #5a626d; font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; } .playground-full-response { padding: 16px 22px; color: #557ab9; font-size: 12px; } .playground-full-response summary { cursor: pointer; } .playground-full-response pre { margin-top: 12px; } .docs { max-width: 820px; line-height: 1.7; font-size: 14px; color: #606873; } .docs h2 { margin: 32px 0 10px; color: #313740; font-size: 17px; } .docs pre { padding: 18px; background: #f7f8f9; border: 1px solid #e8ebee; border-radius: 7px; overflow: auto; font-size: 12px; } .docs-note { display: flex; align-items: center; gap: 7px; color: #8b929b; } @media (max-width: 1100px) { .playground-layout { grid-template-columns: 1fr; } .playground-output { min-height: 260px; border-left: 0; border-top: 1px solid #e7e9ec; } } @media (max-width: 760px) { .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 11; transform: translateX(-100%); transition: transform .2s ease; } .sidebar.open { transform: translateX(0); } .mobile-close, .menu-button { display: block; } .mobile-close { margin-left: auto; } .nav-backdrop { position: fixed; inset: 0; background: #0006; border: 0; z-index: 10; } .topbar { padding: 0 18px; } .content { padding: 26px 18px 60px; } .page-title { margin-bottom: 36px; } .home-links { flex-wrap: wrap; } .key-reveal { flex-direction: column; } .playground-section, .playground-raw { padding: 18px; } .playground-submit { padding: 16px 18px; flex-wrap: wrap; } } @media (max-width: 520px) { .playground-fields { grid-template-columns: 1fr; } .playground-option-row { grid-template-columns: minmax(0, 1fr) 28px; } .playground-option-row:not(.score) input:nth-child(2) { grid-column: 1; grid-row: 2; } .playground-option-row:not(.score) button { grid-column: 2; grid-row: 1 / 3; } .playground-question { padding: 14px; } .playground-model { grid-template-columns: 1fr; } .playground-model p { grid-column: 1; } } @media (max-width: 540px) { .topbar-note { display: none; } } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }