:root {
  color-scheme: light;
  --ink: #16213b;
  --ink-muted: #48556b;
  --paper: #f9f7f1;
  --white: #fffefa;
  --line: #d9dce5;
  --blue: #243fb2;
  --blue-dark: #172c83;
  --soft-blue: #eef1ff;
  --orange: #ffc37f;
  --shell: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 20px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.58 "Instrument Sans", system-ui, sans-serif; }
[hidden] { display: none !important; }
a { color: var(--blue-dark); text-underline-offset: .2em; }
button, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }
.skip { position: fixed; z-index: 200; left: 12px; top: 12px; background: var(--white); color: var(--ink); padding: 10px 18px; transform: translateY(-160%); }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.masthead { position: relative; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.masthead .shell { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 770; font-size: 1.08rem; letter-spacing: -.04em; white-space: nowrap; }
.brand img { border-radius: 10px; }
.primary { display: flex; align-items: center; gap: 5px; }
.primary a, .primary summary { display: flex; align-items: center; min-height: 44px; padding: 7px 13px; border-radius: 8px; cursor: pointer; color: var(--ink); font-weight: 650; font-size: .92rem; text-decoration: none; }
.primary a:hover, .primary summary:hover, .primary a[aria-current="page"] { background: var(--soft-blue); color: var(--blue-dark); }
.primary details { position: relative; }
.primary summary { list-style: none; gap: 8px; }
.primary summary::-webkit-details-marker, .mobile-menu > summary::-webkit-details-marker { display: none; }
.primary summary::after { content: ""; width: 7px; height: 7px; margin: -2px 2px 0; transform: rotate(45deg); border-right: 1.5px solid; border-bottom: 1.5px solid; }
.primary details[open] > summary::after { transform: rotate(225deg); margin-top: 4px; }
.menu-panel { position: absolute; top: calc(100% + 7px); left: 0; min-width: 238px; padding: 8px; background: var(--white); box-shadow: 0 12px 30px #202a5424; border: 1px solid var(--line); border-radius: 12px; }
.menu-panel ul, .mobile-links { list-style: none; padding: 0; margin: 0; }
.menu-panel a { white-space: nowrap; }
.mobile-menu { display: none; }
.intro { padding: clamp(28px, 4.4vw, 58px) 0 22px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 9px; font-size: .8rem; color: var(--ink-muted); margin: 0 0 13px; }
.crumbs a { color: inherit; }
.intro h1 { font: 630 clamp(2.15rem, 5.1vw, 4.24rem)/.99 "Instrument Serif", Georgia, serif; letter-spacing: -.063em; max-width: 870px; margin: 0 0 15px; text-wrap: balance; }
.intro p { color: var(--ink-muted); margin: 0; max-width: 680px; font-size: clamp(.97rem, 1.5vw, 1.12rem); }
.home-intro { background: var(--blue-dark); color: white; border-radius: 16px; margin: 17px 0 12px; padding: 20px clamp(18px, 3vw, 34px); }
.home-intro h1 { color: #fffefa; font-size: clamp(2rem, 5vw, 3.7rem); max-width: none; margin-bottom: 7px; }
.home-intro p { color: #e6eaff; }
.jumps { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 17px; }
.jumps a { background: var(--white); border: 1px solid var(--line); border-radius: 7px; padding: 8px 11px; font-size: .84rem; font-weight: 650; text-decoration: none; line-height: 1.3; min-height: 40px; display: inline-flex; align-items: center; }
.jumps a:hover, .jumps a[aria-current="page"] { background: var(--soft-blue); border-color: #a7b1e9; }
.workspace { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: clamp(12px, 2.1vw, 24px); margin-bottom: 22px; min-width: 0; }
.workspace-title { font-size: 1rem; margin: 0 0 8px; font-weight: 760; }
.workspace h2:not(.workspace-title) { font-size: 1.18rem; }
.quick-options { margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; }
.quick-options strong { font-size: .8rem; font-weight: 650; color: var(--ink-muted); }
.quick-options button { padding: 5px 9px; background: #fff; border: 1px solid var(--line); border-radius: 6px; color: var(--blue-dark); font-size: .8rem; min-height: 36px; }
.quick-options button:hover { background: var(--soft-blue); }
.quick-options button[aria-expanded="true"] { background: var(--soft-blue); }
.tool-note { font-size: .86rem; color: var(--ink-muted); }
.fges-app { --fges-bg: #fffefa; --fges-accent: #243fb2; --fges-accent-2: #3756cf; --fges-text: #16213b; --fges-text-2: #48556b; --fges-text-3: #526179; --fges-border: #d9dce5; --fges-border-2: #bdc5e7; --fges-surface-2: #eef1ff; --fges-radius: 11px; min-width: 0; width: 100%; padding-bottom: 0; }
.fges-app .fges-toolbar { position: sticky; top: 0; z-index: 10; background: #f5f7ff; border: 1px solid #d3d9f4; border-radius: 11px; box-shadow: none; }
.fges-app .fges-toolbar-inner { padding: 7px 8px; }
.fges-app .fges-input-wrapper { margin: 0; }
.tool-controls { padding-top: 8px; }
.tool-actions { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 5px 8px; margin-top: 6px; }
.tool-actions button, .tool-actions summary, .tool-share, .shared-style button, .share-actions :is(button,a), .share-close {
  display: inline-flex; align-items: center; min-height: 40px; padding: 5px 9px;
  border: 1px solid #c5cdeb; border-radius: 7px; background: white; color: var(--blue-dark);
  font-size: .83rem; font-weight: 650; cursor: pointer; text-decoration: none;
}
.tool-actions button:hover, .tool-actions summary:hover, .share-actions :is(button,a):hover { background: var(--soft-blue); }
.tool-advanced { position: relative; }
.tool-advanced > summary { list-style: none; }
.tool-advanced[open] { flex: 1 0 100%; order: 5; }
.tool-advanced > summary::-webkit-details-marker { display: none; }
.tool-advanced .fges-toggle-row { margin: 8px 0 5px; }
.fges-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.fges-card-actions button {
  min-height: 40px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px;
  color: var(--blue-dark); background: var(--soft-blue); font-size: .78rem; font-weight: 650;
}
.fges-card-actions button:hover { background: #dfe5ff; }
.fges-card-preview, .shared-style p, .share-preview { overflow-wrap: anywhere; white-space: pre-wrap; }
.shared-style h2, .share-dialog h2 { margin: 0 0 6px; font-size: 1.25rem; }
.share-dialog {
  width: min(460px, calc(100vw - 32px)); max-height: min(85dvh, 580px);
  color: var(--ink); background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px; box-shadow: 0 12px 34px #1823544a;
}
.share-dialog::backdrop { background: #16213b85; }
.share-dialog > form { float: right; margin: 0 0 5px 8px; }
.share-dialog p, .shared-style p { margin: 8px 0; }
.share-preview { max-height: 100px; overflow: auto; padding: 8px; background: var(--soft-blue); border-radius: 7px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.share-actions :is(button,a), .share-close { min-height: 44px; }
#share-feedback:empty { display: none; }
.tool-share { margin-bottom: 16px; }
.fges-app .fges-toolbar-inner, .fges-app .fges-section { max-width: 100%; }
.fges-app .fges-section { padding: 13px 0 3px; }
.fges-app:not(.fges-ready) .fges-grid:not(:has(.fges-card)) { min-block-size: min(73vh, 560px); }
.fges-app .fges-card { box-shadow: none; border-radius: 10px; }
.fges-app .fges-card:hover { box-shadow: 0 5px 18px #263a8320; }
.fges-app .fges-card-name-item:hover { cursor: pointer; }
.fges-app .fges-rail { flex-wrap: wrap; padding-bottom: 2px; gap: 5px; }
.fges-app .fges-rail:not(.show-all) .fges-pill[data-extra="true"] { display: none; }
.fges-app .fges-toggle-row { flex-wrap: wrap; }
.fges-app .fges-copy-btn { background: var(--soft-blue); color: var(--blue-dark); }
.fges-input { min-height: 64px; }
.cover-samples { margin-bottom: 20px; }
.cover-samples h2 { font-size: 1.15rem; margin: 0 0 8px; }
.samples { margin: 7px 0 15px; list-style: none; display: flex; flex-wrap: wrap; padding: 0; gap: 8px; }
.copy-example { min-height: 44px; display: inline-flex; gap: 10px; align-items: center; padding: 7px 12px; border: 1px solid #c9d1ed; border-radius: 7px; background: var(--white); color: var(--ink); line-height: 1.3; overflow-wrap: anywhere; text-align: left; }
.copy-example::after { content: "Copiar"; font: 650 .74rem/1.2 system-ui, sans-serif; color: var(--blue-dark); flex: none; }
.copy-example:hover { background: var(--soft-blue); }
.copy-example.only-label::after { content: none; }
.support { border-top: 1px solid var(--line); padding: 25px 0 35px; }
.support h2 { font: 630 clamp(1.4rem, 3vw, 2rem)/1.16 "Instrument Serif", Georgia, serif; letter-spacing: -.032em; margin: 0 0 8px; }
.support p { color: var(--ink-muted); max-width: 70ch; margin: 0; }
.editorial { display: grid; gap: 23px; }
.editorial > section, .editorial > div { max-width: 780px; }
.related { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 16px 0 0; }
.directory { display: grid; grid-template-columns: repeat(auto-fit,minmax(185px,1fr)); gap: 2px 16px; list-style: none; padding: 0; margin: 0; }
.directory a { display: flex; align-items: center; min-height: 44px; padding: 4px 0; }
.directory-group { padding: 15px 0; border-bottom: 1px solid var(--line); }
.alphabet .jumps a { min-width: 40px; justify-content: center; }
.alphabet summary { cursor: pointer; color: var(--blue-dark); padding: 6px 0; margin-bottom: 8px; }
.profile-preview { max-width: 460px; background: var(--soft-blue); border-radius: 10px; padding: 13px 17px; border: 1px solid #d4dbfa; }
.profile-preview p { margin: 0; }
.profile-preview { margin-top: 14px; }
.profile-preview output { display: block; white-space: pre-wrap; overflow-wrap: anywhere; font-weight: 650; min-height: 26px; }
.invisible-tools { list-style: none; padding: 0; display: grid; gap: 7px; }
.invisible-tools li { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.invisible-tools .copy-example { margin-left: auto; }
.paste-test { display: block; width: min(100%,550px); min-height: 70px; margin: 7px 0; padding: 9px; border: 1px solid #8d99b1; border-radius: 7px; }
.site-feedback { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 100; background: var(--ink); color: white; border-radius: 8px; padding: 8px 14px; text-align: center; }
.site-feedback:empty { display: none; }
.footer { border-top: 1px solid var(--line); background: var(--white); padding: 20px 0; color: var(--ink-muted); font-size: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 21px; }
.footer-links a:first-child { margin-right: auto; }
@media (max-width: 720px) {
  .shell { width: calc(100% - 24px); }
  :root { --mobile-header: 56px; }
  html { scroll-padding-top: calc(var(--mobile-header) + 50px); }
  .masthead { position: sticky; top: 0; z-index: 30; }
  .masthead .shell { min-height: calc(var(--mobile-header) - 1px); }
  body:has(.mobile-menu[open]) .fges-app .fges-toolbar { visibility: hidden; }
  .primary { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu > summary { display: flex; align-items: center; min-height: 44px; list-style: none; cursor: pointer; padding: 3px 11px; border: 1px solid #c5cdeb; border-radius: 8px; font-weight: 650; color: var(--blue-dark); }
  .mobile-menu .menu-panel { left: 12px; right: 12px; top: 100%; max-height: min(68vh,550px); overflow-y: auto; }
  .mobile-links a { display: flex; align-items: center; min-height: 44px; padding: 7px 12px; }
  .home-intro { margin: 10px 0; padding: 12px 15px; border-radius: 12px; }
  .intro { padding-top: 24px; padding-bottom: 16px; }
  .home-intro h1 { font-size: clamp(1.79rem, 8.35vw, 2.65rem); margin-bottom: 8px; text-wrap: initial; }
  .intro p { line-height: 1.46; }
  .workspace { border-radius: 12px; padding: 10px; }
  .fges-app .fges-menu { width: calc(100vw - 52px); }
  .fges-app .fges-toolbar {
    top: var(--mobile-header); margin-inline: -23px; border-radius: 0;
    border-inline: 0; background: #f5f7ff;
  }
  .fges-app .fges-toolbar-inner { padding: 4px 12px; }
  .fges-app .fges-input-wrapper { box-shadow: none; border-radius: 7px; }
  .fges-app .fges-input {
    box-sizing: border-box; font-size: 16px; min-height: 44px; height: 44px;
    max-height: 44px; padding-block: 9px; overflow: auto;
  }
  .fges-app .fges-clear-btn { min-width: 44px; min-height: 44px; }
  .fges-app .fges-input-side { min-height: 44px; }
  .fges-card-actions button { min-height: 44px; }
  .tool-actions :is(button,summary) { min-height: 44px; }
  .jumps { gap: 4px; }
  .quick-options { flex-wrap: nowrap; overflow-x: auto; padding-block: 3px; }
  .quick-options button { flex: 0 0 auto; white-space: nowrap; }
  .quick-options strong { flex: 0 0 auto; }
  .fges-app .fges-rail:not(.show-all), .fges-app .fges-toggle-row { flex-wrap: nowrap; overflow-x: auto; }
  .fges-app .fges-rail.show-all { flex-wrap: wrap; overflow: visible; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
