/* Branding studio: scoped styles, logical spacing for Arabic, no external dependencies. */
.brand-section { background: #f4f6f7; }
.brand-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 32px; }
.brand-heading h2 { font-size: clamp(40px, 5vw, 64px); letter-spacing: -.045em; margin-bottom: 0; }
.brand-heading > p { max-width: 480px; margin: 0 0 4px; font-size: 16px; }
.brand-studio { display: grid; grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); border: 1px solid #dbe1e5; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 20px 70px -45px #12243870; position: relative; }
.brand-controls { padding: 28px; min-width: 0; }
.brand-controls__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.brand-controls__head .code { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #64717e; }
.brand-reset { background: none; border: 0; color: #516171; padding: 8px 0 8px 10px; cursor: pointer; font: 600 12px var(--ll-font-body); text-decoration: underline; text-underline-offset: 3px; }
.brand-controls .field { margin: 0 0 18px; }
.brand-controls .field label, .brand-fieldset legend { display: block; font-size: 13px; font-weight: 600; color: #0b1f3a; margin-bottom: 8px; }
.brand-controls input[type="text"], .brand-controls select { width: 100%; min-width: 0; min-height: 46px; border: 1px solid #d6dfe5; border-radius: 7px; padding: 10px 12px; color: #10243b; background: #fff; font: 400 15px var(--ll-font-body); }
.brand-controls input[type="text"]:focus { border-color: #087a4c; }
.brand-hint { font-size: 11px; line-height: 1.65; color: #657281; margin: 7px 0 17px; }
.brand-upload { position: relative; border: 1px dashed #b5c2cb; border-radius: 9px; background: #f8fafb; transition: background .2s, border-color .2s; }
.brand-upload.is-dragging, .brand-upload:focus-within { border-color: #087a4c; background: #edf8f2; outline: 2px solid #087a4c; outline-offset: 2px; }
.brand-upload__label { display: flex; align-items: center; flex-direction: column; gap: 5px; padding: 21px 15px; cursor: pointer; text-align: center; }
.brand-upload__label svg { color: #087a4c; margin-bottom: 4px; }
.brand-upload__label b { font-size: 13px; color: #18334b; }
.brand-upload__label span { font-size: 11px; color: #596b7a; }
.brand-upload__label small { font-size: 10px; color: #647585; }
.brand-upload > input { position: absolute; width: 1px; height: 1px; opacity: 0; inset-inline-start: 0; bottom: 0; }
.brand-upload__loaded { display: flex; align-items: center; gap: 8px; padding: 12px; border-top: 1px solid #e0e7eb; }
.brand-upload__loaded img { width: 32px; height: 32px; object-fit: contain; background: #e5e9ee; border-radius: 4px; }
.brand-upload__loaded span { font-size: 11px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-upload__loaded button { font: 600 10px var(--ll-font-body); color: #9b2936; border: 0; padding: 6px; background: none; cursor: pointer; }
.brand-fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.brand-colours { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.brand-swatch, .brand-custom { position: relative; display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; outline: 1px solid #dbe2e8; color: white; background: var(--swatch); cursor: pointer; padding: 0; }
.brand-swatch[aria-pressed="true"] { outline: 2px solid #182e45; outline-offset: 2px; }
.brand-swatch svg { opacity: 0; }
.brand-swatch[aria-pressed="true"] svg { opacity: 1; }
.brand-custom { background: conic-gradient(#0b1f3a, #087a4c, #32b9cb, #7c3aed, #a43b39, #0b1f3a); color: #fff; }
.brand-custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.brand-custom span { pointer-events: none; font-size: 19px; text-shadow: 0 1px 3px #000; }
.brand-colours output { font-size: 10px; color: #657281; width: 100%; margin-top: 2px; direction: ltr; }
.brand-control-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.brand-control-row label output { float: inline-end; font-size: 11px; font-weight: 400; }
.brand-controls input[type="range"] { width: 100%; height: 46px; accent-color: #087a4c; cursor: pointer; padding: 0; }
.brand-quote { display: flex; white-space: normal; text-align: center; font-size: 12px; justify-content: space-between; gap: 14px; width: 100%; padding: 14px; }
.brand-handoff { margin-bottom: 0; }
.brand-preview { background: #101c28; color: #b5c2cf; display: flex; flex-direction: column; min-width: 0; }
.brand-preview__bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 23px 24px 12px; flex-wrap: wrap; }
.brand-live { display: flex; align-items: center; gap: 7px; color: #d1e3de; font-size: 10px; letter-spacing: .04em; }
.brand-live i { width: 6px; height: 6px; background: #25cc83; border-radius: 100%; box-shadow: 0 0 12px #25cc8370; }
.brand-views { display: flex; gap: 3px; padding: 3px; background: #ffffff08; border: 1px solid #ffffff12; border-radius: 7px; }
.brand-views button { cursor: pointer; border: 0; color: #b1bfcc; background: none; font: 400 11px var(--ll-font-body); border-radius: 4px; padding: 7px 10px; }
.brand-views button[aria-pressed="true"] { color: #fff; background: #ffffff17; }
.brand-canvas-wrap { display: grid; place-items: center; flex: 1; position: relative; overflow: hidden; }
.brand-canvas-wrap canvas { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; max-height: 640px; object-fit: contain; }
.brand-fallback { padding: 40px; }
.brand-preview__footer { margin: 0 24px; padding: 18px 0; display: flex; align-items: center; gap: 16px; justify-content: space-between; border-top: 1px solid #ffffff12; }
.brand-preview__footer > .code { font-size: 10px; color: #a4b4c5; }
.brand-download { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; color: #c7f0db; cursor: pointer; padding: 6px 0; font: 600 11px var(--ll-font-body); }
.brand-download:disabled { opacity: .5; cursor: wait; }
.brand-disclaimer { font-size: 10px; line-height: 1.6; color: #99aabd; padding: 0 24px 22px; margin: 0; }
.brand-status { grid-column: 1 / -1; font-size: 12px; margin: 0; padding: 0; background: #eef7f2; color: #085d3a; }
.brand-status:not(:empty) { padding: 12px 28px; }
.brand-status.is-error { background: #fdecee; color: #9b0f24; }
.brand-process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; list-style: none; margin: 32px 0 0; padding: 0; }
.brand-process li { display: flex; gap: 14px; align-items: flex-start; }
.brand-process li > span { padding-top: 2px; color: #087a4c; font: 400 12px var(--ll-font-code); }
.brand-process b { font-size: 13px; color: #183047; }
.brand-process p { font-size: 12px; margin: 3px 0 0; }
.brand-quote-notice { padding: 18px 22px; border: 1px solid #b5d8c8; background: #eef7f2; color: #20513e; border-radius: 10px; margin-bottom: 24px; }
.brand-quote-notice p { font-size: 13px; margin: 0; }
.brand-quote-notice p + p { font-size: 12px; margin-top: 5px; }
.brand-studio :focus-visible { outline: 2px solid #17c37b; outline-offset: 4px; }
@media (max-width: 1040px) { .brand-studio { grid-template-columns: minmax(270px, 320px) minmax(0, 1fr); } .brand-controls { padding: 22px; } .brand-preview__bar { padding: 20px; } .brand-heading { align-items: start; } .brand-heading > p { max-width: 400px; } }
@media (max-width: 760px) { .brand-heading { display: block; } .brand-heading > p { margin-top: 20px; max-width: 540px; } .brand-studio { grid-template-columns: minmax(0, 1fr); } .brand-preview { grid-row: 1; } .brand-canvas-wrap canvas { max-height: 480px; } .brand-controls { padding: 24px; } .brand-controls__head { margin-bottom: 20px; } .brand-controls input[type="text"], .brand-controls select { font-size: 16px; } .brand-process { gap: 16px; } .brand-process li { display: block; } .brand-process li > span { display: block; margin-bottom: 8px; } .brand-views button { padding: 9px; } .brand-download, .brand-reset { min-height: 36px; } }
@media (max-width: 400px) { .brand-preview__bar { padding: 16px 14px 8px; gap: 10px; } .brand-preview__footer { margin: 0 14px; gap: 6px; } .brand-preview__footer > .code { max-width: 110px; } .brand-disclaimer { padding-inline: 14px; } .brand-process { grid-template-columns: 1fr; gap: 18px; } .brand-process li { display: flex; } .brand-controls { padding: 20px; } }
@media (prefers-reduced-motion: reduce) { .brand-upload { transition: none; } }
