#brief-intake{padding-block:clamp(24px,3.5vw,var(--space-7)) 24px}
.editor{border-top:1px solid var(--line)}
.intake-heading,.intake-send{display:flex;align-items:center;justify-content:space-between;gap:12px 24px;flex-wrap:wrap}
.intake-heading h1{font-size:clamp(28px,3vw,44px);letter-spacing:-.035em}
.intake-heading p,.intake-send p,.file-hint,#brief-intake>small{color:var(--muted)}
.intake-heading p{max-width:72ch;margin-top:var(--space-2);font-size:var(--text-small)}
/* One gap between all brief cards, across and down (user request 25.11.2026): 26 px. */
.intake-heading{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--brief-gap,26px);align-items:stretch}
.intake-title{grid-column:1/span 2;grid-row:1;min-width:0;padding-bottom:20px}
/* The intro runs the full title width; no lone last word when it has to wrap. */
.intake-title p{max-width:none;text-wrap:pretty}
.brief-about{grid-column:1;grid-row:2}
.project-kind{grid-column:2;grid-row:2}
.project-kind-option+.project-kind-option{border-top:1px solid var(--line);margin-top:12px;padding-top:12px}
.project-kind .option-choice{font-size:var(--text-body);font-weight:600}
.project-kind .order-field{margin-top:12px}
/* The formats under «Розробити новий сайт» read as ordinary options and fit the card without a scroll (user decision 16.11.2026). */
.project-kind-format .option-choice{font-size:inherit;font-weight:inherit}
.project-kind-format .option-list{margin-bottom:0}
.project-kind .order-field input,.project-kind .order-field textarea{width:100%}
#brief-login{grid-column:3;grid-row:1/span 2;min-width:0;width:100%;align-self:stretch;display:flex;flex-direction:column}
#brief-login>.brief-login{flex:1;align-content:center}
#brief-login:empty,#brief-device-draft:empty{display:none}
#brief-login .brief-login{display:grid;justify-items:center;text-align:center;gap:12px;margin:0;border-radius:var(--panel-radius);overflow-wrap:anywhere}
#brief-login h2{font-size:var(--text-body);line-height:1.3;margin:0}
#brief-login p{font-size:var(--text-small);line-height:1.5}
#brief-login .cloud-google{justify-self:center;max-width:100%;white-space:normal;border-radius:var(--control-radius)}
#brief-login time{font-size:.875rem;color:var(--muted)}
#brief-login .brief-project-carousel{position:relative;display:block;padding:0;min-width:0;max-width:100%}
.project-carousel-track{display:flex;width:100%;max-width:100%;min-width:0;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;border-radius:inherit}
.project-carousel-track::-webkit-scrollbar{display:none}
.project-carousel-slide{flex:0 0 100%;min-width:0;scroll-snap-align:start;display:grid;justify-items:center;align-content:start;gap:12px;padding:20px;box-sizing:border-box}
.has-many .project-carousel-slide{padding-inline:48px}
.project-carousel-slide h2,.project-carousel-slide p{max-width:100%;margin:0}
.project-carousel-slide button{max-width:100%;white-space:normal}
.project-carousel-slide time{display:block;text-align:center}
.project-carousel-arrow{position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;font-size:var(--text-h3);line-height:1;border:0;background:transparent}
.project-carousel-previous{left:0}.project-carousel-next{right:0}
.project-carousel-arrow:disabled{opacity:.3;cursor:default}
.project-carousel-dots{display:flex;justify-content:center;flex-wrap:wrap;padding:0 8px var(--space-2)}
.project-carousel-dot{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;border:0;background:transparent}
.project-carousel-dot::before{content:'';width:7px;height:7px;border-radius:50%;background:var(--muted)}
.project-carousel-dot[aria-current=true]::before{background:var(--ink);outline:1px solid var(--ink);outline-offset:3px}
.is-dragging .project-carousel-track{scroll-snap-type:none;cursor:grabbing;user-select:none}
.brief-project-carousel :is(button,a):focus-visible{outline:3px solid var(--focus);outline-offset:-3px}
@media(prefers-reduced-motion:reduce){.project-carousel-track{scroll-behavior:auto}}
#brief-login [role=status]:empty{display:none}
#brief-device-draft{padding-top:var(--space-panel)}
@media(max-width:900px){#brief-login{flex-basis:100%}}
.intake-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:auto;gap:var(--brief-gap,26px);min-inline-size:0;border:0;padding:0;margin-block:var(--brief-gap,26px) 12px}
.intake-fields>section,.brief-top-card{position:relative;border:1px solid var(--line);border-radius:var(--panel-radius);background:var(--surface);padding:20px;text-align:start}
.intake-fields section,.brief-top-card,.staff-area{min-width:0}
.intake-fields h2,.brief-top-card h2{display:flex;align-items:flex-start;font-size:var(--text-body);min-height:48px;padding-inline-end:var(--space-7);margin-bottom:12px}
.brief-number{position:absolute;top:16px;right:18px;font-size:clamp(30px,3vw,48px);line-height:1;color:var(--accent);font-weight:500;letter-spacing:-.05em}
.brief-login,.brief-projects{border:1px solid var(--line);border-radius:var(--card-radius);padding:16px 20px;margin-top:var(--space-panel);background:var(--surface)}
.brief-login{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3) 20px;flex-wrap:wrap}
.brief-login h2,.brief-projects h2{font-size:var(--text-body)}.brief-login p,.brief-projects li{margin-top:var(--space-1)}.brief-login [role=status]:empty,.brief-projects [role=status]:empty{display:none}
.brief-login .cloud-google{display:inline-flex;align-items:center;gap:var(--space-3);background:white;color:var(--google-ink);border:1px solid var(--google-line);padding:8px var(--space-4);font:500 var(--text-small)/var(--text-lead) 'Google Sans',system-ui,sans-serif}
.brief-login .cloud-google img{width:20px;height:20px}
/* The Google button stays light on hover so its dark label keeps contrast in both themes. */
.brief-login .cloud-google:hover:not(:disabled){background:var(--google-hover);color:var(--google-ink);border-color:var(--google-line)}
.brief-projects ul{padding:0;list-style:none;margin:8px 0 0}.brief-projects li{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:var(--space-2);overflow-wrap:anywhere}
.brief-projects li button{flex:none}
.intake-fields h2 label,.brief-top-card h2 label{display:inline}
.reference-purpose{color:var(--muted);margin-block:0 var(--space-3);font-size:var(--text-small)}
.reference-head{display:flex;align-items:center;gap:12px;padding-inline-end:var(--space-7);margin-bottom:12px}
.reference-head h2{flex:1;min-width:0;padding-inline-end:0;margin:0}
.reference-head button{flex:none}
.reference-pick{display:grid;justify-items:center;gap:8px;margin-bottom:12px;padding-bottom:16px;border-bottom:1px solid var(--line);text-align:center}
.reference-pick button{min-width:240px}
.reference-pick .reference-purpose{margin:0}
/* «Дизайн-стиль» inside «Фірмовий стиль»: two option rows, then the hint and «Обрати референс» on the left (user request
   17.11.2026). */
.design-style{margin-block:16px 4px;padding-top:var(--space-4);border-top:1px solid var(--line)}
.design-style .option-list{margin-bottom:0}
.design-style .reference-pick{justify-items:start;text-align:start;margin:var(--space-3) 0 12px;padding:0;border:0}
.design-style .reference-pick button{min-width:0}
/* «Показати весь сайт» sits inside each reference tile of the gallery and opens the site in a new tab. */
.reference-option{position:relative;display:grid;min-width:0;min-height:0}
.reference-option>.reference-tile{isolation:isolate}
.reference-open{position:absolute;left:8px;bottom:8px;z-index:1;display:inline-flex;align-items:center;min-height:44px;padding:0 var(--space-4);border:1px solid var(--line);border-radius:var(--control-radius);background:var(--paper);color:var(--ink);font-size:var(--text-small);font-weight:600;text-decoration:none;white-space:nowrap}
.reference-open:is(:hover,:focus-visible){color:var(--highlight);border-color:var(--highlight)}
.reference-buttons{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin-bottom:8px}
.development-choice{display:inline-flex;align-items:center;gap:var(--space-3);min-height:44px;cursor:pointer}
.reference-part+.reference-part{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
.intake-fields input[type=text],.brief-top-card input[type=text]{max-width:100%}
#brief-contact{width:100%;min-height:44px;padding-inline:16px}
/* Contact and links are plain text fields of one style, two lines tall, so a list of several entries looks expected (user decision 16.11.2026). */
/* One line each, so «Коментар до проєкту» shows in the card (user request 18.11.2026); a longer answer still grows the field. */
.brief-about :is(#brief-contact,#brief-links){width:100%;min-height:44px;max-height:132px;resize:none;field-sizing:content;padding:var(--space-3) 16px;line-height:1.4}
.brief-about :is(#brief-contact,#brief-links)::placeholder{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* No scrollbar inside the two short text fields: it showed with nothing to scroll (user request 25.11.2026); long text still scrolls with the wheel and keys. */
.brief-about :is(#brief-contact,#brief-links){scrollbar-width:none}
.brief-about :is(#brief-contact,#brief-links)::-webkit-scrollbar{display:none}
/* The dropdown field and its list: components.css. */
.choice-control[aria-expanded=true] .language-chevron,.choice-control[aria-expanded=true]+.choice-arrow svg{transform:rotate(180deg)}
/* List items (.choice-option): components.css. */
.selected-references{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(92px,100%),1fr));gap:8px}
.selected-reference{position:relative;min-width:0}
.selected-reference>a{display:block;border-radius:var(--field-radius);overflow:hidden}
.selected-reference>button{position:absolute;right:2px;top:2px;min-height:32px;width:32px;padding:0;border:1px solid var(--line);background:var(--paper);font-size:var(--text-body)}
.work-image{display:grid;place-items:center;width:100%;height:100%;padding:8px 10%;overflow:hidden}
.selected-reference .work-image{aspect-ratio:1.5;height:auto}
.gallery-dialog[open]{display:flex;flex-direction:column;gap:var(--space-4);width:min(100% - 32px,1440px);max-width:none;max-height:calc(100dvh - 32px);padding:clamp(12px,2vw,var(--space-6))}
.gallery-dialog .dialog-top,.gallery-actions{flex:none;margin:0}
.gallery-actions{display:flex;justify-content:space-between;gap:8px 20px;align-items:flex-end;flex-wrap:wrap}
.gallery-own{display:grid;gap:4px;flex:1 1 230px;max-width:520px;min-width:0}
.gallery-own input{width:100%;min-width:0;min-height:44px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font:inherit;padding:var(--space-2) 12px}
.gallery-own small{color:var(--muted)}.gallery-own .error:empty{display:none}
.gallery-own .gallery-saved-links{max-height:72px;overflow:auto}.gallery-saved-links:empty{display:none}
.gallery-actions>button{margin-inline-start:auto}
.gallery-dialog .reference-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:clamp(88px,calc((100dvh - 205px)/3),230px);gap:12px;overflow:auto;overscroll-behavior:contain;min-height:0;padding:4px}
.reference-tile{min-width:0;min-height:0;overflow:hidden;position:relative;padding:0;border:2px solid var(--line);border-radius:var(--field-radius)}
.reference-tile .work-image{container-type:size;min-width:0;min-height:0;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.reference-tile .device-mockups{width:min(100cqw,145cqh);height:auto;max-width:100%;margin-inline:auto}
.brief-contact-label{display:block;margin:var(--space-4) 0 var(--space-1);font-weight:600}
/* «Розкажіть трохи про себе»: the first label sits at the top; the links field starts one line high and grows with the links (user decision 16.11.2026). */
.brief-about .card-body>.brief-contact-label:first-child{margin-top:0}
.brand-subheading{font-size:var(--text-small);line-height:1.4;margin:0 0 var(--space-3)}
.brand-logo-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:var(--space-3)}.brand-logo-actions .logo-brief-link{margin:0}
.brand-palette{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
.brand-colours{display:flex;flex-wrap:wrap;gap:12px;padding:0;margin:0;list-style:none}
.colour-dot,.colour-add{position:relative;flex:none;width:44px;height:44px;border-radius:50%;border:1px solid var(--line)}
.colour-remove{position:absolute;top:-6px;right:-6px;width:24px;height:24px;min-height:24px;padding:0;border-radius:50%;font-size:var(--text-small);line-height:1;display:grid;place-items:center}
.colour-remove:before{content:"";position:absolute;inset:-10px}
/* The «×» sits on a solid navy plate so it stays visible on white flag tops and light colours (user decision 16.11.2026). */
.colour-remove,.colour-remove:hover:not(:disabled){background:var(--navy-ink);color:var(--white);border-color:var(--glare-75);box-shadow:0 1px 3px var(--shade-35)}
.colour-remove:hover:not(:disabled){background:var(--danger-solid);border-color:var(--white)}
.colour-add{display:grid;place-items:center;font-size:var(--text-h3);cursor:pointer;border-style:dashed;color:var(--muted)}
.colour-add:focus-within{outline:2px solid var(--highlight);outline-offset:2px}
button.colour-add{padding:0;min-height:44px;background:transparent}
.language-dot{border:0}.language-flag{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover;box-shadow:inset 0 0 0 1px var(--line)}
.language-field small{display:block;margin-top:8px}
.language-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.language-note{margin:2px 0 0;font-size:var(--text-small);font-weight:400;color:var(--ink)}
.language-field .language-list{margin-top:16px}
.language-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px;margin-top:12px}
.language-choice{display:flex;align-items:center;gap:var(--space-3);justify-content:flex-start;text-align:start;min-height:48px;padding:var(--space-2) 12px}
.language-choice .language-flag{width:28px;height:28px;flex:none}.language-choice:disabled{opacity:.45}
/* Own colour picker in the brief's card style instead of the native palette; the "+" ring shows the colour live (user decision 15.11.2026). */
.colour-add[data-picking]{border:3px solid var(--picking-colour);color:var(--ink)}
.colour-picker{position:fixed;inset:auto;margin:0;width:min(320px,calc(100vw - 16px));max-height:calc(100dvh - 16px);overflow:auto;padding:16px;border:1px solid var(--line);border-radius:var(--panel-radius);background:var(--surface);background-image:var(--card-glass);color:var(--ink);box-shadow:0 18px 40px var(--shade-40)}
.colour-picker-title{margin:0 0 12px;font-size:var(--text-small);font-weight:600}
.colour-picker-field{position:relative;height:150px;border-radius:var(--field-radius);background:linear-gradient(to top,var(--black),transparent),linear-gradient(to right,var(--white),hsl(var(--picker-hue,0) 100% 50%));touch-action:none;cursor:crosshair;box-shadow:inset 0 0 0 1px var(--line)}
.colour-picker-thumb,.colour-picker-hue-thumb{position:absolute;width:22px;height:22px;border:2px solid var(--white);border-radius:50%;background:var(--picker-colour);box-shadow:0 0 0 1px var(--shade-67),0 2px 6px var(--shade-40);transform:translate(-50%,-50%);pointer-events:none}
.colour-picker-hue{position:relative;height:44px;margin:var(--space-2) 0 var(--space-3);touch-action:none;cursor:pointer;border-radius:var(--control-radius)}
.colour-picker-hue::before{content:"";position:absolute;inset:16px 0;border-radius:var(--control-radius);background:linear-gradient(to right,red,var(--picker-yellow),lime,cyan,blue,var(--picker-magenta),red);box-shadow:inset 0 0 0 1px var(--shade-20)}
.colour-picker-hue-thumb{top:50%}
.colour-picker-field:focus-visible{outline:3px solid var(--focus);outline-offset:3px}.colour-picker-hue:focus-visible{outline:3px solid var(--focus);outline-offset:0}
.colour-picker-row{display:flex;align-items:flex-end;gap:var(--space-3)}
.colour-picker-preview{flex:none;width:44px;height:44px;border-radius:50%;background:var(--picker-colour);border:1px solid var(--line)}
.colour-picker-code-field{flex:1;min-width:0}
.colour-picker-code-field label{margin-bottom:4px;font-size:var(--text-eyebrow);color:var(--muted)}
.colour-picker-code{width:100%;min-height:44px;border:1px solid var(--line);background:var(--paper);color:var(--ink);text-transform:uppercase;font-variant-numeric:tabular-nums}
.colour-picker-code[aria-invalid=true]{border-color:var(--danger)}
.colour-picker-eyedropper{flex:none;width:44px;padding:0;border-radius:50%}
.colour-picker-eyedropper svg{width:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.colour-picker-message{min-height:18px;margin:var(--space-2) 0 0;font-size:var(--text-eyebrow);line-height:1.5;color:var(--muted)}
.colour-picker-message.is-error{color:var(--danger)}
.colour-picker-actions{display:flex;gap:8px;margin-top:var(--space-3)}.colour-picker-actions button{flex:1;min-width:0}
.option-list{display:grid;gap:2px;margin:0 0 16px}
.option-choice{display:flex;align-items:center;gap:var(--space-3);min-height:40px;cursor:pointer;line-height:1.3}
/* The checkbox and radio look: components.css (.ui-check and the wrappers it lists). */
.option-choice>span{min-width:0;overflow-wrap:anywhere;hyphens:auto}
.option-choice input:disabled+span{color:var(--muted)}
.option-price{margin-inline-start:auto;padding-inline-start:8px;color:var(--muted);font-size:var(--text-small);white-space:nowrap}
.development-choice .option-price{margin-inline-start:0;padding:0}
.order-field{display:grid;gap:var(--space-2);margin-top:12px}.order-field label{font-weight:600}.order-field small{color:var(--muted)}
.order-field input[type=number]{width:96px;min-height:44px}.order-field textarea{width:100%;resize:vertical}
:is(.section-picker,.feature-picker) .section-group{border:0;padding:0;margin:0 0 var(--space-2);min-width:0}
:is(.section-picker,.feature-picker) .section-group legend{font-weight:600;font-size:var(--text-small);padding:0;margin-bottom:2px;color:var(--muted)}
:is(.section-picker,.feature-picker) .section-group .option-list{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));column-gap:12px;margin-bottom:var(--space-3)}
.section-count{font-weight:600}.section-total{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
:is(.section-picker,.feature-picker) .section-group legend{display:flex;justify-content:space-between;align-items:baseline;gap:12px;width:100%}
.section-group-price{font-weight:600;color:var(--ink);white-space:nowrap;font-variant-numeric:tabular-nums}
.total-counts{display:flex;flex-wrap:wrap;row-gap:4px;min-width:0}
.total-counts>span{white-space:nowrap}
.total-counts>span+span{margin-inline-start:12px;padding-inline-start:12px;border-inline-start:1px solid var(--line)}
.section-total-price{font-size:var(--text-body);white-space:nowrap;font-variant-numeric:tabular-nums}
.page-block{border-top:1px solid var(--line);padding-block:var(--space-2)}
.page-picker>.page-block:first-child{border-top:0;padding-top:0}
.page-block summary{display:flex;align-items:center;gap:var(--space-3);min-height:44px;cursor:pointer;font-weight:600}
.page-block summary small{color:var(--muted);font-weight:400;margin-inline-start:auto}
.page-block[open] summary{margin-bottom:var(--space-2)}
.page-block input[type=text]{width:100%;margin-bottom:var(--space-3)}
.page-remove{margin:2px 0 8px}
.page-add{margin-block:8px 4px}
.project-price{display:grid;grid-template-columns:1fr 1fr;margin-block:12px 0}
.project-price>p{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px;margin:0;padding-inline:var(--space-3);text-align:center}
.project-price>p+p{border-inline-start:1px solid var(--line)}
.project-price strong{font-size:var(--text-h3);line-height:1.2}
/* With a discount: the full price, struck by a thin diagonal line, and the discounted one side by side; the note under both (user request 24.11.2026). */
.project-price>p:has(>.project-price-discount[data-on=true]){display:grid;grid-template-columns:auto auto;justify-content:center;align-content:end;align-items:baseline;column-gap:12px;row-gap:4px}
.project-price>p:has(>.project-price-discount[data-on=true])>:first-child,.project-price-note{grid-column:1/-1}
.project-price>p:has(>.project-price-discount[data-on=true]) [data-project-price]{position:relative;color:color-mix(in srgb,var(--ink) 72%,transparent);font-size:var(--text-lead);font-weight:600}
.project-price>p:has(>.project-price-discount[data-on=true]) [data-project-price]::after{content:"";position:absolute;left:-3px;right:-3px;top:50%;height:1px;background:currentColor;transform:rotate(-16deg);pointer-events:none}
.project-price-discount{display:contents}
.project-price-note{font-size:var(--text-eyebrow);line-height:1.3;color:var(--muted)}
/* «Використати знижку −25%» under the estimate (user request 25.11.2026): ticked, the price is struck and the discounted one shown.
   The box is the brief's own checkbox (.brief-check, as in the feature and section cards). */
.project-price .project-discount-use{grid-column:1/-1;margin:0;display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);min-height:32px;font-size:var(--text-eyebrow);white-space:nowrap;font-weight:600;color:var(--selection-line);cursor:pointer}

.project-price .project-price-discount strong{font-size:var(--text-h3);line-height:1.2;color:var(--highlight)}
:root[data-theme=light] .project-price .project-price-discount strong{color:var(--discount-ink)}
.project-card-name{color:var(--muted)}
.guest-project{display:grid;justify-items:center;gap:4px;width:100%;padding-top:12px;border-top:1px solid var(--line)}
.guest-project-name{font-size:var(--text-body);margin:0}
.guest-save-state{display:inline-flex;align-items:center;gap:var(--space-2);min-height:20px;margin:0;color:var(--muted)}
.guest-save-state[data-local-state=saved] .save-icon{color:var(--highlight)}
.save-icon{width:16px;height:16px;flex:none}
.prototype-draft-inner{border:1px solid var(--line);border-radius:var(--panel-radius);background:var(--surface);padding:20px;margin-block:8px 20px}
.prototype-draft h2{font-size:var(--text-lead);margin:0 0 var(--space-2)}.prototype-draft p{margin:0 0 12px}.prototype-draft .option-list{margin:0;grid-template-columns:repeat(auto-fit,minmax(240px,max-content));column-gap:var(--space-6)}
/* Equal cards: long lists scroll inside instead of stretching the row (user decision 15.11.2026). */
@media(min-width:601px){.intake-fields>section{aspect-ratio:1;contain:size;display:flex;flex-direction:column;overflow:hidden}
.intake-fields>section>.card-body{flex:1;min-height:0;overflow-y:auto;margin:-16px -20px -20px;padding:16px 20px 20px}}
/* The scrollbar itself is the design-system one (site-chrome.css); here the track only keeps clear of the header band and the rounded corner. */
.card-body::-webkit-scrollbar-track{margin-block:var(--space-3) var(--panel-radius)}
.logo-brief-link{display:flex;margin-top:var(--space-3)}
.preview-toolbar .preview-mode{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:var(--space-2) var(--space-3);font:600 var(--text-eyebrow)/1.4 Manrope,Arial,sans-serif;border:1px solid transparent;border-radius:var(--chip-radius);color:var(--ink);background:transparent}
.preview-toolbar .preview-mode:is([aria-pressed=true],[data-current]){border-color:var(--highlight);background:var(--selected);color:var(--ink)}
/* Send block: the required-fields hint leads in the highlight colour above one full-width plaque that is the send button, like the
   storefront's brief banner (.work-options): the next-steps text on the left, the dark pill on the right (user request 17.11.2026).
   Hovering or focusing anywhere on it lets the gradient flow and lifts the pill, now white. Empty required fields do not grey it out:
   a click leads to the first one. The selectors outweigh the shared button hover rules of both themes in styles.css. */
.brief-final .intake-send{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.brief-final .intake-send>.intake-missing{margin:0;max-width:none;color:var(--selection-line);font-weight:600}
.brief-final .intake-send>.intake-status{margin:0;max-width:none}
.brief-final .intake-send .send-plaque{--plaque:linear-gradient(90deg,var(--highlight-deep),var(--highlight-soft) 50%,var(--highlight-deep));display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px 32px;width:100%;max-width:none;min-height:76px;padding:16px 16px 16px var(--space-6);border:0;border-radius:var(--control-radius);background:var(--plaque) 0 0/200% 100%;color:var(--plaque-ink);text-align:left;font-weight:400;white-space:normal;cursor:pointer;transition:background-position .9s ease}
.brief-final .intake-send .send-plaque:is(:hover,:focus-visible,:active),.brief-final .intake-send .send-plaque[aria-disabled=true]:is(:hover,:focus-visible,:active){background:var(--plaque) 100% 0/200% 100%;border-color:transparent;color:var(--plaque-ink)}
.brief-final .intake-send .send-plaque:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
.brief-final .intake-send .send-plaque:disabled{opacity:.75;cursor:progress}
.send-plaque-text{flex:1 1 320px;min-width:0;font:500 clamp(18px,1.8vw,24px)/1.3 var(--font-display);letter-spacing:-.025em;overflow-wrap:break-word}
.send-plaque-action{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:var(--action-gap);min-height:var(--action-height);padding:var(--action-pad);border:var(--action-border) solid var(--plaque-ink);border-radius:var(--control-radius);background:var(--plaque-ink);color:var(--highlight);font:600 var(--action-font-size)/1.25 var(--font-text);letter-spacing:0;transition:background-color var(--ease),border-color var(--ease),color var(--ease),transform var(--ease),box-shadow var(--ease)}
.send-plaque-action svg{width:var(--action-icon);height:var(--action-icon);flex:none;transition:transform var(--ease)}
.brief-final .intake-send .send-plaque:is(:hover,:focus-visible) .send-plaque-action{background:var(--white);border-color:var(--white);color:var(--plaque-ink);transform:translateY(-2px);box-shadow:0 10px 24px var(--navy-shade-30)}
.send-plaque:is(:hover,:focus-visible) .send-plaque-action svg{transform:translateX(3px)}
@media(max-width:759px){.brief-final .intake-send .send-plaque{border-radius:var(--panel-radius);padding:20px 20px 20px 24px}.send-plaque-text{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){.brief-final .intake-send .send-plaque,.send-plaque-action,.send-plaque-action svg{transition:none}.brief-final .intake-send .send-plaque:is(:hover,:focus-visible) .send-plaque-action,.send-plaque:is(:hover,:focus-visible) .send-plaque-action svg{transform:none}}
/* After a send: a calm confirmation card in place of the plaque, with a link to the cabinet and «Надіслати оновлений бриф». */
.brief-final .intake-sent{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:24px var(--space-7);padding:32px var(--space-6);border:1px solid var(--line);border-radius:var(--panel-radius);background:var(--surface)}
.brief-sent-text{flex:1 1 420px;display:grid;gap:12px;min-width:0}
.brief-sent-text h2{font:500 clamp(28px,3vw,40px)/1.15 var(--font-display);letter-spacing:-.03em;color:var(--ink)}
.brief-sent-text h2:focus{outline:none}.brief-sent-text h2:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
.brief-sent-text p{max-width:68ch;color:var(--muted);font-size:var(--text-body);line-height:1.55}
.brief-sent-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex:none}
.brief-sent-link{display:inline-flex;align-items:center;gap:var(--action-gap);min-height:var(--action-height);padding:var(--action-pad);border:var(--action-border) solid var(--highlight);border-radius:var(--control-radius);background:var(--control-surface);color:var(--highlight);font:600 var(--action-font-size)/1.25 var(--font-text);text-decoration:none;transition:background-color var(--ease),color var(--ease)}
.brief-sent-link svg{width:var(--action-icon);height:var(--action-icon);flex:none}
.brief-sent-link:is(:hover,:focus-visible){background:var(--highlight);color:var(--control-surface)}
.brief-final .intake-sent .brief-sent-again{min-height:44px;padding:8px 4px;border:0;background:transparent;color:var(--ink);font-weight:500;text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
.brief-final .intake-sent .brief-sent-again:is(:hover,:focus-visible){background:transparent;color:var(--selection-line)}
@media(max-width:759px){.brief-final .intake-sent{padding:24px 20px;border-radius:var(--card-radius)}.brief-sent-actions{align-items:flex-start}}
@media(prefers-reduced-motion:reduce){.brief-sent-link{transition:none}}
.intake-fields>section[data-missing],.brief-top-card[data-missing],#brief-intake input[aria-invalid=true]{border-color:var(--danger)}
/* Required cards: an asterisk after the heading, matching the hint. */
:is(.intake-fields>section,.brief-top-card)[data-required]>h2::after{content:"*";margin-inline-start:4px;color:var(--selection-line);font-weight:600}
.reference-tile[aria-pressed=true]{border-color:var(--highlight);box-shadow:0 0 0 2px var(--ink)}
.reference-check{display:none;position:absolute;z-index:3;top:6px;right:6px;border-radius:50%;width:24px;height:24px;place-items:center;background:var(--highlight);color:var(--reference-check-ink);font-weight:700}
.reference-tile[aria-pressed=true] .reference-check{display:grid}
.file-hint{display:block;font-size:var(--text-eyebrow);line-height:1.45;margin-top:4px}
.brief-check{display:flex;align-items:center;gap:8px;margin:var(--space-3) 0;cursor:pointer}

.material-row{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2);overflow-wrap:anywhere}
.material-row button{padding:2px var(--space-2);min-height:32px}
.brandbook-add{display:grid;gap:8px;min-width:0}
/* A section text's name with a trash (or «+» once removed) across from it. */
.field>.field-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);margin-bottom:var(--space-1)}
.field>.field-head>label{margin:0}
#main .settings .field-head>.text-toggle{position:relative;display:grid;place-items:center;flex:none;width:28px;height:28px;min-width:28px;min-height:28px;padding:0;border:1px solid var(--line);border-radius:50%;background:none;color:var(--ink);font-size:var(--text-body);line-height:1}
#main .settings .field-head>.text-toggle::after{content:"";position:absolute;inset:-8px}
#main .settings .field-head>.text-toggle svg{width:15px;height:15px}
#main .settings .field-head>.text-toggle:not(.is-add):is(:hover,:focus-visible){border-color:var(--danger);color:var(--danger)}
#main .settings .field-head>.text-toggle.is-add:is(:hover,:focus-visible){border-color:var(--selection-line);color:var(--selection-line)}
.field.is-hidden-text>.field-head>label{color:var(--muted)}
.brandbook-add>button{width:100%}
/* Uploaded logo: the image with a small «×» in the corner, like a colour chip (user decision 15.11.2026). */
.intake-logo{position:relative;display:inline-flex;padding:var(--space-1);min-width:60px;border:1px solid var(--line);border-radius:var(--chip-radius);background:var(--paper)}
.intake-logo img{display:block;max-width:110px;height:44px;object-fit:contain}
.intake-fields #style-references{border:0;padding:0;margin:8px 0}
.intake-fields [data-reference-url]{margin-block:4px}.intake-fields [data-reference-url]>a{min-width:0}
.intake-heading button,.intake-send button{flex:0 0 auto}
.intake-send{justify-content:flex-start}.intake-send p{max-width:66ch}
.intake-send .intake-status:empty{display:none}.intake-status{font-size:var(--text-small)}
/* No divider above the send plaque (user request 17.11.2026). */
.brief-final{padding-block:24px}
.preview-card{border:0;border-radius:0;background:transparent;overflow:visible}
.preview-toolbar{background:none;border:0;padding:0 0 8px;justify-content:flex-start;min-height:44px;font-size:var(--text-small);color:var(--muted)}
.preview-stage{border:1px solid var(--line);border-radius:var(--field-radius)}
.staff-area{display:grid;gap:var(--space-panel);margin:20px 0}.staff-area:empty{display:none}
.staff-area section{padding:20px;border:1px solid var(--line);border-radius:var(--card-radius);min-width:0}
.staff-area h2,.staff-area h3{margin-bottom:var(--space-3)}
.staff-split{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(220px,1fr);gap:var(--space-panel)}
.staff-list{list-style:none;padding:0;margin:0}.staff-list li,.staff-role{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);padding:8px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}
.staff-list button{text-align:start;display:block}.staff-list time,.staff-list small{display:block;font-size:var(--text-eyebrow)}
.staff-list li{display:grid;grid-template-columns:minmax(0,1fr) max-content}
.staff-list li>button{justify-self:start;max-width:100%}
.staff-list li>small{white-space:nowrap}
.staff-area details,.staff-area form,.staff-detail{margin-top:var(--space-4)}.staff-detail{max-height:50vh;overflow:auto}
.staff-detail pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}
.staff-detail a{display:inline-block;margin:var(--space-1) 12px var(--space-1) 0}.staff-detail img{display:block;max-height:66px;max-width:130px;object-fit:contain}
@media(max-width:1100px){.intake-fields,.intake-heading{grid-template-columns:repeat(2,minmax(0,1fr))}.intake-title{grid-column:1/-1}#brief-login{grid-column:2;grid-row:2}.brief-about{grid-row:2}.project-kind{grid-column:1/-1;grid-row:3}}
@media(max-width:800px){.staff-split{grid-template-columns:1fr}.intake-send{align-items:flex-start}.intake-heading h1{font-size:var(--text-num)}}
@media(max-width:600px){.intake-fields,.intake-heading{grid-template-columns:minmax(0,1fr)}.intake-title,#brief-login,.brief-about,.project-kind{grid-column:1;grid-row:auto}.intake-title{padding-bottom:0}}
@media(max-width:480px){.staff-list li{grid-template-columns:minmax(0,1fr);gap:4px}.staff-list li>small{padding-inline-start:12px}}
@media(max-width:759px){
  .gallery-dialog .reference-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:clamp(95px,26dvh,190px)}
  .gallery-dialog [data-gallery-purpose=design]{
    grid-auto-rows:max-content;
    align-content:start;
  }
  [data-gallery-purpose=design] .reference-option{
    grid-template-rows:auto auto;
    gap:8px;
    padding-bottom:8px;
    border:2px solid var(--line);
    border-radius:var(--field-radius);
    background:var(--surface);
  }
  [data-gallery-purpose=design] .reference-option:has(>.reference-tile[aria-pressed=true]){
    border-color:var(--highlight);
    box-shadow:0 0 0 2px var(--ink);
  }
  [data-gallery-purpose=design] .reference-option>.reference-tile{
    width:100%;
    height:clamp(86px,29vw,190px);
    border:0;
    border-radius:var(--field-radius) var(--field-radius) 0 0;
    box-shadow:none;
  }
  [data-gallery-purpose=design] .reference-open{
    position:static;
    display:block;
    align-content:center;
    justify-self:center;
    max-inline-size:min(140px,calc(100% - 16px));
    padding:var(--space-1) var(--space-3);
    line-height:1.2;
    text-align:center;
    text-wrap:balance;
    white-space:normal;
    overflow-wrap:anywhere;
  }
}
@media(max-height:430px){.gallery-dialog[open]{gap:var(--space-2);max-height:calc(100dvh - 8px)}.gallery-own .gallery-saved-links{max-height:40px}}



/* Card header band: title and step number on a darker strip; it stays on top while a square card scrolls (user decision 15.11.2026). */
:root{--card-head:var(--paper)}
:root[data-theme=light]{--card-head:var(--paper)}
.intake-fields>section>h2:first-child,.brief-top-card>h2:first-child,.reference-head{position:relative;z-index:2;display:flex;align-items:center;min-height:64px;margin:-20px -20px 16px;padding:12px var(--space-8) 12px 20px;background:var(--card-head);border-bottom:1px solid var(--line);border-radius:calc(var(--panel-radius) - 1px) calc(var(--panel-radius) - 1px) 0 0}
.reference-head{gap:12px}
.reference-head h2{min-height:0;margin:0;padding:0;background:none;border:0}
:is(.intake-fields>section>h2:first-child,.brief-top-card>h2:first-child,.reference-head) .brief-number{top:50%;right:20px;transform:translateY(-50%);font-size:var(--text-num)}

/* Sign-in card: accent header with the project name, price and time pinned to the bottom. */
#brief-login .guest-card{display:flex;flex-direction:column;align-items:center;gap:12px;padding:0 20px var(--space-4);overflow:hidden}
/* Project header (user decision 16.11.2026): the name alone on its own line, centred and wrapping; below it a slightly darker
   violet strip with the save state or last save time and the actions in one centred row. Text on the strip: 6.2:1 (AA) in both themes. */
.guest-head{--head-bar:linear-gradient(rgb(16 24 42 / .12),rgb(16 24 42 / .12)),var(--highlight-gradient);display:flex;flex-direction:column;align-items:stretch;gap:0;align-self:stretch;margin-inline:-20px;padding:0;background:var(--highlight-gradient);color:var(--navy-ink);text-align:center}
#brief-login .guest-head .guest-project-name{margin:0;padding:var(--space-3) 20px 8px;font-size:var(--text-lead);line-height:1.25;color:inherit;text-align:center;overflow-wrap:anywhere;text-wrap:balance}
#brief-login .guest-head .project-title{position:relative;display:inline-block;max-width:100%;padding:var(--space-1) var(--space-3);border:1.5px solid transparent;border-radius:var(--field-radius);cursor:text;outline:none}
#brief-login .guest-head .project-title:hover{background:var(--navy-shade-8)}
#brief-login .guest-head .project-title:focus-visible{border-color:var(--navy-ink)}
#brief-login .guest-head .project-title-input{display:block;box-sizing:border-box;width:100%;min-height:0;margin:0;padding:var(--space-1) var(--space-3);border:1.5px solid var(--navy-ink);background:var(--glare-35);color:var(--navy-ink);font:inherit;line-height:1.25;text-align:center;box-shadow:none}
#brief-login .guest-head .project-title-input:focus{outline:2px solid var(--navy-ink);outline-offset:2px}
#brief-login .guest-head-end{justify-content:center;align-self:stretch;padding:0 12px;background:var(--head-bar)}
/* The project head takes the brand gradient of the mega-menu plaque; the strip is the same gradient a shade darker (user decision 16.11.2026). */
/* In the strip the save state takes one line where it fits and wraps only when it must; the 44 px buttons set the strip height. */
#brief-login .guest-head-end .guest-save-state{flex:0 1 auto;min-width:0}
#brief-login .guest-head .guest-save-state{margin:0;color:inherit}
.guest-head .guest-save-state[data-local-state=saved] .save-icon{color:inherit}
/* Saved: a white ring with a white check in the strip; the green badge looked poor on the violet (user decision 16.11.2026). */
#brief-login .guest-head .guest-save-state:is([data-local-state=saved],[data-cloud-state=saved]) .save-icon :is(circle,path){stroke:var(--white)}
#brief-login .guest-card .guest-sign-in{font-size:var(--text-body);margin:4px 0 0}
#brief-login .guest-card .project-price,#brief-login .active-project-card .project-price{align-self:stretch;margin-top:auto;padding-top:12px;border-top:1px solid var(--line)}
/* Signed-in carousel: the slide of the project being edited fills the card like the guest card. */
#brief-login .brief-project-carousel{display:flex;flex-direction:column}
#brief-login .brief-project-carousel .project-carousel-track{flex:1}
.project-carousel-slide{--slide-pad:20px}.has-many .project-carousel-slide{--slide-pad:48px}
#brief-login .active-project-card{display:flex;flex-direction:column;align-items:center;gap:12px;padding-top:0;padding-bottom:var(--space-4)}
#brief-login .active-project-card .guest-head{margin-inline:calc(-1 * var(--slide-pad))}
.project-status{display:grid;gap:2px;text-align:center}
.project-status span{color:var(--muted);font-size:var(--text-small)}
.project-status strong{font-size:var(--text-body)}
:is(.project-status,.project-price) strong{color:var(--ink)}
/* Card body (user decision 15.11.2026, layout variant A): the status in the middle of the free space, then one row per known answer,
   label on the left, value on the right in one line; a value that does not fit ends in an ellipsis and shows in full in the hint. */
#brief-login .active-project-card .project-body{flex:1 0 auto;align-self:stretch;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-width:0}
#brief-login .project-body .project-status{margin:0}
#brief-login .project-facts{display:grid;align-self:stretch;margin:0;min-width:0}
#brief-login .project-fact{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:baseline;gap:16px;padding-block:var(--space-2);border-top:1px solid color-mix(in srgb,var(--line) 45%,transparent);text-align:start}
#brief-login .project-fact dt{color:var(--muted);font-size:var(--text-small);line-height:1.5;white-space:nowrap}
#brief-login .project-fact dd{margin:0;min-width:0;font-size:var(--text-small);font-weight:600;line-height:1.5;text-align:end;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#brief-login .project-fact dd[data-tip]{border-radius:var(--chip-radius)}
#brief-login .project-fact dd[data-tip]:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
#brief-login .project-fact dd[data-tip]::after{content:attr(data-tip);position:absolute;z-index:6;top:calc(100% + 4px);right:0;width:max-content;max-width:100%;box-sizing:border-box;padding:var(--space-2) 12px;border:1px solid var(--line);border-radius:var(--card-radius);background:var(--card-glass);color:var(--ink);box-shadow:0 10px 24px var(--shade-20);font-size:var(--text-eyebrow);font-weight:500;line-height:1.35;letter-spacing:0;white-space:normal;overflow-wrap:anywhere;text-align:start;pointer-events:none;opacity:0;transform:translateY(-3px);transition:opacity .15s ease,transform .15s ease}
#brief-login .project-fact dd[data-tip]:is(:hover,:focus-visible)::after{opacity:1;transform:none;transition-delay:.25s}
#brief-login .project-fact.is-new{animation:fact-in .26s ease-out both}
#brief-login .project-body .is-lifting{animation:fact-lift .3s ease-out both}
@keyframes fact-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@keyframes fact-lift{from{transform:translateY(var(--lift,0))}to{transform:none}}
@media(prefers-reduced-motion:reduce){#brief-login .project-body :is(.is-new,.is-lifting){animation:none}#brief-login .project-fact dd[data-tip]::after{transition:none;transform:none}}
#brief-login .guest-head .guest-save-state{display:inline-flex;align-items:center;gap:var(--space-2);font-variant-numeric:tabular-nums}
#brief-login .guest-head .save-time{display:inline-block;color:inherit;font-size:inherit;border-radius:var(--chip-radius);padding-inline:4px;margin-inline:-4px}.save-char{display:inline-block}
.save-char.is-new{animation:save-roll .32s ease-out both}.save-time.is-changed{animation:save-flash .9s ease-out both}
@keyframes save-roll{from{transform:translateY(-75%);opacity:0}to{transform:none;opacity:1}}
@keyframes save-flash{from{background:var(--navy-shade-18)}to{background:transparent}}
@media(prefers-reduced-motion:reduce){.save-char.is-new,.save-time.is-changed{animation:none}}
/* Delete: a trash icon after the save time, behind a thin vertical rule; the 44 px target overlaps the header padding. */
#brief-login .guest-head-end{display:inline-flex;align-items:center;gap:var(--space-3)}
#brief-login .guest-head :is(.project-delete,.project-new,.project-open){position:relative;display:inline-grid;place-items:center;width:44px;height:44px;min-height:44px;min-width:44px;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:inherit;box-shadow:none}
#brief-login .guest-head :is(.project-delete,.project-new,.project-open)::before{content:"";position:absolute;left:0;top:50%;width:1px;height:18px;transform:translateY(-50%);background:var(--navy-ink);opacity:.45}
#brief-login .guest-head :is(.project-delete,.project-new,.project-open) svg{width:20px;height:20px}
/* Delete hover: red icon on a red-tinted plate; the divider keeps its navy (user decision 16.11.2026). */
#brief-login .guest-head .project-delete:hover:not(:disabled){background:var(--danger-tint-20);color:var(--danger-deep)}
#brief-login .guest-head :is(.project-new,.project-open):hover:not(:disabled){background:var(--navy-shade-12)}
#brief-login .guest-head :is(.project-delete,.project-new,.project-open):focus-visible{outline:2px solid var(--navy-ink);outline-offset:-4px}
/* Header end spacing: every visible gap is 20 px — time to rule, rule to icon, icon to rule, icon to card edge; hover circles sit centred between the rules (user request 15.11.2026). */
#brief-login .guest-head-end{gap:16px}
#brief-login .guest-head .guest-save-state:has(+ :is(.project-open,.project-new,.project-delete)){margin-right:12px}
#brief-login .guest-head :is(.project-delete,.project-new,.project-open)::before{left:-8.5px}
/* Hints in the design system instead of the grey native title: a small glass pill like the brief cards. */
#brief-login .guest-head [data-tip]{position:relative}
#brief-login .guest-head [data-tip]::after{content:attr(data-tip);position:absolute;z-index:6;top:calc(100% + 10px);right:0;padding:var(--space-2) 12px;border:1px solid var(--line);border-radius:var(--control-radius);background:var(--card-glass);color:var(--ink);box-shadow:0 10px 24px var(--shade-20);font-size:var(--text-eyebrow);font-weight:500;line-height:1.35;letter-spacing:0;white-space:nowrap;pointer-events:none;opacity:0;transform:translateY(-3px);transition:opacity .15s ease,transform .15s ease}
#brief-login .guest-head .guest-save-state[data-tip]::after{right:auto;left:50%;transform:translate(-50%,-3px)}
#brief-login .guest-head [data-tip]:is(:hover,:focus-visible)::after{opacity:1;transform:none;transition-delay:.25s}
#brief-login .guest-head .project-title[data-tip]::after{top:calc(100% + 6px);right:auto;left:50%;transform:translate(-50%,-3px)}
#brief-login .guest-head .project-title[data-tip]:is(:hover,:focus-visible)::after{transform:translateX(-50%)}
#brief-login .guest-head .guest-save-state[data-tip]:hover::after{transform:translateX(-50%)}
@media(prefers-reduced-motion:reduce){#brief-login .guest-head [data-tip]::after{transition:none;transform:none}#brief-login .guest-head :is(.guest-save-state,.project-title)[data-tip]::after{transform:translateX(-50%)}}
#dialog .danger{background:var(--danger);border-color:var(--danger);color:var(--paper)}
/* Variant B architectural header keeps compact right-hand controls identical across storefront and brief (user choice 23.11.2026). */
/* Cards: dark-blue glass, a little lighter from the bottom-left corner, the usual surface at the top (user decision 15.11.2026). */
:root{--card-glass:linear-gradient(to top right,color-mix(in srgb,var(--surface) 78%,var(--accent)) 0%,var(--surface) 70%)}
:root[data-theme=light]{--card-glass:linear-gradient(to top right,color-mix(in srgb,var(--surface) 55%,#fff) 0%,var(--surface) 70%)}
.intake-fields>section,.brief-top-card,.brief-login{background:var(--card-glass)}
/* Card outline drawn above the header strip. At 150 % scaling a 1 px border snaps to one device pixel (0.667 CSS px) and the strip
   (radius minus 1 px) covered part of the anti-aliased curve, so the corners looked thinner than the straight edges. */
.intake-fields>section,.brief-top-card,#brief-login .brief-login{--card-line:var(--line);border-width:0}
#brief-login .brief-login{position:relative}
:is(.intake-fields>section,.brief-top-card,#brief-login .brief-login)::before{content:"";position:absolute;inset:0;z-index:3;border:1px solid var(--card-line);border-radius:inherit;pointer-events:none}
.intake-fields>section[data-missing],.brief-top-card[data-missing]{--card-line:var(--danger)}
.intake-fields>section>h2:first-child,.brief-top-card>h2:first-child,.reference-head{border-radius:var(--panel-radius) var(--panel-radius) 0 0}
/* Header grain over the whole header, from the very edge (user decision 25.11.2026: no clean strip at the top and left). */
.intake-fields>section>h2:first-child,.brief-top-card>h2:first-child,.reference-head{background-image:var(--card-head-shade);background-position:0 0;background-size:100% 100%;background-repeat:no-repeat}
/* Brand accent is a calm violet instead of lime (user decision 15.11.2026; variables in styles.css). The portal header and footer copy
   (site-chrome.css, synced from the hosted portal) still define lime, so the planner overrides them until the portal follows. */
/* Step numbers on the cards in the accent colour (user decision 15.11.2026). */
.brief-number{color:var(--selection-line)}

/* Content brief (docs/CONTENT-BRIEF-PLAN.md): the same cards and controls as the site brief. The two top cards take the places
   of «Сфера діяльності та контакти» and «Що потрібно зробити?». */
.content-about,.identity-level{grid-column:1;grid-row:2}
.content-types,.identity-about{grid-column:2;grid-row:2}
.content-about .content-first-label{margin-top:0}
.content-about .order-field textarea{min-height:72px}
@media(max-width:1100px){.content-about,.identity-level{grid-row:2}.content-types,.identity-about{grid-column:1/-1;grid-row:3}}
@media(max-width:600px){.content-types,.content-about,.identity-level,.identity-about{grid-column:1;grid-row:auto}}
.content-details{margin-top:12px}
.content-print-estimate{margin-top:16px;padding:12px var(--space-4);border:1px solid var(--line);border-radius:var(--radius-sm,10px)}
.content-print-estimate p{margin:0}
.content-print-estimate p+p{margin-top:var(--space-2)}
.content-details>.order-field:first-of-type{margin-top:0}
.intake-fields .order-field .option-list{margin-bottom:4px}
.intake-fields .order-field>.brand-subheading{margin:0}
.content-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(80px,100%),1fr));gap:8px;margin-block:var(--space-3)}
.content-photo img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:var(--field-radius);border:1px solid var(--line)}
.content-logo{justify-content:flex-start;margin-block:8px}
.content-logo-image{display:block;max-width:110px;height:44px;object-fit:contain}
.content-file-actions button{flex:1 1 auto}
.content-reference{display:grid;gap:4px;padding-block:8px;border-bottom:1px solid var(--line)}
.content-reference .option-list{grid-template-columns:repeat(auto-fit,minmax(130px,max-content));column-gap:20px;margin:0}
.content-examples .error:empty{display:none}.content-examples .error{color:var(--danger)}
.content-examples .order-field button{justify-self:start}
/* A standalone brief has no price list yet: one line instead of the price and time (user decision 15.11.2026). */
.project-price-pending{grid-template-columns:1fr}
.project-price-pending strong{font-size:var(--text-body);font-weight:600}

/* Brand identity brief (docs/IDENTITY-BRIEF-PLAN.md): the same cards and controls; materials and examples reuse the content-brief classes. */
.identity-about>.order-field:first-of-type{margin-top:0}
.identity-level .option-choice{align-items:flex-start;padding-block:var(--space-2)}
.identity-level .option-choice input{margin-top:1px}
.identity-level .option-choice strong{display:block;font-weight:600}
.identity-level .option-choice small{display:block;margin-top:2px;color:var(--muted);font-size:var(--text-small)}
.identity-cross-link a{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.identity-cross-link a:focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:4px}
.identity-carriers{display:grid;gap:4px;margin-block:4px 8px}
.identity-carrier+.identity-carrier{border-top:1px solid var(--line);padding-top:4px}
.identity-carrier>.option-choice strong{font-weight:600}
.identity-carrier-details{padding:0 0 12px var(--space-6)}
.identity-carrier-details .option-list{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));column-gap:12px;margin-bottom:0}
.identity-carrier-details .order-field:first-child{margin-top:0}
/* A voice scale: the two words above five 44 px points; the chosen point is the accent dot. */
.identity-scale{margin-top:var(--space-4)}
.identity-scale-ends{display:flex;justify-content:space-between;gap:12px;margin:0 0 2px;font-size:var(--text-small);font-weight:600}
.identity-scale-ends span:last-child{text-align:end}
.identity-scale-points{display:flex;justify-content:space-between;align-items:center;position:relative}
.identity-scale-points::before{content:"";position:absolute;inset-inline:var(--space-5);top:50%;height:1px;background:var(--line)}
.identity-point{position:relative;display:grid;place-items:center;width:44px;height:44px;cursor:pointer}
.identity-scale-note{display:block;margin-top:var(--space-2);color:var(--muted)}
/* Logo brief: a compact dialog over the site brief with the same numbered glass cards (user decision 15.11.2026).
   On phones it is a full-height sheet; the page behind it does not scroll. */
html:has(#logo-brief-dialog[open]){overflow:hidden}
.logo-brief-dialog{width:min(1080px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;overflow:hidden;background:var(--paper);box-shadow:0 24px 60px var(--shade-47)}
.logo-brief-dialog[open]{display:flex;flex-direction:column}
.logo-brief-dialog[data-preparing]{opacity:0;pointer-events:none}
.logo-brief-dialog[data-preparing]::backdrop{opacity:0}
.logo-brief-dialog[data-flying]{pointer-events:none;will-change:left,top,width,height,border-radius}
.logo-brief-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:var(--space-4) 20px;border-bottom:1px solid var(--line)}
.logo-brief-top h2{margin:0;font-size:clamp(20px,2.2vw,26px);line-height:1.2}
.logo-brief-close{flex:none;min-width:44px;min-height:44px}
.logo-brief-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:20px}
.logo-brief-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
/* Brand name and wishes side by side, the form and style cards across (user request 17.11.2026). */
.logo-card-form,.logo-card-styles{grid-column:1/-1}
.logo-card-brand input{max-width:480px}
.logo-card-requirements textarea{width:100%;min-height:96px;resize:vertical}
.logo-brief-foot{display:flex;justify-content:flex-end;padding:var(--space-4) 20px;border-top:1px solid var(--line)}
.logo-card{position:relative;min-width:0;padding:20px;border-radius:var(--panel-radius);background:var(--card-glass);text-align:start;--card-line:var(--line)}
.logo-card::before{content:"";position:absolute;inset:0;z-index:3;border:1px solid var(--card-line);border-radius:inherit;pointer-events:none}
.logo-card[data-missing]{--card-line:var(--danger)}
.logo-card>h3:first-child{position:relative;z-index:2;display:flex;align-items:center;min-height:56px;margin:-20px -20px 16px;padding:12px var(--space-8) 12px 20px;font-size:var(--text-body);line-height:1.3;background:var(--card-head);border-bottom:1px solid var(--line);border-radius:var(--panel-radius) var(--panel-radius) 0 0}
.logo-card>h3 .brief-number{top:50%;right:20px;transform:translateY(-50%);font-size:var(--text-num)}
.logo-card input:not([type=checkbox],[type=radio]),.logo-card textarea{width:100%}
.logo-card input[aria-invalid=true]{border-color:var(--danger)}
.logo-label{display:block;margin:0 0 var(--space-2);font-weight:600}
.logo-fieldset{border:0;padding:0;margin:0;min-width:0}
.logo-fieldset legend{padding:0;font-weight:600;overflow-wrap:anywhere}
.logo-brief-dialog p.logo-hint{margin:2px 0 var(--space-3);font-size:var(--text-small);line-height:1.45;color:var(--muted)}
.logo-brief-dialog p.logo-error{margin:var(--space-2) 0 0;font-size:var(--text-small);color:var(--danger)}
.logo-brief-dialog p.logo-error:empty{display:none}
.logo-choice-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(230px,100%),1fr));gap:12px}
.logo-choice{position:relative;display:flex;flex-direction:column;gap:var(--space-2);min-width:0;padding:var(--space-3) 12px 12px;border:1px solid var(--line);border-radius:var(--card-radius);background:var(--paper);content-visibility:auto;contain-intrinsic-size:180px;transition:border-color .15s,background-color .15s}
.logo-choice[data-selected]{border-color:var(--highlight);background:var(--selected)}
.logo-choice:has(input:disabled){opacity:.55}
.logo-choice-label{font-weight:600}
.logo-choice-label::after{content:"";position:absolute;inset:0;border-radius:inherit}
.logo-choice-label input{position:relative;z-index:1}
.logo-choice:has(input:disabled) .logo-choice-label{cursor:default}
.logo-brief-dialog p.logo-choice-text{margin:0;font-size:var(--text-small);line-height:1.4;color:var(--muted)}
.logo-choice-examples{display:grid;grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:8px;margin:auto 0 0;padding:4px 0 0;list-style:none}
.logo-choice-examples li{display:grid;align-content:start;gap:var(--space-1);min-width:0}
/* Other brands' logos keep their own colours: every example sits on a white tile in both themes, never filtered or inverted. */
.logo-choice-examples img{display:block;width:100%;aspect-ratio:4/3;object-fit:contain;padding:8px;background:var(--white);border:1px solid var(--line);border-radius:var(--field-radius)}
.logo-choice-caption{font-size:var(--text-eyebrow);line-height:1.3;color:var(--muted);overflow-wrap:anywhere}
.logo-choice-credit{font-size:var(--text-eyebrow);line-height:1.3;color:var(--muted);overflow-wrap:anywhere}
.logo-brief-dialog p.logo-brief-note{grid-column:1/-1;margin:-4px 4px 0;font-size:var(--text-small);line-height:1.45;color:var(--muted)}
/* Under «Потрібно розробити логотип»: the attached logo brief, with the same «×» as a colour chip to take it out. */
.logo-brief-attached{position:relative;margin:12px var(--space-2) 0 0;padding:8px 24px 8px 12px;border:1px solid var(--highlight);border-radius:var(--field-radius);font-size:var(--text-small);line-height:1.45;color:var(--ink)}
@media(max-width:760px){.logo-brief-cards{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){
  .logo-brief-dialog .logo-choice{text-align:center}
  .logo-brief-dialog .logo-choice-label{justify-content:center}
  .logo-brief-dialog .logo-choice-examples{
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:min(100%,280px);
    margin-inline:auto;
  }
}
@media(max-width:600px){.logo-brief-dialog{width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0;border-width:0}.logo-brief-body{padding:16px}.logo-brief-foot{padding:12px 16px}.logo-brief-attach{width:100%}}
@media(prefers-reduced-motion:reduce){.logo-choice{transition:none}}
/* Open a downloaded project file: a quiet text action under the project card (user decision 16.11.2026). */
/* Brief subheadings blue and a step above the options; explanations white (user decision 16.11.2026). */
.brand-subheading,.brief-contact-label{color:var(--subhead)}
:is(.section-picker,.feature-picker) .section-group legend{color:var(--subhead);font-size:var(--text-small)}
.option-choice input:disabled+span{color:color-mix(in srgb,var(--ink) 60%,transparent)}
/* Project header (user 16.11.2026): the save state wraps into two lines and stays opposite the project name; the import button keeps its divider beside it. */
#brief-login .guest-head{flex-wrap:nowrap}
#brief-login .guest-head .guest-project-name{min-width:0}
#brief-login .guest-head-end{flex:none}
#brief-login .guest-head .guest-save-state{max-width:none;font-size:var(--text-small);line-height:1.25;text-wrap:balance}
/* Two lines are always reserved, so «Зберігається…» → «Збережено на цьому пристрої» never changes the card height (user report 16.11.2026). */
#brief-login .guest-head .guest-save-state{min-height:2.5em}
#brief-login .guest-head .guest-save-state .save-icon{flex:none}
@media(max-width:768px){#brief-login .guest-head .guest-project-name{font-size:var(--text-body)}#brief-login .guest-head-end{gap:12px}#brief-login .guest-head :is(.project-delete,.project-new,.project-open)::before{left:-9px}#brief-login .guest-head .guest-save-state{font-size:var(--text-eyebrow)}#brief-login .guest-head .guest-save-state:has(+ :is(.project-open,.project-new,.project-delete)){margin-right:var(--space-2)}}
/* Choice field frame like the other text fields (user decision 16.11.2026): violet on hover, open and focus, no thick ring. */
/* 100 px between the send block and the footer (user decision 16.11.2026). */
.brief-final{padding-bottom:var(--space-9)}
/* «Що робимо?» (user decision 16.11.2026): one block two cells wide under the title; three columns split by vertical lines,
   name and checkbox on top, the icon under them; the whole column is the click target. */
.brief-directions{grid-column:1/span 2;grid-row:2;display:flex;flex-direction:column}
.direction-options{flex:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:-16px -20px -20px}
.direction-option{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:16px;min-height:44px;padding:var(--space-panel) 16px var(--space-5);cursor:pointer;border-radius:0 0 var(--panel-radius) var(--panel-radius);transition:background-color .2s var(--ease,ease),color .2s var(--ease,ease)}
.direction-option+.direction-option{border-inline-start:1px solid var(--line);border-radius:0}
.direction-option:first-child{border-end-end-radius:0}
.direction-option:last-child{border-end-start-radius:0;border-end-end-radius:var(--panel-radius)}
.direction-head{display:flex;align-items:center;justify-content:center;gap:var(--space-3);font-size:var(--text-body);font-weight:600;line-height:1.3;text-align:center}
.direction-name{min-width:0;overflow-wrap:anywhere;hyphens:auto}
/* The tile box: components.css gives its look; here only the transparent fill and the fixed size. */
.direction-head input{min-width:20px;max-height:20px;background:transparent}
/* Icon in the middle of the tile, a short note under it (user decision 16.11.2026). */
.direction-option{justify-content:flex-start}
.direction-option .direction-icon{margin-top:auto}
.direction-note{margin-bottom:auto;max-width:28ch;font-size:var(--text-small);font-weight:400;line-height:1.4;text-align:center;color:var(--muted);text-wrap:pretty}
.direction-option:has(input:checked) .direction-note{color:var(--highlight-ink)}
.direction-icon{display:grid;place-items:center;color:var(--muted);transition:color .2s var(--ease,ease),transform .2s var(--ease,ease)}
.direction-icon svg{width:72px;height:72px}
.direction-icon .detail{stroke:var(--muted)}
.direction-option:hover .direction-icon{color:var(--ink)}
.direction-option:hover .direction-icon .detail,.direction-option:has(input:checked) .direction-icon .detail{stroke:var(--highlight)}
/* A ticked direction takes the brand gradient of the mega-menu «Не знаєте, що обрати?» plaque, with dark ink (user decision 16.11.2026). */
.direction-option:has(input:checked){background-image:var(--highlight-gradient);color:var(--highlight-ink)}
/* One gradient across the three columns: each ticked column shows its own part, so neighbours join without a seam. */
.direction-option{background-size:300% 100%}
.direction-option:nth-child(2){background-position:50% 0}
.direction-option:nth-child(3){background-position:100% 0}
/* Direction icons have no fill (user decision 16.11.2026): the frame is transparent; the play knock-out takes the card colour.
   On a ticked tile (brand gradient) the outline and the light lines turn dark navy and the violet parts white. */
.brief-directions .direction-option .direction-icon .morph-icon{--mi-frame:transparent}
.brief-directions .direction-option .direction-icon .mi-cut{fill:var(--surface)}
.brief-directions .direction-option:has(input:checked) .direction-icon .morph-icon{color:var(--navy-ink);--mi-accent:#fff;--mi-ink:#10182a;--mi-soft:rgb(16 24 42 / .45)}
.brief-directions .direction-option:has(input:checked) .direction-icon .mi-cut{fill:var(--navy-ink)}
.direction-option:has(input:checked) .direction-head input{border-color:var(--highlight-ink)}
.direction-option:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:-2px}
.intake-fields>:is(.brief-about,.project-kind,.content-types,.content-about,.identity-level,.identity-about){grid-column:auto;grid-row:auto}
/* Tablet: the square cards are too narrow for the five formats, so the two first cards take the full row at their own height
   and the formats sit in two columns; no scroll inside (user decision 16.11.2026). */
@media(min-width:601px) and (max-width:1100px){
.intake-fields>:is(.brief-about,.project-kind){grid-column:1/-1;aspect-ratio:auto;contain:none}
.project-kind-format .option-list{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}}
/* Three columns narrower than ~1540 px: «Новий сайт чи редизайн?» keeps its square column with the formats one under another
   (user request 17.11.2026; it spanned two columns before). Where the square is too short the first row grows to the formats. */
@media(min-width:1101px) and (max-width:1540px){
.intake-fields>:is(.brief-about,.project-kind){aspect-ratio:auto;contain:none}
/* The square first card is too short here for two-line fields: one line with an ellipsis; typing still grows them. */
.brief-about :is(#brief-contact,#brief-links){min-height:44px}.brief-about :is(#brief-contact,#brief-links)::placeholder{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}
@media(prefers-reduced-motion:reduce){.direction-option,.direction-icon{transition:none}}
@media(max-width:1100px){.brief-directions{grid-column:1;grid-row:2}.direction-icon svg{width:56px;height:56px}.direction-head{font-size:var(--text-small)}}
@media(max-width:600px){.intake-title{order:-2}.brief-directions{grid-column:1;grid-row:auto}.direction-options{grid-template-columns:minmax(0,1fr)}
  .direction-option{flex-direction:row-reverse;justify-content:flex-end;padding:12px 20px;border-radius:0}
  .direction-option+.direction-option{border-inline-start:0;border-top:1px solid var(--line)}
  .direction-option:last-child{border-end-start-radius:var(--panel-radius);border-end-end-radius:var(--panel-radius)}
  .direction-head{flex:1;justify-content:space-between;text-align:start}.direction-icon svg{width:40px;height:40px}
  .direction-option{display:grid;grid-template-columns:40px minmax(0,1fr);grid-template-areas:"icon head" "icon note";column-gap:16px;row-gap:2px;align-items:center}
  .direction-head{grid-area:head}.direction-option .direction-icon{grid-area:icon;margin:0}.direction-note{grid-area:note;margin:0;max-width:none;text-align:start}
  .direction-option{background-size:100% 100%}}

/* Brief cards take the approved card radius of the home page covers, 16 px --card-radius, instead of the 24 px panel radius (user decision 16.11.2026). */
#brief-intake,.brief-final,.prototype-draft,.logo-card{--panel-radius:var(--card-radius)}
/* Answered fields: the outline of a filled field and its label turn violet; a subheading turns violet once an option under it is ticked (user decision 16.11.2026). */
#brief-intake .brief-contact-label:has(+ :is(input,textarea)[placeholder]:not(:placeholder-shown)),
#brief-intake .brief-contact-label:has(+ .choice-field input[placeholder]:not(:placeholder-shown)),
#brief-intake .order-field:has(> :is(input,textarea)[placeholder]:not(:placeholder-shown))>label,
#brief-intake .brand-subheading:has(+ .option-list :checked),
#brief-intake .order-field:has(.option-list :checked)>.brand-subheading,
#brief-intake .language-field:has(.language-dot)>.language-heading>span:first-child,
#brief-intake .brand-palette:has(.colour-dot)>.brand-subheading,
#brief-intake .section-group:has(.option-list :checked)>legend>span:first-child{color:var(--selection-line)}
/* «Прототип сайту» (user decision 16.11.2026): a violet tab as tall as the project card head, tucked under its left edge; it opens
   the draft prototype below the brief. The intro wraps to two lines to leave it room. On two columns it sits at the end of the
   title row; on phones it is a full-width tab under the project card. */
.intake-title p{max-width:min(100%,58ch)}
#brief-login{position:relative;z-index:1}
.prototype-flag{grid-column:2;grid-row:1;justify-self:end;align-self:start;position:relative;z-index:0;display:inline-flex;align-items:center;gap:var(--space-3);height:var(--flag-height,95px);min-height:44px;margin:0 -36px 0 0;padding:0 var(--space-7) 0 20px;border:0;border-radius:var(--card-radius) 0 0 var(--card-radius);color:var(--navy-ink);font-size:var(--text-body);font-weight:700;white-space:nowrap;box-shadow:-6px 0 18px var(--shade-18);cursor:pointer;transition:transform .2s ease,filter .2s ease}
.prototype-flag[hidden]{display:none}
.prototype-flag:hover{transform:translateX(-6px);filter:brightness(1.06)}
.prototype-flag:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.prototype-flag-icon{display:inline-grid;place-items:center}
.prototype-draft-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.prototype-draft-head h2{margin:0}
/* «Згорнути ↑»: plain text with an arrow, no outline; violet on hover and focus (user request 16.11.2026). */
@media(prefers-reduced-motion:reduce){.prototype-flag{transition:none}.prototype-flag:hover{transform:none}}
@media(max-width:1100px){.prototype-flag{grid-column:2;grid-row:1;align-self:end;height:52px;margin:0;padding:0 20px;border-radius:var(--card-radius)}}
@media(max-width:600px){.prototype-flag{grid-column:1;grid-row:auto;justify-self:stretch;justify-content:center}}
/* Prototype editor: the previews take their full height and scroll with the page; the settings panel stays in view under the
   site header and keeps its own (design-system) scrollbar (user decision 16.11.2026). */
#main .editor{height:auto;min-height:0;align-items:start}
#main .preview-workspace{overflow:visible}
#main .previews{flex:none;overflow:visible;align-items:start}
#main .preview-card{height:auto}
/* Up to 1199 px the previews stand in a column: the cards take the full width (align-items:start above would shrink them to
   nothing, the frames are positioned), the phone stays phone-sized in the middle. */
@media(max-width:1199px){#main .previews{align-items:stretch}#main .preview-card[data-device=phone]{width:100%;max-width:390px;align-self:center}}
#main .mobile-switch button{white-space:nowrap}
@media(max-width:699px){#main .editor{align-items:stretch}}
#main .preview-stage{flex:none;min-height:0}
#main .preview-stage iframe{overflow:hidden}
/* While scrolling, the card head «Прототип сайту» stays pinned under the site header and the panel under it; the previews
   slide up to the card head, not to the panel (user decision 16.11.2026). */
@media(min-width:700px){#prototype-draft{position:sticky;top:calc(var(--sticky-top,0px) + var(--draft-gap,20px));z-index:3}
#main .settings{position:sticky;top:calc(var(--sticky-top,0px) + var(--draft-gap,20px) + var(--draft-head,0px));max-height:calc(100dvh - var(--sticky-top,0px) - var(--draft-gap,20px) - var(--draft-head,0px));align-self:start}}
/* The prototype is one more card, as wide as the brief cards: a head band like theirs with «Згорнути», then the editor as its
   body (user decision 16.11.2026). Sections in the left panel start folded. */
/* The gap above the card is the section's margin, so the pinned head sits right under the site header and the pixel
   background shows on both sides of it (user decision 16.11.2026). */
#prototype-draft{margin-top:8px}
.prototype-draft-inner{padding:0;margin:0 auto;border-radius:var(--card-radius) var(--card-radius) 0 0;border-bottom:0;background:var(--card-glass);overflow:hidden}
.prototype-draft-head{min-height:64px;padding:var(--space-3) 12px var(--space-3) 20px;background:var(--card-head);border-bottom:1px solid var(--line)}
.prototype-draft-head h2{font-size:var(--text-body)}
.prototype-draft-title{min-width:0;flex:1 1 280px}.prototype-draft-title p{margin:2px 0 0;font-size:var(--text-small);color:var(--muted)}
@media(max-width:759px){
  .prototype-draft-head{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:4px 12px;
  }
  .prototype-draft-title{display:contents}
  .prototype-draft-title h2{grid-area:1 / 1}
  .prototype-draft-title p{grid-area:2 / 1 / 3 / -1;margin:0}
  .prototype-draft-head .prototype-collapse{grid-area:1 / 2;white-space:nowrap}
}
.prototype-draft-inner>p{margin:0;padding:12px 20px;color:var(--muted)}
#main .editor.site-container{border:1px solid var(--line);border-radius:0 0 var(--card-radius) var(--card-radius);margin-bottom:24px;background:var(--card-glass)}
/* The «Прототип сайту» tab (user decision 16.11.2026): as tall as the project card's button strip and level with it, dark
   navy, violet on hover; it slides out from under the card the first time it appears. */
.prototype-flag{margin:var(--flag-top,var(--space-7)) -36px 0 0;height:var(--flag-height,44px);padding:0 var(--space-7) 0 var(--space-panel);background:var(--navy-ink);background-origin:border-box;color:var(--white);font-size:var(--text-small);border:1px solid var(--glare-14);border-right:0;transition:transform .2s ease,color .2s ease}
/* The shorthand would reset the origin to the padding box, and the gradient would repeat its light end in the 1 px left
   border as a white seam (user report 17.11.2026). */
.prototype-flag:is(:hover,:focus-visible):not(:disabled){filter:none}
.prototype-flag-arrive{animation:prototype-flag-arrive .6s cubic-bezier(.2,.8,.2,1) backwards}
@keyframes prototype-flag-arrive{from{transform:translateX(calc(100% - 36px))}}
@keyframes prototype-flag-fade{from{opacity:0}}
@media(max-width:1100px){.prototype-flag{margin:0;height:52px;padding:0 20px;border-right:1px solid var(--glare-14)}.prototype-flag-arrive{animation-name:prototype-flag-fade}}
@media(prefers-reduced-motion:reduce){.prototype-flag-arrive{animation:none}}
/* The prototype card runs the full window width with 30 px margins, so the previews get wider (user decision 16.11.2026). */
#main .prototype-card .site-container{width:auto;max-width:none;margin-inline:var(--space-6)}
@media(max-width:650px){#main .prototype-card .site-container{margin-inline:12px}}
#main .editor .settings{border-end-start-radius:calc(var(--card-radius) - 1px)}
/* The card head already names the prototype; the panel does not repeat it. */
#prototype-draft:not([hidden])+.editor .structure-title{display:none}
/* The left panel folds to a rail with only the sidebar button in its top right corner; the previews take the freed width and
   the button stays pinned under the card head while the page scrolls (user request 17.11.2026). On phones the panel and the
   previews already switch, so there is no button. */
.settings-head{display:none}
@media(min-width:700px){.settings-head{position:sticky;top:-24px;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:8px;margin:-24px -20px 16px;padding:var(--space-3) 12px var(--space-3) 16px;background:var(--paper);border-bottom:1px solid var(--line)}
/* The device buttons are bare icons like the fold button (user request 17.11.2026): violet when on, muted when off. */
.preview-devices{display:flex;gap:0}
#main .settings .preview-device{width:40px;height:44px;min-height:44px;padding:0;display:grid;place-items:center;border:0;border-radius:var(--field-radius);background:none;box-shadow:none;color:var(--muted);filter:none}
#main .settings .preview-device[aria-pressed=true]{color:var(--highlight);opacity:1}
:root[data-theme=light] #main .settings .preview-device[aria-pressed=true]{color:var(--highlight-deep)}
#main .settings .preview-device:is(:hover,:focus-visible):not(:disabled){background:none;border:0;opacity:1;filter:none}
#main .settings .preview-device[aria-pressed=false]:is(:hover,:focus-visible):not(:disabled){color:var(--ink)}
#main .settings .preview-device svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}}
/* Previews that are off are hidden; the rest share the width 3 : 2 : 1.2 (monitor, tablet, phone), the tablet up to 768 px and
   the phone up to 390 px, centred when they do not fill the row. */
#main .preview-workspace:not([data-devices~=desktop]) .preview-card[data-device=desktop],#main .preview-workspace:not([data-devices~=tablet]) .preview-card[data-device=tablet],#main .preview-workspace:not([data-devices~=phone]) .preview-card[data-device=phone]{display:none}
@media(min-width:1200px){#main .previews{display:flex;justify-content:center}
#main .preview-card[data-device=desktop]{flex:3 1 0;min-width:0}
#main .preview-card[data-device=tablet]{flex:2 1 0;min-width:0;max-width:768px}
#main .preview-card[data-device=phone]{flex:1.2 1 0;min-width:220px;max-width:390px}}
@media(max-width:1199px){#main .preview-card[data-device=tablet]{width:100%;max-width:768px;align-self:center}}
@media(min-width:700px){
#main .settings .settings-toggle{width:44px;height:44px;min-height:44px;padding:0;display:grid;place-items:center;border:0;border-radius:var(--field-radius);background:none;box-shadow:none;color:var(--muted)}
#main .settings .settings-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}
#main .settings .settings-toggle:is(:hover,:focus-visible):not(:disabled){background:none;border:0;color:var(--highlight);filter:none}
:root[data-theme=light] #main .settings .settings-toggle:is(:hover,:focus-visible):not(:disabled){color:var(--highlight-deep)}
#main .editor.settings-collapsed{grid-template-columns:68px minmax(0,1fr)}
#main .editor.settings-collapsed .settings{align-self:stretch;max-height:none;overflow:visible;padding-inline:12px}
#main .editor.settings-collapsed .settings>:not(.settings-head){display:none}
#main .editor.settings-collapsed .settings-head{top:calc(var(--sticky-top,0px) + var(--draft-gap,20px) + var(--draft-head,0px));flex-direction:column;margin:-24px -12px 0;padding:var(--space-3) 0;border-bottom:0;background:none}
#main .editor.settings-collapsed .preview-devices{flex-direction:column}
#main .editor.settings-collapsed .settings-toggle{order:-1}}
/* «Хедер» and «Футер» rows carry a switch (user request 17.11.2026): an off row is grey with «вимкнено» and no choices. */
.group-row{display:flex;align-items:center;gap:var(--space-2)}
.group-row>.group-toggle{flex:1;min-width:0;width:auto}
#main .settings .group.is-off .group-toggle:disabled{opacity:1;cursor:default;color:var(--muted);background:none}
.group.is-off .group-toggle .chevron{opacity:.35}
.layout-off{font-size:var(--text-small);font-weight:500;color:var(--muted)}
#main .settings .layout-switch{appearance:none;-webkit-appearance:none;position:relative;flex:none;width:40px;height:24px;min-height:0;margin:0 var(--space-2);padding:0;border:1px solid var(--line);border-radius:var(--control-radius);background:transparent;cursor:pointer;transition:background-color .15s,border-color .15s}
#main .settings .layout-switch::before{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:var(--muted);transition:transform .15s}
#main .settings .layout-switch::after{content:"";position:absolute;inset:-10px -4px}
#main .settings .layout-switch:checked{background:var(--highlight);border-color:var(--highlight)}
:root[data-theme=light] #main .settings .layout-switch:checked{background:var(--highlight-deep);border-color:var(--highlight-deep)}
#main .settings .layout-switch:checked::before{transform:translateX(16px);background:var(--white)}
#main .settings .layout-switch:disabled{opacity:.45;cursor:not-allowed}
#main .settings .layout-switch:focus-visible{outline:2px solid var(--highlight);outline-offset:3px}
@media(prefers-reduced-motion:reduce){#main .settings .layout-switch,#main .settings .layout-switch::before{transition:none}}
.switch-note{margin:2px 8px var(--space-3);font-size:var(--text-small)}
.switch-tip{display:inline-flex;flex:none}
/* «Завжди входить…» under the functions (user decision 17.11.2026). */
.hero-note{margin:0 0 var(--space-2);font-size:var(--text-small);line-height:1.5;color:var(--muted)}
.included-note{margin:2px 0 16px;font-size:var(--text-small);line-height:1.5;color:var(--muted)}
.brief-format>.included-note{margin:var(--space-4) 0 0}
.feature-picker #brief-other-features{width:100%;margin:8px 0 4px}
/* Layout hints are sentences: the pill wraps them instead of running past the panel. */
.scheme-choice[data-tip]::after,.switch-tip[data-tip]::after{width:max-content;max-width:240px;white-space:normal;border-radius:var(--card-radius);text-align:start}
/* The folded rail draws the page as a mini map: the header bar, numbered sections of the shown page, the footer bar; an off
   header or footer is dashed, the open section is violet (user request 17.11.2026). */
.panel-map{display:none}
@media(min-width:700px){
#main .editor.settings-collapsed .settings{z-index:3}
#main .editor.settings-collapsed .panel-map{display:flex;flex-direction:column;align-items:center;gap:4px;width:44px;margin-top:var(--space-2);padding-top:var(--space-3);border-top:1px solid var(--line)}
/* In the folded rail every hint opens to the right of its button, over the previews. */
#main .editor.settings-collapsed .settings-head [data-tip]::after{top:50%;left:calc(100% + 12px);right:auto;transform:translate(-3px,-50%)}
#main .editor.settings-collapsed .settings-head [data-tip]:is(:hover,:focus-visible)::after{transform:translate(0,-50%)}
#main .settings .map-item{flex:none;display:grid;place-items:center;width:44px;height:30px;min-height:0;padding:0;border:1px solid var(--line);border-radius:var(--chip-radius);background:none;box-shadow:none;color:var(--muted);font-size:var(--text-eyebrow);font-weight:600;line-height:1;filter:none}
#main .settings .map-item:is(:hover,:focus-visible):not(:disabled){background:none;color:var(--ink);border-color:var(--ink);filter:none}
#main .settings .map-item[aria-current=true]{color:var(--highlight);border-color:var(--highlight);background:color-mix(in srgb,var(--highlight) 14%,transparent)}
:root[data-theme=light] #main .settings .map-item[aria-current=true]{color:var(--highlight-deep);border-color:var(--highlight-deep)}
#main .settings :is(.map-header,.map-footer){height:24px;border-color:transparent}
#main .settings :is(.map-header,.map-footer):is(:hover,:focus-visible):not(:disabled){border-color:transparent}
.map-bar{display:block;width:40px;height:8px;border:1.5px solid transparent;border-radius:3px;background:var(--muted);opacity:.7}
.map-item:is(:hover,:focus-visible) .map-bar{opacity:1;background:var(--ink)}
.map-item.is-off .map-bar,.map-item.is-off:is(:hover,:focus-visible) .map-bar{background:none;border-style:dashed;border-color:var(--muted)}}
/* Pages of a multi-page prototype in the panel (user request 16.11.2026): a block per page with its sections and its own
   «+ Додати розділ»; the page shown in the previews is marked like a selected section. */
.settings .prototype-page{border-top:1px solid var(--line);padding-top:var(--space-3);margin-top:var(--space-2)}
.settings .prototype-page-head{display:flex;align-items:center;gap:var(--space-3);min-height:44px}
.settings .prototype-page-name{flex:1;min-width:0;min-height:44px;justify-content:flex-start;text-align:start;border:1px solid transparent;border-radius:var(--field-radius);padding:var(--space-2) 12px;font-weight:700;background:none}
.settings .prototype-page-name[aria-pressed=true]{border-color:var(--selection-line);background:var(--section-fill,transparent);color:var(--section-text,inherit)}
.settings .prototype-page-head small{color:var(--muted);flex:none}
.settings .prototype-page-rename{width:100%;margin-top:8px}
.settings .prototype-page .add-button{margin:12px 0 4px}
.settings .prototype-page .page-remove{margin:4px 0 8px}
.settings .add-page{margin-top:var(--space-4)}
/* The open header and footer read like an open section (user request 17.11.2026): a filled panel with the coloured edge,
   the head row (name, scheme, switch) set apart, then subsections under headings in the size of «Композиція розділу». */
#main .settings .group.is-open{background:var(--section-fill);color:var(--section-text);border:1px solid var(--line);border-left:4px solid var(--section-edge);border-radius:var(--card-radius);margin:8px -4px;padding:var(--space-2)}
#main .settings .group.is-open .group-content{padding:0 4px 4px}
.panel-sub .group-hint:last-child{margin-bottom:0}
.panel-logo-add{width:100%}
.panel-logo{display:flex;align-items:center;gap:12px}
.panel-logo-image{width:72px;height:48px;flex:none;object-fit:contain;border:1px solid var(--line);border-radius:var(--field-radius);padding:4px;background:var(--paper)}
.panel-logo-actions{display:flex;gap:8px;flex:none}
#main .settings .panel-logo-icon{display:grid;place-items:center;width:44px;height:44px;min-height:0;padding:0;border-radius:50%}
.panel-logo-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
/* «Поведінка шапки»: one violet pill flows under the chosen option. */
#main .settings .segmented.sliding{position:relative;isolation:isolate}
#main .settings .segmented.sliding::before{content:"";position:absolute;z-index:-1;top:4px;bottom:4px;left:4px;width:calc((100% - 13px) / 2);border-radius:var(--panel-radius);background:var(--highlight);transform:translateX(calc(var(--seg,0) * (100% + 5px)));transition:transform .3s cubic-bezier(.3,.7,.2,1)}
#main .settings .segmented.sliding button,#main .settings .segmented.sliding button[aria-pressed=true]{background:transparent;border-color:transparent;color:var(--ink);transition:color .2s}
#main .settings .segmented.sliding button[aria-pressed=true]{color:var(--highlight-ink)}
:root[data-theme=light] #main .settings .segmented.sliding::before{background:var(--highlight-deep)}
:root[data-theme=light] #main .settings .segmented.sliding button[aria-pressed=true]{color:var(--white)}
@media(prefers-reduced-motion:reduce){#main .settings .segmented.sliding::before,#main .settings .segmented.sliding button{transition:none}}
/* «Додати логотип» and «Замовити розробку логотипа» share one row; a long label wraps to two lines (user request 17.11.2026). */
#brief-intake .brand-logo-actions{flex-wrap:nowrap;align-items:stretch}
#brief-intake .brand-logo-actions>button{flex:1 1 auto;min-width:0;white-space:normal;text-align:center;justify-content:center;padding-inline:12px;line-height:1.2}
@media(max-width:420px){#brief-intake .brand-logo-actions>button{font-size:var(--text-small);padding-inline:var(--space-3)}}
.panel-logo-hint{text-align:center}
/* Subsection titles are the dividers (user request 17.11.2026): centred, a line runs out to each side, the same space above
   and below. Header and footer panels, and «Композиція розділу» / photos in an open section. */
.panel-sub-title,#main .settings :is(.layout-controls,.section-photos)>legend{display:flex;align-items:center;gap:12px;width:100%;float:none;margin:0;padding:0;font-size:var(--text-small);font-weight:650;line-height:1.3;letter-spacing:0;text-align:center}
.panel-sub-title::before,.panel-sub-title::after,#main .settings :is(.layout-controls,.section-photos)>legend::before,#main .settings :is(.layout-controls,.section-photos)>legend::after{content:"";flex:1 1 0;min-width:16px;height:1px;background:var(--line)}
.panel-sub{padding:0}
.panel-sub-title{margin:var(--space-panel) 0}
/* The header stands apart from the sections and the footer below them (user request 17.11.2026). */
#main .settings>.sections-divider{margin:var(--space-6) 0 var(--space-2)}
/* «Хедер» in place of the line under the panel buttons, «Футер» above the footer; no line under the footer (user request 18.11.2026). */
#main .settings>.header-divider{margin:0 0 var(--space-2)}
#main .settings>.footer-divider{margin:var(--space-6) 0 var(--space-2)}
#main .settings>[data-group=footer]{border-bottom:0}
/* No line under the header row and none under the last section for now (user request 18.11.2026). */
#main .settings>[data-group=header]{border-bottom:0}
#main .settings>.outline>.outline-item:last-child{border-bottom:0}
/* The sections bar: the count on the left, the «розділ +» icon on the right. */
#main .settings>.sections-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 4px;padding:0 0 0 8px}
#main .settings .sections-count{font-size:var(--text-eyebrow);color:var(--muted)}
#main .settings .section-add{width:44px;height:44px;min-height:44px;padding:0;display:grid;place-items:center;border:0;border-radius:var(--field-radius);background:none;box-shadow:none;color:var(--ink)}
#main .settings .section-add svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}
#main .settings .section-add:is(:hover,:focus-visible):not(:disabled){background:none;border:0;color:var(--highlight)}
:root[data-theme=light] #main .settings .section-add:is(:hover,:focus-visible):not(:disabled){color:var(--highlight-deep)}
/* No line under the panel buttons: the «Хедер» divider takes its place. */
@media(min-width:700px){#main .settings-head{border-bottom:0}}
#main .settings{overflow-x:hidden}
@media(max-width:699px){#main .settings{overflow-x:clip;overscroll-behavior:auto}}
/* Left-column layout hints open rightwards from the button's left edge, right-column ones leftwards (see data-tip-align=end). */
#main .settings .scheme-choice[data-tip]:not([data-tip-align])::after{left:0;right:auto;transform:translateY(-3px)}
#main .settings .scheme-choice[data-tip]:not([data-tip-align]):is(:hover,:focus-visible)::after{transform:none}
#main .settings :is(.layout-controls,.section-photos){margin:var(--space-panel) 0 0}
#main .settings :is(.layout-controls,.section-photos)>legend{margin-bottom:var(--space-panel)}
/* Undo by the fold button, a thin line between them with the same space on each side (user request 17.11.2026). */
@media(min-width:700px){
.head-actions{display:flex;align-items:center;gap:8px}
.head-sep{flex:none;width:1px;height:22px;background:var(--line)}
#main .settings .undo-button{width:44px;height:44px;min-height:44px;padding:0;display:grid;place-items:center;border:0;border-radius:var(--field-radius);background:none;box-shadow:none;color:var(--muted)}
#main .settings .undo-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}
#main .settings .undo-button:is(:hover,:focus-visible):not(:disabled){background:none;border:0;color:var(--highlight);filter:none}
:root[data-theme=light] #main .settings .undo-button:is(:hover,:focus-visible):not(:disabled){color:var(--highlight-deep)}
#main .settings .undo-button:disabled{opacity:.35;cursor:default}
#main .editor.settings-collapsed .head-actions{order:-1;flex-direction:column}
#main .editor.settings-collapsed .undo-button{order:1}
#main .editor.settings-collapsed .head-sep{width:28px;height:1px}}
/* «Меню» in the header panel (user request 17.11.2026). */
.menu-items{display:grid;gap:8px}
.menu-item{display:flex;align-items:center;gap:var(--space-3)}
.menu-item-number{flex:none;display:grid;place-items:center;width:26px;height:26px;border:1px solid var(--line);border-radius:50%;font-size:var(--text-eyebrow);color:var(--muted)}
#main .settings .menu-item-input{flex:1;min-width:0;min-height:44px}
#main .settings .menu-item-input[aria-invalid=true]{border-color:var(--danger)}
/* Hovering «Хедер» or «Футер» lights the whole row, the switch included (user request 17.11.2026). */
#main .settings .group-row{border-radius:var(--field-radius);transition:background-color .15s}
#main .settings .group-row:is(:hover,:focus-within):not(:has(.group-toggle:disabled)){background:var(--control-surface)}
:root:not([data-theme=dark]) #main .settings .group-row:is(:hover,:focus-within):not(:has(.group-toggle:disabled)){background:var(--selected)}
#main .settings .group-row>.group-toggle:is(:hover,:focus-visible){background:none}
@media(prefers-reduced-motion:reduce){#main .settings .group-row{transition:none}}
/* The light field of a row reaches 10 px past its outer icons: the chevron and the switch of the header and footer, the drag
   handle and the trash of a section; the icons of all rows stand in one column (user request 17.11.2026). */
#main .settings .group-row{margin:0 -4px 0 -2px;padding:0 4px 0 2px}
#main .settings .outline-heading{margin:0 -4px 0 -2px;padding:0 var(--space-3);gap:var(--space-2);border-radius:var(--field-radius);transition:background-color .15s}
#main .settings .outline-heading:is(:hover,:focus-within){background:var(--control-surface)}
:root:not([data-theme=dark]) #main .settings .outline-heading:is(:hover,:focus-within){background:var(--selected)}
#main .settings .outline-heading>.group-toggle:is(:hover,:focus-visible){background:none}
#main .settings .outline-heading>.drag-handle{position:relative;flex:0 0 auto;width:auto;padding:0;display:flex;align-items:center;justify-content:flex-start;align-self:stretch}
#main .settings .outline-heading>.drag-handle::after{content:"";position:absolute;inset:0 -12px}
/* Delete a section: a trash in a 28 px circle, clear of the field's top and bottom; the tap area stays 44 px. */
#main .settings .outline-heading>.remove-section{position:relative;flex:0 0 28px;width:28px;height:28px;min-height:28px;padding:0;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%}
#main .settings .outline-heading>.remove-section::after{content:"";position:absolute;inset:-8px}
#main .settings .outline-heading>.remove-section svg{width:15px;height:15px}
#main .settings .outline-heading>.replace-section{position:relative;flex:0 0 28px;width:28px;height:28px;min-height:28px;margin-right:4px;padding:0;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%}
/* The larger hit area sits in ::before: ::after is the hover hint pill, an empty one showed as a bare circle (user report 18.11.2026). */
#main .settings .outline-heading>.replace-section::before{content:"";position:absolute;inset:-8px}
#main .settings .outline-heading>.replace-section svg{width:15px;height:15px}
#main .settings .outline-heading>.replace-section:is(:hover,:focus-visible){border-color:var(--selection-line);color:var(--selection-line)}
@media(prefers-reduced-motion:reduce){#main .settings .outline-heading{transition:none}}
/* «Розділи» and «Функції» of a page in the panel (user request 25.11.2026); a function row has an empty grip: it keeps its place. */
#main .settings .outline-group-title{margin:var(--space-3) 0 var(--space-2);font-size:var(--text-eyebrow);font-weight:600;color:var(--muted)}
#main .settings .outline-heading>.feature-drag-space{visibility:hidden}
/* Remove a photo: the same trash in a 28 px circle as a section, tap area 44 px (user request 17.11.2026). */
#main .settings .section-photo-row>[data-remove-photo]{position:relative;justify-self:center;display:grid;place-items:center;width:28px;height:28px;min-width:28px;min-height:28px;padding:0;border:1px solid var(--line);border-radius:50%}
#main .settings .section-photo-row>[data-remove-photo]::after{content:"";position:absolute;inset:-8px}
#main .settings .section-photo-row>[data-remove-photo] svg{width:15px;height:15px}
/* «Повторити» stands next to «Скасувати»; in the folded rail right under it (user request 17.11.2026). */
#main .editor.settings-collapsed .redo-button{order:2}
/* The send text gets a smaller line about the account (user request 17.11.2026). */
.send-plaque-box{position:relative}
/* Under the plaque, centred, in the page text colour (user request 17.11.2026). */
.send-plaque-note{margin:16px 0 0;max-width:none;text-align:center;color:var(--ink);font:500 var(--text-small)/1.4 var(--font-text);letter-spacing:0}
.brief-final .intake-send .send-plaque-box>.send-plaque-note{width:100%;max-width:none;text-align:center;color:var(--white)}
[data-theme=light] .brief-final .intake-send .send-plaque-box>.send-plaque-note{color:var(--plaque-ink)}
.brief-final .intake-send>.intake-missing{margin-bottom:var(--space-4);text-align:center}
.send-plaque-link{color:inherit;font-weight:700;text-decoration:underline;text-underline-offset:3px;pointer-events:auto}
.send-plaque-link:hover{text-decoration-thickness:2px}
.send-plaque-link:focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:4px}
/* The left panel is a card like the preview windows (user request 17.11.2026): the same 24 px side and 22 px top and bottom
   margins and rounded corners. The card runs the whole height of the previews; the panel inside it stays pinned while the
   page scrolls. The card is the editor's ::before in the first grid column, so the panel's markup is unchanged. */
@media(min-width:700px){
#main .editor{--panel-card:#050910;grid-template-columns:374px minmax(0,1fr)}
:root[data-theme=light] #main .editor{--panel-card:#f4f3ee}
#main .editor::before{content:"";grid-column:1;grid-row:1;align-self:stretch;margin:var(--space-5) 0 var(--space-5) 24px;border:1px solid var(--line);border-radius:var(--field-radius);background:var(--panel-card)}
#main .editor>.settings{grid-column:1;grid-row:1;margin:var(--space-5) 1px var(--space-5) var(--space-5);border:0;border-radius:var(--field-radius);background:transparent;max-height:calc(100dvh - var(--sticky-top,0px) - var(--draft-gap,20px) - var(--draft-head,0px) - 23px)}
#main .editor>.preview-workspace{grid-column:2;grid-row:1}
#main .editor .settings{border-end-start-radius:var(--field-radius)}
#main .settings-head{border-radius:var(--field-radius) var(--field-radius) 0 0}
#main .editor.settings-collapsed{grid-template-columns:92px minmax(0,1fr)}
#main .editor.settings-collapsed>.settings{max-height:none}
#main .editor.settings-collapsed .settings-head{border-radius:0}}
@media(min-width:700px) and (max-width:1199px){#main .editor{grid-template-columns:344px minmax(0,1fr)}}
@media(min-width:1800px){#main .editor{grid-template-columns:384px minmax(0,1fr)}}
/* Delete buttons of the panel: round, red icon on a red-tinted plate on hover, like the project card's (user request 17.11.2026). */
#main .settings :is(.remove-section,[data-remove-photo],[data-logo-action=remove]){border-radius:50%;transition:background-color .15s,color .15s}
#main .settings :is(.remove-section,[data-remove-photo],[data-logo-action=remove]):is(:hover,:focus-visible):not(:disabled){background:color-mix(in srgb,var(--danger) 18%,transparent);border-color:var(--danger);color:var(--danger);filter:none}
@media(prefers-reduced-motion:reduce){#main .settings :is(.remove-section,[data-remove-photo],[data-logo-action=remove]){transition:none}}
/* The folded rail top to bottom (user request 17.11.2026): unfold, a line, the three views, a line, undo and redo, a line,
   then the page map. The header and the footer of the map are violet bars with a white dot for the logo and white dashes
   for the menu. */
@media(min-width:700px){
#main .editor.settings-collapsed .head-actions{display:contents}
#main .editor.settings-collapsed .settings-toggle{order:1}
#main .editor.settings-collapsed .head-sep{order:2}
#main .editor.settings-collapsed .preview-devices{order:3;padding-bottom:var(--space-3);border-bottom:1px solid var(--line)}
#main .editor.settings-collapsed .undo-button{order:4}
#main .editor.settings-collapsed .redo-button{order:5}
#main .editor.settings-collapsed .panel-map{order:6}
.map-item .map-bar{--mark:#fff;width:40px;height:12px;border:0;border-radius:4px;opacity:1;background:
  radial-gradient(circle at 7px 50%,var(--mark) 0 2.2px,transparent 2.7px),
  linear-gradient(var(--mark),var(--mark)) 15px 50%/5px 1.6px no-repeat,
  linear-gradient(var(--mark),var(--mark)) 22px 50%/5px 1.6px no-repeat,
  linear-gradient(var(--mark),var(--mark)) 29px 50%/5px 1.6px no-repeat,
  var(--highlight)}
:root[data-theme=light] .map-item .map-bar{background-color:var(--highlight-deep)}
.map-item:is(:hover,:focus-visible) .map-bar{filter:brightness(1.12)}
.map-item.is-off .map-bar,.map-item.is-off:is(:hover,:focus-visible) .map-bar,:root[data-theme=light] .map-item.is-off .map-bar{--mark:var(--muted);background-color:transparent;outline:1.5px dashed var(--muted);outline-offset:-1.5px;filter:none}}
/* «і» by every function and its explanation (user request 17.11.2026). */
.option-choice .feature-info{flex:none;display:grid;place-items:center;width:32px;height:32px;min-width:32px;min-height:32px;margin:-6px 0 -6px 2px;padding:0;border:0;border-radius:50%;background:none;box-shadow:none;color:var(--muted);cursor:pointer;position:relative}
.option-choice .feature-info::after{content:"";position:absolute;inset:-6px}
.option-choice .feature-info svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.option-choice .feature-info:is(:hover,:focus-visible,[aria-expanded=true]){color:var(--highlight);background:color-mix(in srgb,var(--highlight) 14%,transparent);filter:none}
:root[data-theme=light] .option-choice .feature-info:is(:hover,:focus-visible,[aria-expanded=true]){color:var(--highlight-deep)}
.option-choice .feature-info:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.feature-info-pop{position:absolute;z-index:60;padding:var(--space-4) 16px;border:1px solid var(--line);border-radius:var(--field-radius);background:var(--paper);color:var(--ink);box-shadow:0 16px 40px var(--shade-35);font-size:var(--text-small);line-height:1.5;animation:feature-info-in .15s ease-out}
.feature-info-pop strong{display:block;margin-bottom:4px;font-size:var(--text-small)}
.feature-info-pop p{margin:0;color:var(--muted)}
@keyframes feature-info-in{from{opacity:0;transform:translateY(4px)}}
@media(prefers-reduced-motion:reduce){.feature-info-pop{animation:none}}
/* «Стиль на основі референсу»: the big button in the middle, the hint under it in smaller type, centred (user request 17.11.2026). */
.design-style .reference-pick{justify-items:center;text-align:center;gap:var(--space-3);margin:var(--space-4) 0 16px}
.design-style .reference-pick button{min-width:min(320px,100%);min-height:52px;font-size:var(--text-body)}
.design-style .reference-pick .reference-purpose{max-width:46ch;font-size:var(--text-small)}
/* The functions stand one under another in a single column at every width (user request 17.11.2026). */
.feature-picker .option-choice>span{overflow-wrap:normal}
.feature-picker .section-group .option-list{grid-template-columns:minmax(0,1fr)}
/* «і» of the functions stand at the right edge of their column, one under another (user request 17.11.2026). */
.feature-picker .option-choice .feature-info{margin-left:auto}
/* «Додати логотип» with its formats centred under it (user request 17.11.2026). */
#brief-intake .brand-logo-actions{align-items:flex-start}
#brief-intake .brand-logo-actions>.logo-add{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;align-items:center}
#brief-intake .brand-logo-actions>.logo-add>button{width:100%;white-space:normal;text-align:center;justify-content:center;padding-inline:12px;line-height:1.2}
#brief-intake .brand-logo-actions>.logo-add>.file-hint{margin-top:var(--space-2);text-align:center}
@media(max-width:420px){#brief-intake .brand-logo-actions>.logo-add>button{font-size:var(--text-small);padding-inline:var(--space-3)}}
/* A saved logo brief: «Замовити розробку логотипа» turns violet (user request 17.11.2026). */
/* «Замовити розробку логотипа» with the attached note under it, as «Додати логотип» with its formats (user request 17.11.2026). */
#brief-intake .brand-logo-actions>.logo-need{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;align-items:center}
#brief-intake .brand-logo-actions>.logo-need>button{width:100%;white-space:normal;text-align:center;justify-content:center;padding-inline:12px;line-height:1.2;margin:0}
#brief-intake .brand-logo-actions>.logo-need>button{position:relative;z-index:1}
/* The flag: tucked under the button, slightly narrower, the note left-aligned with the trash opposite (user request 17.11.2026). */
/* The flag stays under the straight part of the pill button, clear of its rounded ends (user request 17.11.2026). */
#brief-intake .brand-logo-actions>.logo-need>.logo-brief-attached{position:relative;z-index:0;box-sizing:border-box;display:flex;align-items:center;gap:var(--space-2);width:calc(100% - var(--need-h,56px));margin:-22px 0 0;padding:var(--space-6) 4px var(--space-2) 12px;border:1px solid var(--highlight);border-top:0;border-radius:0 0 var(--card-radius) var(--card-radius);background:var(--selected);color:var(--ink)}
#brief-intake .logo-need>.logo-brief-attached>p{flex:1 1 auto;min-width:0;margin:0;font-size:var(--text-eyebrow);line-height:1.4;text-align:left;white-space:pre-line}
#brief-intake .logo-need .logo-brief-remove{position:relative;flex:none;display:grid;place-items:center;box-sizing:border-box;width:32px;height:32px;min-width:32px;min-height:32px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--ink);transition:background-color .15s,color .15s}
#brief-intake .logo-need .logo-brief-remove::after{content:"";position:absolute;inset:-6px}
#brief-intake .logo-need .logo-brief-remove svg{width:16px;height:16px}
#brief-intake .logo-need .logo-brief-remove:is(:hover,:focus-visible){background:color-mix(in srgb,var(--danger) 18%,transparent);color:var(--danger)}
/* After saving it slides out from under the button. */
#brief-intake .logo-need>.logo-brief-attached.is-arriving{animation:logo-flag-out .6s cubic-bezier(.2,.8,.2,1) both}
@keyframes logo-flag-out{from{transform:translateY(-55%);opacity:0}45%{opacity:1}to{transform:none;opacity:1}}
@media(prefers-reduced-motion:reduce){#brief-intake .logo-need>.logo-brief-attached.is-arriving{animation:none}}
@media(max-width:480px){#brief-intake .brand-logo-actions>.logo-need>.logo-brief-attached{gap:4px;padding:var(--space-6) 2px var(--space-2) var(--space-3)}#brief-intake .logo-need .logo-brief-remove{width:28px;height:28px;min-width:28px;min-height:28px}#brief-intake .logo-need .logo-brief-remove::after{inset:-8px}}
@media(max-width:420px){#brief-intake .brand-logo-actions>.logo-need>button{font-size:var(--text-small);padding-inline:var(--space-3)}}
#brief-intake .brand-logo-actions .logo-brief-link.is-filled{background:var(--highlight);border-color:var(--highlight);color:var(--navy-ink)}
#brief-intake .brand-logo-actions .logo-brief-link.is-filled:is(:hover,:focus-visible){background:var(--highlight-soft,var(--highlight));border-color:var(--highlight);color:var(--navy-ink);filter:none}
:root[data-theme=light] #brief-intake .brand-logo-actions .logo-brief-link.is-filled{background:var(--highlight-deep);border-color:var(--highlight-deep);color:var(--white)}
/* Logo brief morph (user request 17.11.2026): the button grows into the dialog and shrinks back; the button hides while the dialog stands in for it. */
html:has(#logo-brief-dialog[open]) #brief-need-logo{visibility:hidden}
.logo-brief-ghost{position:absolute;left:0;top:0;z-index:2;display:grid;align-items:center;white-space:nowrap;transform-origin:0 0;pointer-events:none}.logo-brief-ghost>span{grid-area:1/1}
/* Several site languages at once (user request 18.11.2026): a pressed choice is marked like a ticked option. */
.language-choice[aria-pressed=true],.language-choice[aria-pressed=true]:hover{border-color:var(--highlight);background:var(--highlight);color:var(--highlight-ink)}
.language-pick-hint{margin:4px 0 0;color:var(--muted);font-size:.875rem}
/* Section lists: one column with an «і» at the right edge, like the functions (user request 18.11.2026). */
.section-picker .option-choice>span{overflow-wrap:normal}
.section-picker .section-group .option-list{grid-template-columns:minmax(0,1fr)}
.section-picker .option-choice .feature-info{margin-left:auto}
/* «Власний розділ»: the names added, then the field and «Додати» (user request 18.11.2026). */
.custom-sections{list-style:none;margin:0 0 8px;padding:0;display:grid;gap:4px}
.custom-sections li{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 4px 0 var(--space-4);border:1px solid var(--line);border-radius:var(--control-radius);overflow-wrap:anywhere}
.custom-sections li>span{flex:1;min-width:0}
.custom-sections .custom-remove{flex:none;width:44px;height:44px;min-height:44px;padding:0;border:0;background:none;box-shadow:none;color:var(--muted);font-size:var(--text-lead)}
.custom-sections .custom-remove:is(:hover,:focus-visible){color:var(--ink)}
.custom-add{display:flex;gap:8px;margin-bottom:var(--space-3)}
.custom-add input{flex:1;min-width:0;min-height:44px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font:inherit;padding:var(--space-2) 12px}
.custom-add button{flex:none;min-height:44px}
/* The language total left of the dialog buttons (user request 18.11.2026). */
.language-actions{flex-wrap:wrap;align-items:center}
.language-summary{display:flex;align-items:baseline;gap:var(--space-3);margin:0 auto 0 0;color:var(--muted);font-size:var(--text-small)}
.language-summary strong{color:var(--ink);font-size:var(--text-body)}
/* How the first screen looks, in the prototype panel of that section (user request 18.11.2026). */
.hero-style-controls{border:0;padding:0;margin:0 0 12px;min-width:0}
.hero-style-controls legend{font-weight:600;font-size:var(--text-small);padding:0;margin-bottom:4px}
/* Several colours at once: the "+" on the picked colour, the list under it (user request 18.11.2026). */
.colour-picker-add{display:grid;place-items:center;padding:0;min-height:44px;font-size:var(--text-h3);font-weight:600;line-height:1;cursor:pointer;box-shadow:none}
.colour-picker-add:hover{filter:brightness(1.08)}
.colour-picker-add:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.colour-picker-pending{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin:var(--space-3) 0 0;padding:0}
.colour-picker-pending[hidden]{display:none}
.colour-picker-pending-item{position:relative;width:32px;height:32px;border-radius:50%;border:1px solid var(--line)}
.colour-picker-pending-remove{position:absolute;top:-8px;right:-8px;width:22px;height:22px;min-height:22px;padding:0;border-radius:50%;border:1px solid var(--line);background:var(--paper);color:var(--ink);font-size:var(--text-small);line-height:1;box-shadow:none}
.colour-picker-pending-remove::after{content:"";position:absolute;inset:-6px}
/* Link to the client's files and the «Прототип» button in the content card (user request 18.11.2026). */
.content-link{margin:-2px 0 var(--space-4)}
.content-link input{width:100%;min-height:44px}
/* Full card width and filled, so it is seen at once (user request 18.11.2026). */
.prototype-open-row{display:grid;gap:var(--space-2);margin:var(--space-2) 0 var(--space-2)}
.prototype-open{display:flex;justify-content:center;align-items:center;gap:var(--space-3);width:100%;min-height:52px;padding:var(--space-3) var(--space-panel);font-weight:600;font-size:var(--text-body)}
.prototype-open:is(:hover,:focus-visible):not(:disabled){filter:brightness(1.08)}
.prototype-open:disabled{opacity:.55;cursor:not-allowed}
.prototype-open-hint{color:var(--muted);font-size:var(--text-small);line-height:1.5}
/* The price per section opposite each page title and the landing list head (user request 18.11.2026). */
.page-block summary .page-price,.landing-sections-head .page-price{margin-inline-start:auto;color:var(--ink);font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
.landing-sections-head{display:flex;align-items:baseline;gap:var(--space-3);margin:0 0 8px;font-weight:600}
/* The page plate of the prototype panel (user request 18.11.2026): across the panel, violet frame, drag dots, «Сторінка: …»
 * in a larger type, the section count and the fold arrow inside. The page shown in the previews is filled. */
.settings .prototype-page-head{gap:4px;padding:0 4px 0 0;border:1px solid var(--selection-line);border-radius:var(--field-radius);background:var(--selected)}
.settings .prototype-page.active .prototype-page-head{background:var(--section-fill,var(--selected));box-shadow:inset 0 0 0 1px var(--selection-line)}
.settings .prototype-page-head .page-drag,.settings .prototype-page-head .page-drag-space{flex:0 0 32px;width:32px;min-height:44px;display:grid;place-items:center;padding:0;border:0;background:none;box-shadow:none}
.settings .prototype-page-head .page-drag{touch-action:none;cursor:grab}
.settings .prototype-page-head .page-drag[aria-pressed=true]{cursor:grabbing}
.settings .prototype-page-name,.settings .prototype-page-name[aria-pressed=true]{padding:var(--space-2) 4px;border:0;background:none;font-size:var(--text-body);color:var(--ink);gap:var(--space-2)}
.settings .prototype-page-name .page-prefix{font-weight:500;color:var(--muted)}
.settings .prototype-page-head .page-count{color:var(--muted);flex:none;font-size:var(--text-small)}
.settings .page-fold{flex:0 0 40px;width:40px;min-height:44px;padding:0;border:0;background:none;box-shadow:none;color:var(--ink)}
.settings .page-fold[aria-expanded=true] .chevron{transform:rotate(90deg)}
.settings .prototype-page.is-folded{padding-bottom:4px}
.settings .prototype-page.dragging{opacity:.6}
.settings .prototype-pages .prototype-page.drop-before{box-shadow:0 -3px 0 var(--selection-line)}
.settings .prototype-pages .prototype-page.drop-after{box-shadow:0 3px 0 var(--selection-line)}
.settings .prototype-page-name,.settings .prototype-page-name[aria-pressed=true]{display:flex;align-items:baseline;flex-wrap:nowrap;white-space:nowrap;overflow:hidden}
.settings .prototype-page-name .page-prefix{flex:none}
.settings .prototype-page-name .page-title{min-width:0;overflow:hidden;text-overflow:ellipsis;font-weight:700}
/* Room for «Сторінка: Головна» in the narrow panel: the prefix smaller, the side controls tighter. */
.settings .prototype-page-head .page-drag,.settings .prototype-page-head .page-drag-space{flex-basis:26px;width:26px}
.settings .page-fold{flex-basis:32px;width:32px}
.settings .prototype-page-name .page-prefix{font-size:var(--text-small)}
.settings .prototype-page-head .page-count{font-size:var(--text-eyebrow)}
/* Page plate, second pass (user request 18.11.2026): the name centred with the rest, no hover fill on the plate icons,
 * «Замінити» and the trash before the count; the section arrow on the right after the trash. */
.settings .prototype-page-name,.settings .prototype-page-name[aria-pressed=true]{align-items:center}
.settings .prototype-page-head :is(.page-fold,.page-drag,.prototype-page-name):is(:hover,:focus-visible){background:none;box-shadow:none;filter:none}
#main .settings .prototype-page-head>:is(.replace-section,.remove-section){position:relative;flex:0 0 28px;width:28px;height:28px;min-height:28px;margin:0 2px;padding:0;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:none}
#main .settings .prototype-page-head>:is(.replace-section,.remove-section)::before{content:"";position:absolute;inset:-8px}
#main .settings .prototype-page-head>:is(.replace-section,.remove-section) svg{width:15px;height:15px}
#main .settings .prototype-page-head>:is(.replace-section,.remove-section):is(:hover,:focus-visible){border-color:var(--selection-line);color:var(--selection-line)}
#main .settings .prototype-page-head .page-count{margin-left:4px}
#main .settings .outline-heading>.section-fold{flex:0 0 32px;width:32px;min-height:44px;padding:0;border:0;background:none;box-shadow:none;color:var(--ink);display:grid;place-items:center}
#main .settings .outline-heading>.section-fold:hover{background:none;filter:none}
#main .settings .outline-heading>.section-fold[aria-expanded=true] .chevron{transform:rotate(90deg)}
/* Devices, undo and redo in the «Прототип сайту» head by «Згорнути», split by thin lines (user request 19.11.2026). */
.draft-tools{display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap}
.draft-tools .head-sep{flex:none;width:1px;height:22px;background:var(--line);margin:0 4px}
#main .draft-tools .preview-device,#main .draft-tools .undo-button{width:40px;height:44px;min-height:44px;padding:0;display:grid;place-items:center;border:0;border-radius:var(--field-radius);background:none;box-shadow:none;color:var(--muted);filter:none}
#main .draft-tools .preview-device svg,#main .draft-tools .undo-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}
#main .draft-tools .preview-device[aria-pressed=true]{color:var(--highlight)}
:root[data-theme=light] #main .draft-tools .preview-device[aria-pressed=true]{color:var(--highlight-deep)}
#main .draft-tools :is(.preview-device,.undo-button):is(:hover,:focus-visible):not(:disabled){background:none;border:0;color:var(--highlight);filter:none}
:root[data-theme=light] #main .draft-tools :is(.preview-device,.undo-button):is(:hover,:focus-visible):not(:disabled){color:var(--highlight-deep)}
#main .draft-tools .undo-button:disabled{opacity:.35;cursor:default}
.draft-tools .preview-devices{display:flex;gap:0}
/* The panel head keeps only the fold button and, folded, the mini map. */
@media(min-width:700px){#main .settings-head.is-bare{justify-content:flex-end}}
@media(max-width:699px){.draft-tools .preview-devices,.draft-tools .head-sep:first-of-type{display:none}}
/* Window close button: a soft tile without a border, a large drawn cross (user choice 19.11.2026, variant D). */
:is(dialog,#main) .dialog-close.icon-button{flex:none;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;display:grid;place-items:center;border:1.5px solid var(--line);border-radius:var(--field-radius);background:transparent;box-shadow:none;color:var(--ink);filter:none}
:is(dialog,#main) .dialog-close.icon-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
:is(dialog,#main) .dialog-close.icon-button:is(:hover,:focus-visible){border:1.5px solid var(--highlight);background:transparent;color:var(--highlight);filter:none}
:root[data-theme=light] :is(dialog,#main) .dialog-close.icon-button:is(:hover,:focus-visible){border-color:var(--highlight-deep);color:var(--highlight-deep)}
/* «Додати логотип» above the header: the «Лого» plate, or the client's logo in its place (user request 19.11.2026). */
#main .settings>.logo-divider{margin:0 0 8px}
#main .settings>.header-divider{margin:26px 0 var(--space-2)}
.logo-plate-row{display:flex;align-items:center;gap:8px}
#main .settings .logo-plate{flex:1;min-width:0;min-height:56px;padding:8px 12px;display:grid;place-items:center;border:1px solid var(--line);border-radius:var(--field-radius);background:var(--paper);box-shadow:none;color:var(--ink);filter:none}
#main .settings .logo-plate:is(:hover,:focus-visible){border-color:var(--selection-line);background:var(--paper);filter:none}
.logo-plate-text{font-weight:800;font-size:var(--text-body);letter-spacing:.06em}
.logo-plate-image{display:block;max-width:100%;max-height:44px;object-fit:contain}
.settings .logo-plate-row+.panel-logo-hint{margin-top:var(--space-2);text-align:center}
/* Windows move by their head; the colour picker gets the close cross (user request 19.11.2026). */
.window-drag{cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.is-dragging .window-drag{cursor:grabbing}
.colour-picker-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);margin:-6px -6px var(--space-3) 0}
.colour-picker-head .colour-picker-title{margin:0}
.colour-picker .dialog-close.icon-button{flex:none;width:40px;height:40px;min-width:40px;min-height:40px;padding:0;display:grid;place-items:center;border:1.5px solid var(--line);border-radius:var(--field-radius);background:transparent;box-shadow:none;color:var(--ink);filter:none;position:relative}
.colour-picker .dialog-close.icon-button::before{content:"";position:absolute;inset:-2px}
.colour-picker .dialog-close.icon-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.colour-picker .dialog-close.icon-button:is(:hover,:focus-visible){border-color:var(--highlight);background:transparent;color:var(--highlight)}
:root[data-theme=light] .colour-picker .dialog-close.icon-button:is(:hover,:focus-visible){border-color:var(--highlight-deep);color:var(--highlight-deep)}
/* «Що робимо?»: one big word in capitals, a large checkbox in the card's top right corner (user request 19.11.2026). */
.direction-option{position:relative}
.direction-head .direction-name{font-size:var(--text-h3);font-weight:800;letter-spacing:.05em;text-transform:uppercase;line-height:1.15;hyphens:none;overflow-wrap:normal}
.direction-head input{position:absolute;top:14px;right:14px;width:30px;height:30px;min-width:30px;min-height:30px;max-height:30px;border-width:1.5px;border-radius:var(--chip-radius)}
.direction-head input:checked::after{width:14px;height:7px;border-width:0 0 3px 3px;transform:translateY(-2px) rotate(-45deg)}
.direction-option .direction-head{padding-inline:var(--space-6)}
@media(max-width:1100px){.direction-head .direction-name{font-size:var(--text-lead)}}
@media(max-width:600px){.direction-head .direction-name{font-size:var(--text-lead)}.direction-option{padding-inline-end:var(--space-8)}.direction-option .direction-head{padding-inline:0}.direction-head input{top:50%;right:16px;margin-top:-15px}}
/* The colour picker dims the page like the other windows; gathered colours show in the row at once (user request 19.11.2026). */
.colour-picker::backdrop{background:var(--backdrop-74)}
.colour-dot.is-pending{outline:2px dashed var(--line);outline-offset:3px}
/* «Чернетка прототипу сайту» under all the cards, across the three columns, larger (user request 19.11.2026). */
.draft-launch{margin-top:20px;justify-items:stretch}
.draft-launch .prototype-open{min-height:76px;gap:16px;font-size:var(--text-lead);font-weight:700;border-radius:var(--card-radius)}
.draft-launch .prototype-flag-icon svg{width:34px;height:34px}
.draft-launch .prototype-open-hint{text-align:center}
.prototype-morph{position:absolute;z-index:40;pointer-events:none;background:var(--highlight-gradient,var(--highlight));box-shadow:0 18px 60px var(--shade-40)}
@media(max-width:600px){.draft-launch .prototype-open{min-height:60px;font-size:var(--text-body)}.draft-launch .prototype-flag-icon svg{width:28px;height:28px}}
/* The two logo buttons share the width; the content card gets the same pair (user request 19.11.2026). */
#brief-intake .brand-logo-actions>:is(.logo-add,.logo-need,.brandbook-add,.content-choice){flex:1 1 0;min-width:0}
#brief-intake .content-choice{display:flex;flex-direction:column;align-items:center}
#brief-intake .content-choice-button{width:100%;min-height:52px;white-space:normal;text-align:center;justify-content:center;padding-inline:12px;line-height:1.2}
#brief-intake .content-choice>.file-hint{margin-top:var(--space-2);text-align:center}
#brief-intake .content-choice-button[aria-pressed=true]{border-color:transparent;background:var(--highlight-gradient,var(--highlight));background-origin:border-box;color:var(--highlight-ink,var(--navy-ink))}
#brief-intake .content-existing{margin-top:var(--space-3)}#brief-intake .content-existing .content-choice-button{min-height:44px}
#brief-intake .content-actions+.content-link,#brief-intake .content-existing+.content-link{margin-top:var(--space-4)}
/* The «Лого» plate: the word on the left, a large plus on the right; formats and size on one line (user request 19.11.2026). */
.logo-plate-empty{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%}
#main .settings .logo-plate:not(.has-logo){display:flex;padding:8px var(--space-4) 8px var(--space-panel)}
.logo-plate-plus{display:grid;place-items:center;flex:none;color:var(--highlight)}
:root[data-theme=light] .logo-plate-plus{color:var(--highlight-deep)}
.logo-plate-plus svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.settings .logo-plate-row+.panel-logo-hint{white-space:nowrap}
/* The close button stands as far from the window edges as the rest of its content (user request 19.11.2026). */
.logo-brief-top{padding:20px}
.colour-picker-head{margin:0 0 var(--space-3)}
/* «Чернетка прототипу сайту» in the style of the close button: an outline and text, violet on hover (user request 19.11.2026). */
#brief-intake .draft-launch .prototype-open{border:1.5px solid var(--line);background:transparent;color:var(--ink);box-shadow:none;filter:none}
#brief-intake .draft-launch .prototype-open:is(:hover,:focus-visible):not(:disabled){border-color:var(--highlight);background:transparent;color:var(--highlight);filter:none}
:root[data-theme=light] #brief-intake .draft-launch .prototype-open:is(:hover,:focus-visible):not(:disabled){border-color:var(--highlight-deep);color:var(--highlight-deep)}
.prototype-morph{background:var(--surface);border:1.5px solid var(--highlight)}
/* The box that travels between the launch button and the draft window, with the label on it (user request 19.11.2026). */
.prototype-morph{box-sizing:border-box;overflow:hidden;border:1.5px solid var(--line);background:var(--surface);background-image:var(--card-glass);box-shadow:none}
.prototype-morph-label{position:absolute;left:0;top:0;transform-origin:0 0;white-space:nowrap;line-height:1.2}
/* Windows get a head band like the cards: darker, with a line under it; it is the part the window is dragged by (user request 19.11.2026). */
#dialog:not(.gallery-dialog) .dialog-top{min-height:64px;margin:-24px -24px 20px;padding:var(--space-3) var(--space-3) var(--space-3) 24px;background:var(--card-head,var(--paper));border-bottom:1px solid var(--line)}
#dialog:not(.gallery-dialog) .dialog-top h2{margin:0}
.colour-picker-head{min-height:56px;margin:-16px -16px var(--space-4);padding:8px 8px 8px 16px;background:var(--card-head,var(--paper));border-bottom:1px solid var(--line)}
.logo-brief-top{min-height:64px;padding:var(--space-3) var(--space-3) var(--space-3) 20px;background:var(--card-head,var(--paper))}
/* The draft window closes with the cross of the other windows, 10 px from the head edges (user request 19.11.2026). */
.prototype-draft-head{padding-right:var(--space-3)}
/* The close cross has no outline at all; on hover only the cross turns violet (user request 19.11.2026). */
:is(dialog,#main) .dialog-close.icon-button,:is(dialog,#main) .dialog-close.icon-button:is(:hover,:focus-visible),:root[data-theme=light] :is(dialog,#main) .dialog-close.icon-button:is(:hover,:focus-visible),.colour-picker .dialog-close.icon-button,.colour-picker .dialog-close.icon-button:is(:hover,:focus-visible),:root[data-theme=light] .colour-picker .dialog-close.icon-button:is(:hover,:focus-visible){border-color:transparent}
/* The plus on the «Лого» plate is white like the other icons; on hover the word, the plus and the outline turn violet (user request 19.11.2026). */
.logo-plate-plus,:root[data-theme=light] .logo-plate-plus{color:inherit}
#main .settings .logo-plate:not(.has-logo):is(:hover,:focus-visible){border-color:var(--highlight);color:var(--highlight)}
:root[data-theme=light] #main .settings .logo-plate:not(.has-logo):is(:hover,:focus-visible){border-color:var(--highlight-deep);color:var(--highlight-deep)}
/* Design system, buttons (user decision 19.11.2026). Two kinds only.
   Plain: an outline, the dark fill, white text and icon, corners rounded by --button-radius (not a pill); on hover the outline, text and icon turn violet. The reference is the «Лого +» plate in the draft panel.
   Accent: the violet gradient with dark text, for the one most important action on a screen; the reference is «Надіслати бриф на розробку».
   A chosen plain button (aria-pressed) keeps the outline violet on the selection fill. */
:root{--button-radius:12px}
#brief-intake .brand-logo-actions :is(.logo-add>button,.logo-need>button:not(.is-filled),.brandbook-add>button,.content-choice-button),#brief-intake .content-existing .content-choice-button,.button-plain{border:1px solid var(--line);border-radius:var(--button-radius);background:var(--paper);background-image:none;color:var(--ink);box-shadow:none;filter:none}
#brief-intake .brand-logo-actions :is(.logo-add>button:is(:hover,:focus-visible):not(:disabled),.logo-need>button:not(.is-filled):is(:hover,:focus-visible):not(:disabled),.brandbook-add>button:is(:hover,:focus-visible):not(:disabled),.content-choice-button):is(:hover,:focus-visible):not(:disabled),#brief-intake .content-existing .content-choice-button:is(:hover,:focus-visible):not(:disabled),.button-plain:is(:hover,:focus-visible):not(:disabled){border-color:var(--highlight);background:var(--paper);color:var(--highlight);filter:none}
:root[data-theme=light] #brief-intake .brand-logo-actions :is(.logo-add>button:is(:hover,:root[data-theme=light] :focus-visible):not(:disabled),:root[data-theme=light] .logo-need>button:not(.is-filled):is(:hover,:root[data-theme=light] :focus-visible):not(:disabled),:root[data-theme=light] .brandbook-add>button:is(:hover,:root[data-theme=light] :focus-visible):not(:disabled),:root[data-theme=light] .content-choice-button):is(:hover,:root[data-theme=light] :focus-visible):not(:disabled),:root[data-theme=light] #brief-intake .content-existing .content-choice-button:is(:hover,:root[data-theme=light] :focus-visible):not(:disabled),:root[data-theme=light] .button-plain:is(:hover,:root[data-theme=light] :focus-visible):not(:disabled){border-color:var(--highlight-deep);color:var(--highlight-deep)}
#brief-intake .content-choice-button[aria-pressed=true],#brief-intake .content-choice-button[aria-pressed=true]:is(:hover,:focus-visible),.button-plain[aria-pressed=true]{border-color:var(--highlight);background:var(--selected);color:var(--ink)}
.button-accent{border-radius:var(--control-radius)}
#brief-intake .brand-logo-actions .logo-brief-link.is-filled{border-radius:var(--button-radius)}
#brief-intake .brand-logo-actions>.logo-need>.logo-brief-attached{width:calc(100% - 2*var(--button-radius))}
#main .settings .logo-plate{border-radius:var(--button-radius)}
/* The remaining pill buttons take the two kinds (user decision 19.11.2026): cancel, «Додати», the language options are plain;
   the confirming button of a window («Готово», «Застосувати», «Зберегти бриф…») is accent. */
:is(#brief-intake,dialog,.colour-picker) :is(button:not([class]),button.secondary,button.language-choice,button.colour-picker-cancel){border:1px solid var(--line);border-radius:var(--button-radius);background:var(--paper);background-image:none;color:var(--ink);box-shadow:none;filter:none}
:is(#brief-intake,dialog,.colour-picker) :is(button:not([class]),button.secondary,button.language-choice,button.colour-picker-cancel):is(:hover,:focus-visible):not(:disabled){border-color:var(--highlight);background:var(--paper);color:var(--highlight);filter:none}
:root[data-theme=light] :is(#brief-intake,dialog,.colour-picker) :is(button:not([class]),button.secondary,button.language-choice,button.colour-picker-cancel):is(:hover,:focus-visible):not(:disabled){border-color:var(--highlight-deep);background:var(--paper);color:var(--highlight-deep)}
:is(#brief-intake,dialog,.colour-picker) button.language-choice[aria-pressed=true],:is(#brief-intake,dialog,.colour-picker) button.language-choice[aria-pressed=true]:is(:hover,:focus-visible){border-color:var(--highlight);background:var(--selected);color:var(--ink)}
:is(#main,dialog,.colour-picker) button.primary{border-width:1px;border-radius:var(--button-radius)}
:is(#main,dialog,.colour-picker) button.primary:not(:disabled,[aria-disabled=true]):is(:hover,:focus-visible){filter:brightness(1.08)}
/* The project card head stays in place while the projects slide under it (user request 19.11.2026). */
.project-carousel-heads{position:relative;z-index:2;flex:none;display:grid;border-top-left-radius:inherit;border-top-right-radius:inherit}
#brief-login .project-carousel-heads>.guest-head{grid-area:1/1;min-width:0;margin-inline:0;align-self:stretch;border-top-left-radius:inherit;border-top-right-radius:inherit;visibility:hidden;opacity:0;transition:opacity .2s ease,visibility 0s .2s}
#brief-login .project-carousel-heads>.guest-head.is-current{visibility:visible;opacity:1;transition:opacity .2s ease}
#brief-login .project-carousel-heads>.guest-head .guest-project-name{flex:1 0 auto;display:grid;align-content:center}
.project-carousel-heads{background:var(--highlight-gradient)}
#brief-login .brief-project-carousel:has(>.project-carousel-heads) .active-project-card{padding-top:12px}
@media(prefers-reduced-motion:reduce){#brief-login .project-carousel-heads>.guest-head{transition:none}}
#brief-login .brief-project-carousel>.project-carousel-heads{align-self:stretch;width:100%;box-sizing:border-box}
/* The arrows sit in the head beside the project name; the body takes the freed width, 20 px from the card edges (user request 19.11.2026). */
#brief-login .brief-project-carousel.has-many>.project-carousel-arrow{z-index:3;top:4px;transform:none;color:var(--navy-ink)}
#brief-login .brief-project-carousel.has-many>.project-carousel-previous{left:6px}#brief-login .brief-project-carousel.has-many>.project-carousel-next{right:6px}
#brief-login .brief-project-carousel.has-many>.project-carousel-arrow:is(:hover,:focus-visible):not(:disabled){background:var(--navy-shade-12);border-radius:var(--field-radius);color:var(--navy-ink)}
#brief-login .brief-project-carousel.has-many>.project-carousel-arrow:disabled{opacity:.35}
#brief-login .brief-project-carousel.has-many .project-carousel-heads .guest-project-name{padding-inline:var(--space-7)}
#brief-login .brief-project-carousel.has-many .project-carousel-slide{--slide-pad:20px;padding-inline:20px}
/* Dark theme cards, variant E (user choice 19.11.2026): the body fades from the surface into a violet tint at the bottom; the head
   is translucent and blurred, and the body fill starts under it, so the page background shows through the head. */
:root:not([data-theme=light]){--card-glass:linear-gradient(to top,color-mix(in srgb,var(--surface) 86%,var(--highlight)),var(--surface) 65%);--card-head:rgb(9 15 27 / .55)}
:root:not([data-theme=light]) :is(.intake-fields>section,.brief-top-card,.prototype-draft-inner){--card-head-h:64px;background:var(--card-glass) 0 var(--card-head-h)/100% calc(100% - var(--card-head-h)) no-repeat}
:root:not([data-theme=light]) .logo-card{--card-head-h:56px;background:var(--card-glass) 0 var(--card-head-h)/100% calc(100% - var(--card-head-h)) no-repeat}
:root:not([data-theme=light]) :is(.intake-fields>section>h2:first-child,.brief-top-card>h2:first-child,.reference-head,.logo-card>h3:first-child,.prototype-draft-head){-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
:root:not([data-theme=light]) :is(#dialog:not(.gallery-dialog) .dialog-top,.colour-picker-head,.logo-brief-top){background:var(--paper)}
/* «Розкажіть трохи про себе» (user request 19.11.2026): an empty field's label is white, not blue (a filled one still turns violet);
   the text fields share the comment field's look — 12 px corners, resizable in height — and open two lines high. */
#brief-intake .brief-about .brief-contact-label{color:var(--ink)}
#brief-intake .brief-about .brief-contact-label:has(+ :is(input,textarea)[placeholder]:not(:placeholder-shown)),#brief-intake .brief-about .brief-contact-label:has(+ .choice-field input[placeholder]:not(:placeholder-shown)){color:var(--selection-line)}
#brief-intake .brief-about :is(#brief-contact,#brief-links,#brief-note){height:64px;min-height:64px;max-height:64px;field-sizing:fixed;resize:none;overflow-y:auto;border-radius:var(--field-radius);padding:var(--space-3) 12px;line-height:1.45}
#brief-intake .brief-about :is(#brief-contact,#brief-links,#brief-note)::placeholder{white-space:normal;overflow:visible;text-overflow:clip}
#brief-intake .brief-about #brief-industry{border-radius:var(--field-radius)}
/* Legacy corner resize arc removed across all textareas (user decision 22.11.2026). */
#brief-intake textarea,
#brief-intake textarea:is(:hover,:focus),
:root[data-theme=light] #brief-intake textarea,
:root[data-theme=light] #brief-intake textarea:is(:hover,:focus),
.logo-brief-dialog textarea,
.logo-brief-dialog textarea:is(:hover,:focus){resize:none;overflow-y:auto;background:var(--paper);background-image:none}
#brief-intake textarea::-webkit-resizer,
:root[data-theme=light] #brief-intake textarea::-webkit-resizer,
.logo-brief-dialog textarea::-webkit-resizer{display:none;background:none}
#brief-intake textarea::-webkit-scrollbar-corner,
.logo-brief-dialog textarea::-webkit-scrollbar-corner{background:transparent}
/* The draft's control panel keeps a 14 px scrollbar gutter on the right; the right padding gives those 14 px back so the content
   sits centred, 20 px from both edges, with or without the scrollbar. The thumb is fainter here (user request 19.11.2026). */
@media(min-width:700px){#main .editor:not(.settings-collapsed)>.settings{padding-inline-end:var(--space-2)}}
#main .settings::-webkit-scrollbar-thumb{background-color:color-mix(in srgb,var(--line) 28%,transparent)}
#main .settings::-webkit-scrollbar-thumb:hover{background-color:var(--accent)}
/* The website brief (user decision 19.11.2026): the site icon right of the title and intro; «Що робимо?» has two columns. */
#brief-intake .intake-title{display:flex;align-items:center;gap:24px}
#brief-intake .intake-title-text{flex:1;min-width:0}
#brief-intake .intake-title-icon{flex:0 0 auto;display:grid;place-items:center;color:var(--ink)}
#brief-intake .intake-title-icon svg{width:96px;height:96px}
#brief-intake .intake-title-icon .morph-icon{--mi-frame:transparent}
#brief-intake .intake-title-icon .detail{stroke:var(--highlight)}
#brief-intake .intake-title:hover .intake-title-icon{color:var(--ink)}
.direction-options.is-two{grid-template-columns:repeat(2,minmax(0,1fr))}
.direction-options.is-two .direction-option:nth-child(2){background-position:100% 0}
.direction-options.is-two .direction-note{margin-top:auto}
.direction-options.is-two .option-price{color:inherit;opacity:.75}
@media(max-width:600px){.direction-options.is-two{grid-template-columns:minmax(0,1fr)}.direction-options.is-two .direction-option{display:flex;flex-direction:column;align-items:stretch}#brief-intake .intake-title-icon svg{width:64px;height:64px}}
/* «Що робимо?» (user request 19.11.2026): checkbox left of the name, the note right under it, the block left-aligned and centred in
   its column; the chosen kind's formats (2 × 2) or the current-site link open in the card under both columns. */
.brief-kinds .direction-option{justify-content:center;gap:var(--space-3)}
.brief-kinds .direction-text{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-2);max-width:100%}
.brief-kinds .direction-head{justify-content:flex-start;text-align:start}
.brief-kinds .direction-note{margin:0;max-width:34ch;text-align:start;text-wrap:balance}
.brief-kinds .direction-options.is-two .direction-note{margin-top:0}
.brief-kinds .direction-options:has(.direction-extra) .direction-option{border-radius:0}
.brief-kinds .direction-extra{grid-column:1/-1;padding:16px 20px 20px;border-top:1px solid var(--line)}
.brief-kinds .direction-extra .option-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 20px}
.brief-kinds .direction-extra .project-kind-option{margin:0;padding:0;border:0}
@media(max-width:600px){.brief-kinds .direction-extra .option-list{grid-template-columns:minmax(0,1fr)}}
/* The site icon stands left of the title, a small gap apart (user request 19.11.2026). */
#brief-intake .intake-title{gap:16px}
/* «Що робимо?» checkbox in the flow, left of the name, not in the corner (user request 19.11.2026). */
.brief-kinds .direction-head{gap:12px;padding-inline:0}
.brief-kinds .direction-head input{position:static;width:24px;height:24px;min-width:24px;min-height:24px;max-height:24px;border-radius:var(--chip-radius)}
@media(max-width:600px){.brief-kinds .direction-option{padding-inline-end:20px}}
/* Each chosen kind shows the whole brand gradient, violet to light violet, the same on both cards (user request 19.11.2026). */
.brief-kinds .direction-option,.brief-kinds .direction-option:nth-child(2){background-size:100% 100%;background-position:0 0}
/* The chosen kind's formats or current-site link open inside its own column (user request 19.11.2026), on the gradient. */
.brief-kinds .direction-option{justify-content:flex-start;align-items:center}
.brief-kinds .direction-text{cursor:pointer}
.brief-kinds .direction-details{align-self:stretch;margin-top:var(--space-2);text-align:start;color:var(--highlight-ink)}
.brief-kinds .direction-details .option-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:2px 16px}
.brief-kinds .direction-details .option-choice{color:inherit}
.brief-kinds .direction-details .option-choice input{border-color:currentColor}
.brief-kinds .direction-details .project-kind-option{margin:0;padding:0;border:0}
.brief-kinds .direction-details label{color:inherit}
.brief-kinds .direction-option .option-price{margin-top:auto;align-self:flex-end}
/* Format checkboxes on the gradient: an empty dark outline, a dark box with a white tick when chosen. */
.brief-kinds .direction-details .option-choice input{background:transparent;border:1.5px solid var(--navy-ink)}
.brief-kinds .direction-details .option-choice input:checked{background:var(--navy-ink);border-color:var(--navy-ink)}
.brief-kinds .direction-details .option-choice input[type=checkbox]:checked::after{border-color:var(--white)}
/* «Що робимо?» (user request 19.11.2026): name and note at the column's left, the price opposite the name; the formats one per line
   with an «i», centred between the note and the bottom of the card. */
.brief-kinds .direction-option{align-items:stretch}
.brief-kinds .direction-text{align-self:stretch;max-width:none}
.brief-kinds .direction-head{width:100%}
.brief-kinds .direction-head .option-price{margin-inline-start:auto;font-size:var(--text-small);font-weight:600;letter-spacing:0;text-transform:none;opacity:.8}
.brief-kinds .direction-details{margin-block:auto}
.brief-kinds .direction-details .option-list{grid-template-columns:minmax(0,1fr);gap:2px}
.brief-kinds .direction-details .option-choice>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brief-kinds .direction-details .feature-info{color:inherit}
.brief-kinds .direction-details .option-choice{display:flex;align-items:center}
.brief-kinds .direction-details .option-choice>span{flex:1;min-width:0}
.brief-kinds .direction-details .feature-info{margin-inline-start:auto}
.brief-kinds .direction-details{padding-top:var(--space-3)}
/* «Що робимо?» as tall as its content; «Формат сайту» under it, the same width, four columns (user request 19.11.2026). */
.brief-kinds-stack{grid-column:1/span 2;grid-row:2;display:flex;flex-direction:column;gap:20px;min-width:0}
.brief-kinds-stack>.brief-directions{grid-column:auto;grid-row:auto;flex:none}
.brief-kinds .direction-option{min-height:0;padding-block:16px}
/* The note under «Редизайн» wraps in the narrow left column instead of being cut (translation pass 19.11.2026). */
.brief-kinds:not(.brief-formats) .direction-option[data-kind=redesign] .direction-note{white-space:normal;text-wrap:balance}
.direction-options.is-four{grid-template-columns:repeat(4,minmax(0,1fr))}
.brief-formats .direction-option{position:relative;padding:var(--space-4) var(--space-4) 16px}
.brief-formats .direction-head .direction-name{font-size:var(--text-body);font-weight:700;letter-spacing:0;text-transform:none}
.brief-formats .direction-head input{width:20px;height:20px;min-width:20px;min-height:20px;max-height:20px;border-radius:var(--chip-radius)}
.brief-formats .direction-head input:checked::after{width:10px;height:5px;border-width:0 0 2px 2px;transform:translateY(-1px) rotate(-45deg)}
.brief-formats .direction-head{padding-inline-end:var(--space-6)}
.brief-formats .direction-note{max-width:none;text-wrap:pretty}
.brief-formats .direction-info{position:absolute;top:10px;right:10px}
.brief-formats .direction-option:has(input:checked) .direction-info{color:var(--highlight-ink)}
@media(max-width:1100px){.brief-kinds-stack{grid-column:1;grid-row:2}.direction-options.is-four{grid-template-columns:repeat(2,minmax(0,1fr))}
  .direction-options.is-four .direction-option:nth-child(n+3){border-top:1px solid var(--line)}.direction-options.is-four .direction-option:nth-child(3){border-inline-start:0}}
@media(max-width:600px){.brief-kinds-stack{grid-column:1;grid-row:auto}.direction-options.is-four{grid-template-columns:minmax(0,1fr)}
  .brief-kinds:not(.brief-formats) .direction-option[data-kind=redesign] .direction-note{white-space:normal}}
/* The format «i» looks like the features one: a bare 18 px icon in a 32 px round target. */
.brief-formats .direction-info{display:grid;place-items:center;width:32px;height:32px;min-width:32px;min-height:32px;padding:0;border:0;border-radius:50%;background:none;box-shadow:none;color:var(--muted);cursor:pointer}
.brief-formats .direction-info svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.brief-formats .direction-info:is(:hover,:focus-visible,[aria-expanded=true]){color:var(--highlight);background:color-mix(in srgb,var(--highlight) 14%,transparent)}
.brief-formats .direction-option:has(input:checked) .direction-info{color:var(--navy-ink)}
.brief-formats .direction-option:has(input:checked) .direction-info:is(:hover,:focus-visible,[aria-expanded=true]){color:var(--navy-ink);background:var(--navy-shade-12)}
.brief-formats .direction-head .direction-name{font-size:var(--text-small);line-height:1.25}
.brief-formats .direction-option{padding-inline:var(--space-4) var(--space-3)}
/* Project card (user request 19.11.2026): no dots under it (the arrows in the head switch projects); price and term sit at the
   bottom with the line above them, the project status centred in the space between the head and that line. */
#brief-intake .brief-project-carousel .project-carousel-dots{display:none}
#brief-intake .brief-project-carousel .project-carousel-track{flex:1 1 auto;min-height:0}
#brief-intake .brief-project-carousel .project-carousel-slide{display:flex;flex-direction:column}
#brief-intake .brief-project-carousel .project-carousel-slide>.project-body{flex:1 1 auto;justify-content:center}
#brief-intake .brief-project-carousel .project-carousel-slide>.project-price{margin-top:auto;margin-bottom:var(--space-2)}
/* Top of the website brief (user request 19.11.2026): the project card keeps only its head and the price row and stands beside
   the title; «Розкажіть трохи про себе» goes under it, right of «Що робимо?». */
#brief-intake .intake-heading>#brief-login{grid-row:1;align-self:center}
#brief-login .brief-project-carousel .project-carousel-slide>.project-body{display:none}
#brief-login .brief-project-carousel .project-carousel-slide>.project-price{margin:0}
#brief-intake .intake-heading>.brief-about{grid-column:3;grid-row:2;align-self:start;min-width:0}
.brief-kinds .brief-number{position:absolute}
@media(max-width:1100px){#brief-intake .intake-heading>#brief-login{grid-column:2;grid-row:2}#brief-intake .intake-heading>.brief-about{grid-column:1/-1;grid-row:3}}
@media(max-width:600px){#brief-intake .intake-heading>#brief-login,#brief-intake .intake-heading>.brief-about{grid-column:1;grid-row:auto}}
/* Project card price row (user request 19.11.2026): no line above it, centred with equal space above and below. */
#brief-login .brief-project-carousel .project-carousel-slide{justify-content:center;padding-block:var(--space-4)}
#brief-login .brief-project-carousel .project-carousel-slide>.project-price{border-top:0;padding-top:0;margin:0}
#brief-intake #brief-login .brief-project-carousel .project-carousel-slide{padding-top:var(--space-2);padding-bottom:var(--space-panel)}
/* Identity brief «Логотип» card (19.11.2026): two columns wide so the form and style examples fit; quiet example notes. */
@media(min-width:1101px){#brief-intake [data-identity-card=logo]{grid-column:span 2}}
#brief-intake small.logo-choice-text{display:block;color:var(--muted);font-size:var(--text-small);line-height:1.4}
#brief-intake details.identity-logo-choices>summary,#brief-intake details.identity-carrier-more>summary{cursor:pointer;color:var(--selection-line);font-weight:600;margin-block:var(--space-2)}
/* «Що робимо?» as one card (user request 19.11.2026): the two kinds stacked on the left, the chosen kind's panel on the right:
   «Формат сайту» with four sections in two rows, or the redesign's site link and comment. */
#brief-intake .intake-heading>.brief-kinds{grid-column:1/span 2;grid-row:2;min-width:0}
.brief-kinds .kinds-body{display:grid;grid-template-columns:minmax(220px,2fr) minmax(0,3fr);gap:20px;align-items:stretch}
.brief-kinds .direction-options.is-stack{grid-template-columns:minmax(0,1fr);grid-auto-rows:1fr}
.brief-kinds .direction-options.is-stack .direction-option+.direction-option{border-inline-start:0;border-top:1px solid var(--line)}
.brief-kinds .direction-option[data-kind=redesign] .direction-note{white-space:normal}
.brief-kinds .kinds-panel{display:flex;flex-direction:column;gap:12px;min-width:0}
.brief-kinds .kinds-panel-title{margin:0;font-size:var(--text-small);font-weight:700}
.brief-kinds .direction-options.is-grid{grid-template-columns:repeat(2,minmax(0,1fr));flex:1}
.brief-kinds .direction-options.is-grid .direction-option:nth-child(n+3){border-top:1px solid var(--line)}
.brief-kinds .direction-options.is-grid .direction-option:nth-child(odd){border-inline-start:0}
.brief-kinds .kinds-redesign .order-field{margin:0}
.brief-kinds .kinds-redesign textarea{min-height:110px}
@media(max-width:1100px){#brief-intake .intake-heading>.brief-kinds{grid-column:1}}
@media(max-width:600px){.brief-kinds .kinds-body{grid-template-columns:minmax(0,1fr)}#brief-intake .intake-heading>.brief-kinds{grid-row:auto}.brief-kinds .direction-options.is-grid{grid-template-columns:minmax(0,1fr)}.brief-kinds .direction-options.is-grid .direction-option+.direction-option{border-top:1px solid var(--line)}}
.brief-kinds .kinds-body>.direction-options{margin:0;border:1px solid var(--line);border-radius:var(--field-radius);overflow:hidden;align-self:stretch}
.brief-kinds .kinds-panel>.direction-options{margin:0;border:1px solid var(--line);border-radius:var(--field-radius);overflow:hidden}
.brief-kinds .direction-options.is-stack .direction-name{font-size:var(--text-lead)}
.brief-kinds .kinds-body{padding:4px 0 8px}
/* (user request 19.11.2026) Chosen sections keep square corners inside their box; «Що робимо?» sets the row height and
   «Розкажіть трохи про себе» beside it scrolls inside the same height. */
.brief-kinds .kinds-body .direction-option,.brief-kinds .kinds-body .direction-option:first-child,.brief-kinds .kinds-body .direction-option:last-child{border-radius:0}
#brief-intake .intake-heading>.brief-kinds{align-self:start}
@media(min-width:1101px){#brief-intake .intake-heading>.brief-about{align-self:stretch;height:0;min-height:100%;display:flex;flex-direction:column;overflow:hidden}
  #brief-intake .intake-heading>.brief-about>.card-body{flex:1;min-height:0;overflow-y:auto;margin:-16px -20px -20px;padding:16px 20px 20px}}
.brief-kinds .kinds-body{padding:4px 0 0}
/* «Що робимо?» (user request 19.11.2026): each kind centred in its own cell; the price one step larger (18 px) and dark on the
   chosen light-violet gradient; the redesign panel never widens the card; format names share one height per row, so the
   notes under them start on one line. */
.brief-kinds .direction-options.is-stack .direction-option{justify-content:center}
.brief-kinds .direction-options.is-stack .direction-text{margin-block:0}
.brief-kinds .direction-head .option-price{font-size:var(--text-body);font-weight:700;opacity:1}
.brief-kinds .direction-option:has(input:checked) .option-price{color:var(--highlight-ink)}
@media(min-width:601px){.brief-kinds .kinds-body{grid-template-columns:minmax(0,2fr) minmax(0,3fr)}}
.brief-kinds .direction-options.is-stack .direction-name{white-space:nowrap;font-size:var(--text-body)}
.brief-kinds .kinds-redesign,.brief-kinds .kinds-redesign .order-field{min-width:0}
.brief-kinds .kinds-redesign textarea,.brief-kinds .kinds-redesign input{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
.brief-kinds .kinds-redesign textarea{field-sizing:fixed;border-radius:var(--field-radius);padding:var(--space-3) 16px}
/* All format names are one line in uk now («Багатосторінковий», user decision 19.11.2026); longer languages get checked in the translation pass. */
/* Field of activity (user request 19.11.2026): closed it is a list button with the normal cursor; the own-field row closes the list. */
/* «+ Додати сферу діяльності»: the same text as the other rows, no backing; it turns violet on hover like a link button (user request 19.11.2026). */
.choice-option.choice-add,.choice-option.choice-add:hover,.choice-option.choice-add[data-active]{margin-top:4px;border-top:1px solid var(--line);border-radius:0;background:none;color:var(--ink);transition:color .15s}
.choice-option.choice-add:hover,.choice-option.choice-add[data-active]{color:var(--selection-line)}
/* «Як з вами зв'язатися?», «Посилання на сайт і соцмережі» and the redesign's «Коментар до проєкту» (user request 19.11.2026):
   one fixed size, two lines of text, no resize handle; longer text scrolls inside. */
#brief-intake :is(#brief-contact,#brief-links,#brief-note){height:64px;min-height:64px;max-height:64px;resize:none;overflow-y:auto}
/* «Які розділи потрібні?» (user request 19.11.2026): each group title is a divider like the prototype panel's — centred text with a
   line to each side; «+ Додати власний розділ» is a text button that turns violet on hover; its field is an ordinary brief field and
   «Додати» a pill. */
.section-picker .section-group>legend{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;float:none;margin:var(--space-panel) 0 8px;padding:0;font-size:var(--text-small);font-weight:650;line-height:1.3;text-align:center;color:var(--muted)}
.section-picker .section-group>legend::before,.section-picker .section-group>legend::after{content:"";flex:1 1 0;min-width:16px;height:1px;background:var(--line)}
.section-picker .section-group:first-child>legend{margin-top:4px}
:is(.section-picker,.feature-picker) .custom-group{margin-top:var(--space-4);padding-top:var(--space-2);border-top:1px solid var(--line)}
:is(.section-picker,.feature-picker) .custom-open{display:flex;align-items:center;width:100%;min-height:44px;padding:var(--space-3) var(--space-4);border:0;border-radius:0;background:none;box-shadow:none;color:var(--ink);font:inherit;font-weight:500;text-align:start;cursor:pointer;transition:color .15s}
:is(.section-picker,.feature-picker) .custom-open:is(:hover,:focus-visible){background:none;color:var(--selection-line)}
:is(.section-picker,.feature-picker) .custom-add input{min-height:44px;border:1px solid var(--line);background:var(--paper);color:var(--ink);padding:var(--space-3) 12px}
:is(.section-picker,.feature-picker) .custom-add input:is(:hover,:focus){border-color:var(--selection-line);outline:none}
:is(.section-picker,.feature-picker) .custom-add .custom-add-button{border-radius:var(--control-radius);padding-inline:20px}
#brief-intake :is(.section-picker,.feature-picker) .custom-add .custom-add-button{border-radius:var(--control-radius);padding-inline:20px}
#brief-intake :is(.section-picker,.feature-picker) .custom-open{justify-content:flex-start;border-radius:0}
/* The fixed two-line fields have no resize handle, so no corner mark either (user request 19.11.2026). */
#brief-intake :is(#brief-contact,#brief-links,#brief-note)::-webkit-resizer,:root[data-theme=light] #brief-intake :is(#brief-contact,#brief-links,#brief-note)::-webkit-resizer{display:none;background:none}
/* «Структура сайту» (user request 19.11.2026): «+ Додати власний розділ» centred, «+ Додати сторінку» across the card; in the page
   window «Своя сторінка» stands 40 px below the page buttons (as the buttons below the title), its field is an ordinary brief field
   and every part has room. */
#brief-intake :is(.section-picker,.feature-picker) .custom-open{justify-content:center;text-align:center}
#brief-intake .page-add{display:flex;justify-content:center;width:100%}
.gallery-own.page-own{margin-top:var(--space-7);gap:var(--space-4);max-width:none}
.gallery-own.page-own label{margin:0}
.gallery-own.page-own input{background:var(--paper);padding:var(--space-3) 12px}
.gallery-own.page-own input:is(:hover,:focus){border-color:var(--selection-line);outline:none}
/* «Структура сайту» pages (user request 19.11.2026): replace and remove icons opposite the page name, as in the prototype panel;
   no line above «+ Додати власний розділ», the line under the page stays. */
.page-block summary .page-tool{position:relative;flex:0 0 28px;width:28px;height:28px;min-height:28px;padding:0;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:none;box-shadow:none;color:var(--ink);transition:background-color .15s,color .15s,border-color .15s}
.page-block summary .page-tool::before{content:"";position:absolute;inset:-8px}
.page-block summary .page-tool svg{width:15px;height:15px}
.page-block summary .replace-section.page-tool{margin-inline-start:auto}
.page-block summary .replace-section.page-tool:is(:hover,:focus-visible){border-color:var(--selection-line);color:var(--selection-line)}
.page-block summary .remove-section.page-tool:is(:hover,:focus-visible){background:color-mix(in srgb,var(--danger) 18%,transparent);border-color:var(--danger);color:var(--danger)}
#brief-intake :is(.section-picker,.feature-picker) .custom-group{border-top:0;margin:var(--space-2) 0 0;padding:0 0 12px}
/* The own-section / own-feature field and «Додати» are one height with identical spacing in Cards 3 and 4 (22.11.2026). */
#brief-intake .page-picker>.page-block:last-of-type{padding-bottom:0;margin-bottom:0}
#brief-intake :is(.section-picker,.feature-picker) .custom-add{align-items:stretch;margin:0}
#brief-intake :is(.section-picker,.feature-picker) .custom-add>input,#brief-intake :is(.section-picker,.feature-picker) .custom-add>.custom-add-button{height:44px;min-height:44px;max-height:44px;box-sizing:border-box}
#brief-intake :is(.section-picker,.feature-picker) .custom-add>.custom-add-button{padding-block:0;white-space:nowrap;line-height:1}
/* The corner arc of the brief fields is a background picture (lines above), not the browser handle; the fixed two-line fields
   drop it (user report 19.11.2026). */
#brief-intake :is(#brief-contact,#brief-links,#brief-note),#brief-intake :is(#brief-contact,#brief-links,#brief-note):is(:hover,:focus){background-image:none}
/* «Фірмовий стиль» (user request 19.11.2026): «Логотип компанії», «Дизайн-стиль» and «Прийнятні кольори» are dividers like the
   section groups: centred text with a line to each side, white until something is added under it, then violet. */
#brief-intake .brief-materials .brand-subheading{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;margin:var(--space-panel) 0 12px;font-size:var(--text-small);font-weight:650;line-height:1.3;text-align:center;color:var(--ink)}
#brief-intake .brief-materials .brand-subheading::before,#brief-intake .brief-materials .brand-subheading::after{content:"";flex:1 1 0;min-width:16px;height:1px;background:var(--line)}
#brief-intake .brief-materials .card-body>.brand-subheading:first-child{margin-top:4px}
#brief-intake .brief-materials:has(.intake-logo,.logo-brief-attached) .card-body>.brand-subheading:first-child,
#brief-intake .brief-materials .design-style:has(:checked)>.brand-subheading,
#brief-intake .brief-materials .brand-palette:has(.colour-dot)>.brand-subheading{color:var(--selection-line)}
#brief-intake .brief-materials :is(.design-style,.brand-palette){border-top:0;padding-top:0;margin-top:0}
/* Project card buttons (user request 19.11.2026): import, new and delete are 44 px squares side by side; the dividing lines are the
   squares' edges, so the hover backing fills exactly the space between two lines. */
#brief-login .guest-head-end{gap:0}
#brief-login .guest-head .guest-save-state:has(+ :is(.project-open,.project-new,.project-delete)){margin-right:0;padding-right:12px}
#brief-login .guest-head :is(.project-delete,.project-new,.project-open)::before{left:-.5px}
/* The line after delete is the button's own background: its ::after is the tooltip (fix 19.11.2026). */
#brief-login .guest-head .project-delete{background:linear-gradient(var(--navy-shade-45),var(--navy-shade-45)) right center/1px 18px no-repeat}
#brief-login .guest-head .project-delete:hover:not(:disabled){background:linear-gradient(var(--navy-shade-45),var(--navy-shade-45)) right center/1px 18px no-repeat,var(--danger-tint-20)}
@media(max-width:768px){#brief-login .guest-head-end{gap:0}#brief-login .guest-head :is(.project-delete,.project-new,.project-open)::before{left:-.5px}}
/* Logo formats and size on one line under «Додати логотип компанії», split by a short vertical line (user request 19.11.2026). */
#brief-intake .brand-logo-actions>.logo-add>.logo-formats-line{display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}
#brief-intake .logo-formats-line>.hint-divider{width:1px;height:12px;background:var(--line);flex:none}
/* Project delete window (user request 19.11.2026): narrower, so the warning takes two lines; «Скасувати» (salad green) and
   «Видалити проєкт» (pink) are the same outlined pill, the same size, side by side across the window, like the violet outlined
   buttons: the line and the text in the button's colour, both more saturated on hover and keyboard focus. */
#dialog:has([data-confirm-delete]){width:min(440px,calc(100vw - 32px))}
#dialog:has([data-confirm-delete]) .dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;justify-content:stretch}
#dialog:has([data-confirm-delete]) .dialog-actions>button{width:100%;min-height:48px;margin:0;padding:var(--space-3) 16px;border:var(--action-border) solid var(--tone);border-radius:var(--control-radius);background:transparent;color:var(--tone);font-weight:600;box-shadow:none;filter:none;outline:none;transition:color .15s,border-color .15s,background-color .15s}
#dialog:has([data-confirm-delete]) .dialog-actions>button:not([data-confirm-delete]){--tone:var(--outline-keep);--tone-strong:var(--outline-keep-strong)}
#dialog:has([data-confirm-delete]) .dialog-actions>button[data-confirm-delete]{--tone:var(--outline-danger);--tone-strong:var(--outline-danger-strong)}
#dialog:has([data-confirm-delete]) .dialog-actions>button:is(:hover,:focus-visible):not(:disabled){background:color-mix(in srgb,var(--tone-strong) var(--outline-tint),transparent);border-color:var(--tone-strong);color:var(--tone-strong)}
/* Without «Імпортувати проєкт» the head of a not yet saved project can be empty: then its row is not drawn (19.11.2026). */
#brief-login .guest-head-end:not(:has(>:not(:empty))){display:none}
/* Translation pass 19.11.2026: two-line buttons get balanced lines; Japanese breaks at phrase boundaries, not inside a word. */
#brief-intake button{text-wrap:balance}
:lang(ja) :is(#brief-intake,#brief-login,#dialog) :is(button,label,strong,small,p,h2,h3,legend){word-break:auto-phrase}
/* The draft window head no longer clips its own tooltips: the clipped edge of the «Закрити» tooltip showed as a thin line under
   the button on hover (user report 19.11.2026). The head takes the window corners itself instead. */
#prototype-draft .prototype-draft-inner{overflow:visible}
#prototype-draft .prototype-draft-head{position:relative;z-index:5;border-radius:var(--card-radius) var(--card-radius) 0 0}
/* Panel title opposite the fold button; hidden in the folded rail (user request 19.11.2026). */
@media(min-width:700px){#main .settings-head.is-bare{justify-content:space-between}}
#main .settings-head .settings-title{font-size:var(--text-small);font-weight:600;color:var(--ink);min-width:0}
#main .editor.settings-collapsed .settings-head .settings-title{display:none}
/* Hints of the header, footer and submenu schemes wrap to two lines and fit the panel; the site-wide tooltip rule kept
   them on one clipped line (user request 19.11.2026). */
#main .settings .scheme-choice[data-tip]::after{white-space:pre-line;text-wrap:balance;width:max-content;max-width:300px;border-radius:var(--field-radius);line-height:1.35}
/* Scheme tiles hold only the scheme, no caption (user request 19.11.2026): no room kept for a label, the block is compact. */
#main .settings .scheme-choice{min-height:0;justify-content:center}
/* Uploaded logo and «Додати брендбук» in one row of one height; the button narrows to what the logo leaves (user request
   19.11.2026). */
#brief-intake .brandbook-add{margin-top:var(--space-3)}
#brief-intake .brand-logo-row{display:flex;align-items:stretch;gap:8px;min-width:0}
#brief-intake .brand-logo-row>.intake-logo{flex:0 1 auto;max-width:60%;min-height:56px;box-sizing:border-box;align-items:center;justify-content:center;padding:var(--space-2) var(--space-3)}
#brief-intake .brand-logo-row>.intake-logo img{max-width:100%;height:44px}
#brief-intake .brand-logo-row>button{flex:1 1 0;width:auto;min-width:0;height:auto;min-height:56px;white-space:normal;text-align:center;justify-content:center;padding-inline:12px;line-height:1.2;border:1px solid var(--line);border-radius:var(--button-radius);background:var(--paper);background-image:none;color:var(--ink)}
#brief-intake .brand-logo-row>button:is(:hover,:focus-visible):not(:disabled){border-color:var(--highlight);color:var(--highlight);background:var(--paper)}
:root[data-theme=light] #brief-intake .brand-logo-row>button:is(:hover,:focus-visible):not(:disabled){border-color:var(--highlight-deep);color:var(--highlight-deep)}
/* Composition tiles carry the same icons as the section bar (user request 19.11.2026). */
#main .layout-options button>svg{flex:none;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}

/* Brief UX overhaul (21.11.2026): balanced 2x2 card grid, pinned card totals, 2-column compact tiles, clear selected states, teaser bar, and floating summary. */
@media(min-width:1101px){
  #brief-intake .intake-heading>.brief-about{align-self:start;height:auto;min-height:0;overflow:visible}
  #brief-intake .intake-heading>.brief-about>.card-body{overflow:visible;margin:0;padding:0}
}
@media(min-width:769px){
  #brief-intake .intake-fields{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
  #brief-intake .intake-fields>section{aspect-ratio:auto;contain:none;min-height:0;max-height:640px;display:flex;flex-direction:column;overflow:hidden}
  #brief-intake :is(.section-picker,.feature-picker) .section-group .option-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-2);margin-bottom:var(--space-3)}
}
@media(max-width:768px) and (min-width:601px){
  #brief-intake .intake-fields>section{aspect-ratio:auto;contain:none;max-height:none}
}
#brief-intake :is(.section-picker,.feature-picker) .option-choice{min-height:38px;padding:var(--space-2) var(--space-3);line-height:1.25;border-radius:var(--field-radius)}
#brief-intake .brief-kinds :is(.direction-option,.format-option):has(input:checked) :is(.direction-text,.format-text,small,.feature-info){color:color-mix(in srgb,var(--highlight-ink) 84%,transparent);opacity:1}
#brief-intake .brief-materials .brand-subheading{margin:var(--space-4) 0 var(--space-3)}
#brief-intake .brief-card-note{margin:0 0 12px;font-size:var(--text-small);line-height:1.45;color:var(--subhead)}
#brief-intake .card-footer-total{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 -20px -20px;padding:12px 20px;border-top:1px solid var(--line);background:var(--card-head);border-radius:0 0 calc(var(--card-radius) - 1px) calc(var(--card-radius) - 1px)}
#brief-intake .intake-fields>section:has(>.card-footer-total)>.card-body{margin-bottom:0;padding-bottom:16px}
#brief-intake .action-chips{display:flex;flex-wrap:wrap;gap:var(--space-2);margin-top:var(--space-2)}
#brief-intake .action-chip{min-height:34px;padding:var(--space-2) 12px;border:1px solid var(--line);border-radius:var(--control-radius);background:var(--paper);color:var(--ink);font-size:var(--text-small);font-weight:500;line-height:1.2}
#brief-intake .action-chip:is(:hover,:focus-visible){border-color:var(--selection-line);color:var(--selection-line);background:var(--selected)}
#brief-intake .action-chip[aria-pressed=true]{border-color:var(--selection-line);background:var(--selected);color:var(--selection-line);font-weight:600}
#brief-intake .brief-materials .design-style:has([aria-pressed=true])>.brand-subheading{color:var(--selection-line)}
#brief-intake .design-style-actions{margin-top:0}
/* Selected choice buttons in Style and Content cards beat the plain-button reset and show an unmistakable active state. */
#brief-intake .brand-logo-actions button.content-choice-button[aria-pressed=true],
#brief-intake .brand-logo-actions button.content-choice-button[aria-pressed=true]:is(:hover,:focus-visible),
#brief-intake .content-existing button.content-choice-button[aria-pressed=true],
#brief-intake .content-existing button.content-choice-button[aria-pressed=true]:is(:hover,:focus-visible){border-color:transparent;background:var(--highlight-gradient,var(--highlight));background-origin:border-box;color:var(--highlight-ink);font-weight:700;gap:8px}
#brief-intake .brand-logo-actions button.content-choice-button[aria-pressed=true]::before,
#brief-intake .content-existing button.content-choice-button[aria-pressed=true]::before{content:"✓";font-weight:800;line-height:1}
#brief-login .guest-optional-note{margin:var(--space-2) 0 0;font-size:var(--text-eyebrow);line-height:1.4;color:var(--subhead);text-align:center}
#brief-login .project-price{position:relative}
#brief-login .price-breakdown-trigger{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:32px;padding:2px 8px;border:1px solid transparent;border-radius:var(--chip-radius);background:transparent;color:inherit;font:inherit}
#brief-login .price-breakdown-trigger:is(:hover,:focus-visible){border-color:var(--selection-line);background:var(--selected);color:var(--ink)}
#brief-login .price-breakdown-caret{font-size:var(--text-eyebrow);opacity:.7;transition:transform .15s}
#brief-login .price-breakdown-trigger[aria-expanded=true] .price-breakdown-caret{transform:rotate(180deg)}
#brief-login .price-breakdown-pop{grid-column:1/-1;margin-top:var(--space-3);padding:var(--space-3) 12px;border:1px solid var(--line);border-radius:var(--field-radius);background:var(--paper);text-align:left;font-size:var(--text-eyebrow);line-height:1.45}
#brief-login .price-breakdown-title{margin:0 0 var(--space-2);font-weight:700;color:var(--subhead)}
#brief-login .price-breakdown-list{list-style:none;margin:0;padding:0;display:grid;gap:4px}
#brief-login .price-breakdown-list li{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
#brief-login .price-breakdown-list strong{color:var(--ink);font-weight:600;white-space:nowrap}
#brief-login .price-breakdown-empty{margin:0;color:var(--muted)}
/* Upgraded prototype teaser bar: left icon + title/badge/description, right clear CTA pill. */
#brief-intake .draft-launch .prototype-open{justify-content:space-between;align-items:center;flex-wrap:wrap;gap:var(--space-4) 20px;min-height:76px;padding:var(--space-4) 20px;border:1.5px solid var(--selection-line);border-radius:var(--card-radius);background:color-mix(in srgb,var(--selected) 68%,var(--surface));color:var(--ink);text-align:left;font-size:var(--text-body);font-weight:700}
#brief-intake .draft-launch .prototype-open:is(:hover,:focus-visible):not(:disabled){border-color:var(--highlight);background:color-mix(in srgb,var(--selected) 90%,var(--surface));color:var(--ink)}
#brief-intake .draft-launch .prototype-open:disabled{border-color:var(--line);background:transparent;opacity:.6}
#brief-intake .draft-launch .prototype-open-lead{display:flex;align-items:center;gap:var(--space-4);min-width:0;flex:1 1 280px}
#brief-intake .draft-launch .prototype-flag-icon{display:grid;place-items:center;flex:none;width:42px;height:42px;border:1px solid var(--selection-line);border-radius:var(--field-radius);background:var(--paper);color:var(--selection-line)}
#brief-intake .draft-launch .prototype-flag-icon svg{width:22px;height:22px}
#brief-intake .draft-launch .prototype-open-copy{display:grid;gap:var(--space-1);min-width:0}
#brief-intake .draft-launch .prototype-open-head{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
#brief-intake .draft-launch .prototype-open-title{font-family:var(--font-display);font-size:var(--text-body);font-weight:700;line-height:1.25}
#brief-intake .draft-launch .prototype-open-desc{font-size:var(--text-small);font-weight:400;line-height:1.35;color:var(--subhead)}
#brief-intake .draft-launch .prototype-open-cta{flex:none;padding:var(--space-2) var(--space-panel);border:1px solid var(--selection-line);border-radius:var(--control-radius);background:var(--paper);color:var(--selection-line);font-size:var(--text-small);font-weight:600;line-height:1.2;transition:background-color .15s,color .15s}
#brief-intake .draft-launch .prototype-open:disabled :is(.prototype-open-desc,.prototype-open-cta){display:none}
#brief-intake .prototype-open-badge{margin-inline-start:0;padding:2px var(--space-2);border:1px solid var(--selection-line);border-radius:var(--control-radius);background:var(--paper);color:var(--selection-line);font-size:var(--text-eyebrow);font-weight:600;line-height:1.3}
/* Clickable required hint above the send plaque. */
.brief-final .intake-send>.intake-missing{cursor:pointer;display:inline-flex;align-self:center;padding:var(--space-1) var(--space-4);border:1px solid color-mix(in srgb,var(--selection-line) 45%,transparent);border-radius:var(--control-radius);background:color-mix(in srgb,var(--selected) 55%,transparent);color:var(--ink);font-size:var(--text-small);transition:border-color .15s,background-color .15s}
.brief-final .intake-send>.intake-missing:hover{border-color:var(--selection-line);background:var(--selected)}
/* Floating sticky summary bar while scrolling mid-brief. */
.brief-sticky-bar{position:fixed;left:50%;bottom:16px;z-index:25;transform:translateX(-50%);display:flex;align-items:center;gap:16px;max-width:calc(100vw - 24px);padding:8px var(--space-3) 8px var(--space-panel);border:1px solid var(--selection-line);border-radius:var(--control-radius);background:color-mix(in srgb,var(--surface) 90%,transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 12px 32px var(--shade-35);color:var(--ink)}
.brief-sticky-bar[hidden]{display:none}
.brief-sticky-bar .sticky-metrics{display:flex;align-items:baseline;gap:8px;white-space:nowrap;font-size:var(--text-small)}
.brief-sticky-bar .sticky-metrics strong{font-size:var(--text-body);font-weight:700;color:var(--selection-line);font-variant-numeric:tabular-nums}
.brief-sticky-bar .sticky-sep{opacity:.5}
.brief-sticky-bar .sticky-actions{display:flex;align-items:center;gap:8px}
.brief-sticky-bar .sticky-btn{min-height:36px;padding:var(--space-2) var(--space-4);border:1px solid var(--line);border-radius:var(--control-radius);background:var(--paper);color:var(--ink);font-size:var(--text-small);font-weight:600;white-space:nowrap}
.brief-sticky-bar .sticky-btn:is(:hover,:focus-visible){border-color:var(--selection-line);color:var(--selection-line);background:var(--selected)}
.brief-sticky-bar .sticky-btn-accent:is(:hover,:focus-visible){filter:brightness(1.06)}
/* «Надіслати» carries the design-system arrow, which slides right on hover like every arrow button (user request 25.11.2026). */
.brief-sticky-bar .sticky-btn-accent{display:inline-flex;align-items:center;gap:var(--space-2)}
.brief-sticky-bar .sticky-btn-accent svg{width:var(--action-icon);height:var(--action-icon);flex:0 0 var(--action-icon);transition:transform var(--ease)}
.brief-sticky-bar .sticky-btn-accent:is(:hover,:focus-visible) svg{transform:translateX(3px)}
@media(prefers-reduced-motion:reduce){.brief-sticky-bar .sticky-btn-accent svg{transition:none}}
@media(max-width:600px){.brief-sticky-bar{gap:var(--space-3);padding:var(--space-2) 8px var(--space-2) 12px}.brief-sticky-bar .sticky-btn{padding:var(--space-2) var(--space-3);font-size:var(--text-eyebrow)}}

/* Prototype control panel polish & 3-column SVG section catalog (21.11.2026). */
#main .settings .logo-plate.has-logo{display:flex;justify-content:flex-start;min-height:52px;padding:var(--space-2) var(--space-3);text-align:left}
.logo-plate-filled{display:flex;align-items:center;gap:var(--space-3);width:100%;min-width:0}
.logo-plate-thumb{flex:none;width:54px;height:36px;display:grid;place-items:center;padding:var(--space-1);border:1px solid var(--line);border-radius:var(--chip-radius);background:var(--surface)}
.logo-plate-thumb .logo-plate-image{max-width:100%;max-height:100%;object-fit:contain}
.logo-plate-meta{display:grid;gap:1px;min-width:0}
.logo-plate-meta strong{font-size:var(--text-eyebrow);font-weight:650;line-height:1.25;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.logo-plate-meta span{font-size:var(--text-eyebrow);font-weight:400;line-height:1.25;color:var(--muted)}
#main .settings>[data-group=header]{margin-top:var(--space-4);padding:var(--space-3) 0 4px;border-top:1px solid var(--line);border-bottom:0}
#main .settings>[data-group=footer]{margin-top:12px;padding:var(--space-3) 0 4px;border-top:1px solid var(--line);border-bottom:0}
#main .settings>[data-group=footer] .group-toggle{padding-left:var(--space-3)}
#main .settings>.sections-bar{margin:var(--space-3) 0 var(--space-2);padding:var(--space-4) 2px 4px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:8px}
#main .settings .sections-count{font-size:var(--text-eyebrow);font-weight:700;letter-spacing:.02em;color:var(--muted)}
#main .settings .section-add-pill{min-height:32px;padding:var(--space-1) 12px;border:1px solid var(--selection-line);border-radius:var(--control-radius);background:var(--selected);color:var(--selection-line);font-size:var(--text-eyebrow);font-weight:650;line-height:1.2;white-space:nowrap}
#main .settings .section-add-pill:is(:hover,:focus-visible):not(:disabled){border-color:var(--highlight);background:var(--highlight);color:var(--highlight-ink)}
:root[data-theme=light] #main .settings .section-add-pill:is(:hover,:focus-visible):not(:disabled){border-color:var(--highlight-deep);background:var(--highlight-deep);color:var(--white)}
#main .settings .outline{margin-top:4px}
#main .settings .outline-item{border-bottom:1px solid color-mix(in srgb,var(--line) 45%,transparent);padding:var(--space-1) 0}
#main .settings .outline-item.active{margin:var(--space-1) -4px;padding:2px 4px;background:var(--selected);border:1px solid color-mix(in srgb,var(--selection-line) 50%,var(--line));border-left:3px solid var(--selection-line);border-radius:var(--field-radius)}
#main .settings .outline-item.active>.outline-heading{margin:0}
#main .settings .outline-item.active>.outline-heading:is(:hover,:focus-within){background:transparent}
/* Variant B (user choice 21.11.2026): soft violet header band + calm settings body for expanded header card. */
#main .settings .group.is-open{margin:var(--space-2) -4px;padding:0;overflow:hidden;background:var(--paper);border:1px solid color-mix(in srgb,var(--selection-line) 50%,var(--line));border-left:3px solid var(--selection-line);border-radius:var(--field-radius)}
#main .settings>.group[data-group=header].is-open{margin:var(--space-panel) -4px 8px;padding:0}
#main .settings .group.is-open>.group-row{margin:0;padding:var(--space-2) var(--space-3);border-radius:0;background:var(--selected);border-bottom:1px solid color-mix(in srgb,var(--selection-line) 28%,var(--line))}
#main .settings .group.is-open>.group-row:is(:hover,:focus-within){background:color-mix(in srgb,var(--selected) 88%,var(--selection-line) 12%)}
#main .settings .group.is-open>.group-content{padding:12px var(--space-3) var(--space-3);background:var(--paper)}
#main .settings .outline-heading>.group-toggle{gap:8px;padding:var(--space-2) 4px}
#main .settings .outline-heading>.group-toggle[aria-pressed=true]{background:transparent;border-color:transparent}
#main .settings .item-num{flex:none;min-width:17px;font-size:var(--text-eyebrow);font-weight:600;font-variant-numeric:tabular-nums;color:var(--muted);opacity:.72}
#main .settings .outline-item.active .item-num{color:var(--selection-line);opacity:1}
@media(hover:hover){
  #main .settings .outline-item:not(.active) .outline-heading:not(:hover,:focus-within)>:is(.replace-section,.remove-section){opacity:.42}
}
#main .settings .panel-edit-hint{margin:var(--space-3) 4px 0;font-size:var(--text-eyebrow);line-height:1.45;color:var(--muted)}

/* Wide 3-column section catalog modal with sticky filters, search, and bespoke SVG diagrams. */
#dialog.catalog-dialog{width:min(940px,calc(100vw - 32px));max-width:calc(100vw - 32px);padding:0;overflow:hidden}
#dialog.catalog-dialog[open]{display:flex;flex-direction:column}
#dialog.catalog-dialog .dialog-top{flex:none;margin:0;padding:12px 12px 12px 24px}
#dialog.catalog-dialog .catalog-controls{flex:none;display:grid;gap:var(--space-3);padding:12px 24px 12px;border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--paper) 72%,var(--surface))}
#dialog.catalog-dialog .catalog-controls-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
#dialog.catalog-dialog .catalog-lead{margin:0;flex:1 1 260px;font-size:var(--text-small);line-height:1.4;color:var(--muted)}
#dialog.catalog-dialog .catalog-search{position:relative;flex:0 1 260px;min-width:190px}
#dialog.catalog-dialog .catalog-search svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:15px;height:15px;fill:none;stroke:var(--muted);stroke-width:1.8;stroke-linecap:round;pointer-events:none}
#dialog.catalog-dialog .catalog-search-input{min-height:36px;height:36px;padding:var(--space-2) 12px var(--space-2) var(--space-6);background:var(--paper);color:var(--ink);font-size:var(--text-small);line-height:1.3}
#dialog.catalog-dialog .catalog-chips{display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap}
#dialog.catalog-dialog .catalog-chip{min-height:32px;padding:var(--space-1) 12px;border:1px solid var(--line);border-radius:var(--control-radius);background:var(--paper);color:var(--muted);font-size:var(--text-eyebrow);font-weight:600;line-height:1.2}
#dialog.catalog-dialog .catalog-chip:is(:hover,:focus-visible){border-color:var(--selection-line);color:var(--ink);background:var(--paper)}
#dialog.catalog-dialog .catalog-chip[aria-selected=true]{border-color:var(--selection-line);background:var(--selected);color:var(--selection-line)}
#dialog.catalog-dialog .catalog-body{flex:1;min-height:0;overflow-y:auto;padding:16px 24px 24px}
#dialog.catalog-dialog .catalog-group-title{display:flex;align-items:center;gap:12px;margin:20px 0 var(--space-3);font-size:var(--text-small);font-weight:700;color:var(--ink)}
#dialog.catalog-dialog .catalog-group-title:first-child{margin-top:2px}
#dialog.catalog-dialog .catalog-group-title::after{content:"";flex:1;height:1px;background:var(--line)}
#dialog.catalog-dialog .catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#dialog.catalog-dialog .catalog-choice{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:8px;padding:var(--space-3);border:1px solid var(--line);border-radius:var(--field-radius);background:var(--paper);color:var(--ink);text-align:left;font-weight:500;transition:border-color .15s,background-color .15s,transform .15s}
#dialog.catalog-dialog .catalog-choice:is(:hover,:focus-visible){border-color:var(--selection-line);background:color-mix(in srgb,var(--selected) 72%,var(--paper));color:var(--ink);transform:translateY(-1px)}
#dialog.catalog-dialog .catalog-choice.is-on-page{border-color:color-mix(in srgb,var(--selection-line) 46%,var(--line))}
#dialog.catalog-dialog .catalog-scheme{position:relative;display:block;width:100%;height:74px;margin:0;padding:4px;gap:0;border:1px solid color-mix(in srgb,var(--line) 72%,transparent);border-radius:var(--chip-radius);background:color-mix(in srgb,var(--surface) 78%,var(--paper));overflow:hidden}
#dialog.catalog-dialog .catalog-scheme::after{content:none;display:none}
#dialog.catalog-dialog .catalog-choice:is(:hover,:focus-visible) .catalog-scheme{border-color:color-mix(in srgb,var(--selection-line) 58%,transparent)}
#dialog.catalog-dialog .catalog-scheme svg{display:block;width:100%;height:100%}
#dialog.catalog-dialog .catalog-on-page{position:absolute;top:5px;right:5px;padding:2px var(--space-2);border:1px solid var(--selection-line);border-radius:var(--control-radius);background:color-mix(in srgb,var(--paper) 92%,transparent);color:var(--selection-line);font-size:var(--text-eyebrow);font-weight:700;line-height:1.25;white-space:nowrap}
#dialog.catalog-dialog .catalog-choice-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
#dialog.catalog-dialog .catalog-choice-name{font-size:var(--text-small);font-weight:700;line-height:1.3;color:var(--ink)}
#dialog.catalog-dialog .catalog-choice:is(:hover,:focus-visible) .catalog-choice-name{color:var(--selection-line)}
#dialog.catalog-dialog .catalog-choice-action{flex:none;width:22px;height:22px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;font-size:var(--text-small);font-weight:700;line-height:1;color:var(--muted);transition:border-color .15s,background-color .15s,color .15s}
#dialog.catalog-dialog .catalog-choice:is(:hover,:focus-visible) .catalog-choice-action{border-color:var(--selection-line);background:var(--selection-line);color:var(--paper)}
#dialog.catalog-dialog .catalog-choice-hint{margin:0;font-size:var(--text-eyebrow);font-weight:400;line-height:1.4;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#dialog.catalog-dialog .catalog-empty{margin:var(--space-6) 0;text-align:center;font-size:var(--text-small);color:var(--muted)}
#dialog.catalog-dialog .cat-card{fill:color-mix(in srgb,var(--surface) 92%,var(--ink) 4%);stroke:color-mix(in srgb,var(--ink) 14%,transparent);stroke-width:.9}
#dialog.catalog-dialog .cat-card-accent{fill:color-mix(in srgb,var(--selected) 68%,var(--surface));stroke:color-mix(in srgb,var(--selection-line) 55%,transparent);stroke-width:1}
#dialog.catalog-dialog .cat-ink{fill:color-mix(in srgb,var(--ink) 84%,transparent)}
#dialog.catalog-dialog .cat-ink-soft{fill:color-mix(in srgb,var(--ink) 56%,transparent)}
#dialog.catalog-dialog .cat-muted{fill:color-mix(in srgb,var(--ink) 28%,transparent)}
#dialog.catalog-dialog .cat-muted-box{fill:color-mix(in srgb,var(--ink) 11%,transparent)}
#dialog.catalog-dialog .cat-accent{fill:var(--selection-line)}
#dialog.catalog-dialog .cat-accent-mid{fill:color-mix(in srgb,var(--selection-line) 58%,transparent)}
#dialog.catalog-dialog .cat-accent-soft{fill:color-mix(in srgb,var(--selection-line) 22%,transparent)}
#dialog.catalog-dialog .cat-accent-stroke{fill:none;stroke:var(--selection-line)}
#dialog.catalog-dialog .cat-line-stroke{fill:none;stroke:color-mix(in srgb,var(--ink) 20%,transparent)}
#dialog.catalog-dialog .cat-input{fill:var(--paper);stroke:color-mix(in srgb,var(--ink) 20%,transparent);stroke-width:.9}
#dialog.catalog-dialog .cat-dashed{fill:none;stroke:color-mix(in srgb,var(--ink) 26%,transparent)}
#dialog.catalog-dialog .cat-on-accent-fill{fill:var(--paper)}
#dialog.catalog-dialog .cat-on-accent-stroke{fill:none;stroke:var(--paper)}
#dialog.catalog-dialog .cat-label-accent{fill:var(--selection-line);font-family:var(--font-text)}
#dialog.catalog-dialog .cat-label-on-accent{fill:var(--paper);font-family:var(--font-text)}
@media(max-width:780px){
  #dialog.catalog-dialog .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #dialog.catalog-dialog .catalog-controls,#dialog.catalog-dialog .catalog-body{padding-inline:16px}
}
@media(max-width:500px){
  #dialog.catalog-dialog .catalog-grid{grid-template-columns:1fr}
  #dialog.catalog-dialog .catalog-search{flex:1 1 100%}
}
@media(prefers-reduced-motion:reduce){
  #dialog.catalog-dialog .catalog-choice,#dialog.catalog-dialog .catalog-choice-action{transition:none;transform:none}
}

/* Expanded Header panel — Variant A: unified inspector menu list + 2x2 schematic header behavior cards (21.11.2026). */
#main .settings .group[data-group=header].is-open>.group-content{display:flex;flex-direction:column;gap:var(--space-4);padding:12px var(--space-3) 12px}
#main .settings .group[data-group=header] .panel-sub{margin:0;padding:0;border:0}
#main .settings .panel-sub-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0 0 8px}
#main .settings .panel-sub-head .panel-sub-title{margin:0;padding:0;border:0;font-size:var(--text-eyebrow);font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
#main .settings .panel-sub-head .panel-sub-title::before,#main .settings .panel-sub-head .panel-sub-title::after{display:none;content:none}
#main .settings .panel-sub-hint{font-size:var(--text-eyebrow);font-weight:500;color:var(--muted);opacity:.78;white-space:nowrap}
#main .settings .menu-table{display:flex;flex-direction:column;gap:0;border:1px solid var(--line);border-radius:var(--field-radius);background:var(--surface);overflow:hidden}
#main .settings .menu-table .menu-item{display:flex;align-items:center;gap:8px;min-height:34px;padding:0 var(--space-3);border-bottom:1px solid var(--line);transition:background-color .15s}
#main .settings .menu-table .menu-item:last-child{border-bottom:0}
#main .settings .menu-table .menu-item:hover{background:color-mix(in srgb,var(--selected) 40%,transparent)}
#main .settings .menu-table .menu-item:focus-within{background:var(--selected)}
#main .settings .menu-table .menu-item-number{width:18px;height:auto;border:0;border-radius:0;font-size:var(--text-eyebrow);font-weight:600;font-variant-numeric:tabular-nums;color:var(--muted);opacity:.72;justify-items:start}
#main .settings .menu-table .menu-item:focus-within .menu-item-number{color:var(--selection-line);opacity:1}
#main .settings .menu-table .menu-item-input{flex:1;min-width:0;min-height:32px;height:32px;padding:0;border:0;border-radius:0;background:transparent;color:var(--ink);font-size:var(--text-small);font-weight:500;box-shadow:none}
#main .settings .menu-table .menu-item-input:focus{outline:none;box-shadow:none}
#main .settings .menu-table .menu-item-input[aria-invalid=true]{color:var(--danger)}
#main .settings .menu-table .menu-item-edit{flex:none;width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;color:var(--muted);opacity:0;transition:opacity .15s}
#main .settings .menu-table .menu-item:is(:hover,:focus-within) .menu-item-edit{opacity:.68}
#main .settings .header-behavior-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-2)}
#main .settings .behavior-card{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:var(--space-2);padding:8px 8px var(--space-2);border:1px solid var(--line);border-radius:var(--field-radius);background:var(--surface);color:var(--ink);text-align:left;transition:border-color .15s,background-color .15s}
#main .settings .behavior-card:is(:hover,:focus-visible){border-color:color-mix(in srgb,var(--selection-line) 58%,var(--line));background:color-mix(in srgb,var(--selected) 58%,var(--surface));color:var(--ink)}
#main .settings .behavior-card[aria-pressed=true]{border-color:var(--selection-line);background:var(--selected);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--selection-line) 34%,transparent);color:var(--ink)}
#main .settings .behavior-card .beh-svg{display:block;width:100%;height:38px;border:1px solid var(--line);border-radius:var(--chip-radius);background:var(--paper);overflow:hidden}
#main .settings .behavior-card[aria-pressed=true] .beh-svg{border-color:color-mix(in srgb,var(--selection-line) 42%,var(--line))}
#main .settings .beh-svg g{transition:transform .3s cubic-bezier(.25,.8,.25,1)}
#main .settings .behavior-card:hover .beh-anim-up{transform:translateY(-5px)}
#main .settings .behavior-card:hover .beh-anim-body{transform:translateY(-4px)}
#main .settings .beh-accent{fill:var(--selection-line)}
#main .settings .beh-accent-soft{fill:color-mix(in srgb,var(--selection-line) 32%,transparent)}
#main .settings .beh-accent-box{fill:color-mix(in srgb,var(--selection-line) 22%,transparent);stroke:var(--selection-line);stroke-width:1.2}
#main .settings .beh-accent-dash{fill:color-mix(in srgb,var(--selection-line) 22%,transparent);stroke:var(--selection-line);stroke-width:1.1;stroke-dasharray:3 2}
#main .settings .beh-muted{fill:color-mix(in srgb,var(--ink) 28%,transparent)}
#main .settings .beh-faint{fill:color-mix(in srgb,var(--ink) 17%,transparent)}
#main .settings .beh-stroke-muted{fill:none;stroke:var(--muted);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#main .settings .beh-stroke-accent{fill:none;stroke:var(--selection-line);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#main .settings .beh-overlay-bg{fill:color-mix(in srgb,var(--selection-line) 12%,transparent)}
#main .settings .beh-overlay-hill{fill:color-mix(in srgb,var(--selection-line) 25%,transparent)}
#main .settings .beh-overlay-bar{fill:color-mix(in srgb,var(--paper) 60%,transparent);stroke:color-mix(in srgb,var(--selection-line) 65%,transparent);stroke-width:1}
#main .settings .behavior-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
#main .settings .behavior-copy strong{font-size:var(--text-eyebrow);font-weight:700;line-height:1.2;color:var(--ink)}
#main .settings .behavior-card[aria-pressed=true] .behavior-copy strong{color:var(--selection-line)}
#main .settings .behavior-copy small{font-size:var(--text-eyebrow);font-weight:400;line-height:1.25;color:var(--muted)}
@media(prefers-reduced-motion:reduce){
  #main .settings .beh-svg g,#main .settings .behavior-card,#main .settings .menu-table .menu-item{transition:none;transform:none}
}

/* Card 1 («Що робимо?») Variant B: top 2-column segmented switcher + bottom spacious 2x2 icon format cards (user choice 22.11.2026). */
#brief-intake .brief-kinds .kinds-body{display:flex;flex-direction:column;gap:12px;padding:2px 0 0}
#brief-intake .brief-kinds .kinds-body>.direction-options.is-stack{flex:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-2);padding:var(--space-1);border:1px solid var(--line);border-radius:var(--field-radius);background:var(--paper);overflow:visible}
#brief-intake .brief-kinds .direction-options.is-stack .direction-option{position:relative;display:flex;flex-direction:column;justify-content:center;border:0;border-radius:var(--chip-radius);padding:var(--space-2) var(--space-4);background:transparent;background-origin:border-box;background-clip:border-box;min-height:0;height:auto;transition:background-color .15s,box-shadow .15s}
#brief-intake .brief-kinds .direction-options.is-stack .direction-option+.direction-option{border:0}
/* The option not chosen keeps a line around it, like the format tiles below, so it reads as an option (user request 25.11.2026). */
#brief-intake .brief-kinds .direction-options.is-stack .direction-option:not(:has(input:checked)){box-shadow:inset 0 0 0 1px var(--line)}
/* Hover as on the format tiles below (user choice 25.11.2026, option B). */
#brief-intake .brief-kinds .direction-options.is-stack .direction-option:hover:not(:has(input:checked)){background:color-mix(in srgb,var(--selected) 45%,var(--paper));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--selection-line) 55%,var(--line))}
/* Chosen: the violet buttons' pixel grain over the gradient, text in full ink (user request 25.11.2026). */
#brief-intake .brief-kinds .direction-options.is-stack .direction-option:has(input:checked){background:var(--pixel-fade),var(--pixel-grain),var(--highlight-gradient,var(--highlight));background-size:100% 100%,auto,100% 100%;background-repeat:no-repeat,repeat,no-repeat;background-origin:border-box;background-clip:border-box;border:0;box-shadow:0 6px 18px -6px color-mix(in srgb,var(--selection-line) 55%,transparent)}
#brief-intake .brief-kinds .direction-options.is-stack .direction-option:has(input:focus-visible){outline:2px solid var(--focus);outline-offset:2px}
#brief-intake .brief-kinds .direction-options.is-stack .direction-option:has(input:checked) :is(.direction-text,.direction-name,.direction-note,small){color:var(--highlight-ink)}
#brief-intake .brief-kinds .direction-options.is-stack input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none;margin:0}
#brief-intake .brief-kinds .direction-options.is-stack .direction-text{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"head price" "note price";align-items:center;column-gap:12px;row-gap:var(--space-1);width:100%;margin:0}
#brief-intake .brief-kinds .direction-options.is-stack .direction-head{grid-area:head;gap:8px;padding:0;align-items:baseline}
#brief-intake .brief-kinds .direction-options.is-stack .direction-name{font-size:var(--text-small);font-weight:700;letter-spacing:.01em;text-transform:none}
#brief-intake .brief-kinds .direction-options.is-stack .direction-note{grid-area:note;font-size:var(--text-eyebrow);line-height:1.3;text-align:start}
#brief-intake .brief-kinds .direction-options.is-stack .option-price{grid-area:price;align-self:stretch;display:inline-flex;align-items:center;justify-content:center;margin:0;padding:4px 2px 4px var(--space-4);border-left:1px solid color-mix(in srgb,var(--line) 48%,transparent);font:800 var(--text-lead)/1 var(--font-display);font-variant-numeric:tabular-nums;letter-spacing:-.03em;color:var(--ink)}
#brief-intake .brief-kinds .direction-options.is-stack .direction-option:has(input:checked) .option-price{border-left-color:var(--violet-ink-shade-24);color:var(--highlight-ink)}
#brief-intake .brief-kinds .kinds-panel.brief-formats{display:flex;flex-direction:column;justify-content:center;gap:var(--space-2);flex:1}
#brief-intake .brief-kinds .kinds-panel-title{margin:0;font-size:var(--text-eyebrow);font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
#brief-intake .brief-kinds .kinds-panel>.direction-options.is-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-2);border:0;border-radius:0;background:transparent;overflow:visible}
#brief-intake .brief-kinds .direction-options.is-grid .direction-option{position:relative;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:8px;padding:var(--space-2) var(--space-3) var(--space-2) var(--space-3);border:1px solid var(--line);border-radius:var(--field-radius);background:color-mix(in srgb,var(--paper) 78%,transparent);background-origin:border-box;min-height:52px;transition:border-color .15s,background-color .15s}
#brief-intake .brief-kinds .direction-options.is-grid .direction-option+.direction-option{border-inline-start:1px solid var(--line)}
#brief-intake .brief-kinds .direction-options.is-grid .direction-option:nth-child(n+3){border-top:1px solid var(--line)}
#brief-intake .brief-kinds .direction-options.is-grid .direction-option:hover:not(:has(input:checked)){border-color:color-mix(in srgb,var(--selection-line) 55%,var(--line));background:color-mix(in srgb,var(--selected) 45%,var(--paper))}
#brief-intake .brief-kinds .direction-options.is-grid .direction-option:has(input:checked){border-color:var(--selection-line);background:var(--selected);background-image:none;box-shadow:none}
#brief-intake .brief-kinds .direction-options.is-grid .direction-option:has(input:focus-visible){outline:2px solid var(--focus);outline-offset:2px}
#brief-intake .brief-kinds .direction-options.is-grid .direction-option:has(input:checked) :is(.direction-name,.direction-text){color:var(--ink)}
#brief-intake .brief-kinds .direction-options.is-grid .direction-option:has(input:checked) .direction-note{color:var(--muted)}
#brief-intake .brief-kinds .direction-options.is-grid .direction-option:has(input:checked) .direction-info{color:var(--selection-line)}
#brief-intake .brief-kinds .direction-options.is-grid .direction-option:has(input:checked) .direction-info:is(:hover,:focus-visible,[aria-expanded=true]){color:var(--selection-line);background:color-mix(in srgb,var(--selection-line) 16%,transparent)}
#brief-intake .brief-kinds .direction-options.is-grid input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none;margin:0}
#brief-intake .brief-kinds .direction-options.is-grid .direction-text{display:flex;flex-direction:row;align-items:center;gap:var(--space-3);flex:1;min-width:0;margin:0;align-self:center}
#brief-intake .brief-kinds .direction-options.is-grid .direction-head{padding:0;width:auto}
#brief-intake .brief-kinds .format-icon{flex:none;width:30px;height:30px;border-radius:var(--chip-radius);border:1px solid var(--line);background:var(--surface);color:var(--muted);display:grid;place-items:center;transition:color .15s,border-color .15s,background-color .15s}
#brief-intake .brief-kinds .format-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
#brief-intake .brief-kinds .direction-options.is-grid .direction-option:has(input:checked) .format-icon{border-color:color-mix(in srgb,var(--selection-line) 48%,var(--line));color:var(--selection-line)}
#brief-intake .brief-kinds .format-copy{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
#brief-intake .brief-kinds .direction-options.is-grid .direction-name{font-size:var(--text-small);font-weight:700;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#brief-intake .brief-kinds .direction-options.is-grid .direction-note{font-size:var(--text-eyebrow);line-height:1.25;color:var(--muted);text-align:start;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#brief-intake .brief-kinds .direction-options.is-grid .direction-info{position:static;flex:none;margin:0;align-self:center}
#brief-intake .brief-kinds .kinds-redesign{flex:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-content:center;align-items:start}
#brief-intake .brief-kinds .kinds-redesign .order-field{display:flex;flex-direction:column;gap:var(--space-2);margin:0}
#brief-intake .brief-kinds .kinds-redesign .error:empty{display:none}
#brief-intake .brief-kinds .kinds-redesign input{height:44px}
#brief-intake .brief-kinds .kinds-redesign textarea,
#brief-intake .brief-kinds .kinds-redesign textarea:is(:hover,:focus),
:root[data-theme=light] #brief-intake .brief-kinds .kinds-redesign textarea,
:root[data-theme=light] #brief-intake .brief-kinds .kinds-redesign textarea:is(:hover,:focus){min-height:64px;height:64px;max-height:64px;resize:none;overflow-y:auto;background:var(--paper);background-image:none}
#brief-intake .brief-kinds .kinds-redesign textarea::-webkit-resizer,
:root[data-theme=light] #brief-intake .brief-kinds .kinds-redesign textarea::-webkit-resizer{display:none;background:none}
@media(max-width:600px){
  #brief-intake .brief-kinds .kinds-body>.direction-options.is-stack,
  #brief-intake .brief-kinds .kinds-panel>.direction-options.is-grid,
  #brief-intake .brief-kinds .kinds-redesign{grid-template-columns:minmax(0,1fr)}
}

/* Equal-height top row («Що робимо?» + «Розкажіть трохи про себе») + subtle glass double-bezel & top catch-light volume (22.11.2026). */
#brief-intake .intake-heading>.brief-kinds{align-self:stretch;display:flex;flex-direction:column}
#brief-intake .intake-heading>.brief-kinds>.kinds-body{flex:1}
#brief-intake .intake-heading>.brief-about{align-self:stretch;height:auto;min-height:0;display:flex;flex-direction:column;overflow:visible}
#brief-intake .intake-heading>.brief-about>.card-body{flex:1;overflow:visible;margin:0;padding:0;display:flex;flex-direction:column}
#brief-intake .brief-about #brief-contact{height:64px;min-height:64px;max-height:64px;flex:none;overflow-y:auto}
#brief-intake .brief-kinds .kinds-goal{margin-top:16px;padding-top:var(--space-4);border-top:1px solid var(--line);display:flex;flex-direction:column;gap:8px}
#brief-intake .brief-kinds .kinds-goal-label{font-size:var(--text-small);font-weight:650;color:var(--ink)}
#brief-intake .brief-kinds .action-chips{margin-top:0;gap:var(--space-2)}
#brief-login .guest-card .guest-sign-in{margin:4px 0 0;font-size:var(--text-small);font-weight:600;line-height:1.38;text-align:center;text-wrap:balance}
#brief-intake :is(.brief-top-card,.intake-fields>section),
#brief-login :is(.brief-login,.guest-card,.project-card),
#brief-intake .prototype-teaser{
  border-color:color-mix(in srgb,var(--ink) 12%,var(--line));
  background-color:color-mix(in srgb,var(--surface) 84%,transparent);
  background-image:var(--panel-shade),linear-gradient(180deg,color-mix(in srgb,var(--ink) 4.5%,transparent) 0%,transparent 64px);
  background-position:0 0;
  background-size:calc(100% - 2px) calc(100% - 2px),100% 100%;
  background-repeat:no-repeat;
  -webkit-backdrop-filter:blur(20px) saturate(115%);
  backdrop-filter:blur(20px) saturate(115%);
  box-shadow:
    inset 0 1px 0 0 color-mix(in srgb,var(--ink) 16%,transparent),
    inset 0 18px 28px -20px color-mix(in srgb,var(--selection-line) 16%,transparent),
    0 0 0 4px color-mix(in srgb,var(--surface) 44%,transparent),
    0 0 0 5px color-mix(in srgb,var(--ink) 7.5%,transparent),
    0 14px 32px -14px var(--shade-42);
}
:root[data-theme=light] #brief-intake :is(.brief-top-card,.intake-fields>section),
:root[data-theme=light] #brief-login :is(.brief-login,.guest-card,.project-card),
:root[data-theme=light] #brief-intake .prototype-teaser{
  border-color:color-mix(in srgb,var(--ink) 11%,var(--line));
  background-color:color-mix(in srgb,var(--surface) 86%,transparent);
  background-image:var(--panel-shade),linear-gradient(180deg,color-mix(in srgb,var(--paper) 90%,transparent) 0%,transparent 64px);
  box-shadow:
    inset 0 1px 0 0 var(--paper),
    inset 0 16px 26px -18px color-mix(in srgb,var(--selection-line) 12%,transparent),
    0 0 0 4px color-mix(in srgb,var(--ink) 2.5%,transparent),
    0 0 0 5px color-mix(in srgb,var(--ink) 7%,transparent),
    0 12px 28px -12px var(--navy-shade-11);
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  #brief-intake :is(.brief-top-card,.intake-fields>section),
  #brief-login :is(.brief-login,.guest-card,.project-card),
  #brief-intake .prototype-teaser{background-color:var(--surface)}
}

/* Design-style & Content active buttons match selected section & format tiles (solid --selected + violet border, no checkmark, user decision 23.11.2026) + smooth button-to-dialog morph for references. */
#brief-intake .brand-logo-actions button.content-choice-button[aria-pressed=true],
#brief-intake .brand-logo-actions button.content-choice-button[aria-pressed=true]:is(:hover,:focus-visible),
#brief-intake .content-existing button.content-choice-button[aria-pressed=true],
#brief-intake .content-existing button.content-choice-button[aria-pressed=true]:is(:hover,:focus-visible),
:root[data-theme=light] #brief-intake .brand-logo-actions button.content-choice-button[aria-pressed=true],
:root[data-theme=light] #brief-intake .brand-logo-actions button.content-choice-button[aria-pressed=true]:is(:hover,:focus-visible),
:root[data-theme=light] #brief-intake .content-existing button.content-choice-button[aria-pressed=true],
:root[data-theme=light] #brief-intake .content-existing button.content-choice-button[aria-pressed=true]:is(:hover,:focus-visible){
  border-color:var(--selection-line);
  background:var(--selected);
  background-image:none;
  box-shadow:none;
  color:var(--ink);
  font-weight:700;
}
#brief-intake .brand-logo-actions button.content-choice-button[aria-pressed=true]::before,
#brief-intake .content-existing button.content-choice-button[aria-pressed=true]::before{content:none}
html:has(#reference-gallery-dialog[open]){overflow:hidden}
html:has(#reference-gallery-dialog[open]) #brief-style-reference{visibility:hidden}
.gallery-dialog{overflow:hidden;box-shadow:0 24px 60px var(--shade-47)}
.gallery-dialog[data-preparing]{opacity:0;pointer-events:none}
.gallery-dialog[data-preparing]::backdrop{opacity:0}
.gallery-dialog[data-flying]{pointer-events:none;overflow:hidden;will-change:left,top,width,height,border-radius}
.gallery-dialog .reference-option{content-visibility:auto;contain-intrinsic-size:auto 220px}

/* Languages block moved into Card 6 («Контент для наповнення сайту») with Card 5 divider heading and pinned footer total (22.11.2026). */
#brief-intake .brief-content .language-field{margin:4px 0 0}
#brief-intake .brief-content .language-field .brand-subheading{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;margin:var(--space-4) 0 var(--space-3);font-size:var(--text-small);font-weight:650;line-height:1.3;text-align:center;color:var(--ink)}
#brief-intake .brief-content .language-field .brand-subheading::before,
#brief-intake .brief-content .language-field .brand-subheading::after{content:"";flex:1 1 0;min-width:16px;height:1px;background:var(--line)}
#brief-intake .brief-content .language-field:has(.language-dot)>.brand-subheading{color:var(--selection-line)}
#brief-intake .brief-content .language-field .language-list{margin-top:0}
#brief-intake .language-total .total-counts{align-items:baseline;column-gap:var(--space-2)}
#brief-intake .language-total .total-note{font-size:var(--text-eyebrow);font-weight:400;color:var(--muted);white-space:normal}

/* Tablet & narrow-laptop layout (601–1100 px, Variant 1, user choice 23.11.2026) + roomier section/feature tile gaps & matched Card 3–6 heights. */
#brief-intake :is(.section-picker,.feature-picker) .option-list,
#brief-intake :is(.section-picker,.feature-picker) .section-group .option-list{gap:var(--space-3);margin-bottom:12px}
#brief-intake :is(.section-picker,.feature-picker) .custom-sections{gap:8px}
@media(max-width:1100px){
  .draft-tools .preview-devices,.draft-tools .head-sep:first-of-type,.settings-head .preview-devices{display:none}
  #main .preview-card[data-device=phone]{width:100%;max-width:390px;align-self:center}
}
@media(max-width:1100px) and (min-width:601px){
  #brief-intake .intake-heading{grid-template-columns:minmax(0,1.12fr) minmax(265px,.88fr);align-items:center;row-gap:var(--space-panel)}
  #brief-intake .intake-heading>.intake-title{grid-column:1;grid-row:1;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px var(--space-4);padding-bottom:0}
  #brief-intake .intake-title-text{display:contents}
  #brief-intake .intake-title-icon{grid-column:1;grid-row:1}
  #brief-intake .intake-title-icon svg{width:54px;height:54px}
  #brief-intake .intake-title h1{grid-column:2;grid-row:1;font-size:clamp(23px,2.9vw,32px);line-height:1.12;margin:0}
  #brief-intake .intake-title p{grid-column:1/-1;grid-row:2;margin:2px 0 0;font-size:var(--text-small);line-height:1.45}
  #brief-intake .intake-heading>#brief-login{grid-column:2;grid-row:1;align-self:center;display:flex;flex-direction:column}
  #brief-intake #brief-login>:is(.brief-login,.guest-card,.brief-project-carousel){flex:0 0 auto;height:auto}
  #brief-intake #brief-login .guest-card{gap:8px;padding:0 16px 12px}
  #brief-intake #brief-login .guest-card>.guest-head{margin-inline:-16px}
  #brief-intake #brief-login .project-carousel-heads>.guest-head{margin-inline:0}
  #brief-intake #brief-login .guest-head .guest-project-name{padding:var(--space-2) var(--space-4) var(--space-2);font-size:var(--text-body)}
  #brief-intake #brief-login .guest-card .guest-sign-in{margin:2px 0 0;font-size:var(--text-eyebrow);line-height:1.32}
  #brief-intake #brief-login .guest-card .cloud-google{padding:var(--space-2) var(--space-4);font-size:var(--text-small);min-height:38px}
  #brief-intake #brief-login .guest-card .project-price{margin-top:2px;padding-top:8px}
  #brief-intake #brief-login .project-price>p{font-size:var(--text-eyebrow);padding-inline:var(--space-2)}
  #brief-intake #brief-login .project-price strong{font-size:var(--text-lead)}
  #brief-intake .intake-heading>.brief-kinds{grid-column:1/-1;grid-row:2}
  #brief-intake .intake-heading>.brief-about{grid-column:1/-1;grid-row:3;align-self:stretch}
  #brief-intake .intake-heading>.brief-about>.card-body:has(#brief-brand-name){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--space-panel);align-items:start}
  #brief-intake .brief-about .card-body:has(#brief-brand-name)>:is(label[for=brief-brand-name],#brief-brand-name,label[for=brief-industry],.choice-field){grid-column:1}
  #brief-intake .brief-about .card-body:has(#brief-brand-name)>label[for=brief-contact]{grid-column:2;grid-row:1;margin-top:0}
  #brief-intake .brief-about .card-body:has(#brief-brand-name)>#brief-contact{grid-column:2;grid-row:2/span 3;height:100%;min-height:118px;max-height:none}
  #brief-intake .brief-kinds .direction-options.is-stack .direction-name{white-space:normal;line-height:1.2}
  #brief-intake .brief-kinds .direction-options.is-grid .direction-name{white-space:normal;overflow:visible;text-overflow:clip}
  #brief-intake :is(.section-picker,.feature-picker) .section-group .option-list{grid-template-columns:minmax(0,1fr)}
  #brief-intake .intake-fields>section{min-height:456px;max-height:456px;display:flex;flex-direction:column;overflow:hidden}
}
@media(max-width:768px) and (min-width:601px){
  #brief-intake .intake-fields>section{min-height:476px;max-height:476px}
}
/* «Опишіть характер вашого сайту трьома словами» (site-character.mjs, user request 25.11.2026): one full-width strip in the card-head colour. */
.intake-fields>section.brief-character{grid-column:1/-1;aspect-ratio:auto;contain:none;overflow:visible}
.character-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-3)}
.character-combo{position:relative}
.intake-fields .character-combo input[type=text]{width:100%;max-width:none;min-height:48px;padding:0 var(--space-7) 0 var(--space-7);border:1.5px solid var(--line);background:var(--paper);color:var(--ink);font:inherit}
.intake-fields .character-combo:is(:hover,.is-open) input[type=text]{background:var(--surface);border-color:var(--selection-line)}
.character-combo input::placeholder{color:var(--placeholder);opacity:1}
.character-combo input:focus-visible{outline:none;background:var(--surface);border-color:var(--selection-line);box-shadow:0 0 0 3px color-mix(in srgb,var(--selection-line) 35%,transparent)}
.intake-fields .character-combo.is-filled input[type=text]{border-color:var(--selection-line);background:var(--selected)}
.character-num{position:absolute;left:12px;top:50%;translate:0 -50%;display:grid;place-items:center;width:20px;height:20px;border:1px solid var(--line);border-radius:50%;color:var(--muted);font-size:var(--text-eyebrow);font-weight:800;pointer-events:none}
.character-combo.is-filled .character-num{border:0;background:var(--highlight-gradient);color:var(--highlight-ink)}
.character-arrow,.character-clear{position:absolute;right:4px;top:50%;translate:0 -50%;display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:var(--field-radius);background:none;color:var(--muted);cursor:pointer}
.character-arrow svg{width:16px;height:16px;transition:transform .2s}
.character-combo.is-open .character-arrow svg{transform:rotate(180deg)}
.character-clear{display:none;font-size:var(--text-lead);line-height:1}
.character-combo.is-filled .character-clear{display:grid}.character-combo.is-filled .character-arrow{display:none}
.character-clear:focus-visible{outline:3px solid var(--focus);outline-offset:-3px}
.character-combo ul{position:absolute;z-index:20;left:0;right:0;top:calc(100% + 6px);max-height:264px;overflow:auto;margin:0;padding:var(--space-2);list-style:none;border:1px solid var(--line);border-radius:var(--field-radius);background:var(--surface);box-shadow:0 16px 40px var(--shade-35)}
.character-combo ul[hidden]{display:none}
.character-combo li{padding:var(--space-2) 12px;border-radius:var(--chip-radius);cursor:pointer;font-weight:500}
.character-combo li.is-own{color:var(--selection-line);font-weight:600}
@media(max-width:600px){.character-fields{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.character-arrow svg{transition:none}}
#brief-intake .intake-fields>section.brief-character{min-height:0;max-height:none;display:grid;overflow:visible;aspect-ratio:auto;contain:none;z-index:5}
/* The open list of a word field lies over the cards below (user report 25.11.2026). */
