.fr-entry {
  min-height: min(770px, max(570px, calc(100dvh - 145px)));
  display: grid;
  place-items: center;
  padding: 64px 20px;
}
.fr-auth { width: min(100%, 350px); }
.fr-auth h1, .fr-workspace h1, .fr-workspace h2, .fr-workspace h3 { color: var(--ink); margin: 0; }
.fr-auth h1 { font-size: clamp(30px, 5vw, 38px); line-height: 1.24; letter-spacing: -.055em; text-align: center; }
.fr-auth-intro { margin: 12px 0 32px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.7; }
.fr-auth-methods { display: grid; gap: 10px; }
.fr-auth-methods form { margin: 0; }
.fr-auth .fr-auth-button { width: 100%; min-height: 44px; justify-content: center; }
.fr-divider { display: flex; align-items: center; gap: 12px; margin: 3px 0; color: var(--muted); font-size: 11px; }
.fr-divider::before, .fr-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.fr-auth-switch { text-align: center; margin: 24px 0 0; color: var(--muted); font-size: 14px; }
.fr-auth-switch a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.fr-recovery { text-align: center; font-size: 12px; margin: 11px 0 0; color: var(--muted); }
.fr-notice { border: 1px solid var(--line); border-radius: 6px; padding: 11px 14px; margin: 0 0 16px; background: #f8f9fb; font-size: 13px; }
.fr-auth-error { max-width: 380px; }

.fr-workspace { padding-block: clamp(36px, 5vw, 68px) 68px; }
.fr-workspace-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.fr-workspace-head h1 { font-weight: 650; font-size: clamp(29px, 3.6vw, 46px); line-height: 1.24; letter-spacing: -.055em; }
.fr-workspace-head p, .fr-console-head p, .fr-keys header p { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 8px 0 0; }
.fr-account { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: end; margin: 0; }
.fr-account span { max-width: 23ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; }
.fr-sections { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin-top: 22px; }
.fr-sections a { display: inline-flex; align-items: center; gap: 4px; padding-block: 12px; color: var(--muted); font-size: 14px; font-weight: 540; }
.fr-sections a:hover { color: var(--ink); }
.fr-workspace:has(#api-keys:target) .fr-sections a[href="#api-keys"],
.fr-workspace:not(:has(#api-keys:target)) .fr-sections a[href="#playground"] { color: var(--ink); box-shadow: inset 0 -2px var(--ink); }
.fr-sections a span { font-size: 12px; }
.fr-console-grid { display: grid; grid-template-columns: clamp(185px, 21%, 255px) minmax(0, 1fr); gap: clamp(20px, 3.4vw, 42px); margin-top: 26px; align-items: start; scroll-margin-top: 16px; }
.fr-tool-list { min-width: 0; }
.fr-tool-list h2 { margin: 3px 0 10px 10px; font-size: 12px; font-weight: 550; color: var(--muted); }
.fr-tool-tab { width: 100%; min-height: 53px; display: flex; gap: 8px; align-items: center; justify-content: space-between; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 6px; padding: 6px 10px; margin: 1px 0; color: var(--ink); }
.fr-tool-tab:hover { background: #f7f8fa; }
.fr-tool-tab[aria-pressed="true"] { background: #f3f4f6; border-color: #e4e5e8; }
.fr-tool-tab strong { display: block; font-size: 14px; line-height: 1.5; font-weight: 560; }
.fr-tool-tab code { display: block; font-family: var(--mono); font-size: 11px; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.fr-indicator { flex-shrink: 0; width: 7px; height: 7px; border: 1px solid #a1a4ab; border-radius: 50%; }
[data-available="yes"] .fr-indicator { border-color: #398469; background: #398469; }
.fr-console { min-width: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.fr-console-head { padding: 22px 24px 19px; display: flex; align-items: start; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.fr-console-head h2, .fr-keys header h2 { font-size: clamp(20px, 2vw, 25px); font-weight: 620; line-height: 1.35; letter-spacing: -.04em; }
.fr-console-head p { margin-top: 4px; font-size: 13px; }
#tool-endpoint { align-self: start; color: #3e4550; border: 1px solid var(--line); background: #f9f9fa; font-family: var(--mono); font-size: 11px; line-height: 1.45; padding: 4px 7px; border-radius: 5px; }
#tool-endpoint:empty { display: none; }
.fr-request, .fr-response { padding: 22px 24px; }
#tool-fields { display: flex; flex-wrap: wrap; gap: 12px; }
#tool-fields:not(:empty) { margin-bottom: 18px; }
#tool-fields label { display: grid; flex: 1 1 110px; min-width: 0; gap: 7px; }
#tool-fields label, .fr-key-form label, .fr-key-secret label { color: var(--ink); font-size: 13px; font-weight: 550; }
.fr-workspace input:not([type="hidden"]), .fr-workspace textarea { width: 100%; color: var(--ink); font: inherit; font-weight: 400; font-size: 14px; line-height: 1.45; border: 1px solid #cdced3; border-radius: 6px; background: #fff; padding: 9px 11px; }
.fr-workspace textarea { resize: vertical; min-height: 98px; }
.fr-workspace input::placeholder, .fr-workspace textarea::placeholder { color: #747780; }
.fr-run-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
#tool-status { color: var(--muted); font-size: 13px; }
.fr-response { background: #fafafb; border-top: 1px solid var(--line); }
.fr-response-head { display: flex; gap: 10px; justify-content: space-between; align-items: baseline; }
.fr-response h3 { font-size: 14px; font-weight: 600; }
#response-status { font: 11px var(--mono); color: var(--muted); }
.fr-output { margin-top: 15px; min-height: 66px; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.7; }
.fr-output.is-empty { color: var(--muted); }
.fr-output pre { font: 12px/1.65 var(--mono); white-space: pre-wrap; margin: 0; }
.fr-output p { margin: 0 0 7px; }
.fr-output details { margin-top: 12px; }
.fr-output summary { width: fit-content; cursor: pointer; font-weight: 550; }
.fr-output details p { margin-top: 5px; }
.fr-output > code { display: block; color: var(--muted); font: 11px/1.65 var(--mono); margin-top: 8px; }

.fr-keys { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 24px; scroll-margin-top: 16px; }
.fr-key-form, .fr-key-secret { max-width: 620px; margin-top: 22px; }
.fr-key-secret { border: 1px solid var(--line); background: #f8f9fb; border-radius: 7px; padding: 14px; }
.fr-key-form div, .fr-key-secret div { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.fr-key-form input, .fr-key-secret input { min-width: 0; }
.fr-key-secret input[readonly] { font-family: var(--mono); font-size: 12px; }
.fr-text-button { background: transparent; color: var(--ink); padding: 6px 0; font: inherit; font-size: 13px; border: 0; white-space: nowrap; text-underline-offset: 3px; }
.fr-text-button:hover { text-decoration: underline; }
.fr-key-status { margin: 13px 0 0; color: var(--muted); font-size: 13px; }
.fr-key-status:empty { display: none; }
.fr-key-list { max-width: 620px; margin: 16px 0 0; padding: 0; list-style: none; }
.fr-key-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding: 12px 0; }
.fr-key-list li > div { display: grid; gap: 3px; }
.fr-key-list strong { font-size: 14px; font-weight: 550; overflow-wrap: anywhere; }
.fr-key-list code { color: var(--muted); font: 11px var(--mono); }

@media (max-width: 700px) {
  .fr-entry { min-height: min(715px, max(510px, calc(100dvh - 135px))); padding: 46px 22px; }
  .fr-account { gap: 5px; }
  .fr-account span { display: none; }
  .fr-workspace-head { align-items: start; }
  .fr-workspace-head p { font-size: 13px; }
  .fr-sections { margin-top: 16px; gap: 22px; }
  .fr-console-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 18px; }
  .fr-tool-list { display: flex; gap: 6px; overflow-x: auto; padding: 3px 1px 7px; scrollbar-width: thin; }
  .fr-tool-list h2, .fr-tool-tab code, .fr-tool-tab .fr-indicator { display: none; }
  .fr-tool-tab { width: auto; min-height: 36px; padding: 6px 10px; border-color: var(--line); flex: 0 0 auto; }
  .fr-tool-tab strong { font-size: 13px; }
  .fr-console-head, .fr-request, .fr-response { padding: 16px; }
  .fr-output { min-height: 55px; }
}

.community-notice { margin: 10px 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; line-height: 1.65; }
.community-notice label { display: block; }
.community-notice input { width: auto; min-height: 0; vertical-align: middle; }
.community-notice p, .fr-source { color: var(--muted); font-size: 12px; }
.community-notice a, .fr-output a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
