/* Guarantee templates (October 2026, clause blocks with field tokens). Colours come from the theme variables. */
body { margin: 0; background: var(--bg-secondary, #F3F5F8); color: var(--text-primary, #1A1A1A); font-family: var(--font-body, 'Montserrat'), 'Segoe UI', sans-serif; }
[hidden] { display: none !important; }
.gt-page { max-width: 1400px; margin: 0 auto; padding: 24px 32px 48px; display: flex; flex-direction: column; gap: 16px; }
.gt-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.gt-head h1 { margin: 0; font-size: 24px; color: var(--primary); }
.gt-head p { margin: 4px 0 0; color: var(--text-secondary, #5B6470); font-size: 14px; max-width: 72ch; }
.gt-grow { flex: 1; }
.gt-config { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.gt-config select { padding: 8px 10px; border: 1px solid #CDD3DA; border-radius: 8px; font: inherit; min-width: 280px; background: #fff; }
.gt-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.gt-card { background: #fff; border: 1px solid #E3E6EA; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.gt-card h2 { margin: 0; font-size: 16px; }
.gt-card h3 { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-secondary, #5B6470); }
.gt-note { margin: 0; font-size: 12px; color: var(--text-secondary, #5B6470); line-height: 1.5; }
.gt-empty { padding: 40px; text-align: center; color: var(--text-secondary, #5B6470); }

/* types */
.gt-types { padding: 8px; gap: 2px; position: sticky; top: 16px; }
.gt-type { all: unset; box-sizing: border-box; }
.gt-type { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 9px; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--text-primary, #1A1A1A); }
.gt-type:hover { background: #F7F9FB; }
.gt-type.on { background: color-mix(in srgb, var(--primary) 9%, white); color: var(--primary); }
.gt-type:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.gt-type span:first-child { flex: 1; }

/* pills, buttons */
.gt-pill { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 99px; font-size: 10.5px; font-weight: 700; background: #F2F4F7; color: #5B6470; white-space: nowrap; }
.gt-pill.is-own { background: #E5F5EC; color: #12784A; }
.gt-pill.is-dirty { background: #FEF3E2; color: #B54708; }
.gt-btn { all: unset; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid #CDD3DA; background: #fff; color: #3A424C; font-weight: 600; font-size: 12.5px; cursor: pointer; white-space: nowrap; box-sizing: border-box; }
.gt-btn:hover { border-color: var(--primary); color: var(--primary); }
.gt-btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.gt-btn.primary:hover { background: var(--primary-hover); color: #fff; }
.gt-btn[disabled] { opacity: .45; cursor: default; pointer-events: none; }
.gt-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.gt-btn.gt-wide { justify-content: center; }
.gt-icon { all: unset; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 6px; color: #5B6470; cursor: pointer; font-size: 16px; }
.gt-icon:hover { background: #EEF1F4; color: var(--primary); }
.gt-icon[disabled] { opacity: .35; pointer-events: none; }
.gt-icon:focus-visible { outline: 2px solid var(--primary); }
.gt-seg { display: inline-flex; border: 1px solid #CDD3DA; border-radius: 8px; overflow: hidden; }
.gt-seg button { all: unset; padding: 6px 12px; font-size: 12px; font-weight: 600; color: #5B6470; cursor: pointer; }
.gt-seg button.on { background: var(--primary); color: #fff; }
.gt-seg button:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }

/* main column */
.gt-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.gt-toolbar { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; position: sticky; top: 8px; z-index: 3; }
.gt-blocks { display: flex; flex-direction: column; gap: 10px; }
.gt-block { background: #fff; border: 1px solid #E3E6EA; border-radius: 12px; display: flex; flex-direction: column; }
.gt-block:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
.gt-block-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px 8px 6px 12px; background: #F7F9FB; border-bottom: 1px solid #E3E6EA; border-radius: 12px 12px 0 0; }
.gt-block-title { all: unset; font-size: 12.5px; font-weight: 700; color: var(--text-primary, #1A1A1A); min-width: 120px; flex: 0 1 220px; padding: 3px 6px; border-radius: 6px; }
.gt-block-title:hover, .gt-block-title:focus { background: #fff; box-shadow: inset 0 0 0 1px #CDD3DA; }
.gt-tag { display: inline-flex; align-items: center; gap: 2px; padding: 1px 4px 1px 8px; border-radius: 99px; background: color-mix(in srgb, var(--primary) 10%, white); color: var(--primary); font-size: 10.5px; font-weight: 700; }
.gt-tag button { all: unset; cursor: pointer; padding: 0 4px; font-size: 12px; line-height: 1; opacity: .7; }
.gt-tag button:hover { opacity: 1; }
.gt-tag.is-none { background: #FEF3E2; color: #B54708; padding: 1px 8px; }
.gt-addtag { border: 1px dashed #CDD3DA; border-radius: 99px; background: transparent; font: 600 10.5px inherit; font-family: inherit; color: #5B6470; padding: 2px 6px; max-width: 130px; cursor: pointer; }
.gt-block-tools { margin-left: auto; display: flex; gap: 2px; }
.gt-block-body { padding: 12px 16px; font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif; font-size: 14px; line-height: 1.75; outline: none; min-height: 28px; }
.gt-block-body p, .gt-doc p { margin: 0 0 .6em; }
.gt-block-body p:last-child { margin-bottom: 0; }
.gt-block-body h2, .gt-doc h2 { margin: 0 0 .4em; font-size: 15px; letter-spacing: .04em; }
.gt-addblock { all: unset; border: 1.5px dashed #CDD3DA; border-radius: 12px; padding: 10px; text-align: center; color: var(--primary); font-weight: 600; font-size: 13px; cursor: pointer; }
.gt-addblock:hover { border-color: var(--primary); }
.gt-doc { font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif; font-size: 14px; line-height: 1.75; padding: 22px 26px; }
.gt-doc mark { background: #FFF1B8; padding: 0 2px; border-radius: 3px; }

/* tokens and blanks */
.gt-tok { display: inline-flex; align-items: center; gap: 3px; background: color-mix(in srgb, var(--primary) 11%, white); color: var(--primary); border-radius: 5px; padding: 0 6px; margin: 0 1px; font: 600 11.5px var(--font-body, 'Montserrat'), sans-serif; line-height: 20px; vertical-align: 1px; white-space: nowrap; user-select: all; }
.gt-tok::before { content: "◆"; font-size: 7px; opacity: .7; }
.gt-blank { display: inline-flex; background: #FEF3E2; color: #B54708; border-radius: 4px; padding: 0 5px; margin: 0 1px; font: 600 11.5px var(--font-body, 'Montserrat'), sans-serif; line-height: 20px; vertical-align: 1px; white-space: nowrap; user-select: all; }

/* side column */
.gt-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 16px; }
.gt-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.gt-row > span:nth-child(2) { flex: 1; }
.gt-dot { width: 16px; height: 16px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; }
.gt-dot.is-ok { background: #12784A; } .gt-dot.is-warn { background: #B54708; } .gt-dot.is-error { background: #C4320A; }
.gt-link { all: unset; color: var(--primary); font-weight: 600; font-size: 12px; cursor: pointer; }
.gt-link:hover { text-decoration: underline; }
.gt-link:focus-visible { outline: 2px solid var(--primary); }
.gt-search { padding: 8px 10px; border: 1px solid #CDD3DA; border-radius: 8px; font: inherit; font-size: 12.5px; }
.gt-fieldgroup { font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #8A939E; margin: 6px 0 2px; }
.gt-field { all: unset; display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 5px 6px; border-radius: 6px; font-size: 12.5px; cursor: pointer; box-sizing: border-box; }
.gt-field:hover, .gt-field:focus-visible { background: #F7F9FB; }
.gt-versions { gap: 6px; }
.gt-version { display: flex; align-items: center; gap: 10px; font-size: 12.5px; padding: 6px 0; border-bottom: 1px solid #EEF1F4; }
.gt-version:last-child { border-bottom: 0; }
.gt-version span { flex: 1; color: #3A424C; }
.gt-score { font-size: 24px; font-weight: 700; line-height: 1; }
.gt-finding { font-size: 12px; padding: 6px 0; border-top: 1px solid #EEF1F4; }
.gt-finding b { display: block; font-size: 12.5px; }

@media (max-width: 1240px) { .gt-layout { grid-template-columns: 1fr; } .gt-types, .gt-side, .gt-toolbar { position: static; } .gt-types { flex-direction: row; flex-wrap: wrap; } }

/* The workspace theme styles every button, input and select (workspace-button); keep this screen's controls as designed. */
#gtLayout .gt-tag button { min-height: 0 !important; height: auto !important; padding: 0 4px !important; border: 0 !important; background: none !important; box-shadow: none !important; border-radius: 0 !important; color: inherit !important; font-size: 12px !important; }
#gtLayout .gt-block-title { min-height: 0 !important; height: auto !important; padding: 3px 6px !important; border: 0 !important; background: transparent !important; box-shadow: none !important; font-size: 12.5px !important; font-weight: 700 !important; }
#gtLayout .gt-block-title:hover, #gtLayout .gt-block-title:focus { background: #fff !important; box-shadow: inset 0 0 0 1px #CDD3DA !important; }
#gtLayout .gt-addtag { min-height: 0 !important; height: 22px !important; padding: 0 6px !important; border: 1px dashed #CDD3DA !important; border-radius: 99px !important; background: transparent !important; font-size: 10.5px !important; width: auto !important; }
#gtLayout .gt-icon { min-height: 0 !important; height: 26px !important; width: 26px !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
#gtLayout .gt-icon:hover { background: #EEF1F4 !important; }
#gtLayout .gt-field { min-height: 0 !important; height: auto !important; padding: 5px 6px !important; border: 0 !important; background: transparent !important; box-shadow: none !important; border-radius: 6px !important; justify-content: space-between !important; text-align: left !important; }
#gtLayout .gt-field:hover { background: #F7F9FB !important; }
#gtLayout .gt-link { min-height: 0 !important; height: auto !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; color: var(--primary) !important; }
#gtLayout .gt-type { min-height: 0 !important; height: auto !important; border: 0 !important; box-shadow: none !important; justify-content: flex-start !important; text-align: left !important; padding: 10px 12px !important; }
#gtLayout .gt-type:not(.on) { background: transparent !important; }
#gtLayout .gt-type.on { background: color-mix(in srgb, var(--primary) 9%, white) !important; color: var(--primary) !important; }
#gtLayout .gt-seg button { min-height: 0 !important; height: auto !important; padding: 6px 12px !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: #fff !important; color: #5B6470 !important; }
#gtLayout .gt-seg button.on { background: var(--primary) !important; color: #fff !important; }
#gtLayout .gt-btn { min-height: 0 !important; height: 32px !important; padding: 0 12px !important; }
#gtLayout .gt-addblock { min-height: 0 !important; height: auto !important; padding: 10px !important; border: 1.5px dashed #CDD3DA !important; background: transparent !important; box-shadow: none !important; color: var(--primary) !important; width: 100% !important; box-sizing: border-box !important; }
#gtLayout .gt-search { min-height: 0 !important; height: 32px !important; }

#gtLayout .gt-addtag { color: #5B6470 !important; padding: 0 8px !important; }
#gtOptional { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
