/* Araç modülüne özel yerleşim. Renkler ve kontroller ortak frontend sisteminden gelir. */
.gt-page { padding-block: 12px 28px; min-width: 0; }
.gt-page [hidden] { display: none !important; }
.gt-page h1, .gt-page h2, .gt-page h3, .gt-page p { margin: 0; }
.gt-breadcrumb { max-width: 100%; margin: 0 0 10px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: var(--fe-color-border) transparent; }
.gt-breadcrumb__list { display: flex; align-items: center; gap: 8px; width: max-content; margin: 0; padding: 3px; list-style: none; font-size: 12px; line-height: 20px; }
.gt-breadcrumb__item { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; white-space: nowrap; }
.gt-breadcrumb a, .gt-breadcrumb__current { display: inline-block; padding: 4px 1px; }
.gt-breadcrumb a { color: var(--fe-color-text-muted); text-decoration: none; }
.gt-breadcrumb a:hover { color: var(--fe-color-text); text-decoration: underline; text-underline-offset: 3px; }
.gt-breadcrumb a:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; border-radius: 2px; }
.gt-breadcrumb__separator { color: var(--fe-color-text-muted); }
.gt-breadcrumb__current { color: var(--fe-color-text); }
.gt-heading, .gt-section-heading, .gt-code-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gt-heading { margin-bottom: 22px; }
.gt-heading-with-game { display: contents; }
.gt-title-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.gt-other-tools { display: inline-flex; align-items: center; gap: 5px; padding-block: 5px; color: var(--fe-color-text-muted); font-size: 12px; white-space: nowrap; text-decoration: none; }
.gt-other-tools:hover { color: var(--fe-color-text); text-decoration: underline; }
.gt-heading h1 { font-size: clamp(26px, 3vw, 34px); line-height: 1.2; letter-spacing: -.035em; font-weight: 700; }
.gt-heading p { max-width: 690px; margin-top: 8px; line-height: 1.6; font-size: 14px; color: var(--fe-color-text-muted); }
.gt-game-link-row { margin: -10px 0 14px; min-width: 0; }
.gt-game-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; max-width: 100%; color: var(--fe-color-text); text-decoration: none; border-radius: var(--fe-radius-sm); }
.gt-game-link__cover { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; color: var(--fe-color-text-muted); }
.gt-game-link__cover img { display: block; width: 32px; height: 32px; object-fit: contain; border-radius: 3px; }
.gt-game-link__name { min-width: 0; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.gt-game-link__label { flex-shrink: 0; font-size: 12px; color: var(--fe-color-text-muted); white-space: nowrap; }
.gt-game-link:hover { color: var(--fe-color-text); }
.gt-game-link:hover .gt-game-link__name { text-decoration: underline; text-underline-offset: 3px; }
.gt-game-link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (min-width: 901px) {
    .gt-heading-with-game { display: grid; grid-template-columns: minmax(0, 1fr) fit-content(300px); align-items: start; column-gap: 24px; margin-bottom: 22px; }
    .gt-heading-with-game > .gt-heading { margin-bottom: 0; min-width: 0; }
    .gt-heading-with-game > .gt-game-link-row { margin: 0; max-width: 300px; }
}
.gt-page .gt-recipe-heading { margin-bottom: 10px; font-size: 14px; }
.gt-toolbar { display: flex; align-items: center; gap: 16px; padding-block: 14px; margin-bottom: 24px; border-block: 1px solid var(--fe-color-border); }
.gt-editions { margin: 0; padding: 3px; display: inline-flex; gap: 3px; border: 1px solid var(--fe-color-border); background: var(--fe-color-bg-alt); border-radius: var(--fe-radius-md); min-width: 0; }
.gt-editions label { position: relative; cursor: pointer; }
.gt-editions span { display: block; padding: 8px 13px; border-radius: var(--fe-radius-sm); font-size: 13px; font-weight: 600; white-space: nowrap; }
.gt-editions input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.gt-editions input:checked + span { background: var(--fe-color-surface); color: var(--fe-color-text); box-shadow: var(--fe-shadow-sm); }
.gt-editions input:focus-visible + span { outline: 2px solid var(--fe-color-primary); outline-offset: 2px; }
.gt-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: 'archive builder'; gap: 24px; align-items: start; }
.gt-archive { grid-area: archive; }
.gt-builder { grid-area: builder; }
.gt-archive, .gt-builder { min-width: 0; }
.gt-section-heading { margin-bottom: 14px; }
.gt-section-heading h2 { font-size: 17px; letter-spacing: -.025em; }
.gt-section-heading > span { font-size: 12px; color: var(--fe-color-text-muted); }
.gt-filters { display: grid; grid-template-columns: minmax(0, 1fr) 175px; gap: 8px; flex: 1; min-width: 0; max-width: 640px; margin-left: auto; }
.gt-filters label { min-width: 0; }
.gt-filters .common-input, .gt-filters .common-select { font-size: 13px; min-height: 40px; }
.gt-category { position: relative; min-width: 0; }
.gt-category > summary { display: flex; align-items: center; gap: 8px; list-style: none; }
.gt-category > summary::-webkit-details-marker { display: none; }
.gt-category > summary::after { content: ''; width: 6px; height: 6px; flex: 0 0 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: -3px 2px 0 auto; }
.gt-category[open] > summary::after { transform: rotate(225deg); margin-top: 3px; }
#gt-category-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-category-options { position: absolute; z-index: 20; inset-inline-end: 0; top: calc(100% + 6px); width: 220px; max-width: calc(100vw - 48px); min-width: 0; max-height: min(280px, 60dvh); overflow-y: auto; margin: 0; padding: 5px; border: 1px solid var(--fe-color-border); border-radius: var(--fe-radius-md); background: var(--fe-color-surface); box-shadow: var(--fe-shadow-sm); }
.gt-category-options label { position: relative; display: block; cursor: pointer; }
.gt-category-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.gt-category-options span { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 8px 10px; font-size: 14px; line-height: 1.4; border-radius: var(--fe-radius-sm); overflow-wrap: anywhere; }
.gt-category-options label:hover span, .gt-category-options input:checked + span { background: var(--fe-color-bg-alt); }
.gt-category-options input:checked + span { font-weight: 600; }
.gt-category-options input:checked + span::after { content: '✓'; color: var(--fe-color-primary); }
.gt-category-options input:focus-visible + span { outline: 2px solid var(--fe-color-primary); outline-offset: -2px; }
.gt-command-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.gt-command { padding: 16px; min-width: 0; border: 1px solid var(--fe-color-border); border-radius: var(--fe-radius-md); background: var(--fe-color-surface); }
.gt-command:nth-child(even of .gt-command:not([hidden])) { background: color-mix(in srgb, var(--fe-color-surface) 90%, var(--fe-color-text-muted)); }
.gt-command-heading { position: relative; }
.gt-command h3 { display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.4; }
.gt-command h3 code { font-size: 12px; color: var(--fe-color-text-muted); background: none; padding: 0; padding-right: 82px; }
.gt-command h3 span { font-weight: 600; }
.gt-customize { position: absolute; right: 0; top: -7px; min-height: 32px; padding: 4px 0 4px 8px; border: 0; background: transparent; color: var(--fe-color-text-muted); font: inherit; font-size: 12px; cursor: pointer; }
.gt-customize:hover { color: var(--fe-color-text); text-decoration: underline; }
.gt-page :is(a, button, summary):focus-visible { outline: 2px solid var(--fe-color-primary); outline-offset: 3px; border-radius: var(--fe-radius-xs); }
.gt-command > p { margin-top: 6px; min-height: 40px; color: var(--fe-color-text-muted); line-height: 1.55; font-size: 13px; }
.gt-code-line { margin-top: 12px; padding: 8px 0 8px 10px; border: 1px solid var(--fe-color-border); border-radius: var(--fe-radius-sm); background: var(--fe-color-bg-alt); gap: 8px; min-height: 48px; }
.gt-code-line code { min-width: 0; overflow-wrap: anywhere; font-size: 12px; line-height: 1.6; background: none; padding: 0; color: var(--fe-color-text); }
.gt-code-line .button { flex-shrink: 0; font-size: 11px; padding: 5px 8px; margin-right: 4px; min-height: 30px; background: transparent; border-color: transparent; }
.gt-code-line .button:hover { background: var(--fe-color-surface); border-color: var(--fe-color-border); }
.gt-command-details { margin-top: 6px; }
.gt-command summary, .gt-help summary { cursor: pointer; font-size: 12px; color: var(--fe-color-text-muted); padding-block: 7px; }
.gt-command dl { margin: 8px 0 12px; font-size: 13px; line-height: 1.6; }
.gt-command dt { font-weight: 600; margin-top: 9px; }
.gt-command dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.gt-command dd code { white-space: normal; }
.gt-builder { padding: 18px; border: 1px solid var(--fe-color-border); border-radius: var(--fe-radius-md); background: var(--fe-color-bg-alt); }
.gt-builder .gt-section-heading { margin-bottom: 7px; }
.gt-builder summary { cursor: pointer; list-style: none; }
.gt-builder summary::-webkit-details-marker { display: none; }
.gt-builder summary::after { content: '+'; font-size: 20px; font-weight: 400; }
.gt-builder[open] summary::after { content: '−'; }
.gt-builder:not([open]) .gt-section-heading { margin-bottom: 0; }
.gt-builder-intro { font-size: 12px; color: var(--fe-color-text-muted); margin-bottom: 18px !important; line-height: 1.5; }
.gt-builder .form-row { margin-bottom: 14px; }
.gt-builder .form-row label { font-size: 12px; margin-bottom: 6px; }
.gt-builder .common-select, .gt-builder .common-input { font-size: 14px; }
.gt-coordinates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gt-coordinates input { padding-inline: 8px; }
.gt-check { display: flex; align-items: start; gap: 7px; font-size: 12px; margin-bottom: 14px; line-height: 1.6; }
.gt-check input { margin-top: 4px; accent-color: var(--fe-color-primary); }
.gt-output-label { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin: 20px 0 7px; }
.gt-output-label span { color: var(--fe-color-text-muted); }
.gt-output { font-family: var(--fe-font-mono); font-size: 13px; min-height: 70px; line-height: 1.7; resize: vertical; }
.gt-builder-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gt-builder-actions .button { font-size: 12px; flex: 1; padding-inline: 10px; }
.gt-builder-note { margin-top: 13px !important; font-size: 11px; color: var(--fe-color-text-muted); line-height: 1.6; }
.gt-feedback { padding-top: 9px; font-size: 12px; }
.gt-feedback:empty { padding: 0; }
.gt-error { font-size: 12px; color: var(--fe-color-danger); margin-top: 8px !important; }
.gt-empty { border: 1px solid var(--fe-color-border); padding: 20px; border-radius: var(--fe-radius-md); font-size: 14px; }
.gt-help { margin-top: 24px; border-top: 1px solid var(--fe-color-border); padding-top: 20px; }
.gt-help h2 { font-size: 18px; }
.gt-help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 12px; }
.gt-help summary { color: var(--fe-color-text); font-weight: 600; font-size: 13px; }
.gt-help p, .gt-help a { font-size: 13px; line-height: 1.65; margin-top: 9px; }
.gt-hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gt-hub-card { display: grid; grid-template-columns: 40px minmax(0, 1fr) 20px; align-items: center; gap: 16px; min-width: 0; border: 1px solid var(--fe-color-border); border-radius: var(--fe-radius-md); padding: 22px; color: var(--fe-color-text); text-decoration: none; }
.gt-hub-card:hover { text-decoration: none; border-color: var(--fe-color-text-muted); }
.gt-hub-card:focus-visible { outline: 2px solid var(--fe-color-primary); outline-offset: 3px; }
.gt-hub-copy { min-width: 0; overflow-wrap: anywhere; }
.gt-hub-card h2 { font-size: 17px; }
.gt-hub-card p { font-size: 13px; line-height: 1.6; margin-top: 6px; color: var(--fe-color-text-muted); }
.gt-hub-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--fe-radius-sm); background: var(--fe-color-bg-alt); color: var(--fe-color-primary); }
.gt-hub-icon svg { display: block; width: 24px; height: 24px; }
.gt-hub-arrow { display: grid; place-items: center; width: 20px; height: 20px; color: var(--fe-color-text-muted); }
.gt-hub-arrow svg { display: block; width: 100%; height: 100%; }
.gt-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.gt-hub-grid > .gt-builder { grid-area: auto; }
.gt-utility-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gt-utility-formats { display: flex; flex-wrap: wrap; gap: 0 18px; }
.gt-utility-formats .gt-check { min-height: 32px; align-items: center; margin-bottom: 0; }
.gt-text-preview { padding: 20px; min-height: 90px; display: flex; align-items: center; justify-content: center; border-radius: var(--fe-radius-md); overflow-wrap: anywhere; font-size: 23px; color: var(--gt-preview-color, var(--fe-color-text)); background: var(--gt-preview-bg, var(--fe-color-surface)); }
.gt-text-preview.is-bold { font-weight: 700; }
.gt-text-preview.is-italic { font-style: italic; }
.gt-text-preview.is-underlined { text-decoration: underline; }
.gt-text-preview.is-strikethrough { text-decoration: line-through; }
.gt-text-preview.is-underlined.is-strikethrough { text-decoration: underline line-through; }
.gt-utility-results { margin-top: 16px; }
.gt-team-input { min-height: 220px; resize: vertical; line-height: 1.7; }
.gt-team-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.gt-team-card { min-width: 0; overflow-wrap: anywhere; }
.gt-page .gt-team-card h3 { font-size: 15px; margin-bottom: 10px; }
.gt-team-card ul { padding-left: 20px; font-size: 14px; line-height: 1.8; }
.gt-team-card li + li { margin-top: 3px; }
.gt-team-options { margin:10px 0 16px; font-size:13px; }
.gt-team-options summary { cursor:pointer;padding:8px 0;margin-bottom:8px; }
.gt-captain { display:inline-block;margin-left:8px;font-size:10px;line-height:1.4;padding:3px 6px;border-radius:4px;background:var(--fe-color-bg-alt);border:1px solid var(--fe-color-border);color:var(--fe-color-text-muted); }
.gt-team-export { margin-top: 16px; font-size: 13px; }
.gt-team-export summary { cursor: pointer; padding-block: 8px; }
.gt-calculator { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 20px; align-items: start; }
.gt-calculator > .gt-builder { grid-area: auto; }
.gt-calc-result { padding: 28px; border: 1px solid var(--fe-color-border); border-radius: var(--fe-radius-md); background: linear-gradient(140deg, color-mix(in srgb, #55a64f 10%, var(--fe-color-surface)), var(--fe-color-surface)); min-width: 0; overflow-wrap: anywhere; }
.gt-calc-symbol { display: block; font-size: 46px; color: #448b40; line-height: 1.2; margin-bottom: 14px; }
.gt-page .gt-calc-result h2 { font-size: 16px; }
.gt-calc-number { display: block; font-size: clamp(27px, 3vw, 40px); font-weight: 700; margin: 14px 0; color: var(--fe-color-text); }
.gt-calc-result > p { font-size: 13px; line-height: 1.7; }
.gt-calc-meter { height: 10px; border-radius: 8px; overflow: hidden; margin: 12px 0; background: var(--fe-color-border); }
.gt-calc-meter span { display: block; height: 100%; background: #55a64f; }
.gt-recipe-library { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
.gt-recipe-layout { display:grid; grid-template-columns:minmax(220px,.75fr) minmax(0,1.25fr); gap:20px; align-items:start; }
.gt-recipe-layout[hidden] { display:none; }
.gt-recipe-browser { display:grid;gap:10px;min-width:0; }
.gt-recipe-browser .gt-recipe-library { grid-template-columns:repeat(2,minmax(0,1fr));max-height:520px;overflow-y:auto;align-content:start;scrollbar-gutter:stable; }
.gt-recipe-browser .gt-builder-note { margin:0; }
.gt-recipe-detail { min-width:0;margin:0; }
.gt-recipe-layout > .gt-builder { grid-area:auto;order:0; }
.gt-recipe-detail h2 { overflow-wrap:anywhere; }
.gt-recipe-option-copy { min-width:0;overflow-wrap:anywhere; }
.gt-recipe-option-copy small {display:block;color:var(--fe-color-text-muted);font-size:11px;margin-top:3px;}
.gt-recipe-option:focus-visible,.gt-recipe-ingredient:focus-visible { outline:2px solid var(--fe-color-primary);outline-offset:2px; }
.gt-recipe-choices { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px; }
.gt-recipe-choices .form-row {min-width:0;}
.gt-recipe-detail select {width:100%;min-width:0;max-width:100%;}
.gt-crafting-grid.gt-crafting-grid--ingredients {display:flex;flex-wrap:wrap;max-width:235px;justify-content:center;}
.gt-recipe-option { display:flex; align-items:center; gap:9px; padding:12px; min-width:0; text-align:left; font:inherit; font-size:13px; color:var(--fe-color-text); background:var(--fe-color-surface); border:1px solid var(--fe-color-border); border-radius:var(--fe-radius-md); cursor:pointer; }
.gt-recipe-option[aria-pressed="true"] { border-color:var(--fe-color-primary); background:color-mix(in srgb,var(--fe-color-primary) 5%,var(--fe-color-surface)); }
.gt-recipe-option svg,.gt-recipe-ingredient svg { width:38px; height:38px; flex:0 0 38px; }
.gt-recipe-workbench { display:flex; justify-content:center; align-items:center; gap:24px; margin:24px 0; }
.gt-crafting-grid { display:grid; grid-template-columns:repeat(3,64px); gap:5px; padding:10px; border:1px solid var(--fe-color-border); border-radius:var(--fe-radius-md); background:var(--fe-color-bg-alt); }
.gt-crafting-cell { width:64px; height:64px; border:1px solid var(--fe-color-border); display:grid; place-items:center; background:var(--fe-color-surface); border-radius:4px; }
.gt-crafting-cell svg { width:48px;height:48px; }
.gt-crafting-arrow { font-size:30px;color:var(--fe-color-text-muted); }
.gt-recipe-yield { text-align:center;font-size:13px; }
.gt-recipe-yield svg { width:80px;height:80px; }
.gt-recipe-ingredients { display:flex;flex-wrap:wrap;gap:8px;margin-top:10px; }
.gt-recipe-ingredient { display:flex;align-items:center;gap:8px;max-width:100%;overflow-wrap:anywhere;padding:7px 12px;font:inherit;font-size:13px;border:1px solid var(--fe-color-border);border-radius:var(--fe-radius-sm);background:var(--fe-color-surface);color:var(--fe-color-text); }
button.gt-recipe-ingredient { cursor:pointer;text-decoration:underline;text-underline-offset:3px; }
@media(max-width:900px) { .gt-recipe-library {grid-template-columns:repeat(3,minmax(0,1fr));} }
@media(max-width:700px) { .gt-recipe-library {grid-template-columns:repeat(2,minmax(0,1fr));} .gt-recipe-option {padding:9px;font-size:12px;} .gt-recipe-workbench {gap:10px;} .gt-crafting-grid {grid-template-columns:repeat(3,44px);gap:3px;padding:6px;} .gt-crafting-cell {width:44px;height:44px;} .gt-crafting-cell svg {width:36px;height:36px;} .gt-recipe-yield svg {width:56px;height:56px;} }
@media(max-width:900px) { .gt-recipe-layout {grid-template-columns:1fr;} .gt-recipe-browser .gt-recipe-library {max-height:250px;grid-template-columns:repeat(3,minmax(0,1fr));} }
@media(max-width:600px) { .gt-recipe-browser .gt-recipe-library {grid-template-columns:repeat(2,minmax(0,1fr));} .gt-recipe-choices {grid-template-columns:1fr;} .gt-crafting-grid.gt-crafting-grid--ingredients {max-width:158px;} .gt-recipe-yield {max-width:90px;} }
@media (max-width:700px) { .gt-calculator { grid-template-columns: minmax(0,1fr); } .gt-calc-result { padding:20px; } }
@media (max-width: 1050px) {
    .gt-workspace { grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; }
    .gt-command-list { grid-template-columns: minmax(0, 1fr); }
    .gt-builder { padding: 16px; }
}
@media (max-width: 700px) {
    .gt-page { padding-top: 4px; }
    .gt-heading { align-items: flex-start; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
    .gt-heading p { font-size: 13px; }
    .gt-toolbar { flex-wrap: wrap; gap: 10px; margin-bottom: 16px; padding-block: 12px; }
    .gt-editions { width: 100%; }
    .gt-editions label { flex: 1; text-align: center; }
    .gt-workspace { display: flex; flex-direction: column; gap: 20px; }
    .gt-builder { order: -1; width: 100%; }
    .gt-archive { width: 100%; }
    .gt-filters { flex-basis: 100%; grid-template-columns: minmax(0, 1fr) 164px; max-width: none; }
    .gt-filters .common-input, .gt-filters .common-select, .gt-builder .common-input, .gt-builder .common-select { font-size: 16px; }
    .gt-category > summary.common-select { font-size: 14px; }
    .gt-command { padding: 14px; }
    .gt-command > p { min-height: 0; }
    .gt-code-line .button { min-height: 36px; }
    .gt-help-grid, .gt-hub-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .gt-hub-card { gap: 12px; padding: 16px; }
    .gt-help { margin-top: 18px; }
}
@media (max-width: 360px) {
    .gt-filters { grid-template-columns: minmax(0, 1fr); }
}

.gt-tournament { min-width:0; }
.gt-tournament > section > .gt-builder { grid-area:auto;order:0;margin-top:16px; }
.gt-tournament .gt-team-fields > h2 { margin-bottom:12px;font-size:20px; }
.gt-tournament .form-row { min-width:0;margin-bottom:14px; }
.gt-tournament .common-select,.gt-tournament .common-input { width:100%;min-width:0; }
.gt-t-actions { display:flex;flex-wrap:wrap;gap:8px;align-items:center; }
.gt-t-actions .button { white-space:normal;line-height:1.4;min-height:36px; }
.gt-tournament > .gt-t-actions { margin:8px 0 16px; }
.gt-t-group-settings { display:grid;grid-template-columns:1fr 1fr;gap:12px; }
.gt-t-point-inputs { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px; }
.gt-t-dashboard { display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 0 16px;border-top:1px solid var(--fe-color-border); }
.gt-t-dashboard > div { min-width:0; }
.gt-t-dashboard > .gt-t-actions { max-width:410px;justify-content:flex-end; }
.gt-page .gt-t-dashboard h2 { font-size:23px;overflow-wrap:anywhere;line-height:1.35;margin:5px 0; }
.gt-page .gt-t-eyebrow { font-size:12px;letter-spacing:.04em;color:var(--fe-color-text-muted); }
.gt-t-progress { display:block;width:100%;height:6px;border:0;border-radius:6px;overflow:hidden;margin-bottom:22px;accent-color:var(--fe-color-primary);background:var(--fe-color-border); }
.gt-t-progress::-webkit-progress-bar { background:var(--fe-color-border); }
.gt-t-progress::-webkit-progress-value { background:var(--fe-color-primary);border-radius:6px; }
.gt-t-progress::-moz-progress-bar { background:var(--fe-color-primary); }
.gt-t-winner { display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin-bottom:24px; }
.gt-t-place { display:flex;align-items:center;gap:12px;padding:16px;border:1px solid var(--fe-color-border);border-radius:var(--fe-radius-md);background:var(--fe-color-surface);min-width:0; }
.gt-t-place.is-champion { background:var(--fe-color-bg-alt); }
.gt-t-place-rank { display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border:1px solid var(--fe-color-border);border-radius:50%;font-size:16px;font-weight:700;color:var(--fe-color-text-muted); }
.gt-t-place-copy { display:grid;gap:5px;min-width:0;overflow-wrap:anywhere; }
.gt-t-place-copy span { font-size:11px;color:var(--fe-color-text-muted); }
.gt-t-place-copy strong { font-size:15px;line-height:1.35; }
.gt-t-navigation { display:grid;gap:12px;margin-bottom:12px; }
.gt-t-section-heading { display:flex;align-items:center;justify-content:space-between;gap:12px; }
.gt-page .gt-t-section-heading h3 { font-size:16px;font-weight:600; }
.gt-t-stage-tabs { display:flex;flex-wrap:wrap;gap:6px;border-bottom:1px solid var(--fe-color-border);padding-bottom:12px; }
.gt-t-stage-tabs .button[aria-pressed="true"],.gt-t-round-tabs .button[aria-pressed="true"] { border-color:var(--fe-color-text-muted);box-shadow:inset 0 -2px var(--fe-color-text-muted); }
.gt-t-round-controls { display:flex;align-items:center;gap:10px;min-width:0; }
.gt-t-round-controls.is-knockout { display:none; }
.gt-t-round-tabs { display:flex;gap:6px;overflow-x:auto;scrollbar-width:thin;min-width:0;flex:1;padding:4px; }
.gt-t-round-tabs .button { flex-shrink:0;white-space:nowrap; }
.gt-t-round-controls > .gt-t-actions { flex-shrink:0;gap:5px; }
.gt-t-round-controls > .gt-t-actions .button { width:34px;padding-inline:4px; }
.gt-t-board { display:flex;gap:32px;overflow-x:auto;overscroll-behavior-x:contain;padding:12px 2px 16px;align-items:flex-start;scrollbar-width:thin; }
.gt-t-round { flex:1 0 230px;min-width:0;display:grid;gap:12px; }
.gt-page .gt-t-round h3 { font-size:13px;font-weight:600;padding:7px 0;color:var(--fe-color-text-muted); }
.gt-t-match { display:block;width:100%;min-width:0;text-align:left;font:inherit;color:var(--fe-color-text);padding:12px;border:1px solid var(--fe-color-border);border-radius:var(--fe-radius-md);background:var(--fe-color-surface); }
button.gt-t-match { cursor:pointer; }
button.gt-t-match:hover { border-color:var(--fe-color-text-muted); }
.gt-t-match.is-done { background:var(--fe-color-bg-alt); }
.gt-t-match-status { display:block;font-size:11px;color:var(--fe-color-text-muted);margin-bottom:8px; }
.gt-t-match-team { display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 0;font-size:14px; }
.gt-t-match-team + .gt-t-match-team { border-top:1px solid var(--fe-color-border); }
.gt-t-match-team > span { min-width:0;overflow-wrap:anywhere; }
.gt-t-match-team strong { font-variant-numeric:tabular-nums;font-size:15px;min-width:22px;text-align:right;flex-shrink:0; }
.gt-t-match-team.is-winner { font-weight:700; }
.gt-t-match-team.is-winner strong::after { content:' ✓';font-size:11px; }
.gt-t-board--league .gt-t-round { flex:1; }
.gt-t-slots { display:grid;grid-template-rows:repeat(var(--bracket-slots),148px); }
.gt-t-slot { position:relative;display:flex;align-items:center;min-width:0; }
.gt-t-slot.is-upper::after,.gt-t-slot.is-lower::after { content:'';position:absolute;left:100%;width:16px;height:50%;border-right:1px solid var(--fe-color-text-muted);pointer-events:none; }
.gt-t-slot.is-upper::after { top:50%;border-top:1px solid var(--fe-color-text-muted); }
.gt-t-slot.is-lower::after { bottom:50%;border-bottom:1px solid var(--fe-color-text-muted); }
.gt-t-board:not(.gt-t-board--league) .gt-t-round:not(:first-child) .gt-t-slot::before { content:'';position:absolute;right:100%;width:16px;border-top:1px solid var(--fe-color-text-muted); }
.gt-t-third { position:absolute;top:calc(50% + 88px);width:100%; }
.gt-t-slots:has(.gt-t-third) { min-height:410px; }
.gt-t-third h3 { margin-bottom:8px; }
.gt-t-team-name { display:flex;align-items:center;gap:8px; }
.gt-t-team-name > span { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.gt-t-seed { display:inline-grid;place-items:center;flex:0 0 22px;height:22px;border:1px solid var(--fe-color-border);border-radius:4px;color:var(--fe-color-text-muted);font-size:10px;font-weight:500; }
.gt-t-board--league .gt-t-slots { grid-template-rows:none;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px; }
.gt-t-board--league .gt-t-slot { grid-row:auto !important; }
.gt-t-board--league .gt-t-round > h3,.gt-t-board--league .gt-t-round > p { grid-column:1/-1; }
.gt-t-completed { margin-top:0;border-top:1px solid var(--fe-color-border); }
.gt-t-completed > .gt-t-slots { margin-top:8px; }
.gt-t-completed .gt-t-match { padding:8px 10px; }
.gt-t-completed .gt-t-match-status { margin-bottom:4px;font-size:10px; }
.gt-t-completed .gt-t-match-team { padding:4px 0;font-size:13px; }
.gt-t-completed .gt-t-match-team strong { font-size:14px; }
.gt-t-completed .gt-t-seed { flex-basis:18px;height:18px; }
.gt-t-table-wrap { margin:20px 0 12px; }
.gt-t-table { width:100%;border-collapse:collapse;font-size:13px;table-layout:fixed; }
.gt-t-table caption { caption-side:bottom;text-align:left;padding:10px 0;font-size:12px;line-height:1.6;color:var(--fe-color-text-muted); }
.gt-t-table th,.gt-t-table td { padding:10px 6px;text-align:center;border-bottom:1px solid var(--fe-color-border);font-variant-numeric:tabular-nums;overflow-wrap:anywhere; }
.gt-t-table th:nth-child(2) { width:40%;text-align:left; }
.gt-t-table thead { background:var(--fe-color-bg-alt); }
.gt-t-table tbody th { font-weight:500; }
.gt-t-table .is-qualified { background:color-mix(in srgb,var(--fe-color-primary) 4%,var(--fe-color-surface)); }
.gt-t-table .is-qualified > :first-child { box-shadow:inset 3px 0 var(--fe-color-primary); }
.gt-t-advance { display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px;border:1px solid var(--fe-color-border);border-radius:var(--fe-radius-md);margin-bottom:16px; }
.gt-t-advance p { font-size:14px; }
.gt-t-participants { columns:3;line-height:1.8;padding-left:24px;font-size:13px;overflow-wrap:anywhere; }
.gt-t-participants li { break-inside:avoid; }
.gt-tournament #tr-delete { margin:16px 0 6px; }
.gt-t-dialog { box-sizing:border-box;width:calc(100% - 32px);max-width:540px;max-height:85dvh;overflow:auto;margin:auto;padding:24px;border:1px solid var(--fe-color-border);border-radius:var(--fe-radius-md);background:var(--fe-color-surface);color:var(--fe-color-text);box-shadow:0 18px 80px #0004; }
.gt-t-dialog::backdrop { background:#0f172a80; }
.gt-page .gt-t-dialog h2 { font-size:20px;line-height:1.4;overflow-wrap:anywhere;margin-bottom:12px; }
.gt-t-dialog p { line-height:1.65; }
.gt-t-dialog .gt-builder-actions { margin-top:20px; }
.gt-t-score-entry { display:grid;grid-template-columns:minmax(0,1fr) 10px minmax(0,1fr);align-items:end;gap:12px;margin:20px 0; }
.gt-t-score-entry label { display:block;font-size:13px;overflow-wrap:anywhere;margin-bottom:8px; }
.gt-t-score-entry input { text-align:center;font-size:24px;min-height:56px;font-variant-numeric:tabular-nums; }
.gt-t-score-entry > span { align-self:end;padding-bottom:16px;text-align:center; }
.gt-tournament :is(button,select,input,textarea,[tabindex]):focus-visible { outline:2px solid var(--fe-color-primary);outline-offset:3px; }
.gt-t-print { display:none; }
.gt-page .button-secondary:hover { background:var(--fe-button-secondary-bg);color:var(--fe-button-secondary-text);border-color:var(--fe-color-text-muted); }
.gt-page .button-primary:hover { background:var(--fe-color-primary);border-color:var(--fe-color-text); }
.gt-page .gt-code-line .button:hover { background:transparent; }
.gt-tournament .gt-builder-actions .button { flex:0 1 auto; }
.gt-page--tournament { padding-top:8px; }
.gt-page--tournament > .gt-heading { margin-bottom:6px; }
.gt-page--tournament > .gt-heading > div { width:100%;min-width:0; }
.gt-page--tournament .gt-heading h1 { font-size:clamp(22px,2.2vw,26px); }
.gt-page--tournament .gt-heading p { max-width:none;margin-top:4px;font-size:13px;line-height:1.45; }
.gt-t-toolbar { display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 8px; }
.gt-t-toolbar > .gt-feedback { margin:0;padding:0;line-height:1.4; }
.gt-t-more { position:relative;flex-shrink:0; }
.gt-t-more > summary { list-style:none; }
.gt-t-more > summary::-webkit-details-marker { display:none; }
.gt-t-more > .gt-t-actions { position:absolute;right:0;top:calc(100% + 6px);z-index:5;width:210px;padding:8px;border:1px solid var(--fe-color-border);border-radius:var(--fe-radius-md);background:var(--fe-color-surface);box-shadow:var(--fe-shadow-sm); }
.gt-t-more .button { width:100%;justify-content:flex-start; }
.gt-t-more .gt-builder-note { margin:0 !important; }
.gt-t-more #tr-delete { margin:0; }
@media(max-width:800px) {
    .gt-t-dashboard { flex-direction:column;align-items:stretch;gap:12px; }
    .gt-t-dashboard > .gt-t-actions { justify-content:flex-start;max-width:none; }
}
@media(max-width:650px) {
    .gt-t-round-controls.is-knockout { display:flex; }
    .gt-t-place { padding:12px; }
    .gt-t-winner { grid-template-columns:minmax(0,1fr);gap:6px; }
    .gt-t-place-copy { display:flex;justify-content:space-between;align-items:center;gap:12px;flex:1; }
    .gt-t-place-copy span { flex-shrink:0; }
    .gt-t-place-copy strong { text-align:right; }
    .gt-t-slots { display:grid;grid-template-rows:none;gap:12px; }
    .gt-t-slots:has(.gt-t-third) { min-height:0; }
    .gt-t-slot { display:block;grid-row:auto !important; }
    .gt-t-slot::before,.gt-t-slot::after { display:none; }
    .gt-t-third { position:static;margin-top:24px; }
    .gt-t-board--league .gt-t-slots { grid-template-columns:minmax(0,1fr); }
    .gt-t-toolbar { align-items:flex-start; }
    .gt-t-board { overflow:visible;display:block; }
    .gt-t-board:not(.gt-t-board--league) .gt-t-round:not(.is-selected) { display:none; }
    .gt-t-round,.gt-t-round:not(:first-child) { width:100%;border:0;padding:0; }
    .gt-t-board--league .gt-t-round { grid-template-columns:minmax(0,1fr); }
    .gt-t-table .gt-t-wide-only { display:none; }
    .gt-t-table th:nth-child(2) { width:46%; }
    .gt-t-table th,.gt-t-table td { padding:10px 4px; }
    .gt-t-participants { columns:2; }
    .gt-t-dialog { padding:18px; }
    .gt-t-dialog .common-select,.gt-t-navigation .common-select { font-size:16px; }
    .gt-t-dialog .button { white-space:normal; }
    .gt-t-advance { flex-direction:column;align-items:stretch; }
}
@media print {
    body:has(.gt-tournament) > :not(#site-main),
    .gt-page:has(.gt-tournament) > :not(.gt-tournament),
    .gt-tournament > :not(.gt-t-print) { display:none !important; }
    body:has(.gt-tournament),body:has(.gt-tournament) #site-main,.gt-page:has(.gt-tournament) { padding:0;margin:0;max-width:none;background:#fff; }
    body .gt-tournament .gt-t-print { display:block;white-space:pre-wrap;overflow-wrap:anywhere;font:12pt/1.6 sans-serif;color:#000;background:#fff; }
}
