/* UrbanGPT Studio interface · shared by the home, sign-in and six tools. */
:root {
  --navy: #101e32; --navyd: #080f1c; --card: #14243a; --card2: #1a2d45;
  --gold: #d5b66e; --goldl: #eee7d8; --mute: #a5b2c5;
  --line: rgba(167, 189, 216, .18); --line2: rgba(167, 189, 216, .12);
  --green: #77c7aa; --orange: #edb47d;
  --ui-bg: #0b1422; --ui-surface: #111f32; --ui-text: #f4f1ea;
  --ui-sans: "DM Sans", "Segoe UI", Tahoma, Arial, sans-serif;
  --ui-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  color-scheme: dark;
}
html { scroll-behavior: smooth; scroll-padding-top: 156px; }
body.ug-app {
  background: radial-gradient(ellipse at 85% 0, rgba(42,65,89,.22), transparent 42%), var(--ui-bg) !important;
  color: var(--ui-text); font-family: var(--ui-sans); font-size: 14px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.ug-app *, .ug-app *::before, .ug-app *::after { box-sizing: border-box; }
.ug-app a { text-underline-offset: 4px; }
.ug-app button, .ug-app input, .ug-app textarea, .ug-app select { font-family: var(--ui-sans); }
.ug-app button, .ug-app a, .ug-app input, .ug-app select, .ug-app textarea, .ug-app summary { -webkit-tap-highlight-color: transparent; }
.ug-app :focus-visible { outline: 2px solid var(--gold) !important; outline-offset: 4px; }
.ug-app [hidden] { display: none !important; }
.ug-app ::selection { color: #fff; background: #786239; }
.ug-app ::-webkit-scrollbar { width: 6px; height: 6px; }
.ug-app ::-webkit-scrollbar-thumb { background: #35465d; border-radius: 10px; }
.ug-skip { position: fixed; top: -80px; left: 16px; padding: 12px 20px; background: var(--gold); color: #0b1422 !important; z-index: 100001; border-radius: 0 0 8px 8px; }
.ug-skip:focus { top: 0; }

/* A quiet identity row and a separate tool switcher leave room for both. */
.ug-app header.uhead { display: block; position: sticky; top: 0; padding: 0; border: 0; border-bottom: 1px solid var(--line2); background: rgba(11,20,34,.96); backdrop-filter: blur(18px); z-index: 60; direction: ltr; }
.ug-header-inner { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.ug-header-top { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ug-app .uhead .ubrand { gap: 12px; flex-shrink: 0; }
.ug-app .uhead .brand-mark { width: 40px; height: 44px; padding: 4px; border-radius: 7px; box-shadow: none; }
.ug-app .uhead .ubrand-tx b { font-family: var(--ui-sans); font-size: 20px; font-weight: 600; letter-spacing: -.65px; color: var(--ui-text); }
.ug-brand-ai { color: var(--gold); font-weight: 400; }
.ug-app .uhead .ubrand-tx b .ug-brand-ai { display: inline; font-family: inherit; font-size: inherit; letter-spacing: inherit; line-height: inherit; margin: 0; text-transform: none; color: var(--gold); }
.ug-app .uhead .ubrand-tx > span { font-family: var(--ui-sans); font-size: 9px; letter-spacing: 1.1px; color: var(--mute); margin-top: 6px; }
.ug-head-actions { display: flex; align-items: center; gap: 16px; }
.ug-workspace-tag { font-size: 11px; color: var(--mute); border-inline-start: 1px solid var(--line); padding-inline-start: 22px; margin-inline-start: 6px; }
.ug-app .uhead .ulang, .ug-menu-toggle { min-height: 38px; min-width: 44px; border: 1px solid var(--line); border-radius: 7px; padding: 7px 11px; color: #e7eaf0; background: transparent; font-family: var(--ui-sans); font-size: 12px; cursor: pointer; }
.ug-app .uhead .ulang:hover, .ug-menu-toggle:hover { background: #1a2b41; border-color: #8090a3; }
.ug-app .uhead .usub-btn, .ug-signin { padding: 9px 17px; border: 1px solid var(--gold); border-radius: 7px; background: var(--gold); color: #122036; font-family: var(--ui-sans); font-size: 12px; line-height: 1.5; letter-spacing: 0; font-weight: 600; text-transform: none; text-decoration: none; box-shadow: none; cursor: pointer; }
.ug-app .uhead .usub-btn:hover, .ug-signin:hover { background: #e9cd8d; transform: none; color: #122036; }
.ug-app .uhead .ustatus-pill { max-width: 330px; color: #c8d9d2; font: 11px var(--ui-sans); padding: 6px 5px 6px 10px; background: #122b2c; border-color: #31514b; gap: 8px; }
.ug-app .uhead .ustatus-pill .udot { box-shadow: none; background: #8ed2b5; }
.ug-app .uhead .ustatus-pill .usignout { color: #e3e8e6; border-color: #31514b; padding: 5px 7px; }
.ug-app .uhead .uhnav { display: flex; align-items: stretch; flex-wrap: nowrap; justify-content: flex-start; gap: 4px; border-top: 1px solid var(--line2); padding: 0; }
.ug-app .uhead .uhnav a { display: inline-flex; align-items: center; gap: 8px; position: relative; padding: 14px 13px; font-size: 12px; color: #a8b5c9; min-height: 48px; text-decoration: none; font-weight: 400; }
.ug-app .uhead .uhnav a:first-child { margin-inline-end: 12px; }
.ug-app .uhead .uhnav a:hover { color: #fff; background: rgba(255,255,255,.025); }
.ug-app .uhead .uhnav a.active { color: #e8cf93; font-weight: 500; }
.ug-app .uhead .uhnav a.active::after { content: ""; position: absolute; bottom: -1px; inset-inline: 13px; height: 2px; background: var(--gold); }
.ug-nav-icon { display: inline-flex; opacity: .8; }
.ug-nav-icon svg { width: 15px; height: 15px; }
.ug-menu-toggle { display: none; align-items: center; justify-content: center; }
.ug-menu-toggle svg { width: 18px; height: 18px; }
.ug-mobile-account:empty { display: none; }

.ug-app .wrap, .ug-app .hwrap { max-width: 1320px; padding: 0 32px 56px; margin: 0 auto; }
.ug-app .hwrap:empty { display: none; }
.ug-tool-intro { padding: 36px 0 25px; margin: 0; text-align: start; }
body.ug-sketch > .ug-tool-intro, body.ug-subdivision > .ug-tool-intro { max-width: 1320px; margin: 0 auto; padding-inline: 32px; }
.ug-breadcrumb { display: flex; align-items: center; gap: 9px; font-size: 11px; color: #9aa9bd; margin-bottom: 16px; }
.ug-breadcrumb a { color: #a8b5c9; text-decoration: none; }
.ug-breadcrumb a:hover { color: var(--gold); }
.ug-app .ug-tool-intro h1 { margin: 0; font: 500 clamp(29px,3.1vw,42px)/1.2 var(--ui-sans); letter-spacing: -1.3px; color: var(--ui-text); }
.ug-tool-intro .ug-tool-desc { max-width: 780px; margin-top: 12px; font-size: 14px; line-height: 1.7; color: var(--mute); }
.ug-tool-kicker { margin-bottom: 10px; font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); }
.ug-app .grid { grid-template-columns: minmax(340px,420px) minmax(0,1fr); gap: 24px; margin-top: 0; align-items: start; }
.ug-sketch .wrap, .ug-subdivision .wrap { grid-template-columns: minmax(340px,420px) minmax(0,1fr); gap: 24px; align-items: start; padding-top: 0; }
.ug-app .panel, .ug-app .card { min-width: 0; padding: 24px; border: 1px solid var(--line); background: var(--ui-surface); border-radius: 12px; box-shadow: 0 5px 24px rgba(0,0,0,.07); }
.ug-app .plabel { font-family: var(--ui-sans); font-weight: 600; font-size: 12px; line-height: 1.5; letter-spacing: .3px; color: #e6d3a6; text-transform: none; }
.ug-app .rule { background: var(--line2); margin: 18px 0; }
.ug-app .seglbl, .ug-app .opt label, .ug-app .field > label, .ug-app .fld > label, .ug-app .msel-lbl, .ug-app .celllabel { color: #c9d2df; font-family: var(--ui-sans); font-size: 12px; font-weight: 500; line-height: 1.6; letter-spacing: 0; text-transform: none; }
.ug-app .seglbl { margin: 20px 0 9px; }
.ug-app .tip, .ug-app .brief-hint, .ug-app .cellhint, .ug-app .subnote, .ug-app .note, .ug-app .usehint, .ug-app .prohint, .ug-app .byok-hint, .ug-app .chint { color: var(--mute); font-family: var(--ui-sans); font-size: 11.5px; line-height: 1.7; letter-spacing: normal; }
.ug-app .note { border-color: var(--line2); }
.ug-app .fieldwide, .ug-app .field { margin-top: 20px; }
.ug-app .drop { background: #0c1828; border: 1px dashed #506078; border-radius: 10px; min-height: 180px; padding: 24px 16px; gap: 10px; }
.ug-app .drop:hover, .ug-app .drop.drag { border-color: var(--gold); background: #15243a; }
.ug-app .drop.mini { min-height: 150px; }
.ug-app .drop .t, .ug-app .drop .dt { font-size: 13px; font-weight: 500; line-height: 1.55; color: #e6eaf0; max-width: 320px; }
.ug-app .drop .h, .ug-app .drop .dh { font-size: 11px; color: var(--mute); }
.ug-upload-icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; color: var(--gold); border: 1px solid #3d4350; border-radius: 10px; margin-bottom: 2px; background: #18263a; }
.ug-upload-icon svg { width: 20px; height: 20px; }
.ug-app .drop.editing { padding: 6px; min-height: 0; }
.ug-app .checkrow { margin-top: 12px; font-size: 11px; line-height: 1.65; }
.ug-app input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden]), .ug-app select, .ug-app textarea:not(#inp) {
  background-color: #0c1828; border: 1px solid #35455b; border-radius: 7px; color: #e9edf4; padding: 11px 12px; min-height: 42px; font-family: var(--ui-sans); font-size: 13px; line-height: 1.45; max-width: 100%;
}
.ug-app select { padding-inline-end: 32px; }
.ug-app input::placeholder, .ug-app textarea::placeholder { color: #8e9db3; letter-spacing: 0; }
.ug-app select option, .ug-app select optgroup { background-color: #101e32; color: #e4e9f2; }
.ug-app input:focus, .ug-app textarea:focus, .ug-app select:focus { border-color: var(--gold) !important; box-shadow: 0 0 0 3px rgba(213,182,110,.10); }
.ug-app input[type=checkbox], .ug-app input[type=radio], .ug-app input[type=range] { accent-color: var(--gold); }
.ug-control-label { display: block; font-size: 11px; color: #aebcd0; margin-bottom: 6px; }
.ug-app .chip, .ug-app .seg > button, .ug-app .srcTabs > button, .ug-app .ugsp-tabs > button { border-radius: 7px; border-color: #35455b; background: #101e32; color: #bdc9db; padding: 9px 12px; font-size: 12px; min-height: 38px; font-weight: 400; }
.ug-app .chip.on, .ug-app .seg > button.on, .ug-app .srcTabs > button.on, .ug-app .ugsp-tabs > button.on { color: #f0dca8; border-color: #a38b51; background: rgba(213,182,110,.10); box-shadow: none; }
.ug-app .chip:hover, .ug-app .seg > button:hover { border-color: #8f9fb4; }
.ug-app .srcTabs { gap: 7px; padding: 0; background: transparent; margin-top: 16px; }
.ug-app .srcTabs > button { white-space: normal; line-height: 1.45; }
.ug-app .msel-head { border-color: #35455b; border-radius: 7px; padding: 11px 12px; background: #0c1828; font-size: 13px; }
.ug-app .msel-menu { border-color: #4b5d76; background: #142239; }
.ug-app .msel-row { font-size: 13px; }
.ug-app .btn, .ug-app .gen, .ug-app button.primary, .ug-app .actions .primary { background: var(--gold); color: #111d2e; border: 1px solid var(--gold); border-radius: 8px; padding: 13px 18px; min-height: 46px; font-family: var(--ui-sans); font-size: 14px; font-weight: 600; box-shadow: none; }
.ug-app .btn:not(:disabled):hover, .ug-app .gen:not(:disabled):hover, .ug-app button.primary:not(:disabled):hover { background: #e7cb8b; filter: none; transform: translateY(-1px); }
.ug-app button:disabled { cursor: not-allowed; }
.ug-app .lang, .ug-app .rbtn, .ug-app .bbtn, .ug-app .geo-btn, .ug-app .bbtns button, .ug-app .btn2, .ug-app .actions button:not(.primary), .ug-app .svc-tools button { border: 1px solid #3a4b63; background: #192b43; color: #dbe3ef; border-radius: 7px; font: 500 12px/1.5 var(--ui-sans); min-height: 38px; }
.ug-app .rbtn.g, .ug-app .geo-btn.g { color: #111d2e; background: var(--gold); border-color: var(--gold); }
/* selected-state highlights (Polygon / Rectangle while drawing = red; Right angles / Coordinates / Labels toggles = gold) —
   restated here because the .ug-app .geo-btn rule above is loaded after the pages' own .geo-btn.on / .geo-btn.tog rules and would otherwise override them */
.ug-app .geo-btn.on { color: #fff; background: rgba(229, 57, 53, .22); border-color: #e53935; box-shadow: inset 0 0 0 1px rgba(229, 57, 53, .6); }
.ug-app .geo-btn.tog { color: #fff; background: rgba(201, 168, 76, .22); border-color: var(--gold); box-shadow: inset 0 0 0 1px rgba(201, 168, 76, .6); }
.ug-app .qfixed { font: 11px/1.5 var(--ui-sans); border-color: #3b4a4b; background: #152a2c; color: #bed4cd; border-radius: 6px; }
.ug-app .qfixed::before { color: #89bfa8; }
.ug-app .probox, .ug-app .byok, .ug-app .setblock, .ug-app .more, .ug-app .boundary-box, .ug-app .analysis, .ug-app .anchor-bar { border-color: var(--line); background: #0e1b2c; border-radius: 9px; box-shadow: none; }
.ug-app .protitle, .ug-app .more-h { font: 500 11px/1.5 var(--ui-sans); letter-spacing: .2px; color: #d8c28e; text-transform: none; }
.ug-app .byok-toggle, .ug-app .byok-t { font: 400 12px/1.55 var(--ui-sans); padding: 13px; color: #bfccdf; }
.ug-app .qpolicy { background: #13252e; border: 1px solid #2a424a; border-inline-start: 2px solid #7ca79b; border-radius: 7px; color: #b9cbd2; font-size: 11px; line-height: 1.7; }
.ug-advanced, .ug-scene-options { margin-top: 16px; border: 1px solid var(--line); border-radius: 9px; background: #0f1b2d; }
.ug-advanced > summary, .ug-scene-options > summary { padding: 13px 14px; font-size: 12px; color: #c3cee0; cursor: pointer; }
.ug-advanced > summary::marker, .ug-scene-options > summary::marker { color: var(--gold); }
.ug-advanced > div { margin: 0 !important; padding: 0 14px 14px !important; border: 0 !important; background: transparent !important; }
.ug-scene-options > .fieldwide { margin: 0; padding: 0 14px 14px; }
.ug-app .stage:not([data-n]), .ug-app .thread, .ug-app .results > .empty { background-color: #0c1828; border-color: var(--line); border-radius: 9px; }
.ug-app .stage:not([data-n]) { min-height: 470px; }
.ug-app .empty { color: #99aac2; gap: 12px; padding: 36px 24px; }
.ug-app .empty .ic, .ug-app .empty .big { margin: 0 auto 10px; width: 62px; height: 62px; border: 1px solid #354359; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #bfa970; background: #132236; font-size: 27px; }
.ug-app .empty .ic svg, .ug-app .empty .big svg { width: 29px; height: 29px; }
.ug-app .empty [style*="font-weight:700"] { font-weight: 500 !important; font-size: 16px; }
.ug-app .results { min-width: 0; }
.ug-app .results > .empty { min-height: 490px; background-image: linear-gradient(#24354b35 1px,transparent 1px),linear-gradient(90deg,#24354b35 1px,transparent 1px); background-size: 32px 32px; }
.ug-app .results .rhead { padding: 3px 0 16px; }
.ug-app .thread { min-height: 420px; height: 52vh; }
.ug-app .thread .empty { min-height: 380px; }
.ug-app .bubble { color: #d2dbe8; font-size: 14px; line-height: 1.8; }
.ug-app .bubble h1, .ug-app .bubble h2, .ug-app .bubble h3 { font-family: var(--ui-sans); }
.ug-app .msg.ai .av { background: var(--gold); border-radius: 8px; }
.ug-app .composer { border-color: #40516a; background: #0c1828; padding: 10px 10px 10px 14px; border-radius: 9px; }
.ug-app .send { background: var(--gold); border-radius: 7px; }
.ug-app .qbtn { background: #132338; border-color: #34475e; color: #b8c7da; border-radius: 8px; min-height: 44px; }
.ug-app .qbtn b { color: #d5ddeb; font-size: 12px; font-weight: 400; }
.ug-app .stages { gap: 3px; }
.ug-app .stages .stage { min-height: 0; padding: 9px 8px; border: 0; border-radius: 7px; background: none; }
.ug-app .stages .stage .n { border-color: #3c4e62; color: #bba774; border-radius: 6px; font-size: 10px; }
.ug-app .stages .stage .t { color: #b7c6d9; font-size: 12px; }
.ug-app .legend { border-color: var(--line); padding: 13px; gap: 12px; grid-template-columns: 1fr; background: #0c1828; }
.ug-app .legend .lg { font-size: 11px; }
.ug-app .seqnote { color: #b4c3d7; background: #16273a; border-color: #304058; font-size: 12px; line-height: 1.7; }
.ug-app .row { gap: 14px; }
.ug-app .row > .fld { min-width: 160px; }
.ug-app .cell { min-width: 0; }
.ug-app .cell .cellhint { font-size: 11px; }
.ug-app .cells { flex-direction: column; }
.ug-app .svcgrid .svc { font-size: 12px; }
.ug-app .err { border-color: #8e5953; }
/* Zoning → 3D and Project Twin: the reference panel keeps the left column for the whole workflow and every later card — the
   edit card, messages, the busy state and the RESULT gallery — sits in the right column beside it (as the Instant Design result
   panel does). Previously the result card spanned both columns below the grid while the sticky reference panel kept floating
   over it, so generated images were painted across the panel and the configuration text. */
.ug-sequential { display: grid; grid-template-columns: minmax(300px,390px) minmax(0,1fr); align-items: start; column-gap: 24px; row-gap: 0; }
.ug-sequential > * { grid-column: 1 / -1; margin-bottom: 24px; }
.ug-sequential > .ug-reference-panel { grid-column: 1; grid-row: 2 / span 7; margin: 0; align-self: start; position: static; }
.ug-sequential > .ug-config-panel { grid-column: 2; grid-row: 2; margin: 0 0 24px; }
.ug-sequential > #editcard, .ug-sequential > #err, .ug-sequential > #ugRenew, .ug-sequential > #busy, .ug-sequential > #result, .ug-sequential > .ug-output-record { grid-column: 2; }
.ug-sequential > footer { grid-column: 1 / -1; position: relative; z-index: 1; margin-bottom: 0; }
.ug-sequential > .ug-tool-intro { padding-bottom: 0; }
.ug-sequential > .card { margin-top: 0; }
.ug-app footer, .ug-app footer.contact { margin-top: 48px; padding: 28px 0 0; border-top: 1px solid var(--line2); text-align: start; }
.ug-app footer.contact { max-width: 1256px; margin-inline: auto; padding-bottom: 56px; } /* same space below the contact links as Instant Design / Copilot (their .wrap carries the 56px) */
.ug-app .c-eyebrow, .ug-app .foot-eyebrow { font: 10px var(--ui-sans); letter-spacing: 1.5px; }
.ug-app .c-title, .ug-app .foot-studio { font: 500 23px/1.4 var(--ui-serif); margin: 10px 0 0; }
.ug-app .c-rows, .ug-app .foot-links { display: flex; justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 8px 28px; margin: 16px 0 0; padding: 0; max-width: none; }
.ug-app .c-row, .ug-app .foot-link, .ug-app .c-row:last-child, .ug-app .foot-link:last-child { border: 0; font-size: 12px; font-weight: 400; padding: 5px 0; color: #a7b7ce; }
.ug-app .c-row svg { width: 15px; height: 15px; }
.ug-app .c-foot { margin-top: 22px; color: #8495ae; font: 9px/1.6 var(--ui-sans); letter-spacing: 1px; }
.ug-app .foot-sub { color: var(--mute); font-size: 12px; }

/* Studio home: readable, localised copy replaces poster-style image cards. */
.ug-home .wrap { padding-bottom: 40px; }
.ug-home .ug-hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 70px; margin: 0; padding: 55px 0 42px; text-align: start; }
.ug-eyebrow { color: var(--gold); font-size: 10px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; display: flex; align-items: center; gap: 9px; }
.ug-eyebrow::before { content: ""; display: inline-block; width: 18px; height: 1px; background: var(--gold); }
.ug-home .ug-hero h1 { font: 500 clamp(42px,4.7vw,64px)/1.12 var(--ui-serif); color: #f2eee5; letter-spacing: -1.8px; margin: 20px 0 19px; }
.ug-home .ug-hero h1 em { color: var(--gold); font-weight: inherit; }
.ug-hero-description { font-size: 14px; max-width: 490px; line-height: 1.8; color: var(--mute); }
.ug-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 27px; }
.ug-primary-link { padding: 12px 19px; background: var(--gold); color: #112036 !important; font-size: 12px; font-weight: 600; border: 1px solid var(--gold); border-radius: 7px; text-decoration: none; display: inline-flex; align-items: center; gap: 22px; }
.ug-primary-link:hover { background: #e6ca8a; }
.ug-primary-link svg { width: 15px; height: 15px; }
.ug-secondary-link { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #b3c0d2 !important; text-decoration: none; }
.ug-secondary-link:hover { color: var(--gold) !important; }
.ug-hero-footnote { display: flex; gap: 18px; margin-top: 28px; font-size: 10px; color: #9aaac0; }
.ug-hero-footnote span { display: inline-flex; align-items: center; gap: 6px; }
.ug-hero-footnote svg { width: 12px; height: 12px; color: #bea56b; }
.ug-hero-visual { position: relative; border-radius: 12px; border: 1px solid #3b4754; background: #142035; padding: 9px; transform: rotate(1deg); }
.ug-hero-render { aspect-ratio: 1672 / 941; position: relative; overflow: hidden; border-radius: 6px; background: #0c1927; }
.ug-hero-render picture { display: block; width: 100%; height: 100%; }
.ug-hero-render img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.ug-render-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 6px 4px; color: #c8d4e4; font-size: 10px; }
.ug-render-label span:first-child { display: flex; gap: 7px; align-items: center; }
.ug-render-label svg { width: 12px; height: 12px; color: var(--gold); }
.ug-visual-note { color: #92a2ba; font-size: 9px; }
.ug-visual-number { position: absolute; right: 18px; top: 18px; color: #e1d4b2; background: rgba(12,23,39,.84); border: 1px solid #70816a55; font: 10px var(--ui-sans); padding: 6px 10px; border-radius: 4px; }
.ug-process { display: grid; grid-template-columns: repeat(3,1fr); border-block: 1px solid var(--line2); padding: 18px 0; margin-bottom: 36px; }
.ug-process-item { display: flex; gap: 12px; align-items: center; padding-inline: 24px; border-inline-start: 1px solid var(--line2); }
.ug-process-item:first-child { border-inline-start: 0; padding-inline-start: 0; }
.ug-process-number { font-size: 10px; color: #b69b63; letter-spacing: 1px; }
.ug-process-item strong { display: block; font-weight: 500; font-size: 12px; color: #d3dce8; }
.ug-process-item p { font-size: 10px; color: #9eacc0; margin-top: 3px; }
.ug-library-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 22px; margin-bottom: 22px; }
.ug-library-head h2 { color: var(--ui-text); font-size: 22px; font-weight: 500; letter-spacing: -.6px; }
.ug-library-head p { color: var(--mute); font-size: 12px; margin-top: 5px; }
.ug-search { display: flex; align-items: center; gap: 8px; padding-inline-start: 12px; background: #111f32; border: 1px solid var(--line); border-radius: 7px; width: 250px; }
.ug-search svg { width: 15px; height: 15px; color: #97a7bd; flex: none; }
.ug-app .ug-search input { padding: 11px 10px 11px 0 !important; border: 0 !important; background: transparent !important; width: 100%; font-size: 12px !important; box-shadow: none; }
.ug-library-bar { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 18px; }
.ug-filters { display: flex; gap: 7px; flex-wrap: wrap; }
.ug-filter { border: 1px solid transparent; background: transparent; color: #a0b0c6; font-size: 11px; padding: 8px 14px; border-radius: 6px; cursor: pointer; min-height: 36px; }
.ug-filter:hover { color: #fff; background: #182a40; }
.ug-filter.active { color: #e9d4a3; background: #262b30; border-color: #655b44; }
.ug-tool-count { font-size: 10px; color: #8e9db3; }
.ug-home .tools { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin: 0; }
.ug-home .tcard { padding: 0; border: 1px solid #2b3b51; border-radius: 10px; background: #111f32; color: inherit; display: flex; flex-direction: column; box-shadow: none; text-decoration: none; }
.ug-home .tcard:hover { transform: translateY(-3px); border-color: #8a7952; background: #14243a; box-shadow: 0 12px 26px #030a132a; }
/* The six tool posters (760×760) are shown complete — no strip crop. The poster already carries its own number, so the overlaid index badge is off. */
.ug-tool-art { position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: #182a40; border-bottom: 1px solid #2b3b51; }
.ug-home .ug-tool-art img { width: 100%; height: 100%; position: static; transform: none; object-fit: contain; display: block; filter: none; }
.ug-home .ug-tool-art .ug-tool-index { display: none; }
.ug-tool-index { position: absolute; top: 10px; left: 10px; color: #d3e0e8; background: #0b192be6; border: 1px solid #87929e44; border-radius: 4px; padding: 4px 7px; font-size: 9px; }
.ug-card-body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.ug-card-type { color: #bea977; font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 9px; }
.ug-home .t-title { font: 500 20px/1.3 var(--ui-sans); color: #edece7; letter-spacing: -.5px; margin: 0 0 10px; }
.ug-home .t-desc { font: 400 12px/1.8 var(--ui-sans); color: #a8b6ca; margin: 0 0 18px; }
.ug-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line2); padding-top: 14px; margin-top: auto; }
.ug-card-input { color: #98a9c0; font-size: 10px; }
.ug-home .t-open { color: #e1c68a; font: 500 11px var(--ui-sans); gap: 8px; white-space: nowrap; }
.ug-home .t-open svg { width: 14px; height: 14px; }
.ug-home .tcard[aria-busy=true] { opacity: .65; cursor: progress; }
.ug-no-tools { padding: 50px 20px; text-align: center; border: 1px dashed #3b4a60; border-radius: 10px; color: #a9b7cc; }
.ug-reset-search { display: block; margin: 16px auto 0; padding: 9px 15px; border: 1px solid #6c6047; border-radius: 6px; background: #242b32; color: var(--gold); cursor: pointer; }
.ug-home .note { max-width: none; text-align: start; margin: 25px 0 0; padding: 15px 0 0; font-size: 10px; color: #91a2b9; }
.ug-app #ug-sub-modal { background: rgba(4,11,20,.86); backdrop-filter: blur(10px); font-family: var(--ui-sans); }
.ug-app .ugsub-box { background: #111f32; border-color: #6a6049; border-radius: 13px; box-shadow: 0 25px 90px #0006; }
.ug-app .ugsub-card { background: #16283d; border-color: #756442; box-shadow: none; }
.ug-app .ugsub-cta { background: var(--gold); color: #111d2e; font-family: var(--ui-sans); font-size: 13px; text-transform: none; letter-spacing: 0; border-color: var(--gold); }
.ug-app .ugsub-card-price { color: #f2e5c7; }
.ug-app .ugsub-card-lbl, .ug-app .ugsub-card-term { color: #b1bfd1; }

/* Sign-in keeps the existing form and login action. */
body.ug-login { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); align-items: center; gap: 70px; max-width: 1120px; margin: 0 auto; padding: 70px 40px; min-height: 100vh; }
.ug-auth-intro .ug-auth-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #eaece9; font-size: 21px; letter-spacing: -.7px; }
.ug-auth-brand img { width: 38px; height: 42px; padding: 4px; background: #fff; border-radius: 6px; object-fit: contain; }
.ug-auth-top { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.ug-login[dir=rtl] .ug-auth-brand { direction: ltr; }
.ug-login[dir=rtl] .ug-auth-intro h2 { font-family: var(--ui-sans); letter-spacing: 0; font-size: 43px; line-height: 1.5; }
.ug-auth-intro h2 { margin: 44px 0 20px; font: 500 51px/1.17 var(--ui-serif); letter-spacing: -1.4px; color: #f0eae0; }
.ug-auth-intro h2 em { color: var(--gold); font-weight: inherit; }
.ug-auth-intro p { color: #a7b6cb; font-size: 14px; line-height: 1.8; max-width: 410px; }
.ug-auth-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; max-width: 400px; }
.ug-auth-tools span { padding: 6px 10px; border: 1px solid #33455e; border-radius: 5px; font-size: 10px; color: #afbed1; }
.ug-login .card { width: 100%; max-width: 430px; text-align: start; padding: 34px; margin: 0; }
.ug-login .mark { width: 45px; height: 49px; padding: 5px; border-radius: 7px; margin: 0 0 24px; }
.ug-login h1 { font: 500 28px/1.3 var(--ui-sans); letter-spacing: -.6px; margin: 0 0 10px; }
.ug-login .sub { margin: 0 0 26px; font-size: 13px; color: var(--mute); }
.ug-login label { color: #c2cede; font: 500 12px var(--ui-sans); text-transform: none; letter-spacing: 0; margin-bottom: 9px; }
.ug-login .btn { margin-top: 18px; }
.ug-login .foot { border-color: var(--line); font-size: 11px; line-height: 1.8; margin-top: 24px; padding-top: 20px; }
.ug-login .back { font-size: 11px; margin-top: 20px; }
.ug-login .msg { font-size: 12px; }

/* Logical alignment also covers pages whose legacy language code sets body.dir only. */
.ug-app[dir=rtl] .ug-header-top { direction: rtl; }
.ug-app[dir=rtl] .ubrand { direction: ltr; }
.ug-app[dir=rtl] .ug-head-actions { direction: rtl; }
.ug-app[dir=rtl] .uhnav { direction: rtl; }
.ug-app[dir=rtl] .ug-tool-intro h1, .ug-home[dir=rtl] .ug-hero h1, .ug-home[dir=rtl] .t-title { font-family: var(--ui-sans); font-weight: 500; letter-spacing: 0; }
.ug-home[dir=rtl] .ug-hero h1 { line-height: 1.45; font-size: clamp(38px,4vw,54px); }
.ug-app[dir=rtl] .ug-primary-link svg, .ug-app[dir=rtl] .t-open svg { transform: scaleX(-1); }
.ug-app[dir=rtl] .ug-breadcrumb .ug-breadcrumb-separator { transform: scaleX(-1); }
.ug-app[dir=rtl] select { background-position: left 12px center; }
.ug-app[dir=rtl] .ug-hero-visual { direction: ltr; }
.ug-app[dir=rtl] .ug-render-label { direction: rtl; }
.ug-login[dir=rtl] label { text-align: right; }
@media (min-width: 1051px) {
  /* Zoning → 3D / Project Twin: the reference panel is NOT sticky (it scrolls with the page like Instant Design's brief column) —
     a floating panel was being painted across the configuration and result cards. */
  .ug-instant .grid > .panel:last-child, .ug-copilot .grid > .panel:last-child, .ug-sketch .results, .ug-subdivision .results { position: sticky; top: 150px; }
  .ug-sequential > .ug-reference-panel { position: static; }
  .ug-instant .grid > .panel:last-child, .ug-copilot .grid > .panel:last-child { max-height: calc(100dvh - 170px); overflow: auto; }
}
@media (max-width: 1100px) {
  .ug-workspace-tag { display: none; }
  .ug-app .uhead .uhnav a { padding-inline: 10px; font-size: 11px; }
  .ug-home .ug-hero { gap: 36px; }
  .ug-app .grid, .ug-sketch .wrap, .ug-subdivision .wrap { grid-template-columns: minmax(320px,370px) minmax(0,1fr); }
  .ug-app .panel, .ug-app .card { padding: 20px; }
  .ug-sequential { grid-template-columns: 330px minmax(0,1fr); }
  .ug-home .tools { gap: 16px; }
  .ug-card-body { padding: 17px; }
  .ug-home .t-title { font-size: 18px; }
}
@media (max-width: 900px) {
  .ug-header-inner { padding-inline: 24px; }
  .ug-app .wrap, .ug-app .hwrap { padding-inline: 24px; }
  body.ug-sketch > .ug-tool-intro, body.ug-subdivision > .ug-tool-intro { padding-inline: 24px; }
  .ug-app .grid, .ug-sketch .wrap, .ug-subdivision .wrap, .ug-sequential { grid-template-columns: 1fr; }
  .ug-sequential > .ug-reference-panel, .ug-sequential > .ug-config-panel, .ug-sequential > #editcard, .ug-sequential > #err, .ug-sequential > #ugRenew, .ug-sequential > #busy, .ug-sequential > #result, .ug-sequential > .ug-output-record { grid-column: 1; grid-row: auto; }
  .ug-sequential > .ug-config-panel { margin-bottom: 24px; }
  .ug-app .panel, .ug-app .card { padding: 24px; }
  .ug-app .cells { flex-direction: row; }
  .ug-app .legend { grid-template-columns: 1fr 1fr; }
  .ug-home .tools { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ug-home .ug-hero { grid-template-columns: 1.15fr .85fr; padding-top: 36px; gap: 26px; }
  .ug-home .ug-hero h1 { font-size: 43px; }
  .ug-visual-note { display: none; }
  .ug-process-item { padding-inline: 15px; }
  .ug-process-item p { font-size: 9px; }
  .ug-nav-icon { display: none; }
  .ug-app .uhead .uhnav a:first-child { margin-inline-end: 4px; }
  .ug-app footer.contact { margin-inline: 24px; }
  body.ug-login { gap: 36px; padding: 50px 30px; }
  .ug-auth-intro h2 { font-size: 40px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 96px; }
  .ug-header-inner { padding: 0 18px; }
  .ug-header-top { min-height: 74px; gap: 12px; }
  .ug-app .uhead .brand-mark { width: 31px; height: 35px; padding: 3px; border-radius: 5px; }
  .ug-app .uhead .ubrand { gap: 8px; }
  .ug-app .uhead .ubrand-tx b { font-size: 18px; }
  .ug-app .uhead .ubrand-tx > span { display: none; }
  .ug-head-actions { gap: 8px; }
  .ug-app .uhead .ulang { min-width: 38px; padding-inline: 8px; font-size: 11px; }
  .ug-menu-toggle { display: inline-flex; }
  .ug-signin { background: transparent; color: var(--gold); border-color: #62583f; padding: 8px 11px; font-size: 11px; }
  .ug-app .uhead .usub-btn { padding: 8px 11px; min-height: 38px; font-size: 11px; }
  .ug-app .uhead .uhnav { display: none; padding: 10px 0 16px; flex-direction: column; gap: 4px; }
  .ug-app .uhead .uhnav.ug-nav-open { display: flex; max-height: calc(100dvh - 85px); overflow: auto; }
  .ug-mobile-account:not(:empty) { display: flex; align-items: center; gap: 10px; padding: 15px 14px 2px; border-top: 1px solid var(--line); margin-top: 7px; }
  .ug-app .uhead .uhnav a { padding: 12px 14px; min-height: 44px; font-size: 13px; border-radius: 7px; }
  .ug-app .uhead .uhnav a.active { background: #272c32; }
  .ug-app .uhead .uhnav a.active::after { inset-inline-start: 0; inset-inline-end: auto; top: 10px; bottom: 10px; height: auto; width: 2px; }
  .ug-nav-icon { display: inline-flex; }
  .ug-app .uhead .ustatus-pill { max-width: 165px; font-size: 10px; padding-inline: 7px 3px; gap: 5px; }
  .ug-app .uhead .ustatus-pill > span:not(.udot) { max-width: 75px; text-overflow: ellipsis; overflow: hidden; }
  .ug-app .wrap, .ug-app .hwrap { padding: 0 18px 32px; }
  body.ug-sketch > .ug-tool-intro, body.ug-subdivision > .ug-tool-intro { padding-inline: 18px; }
  .ug-tool-intro { padding: 25px 0 22px; }
  .ug-breadcrumb { font-size: 10px; margin-bottom: 14px; }
  .ug-app .ug-tool-intro h1 { font-size: 29px; letter-spacing: -.8px; }
  .ug-tool-intro .ug-tool-desc { font-size: 13px; margin-top: 10px; }
  .ug-tool-kicker { font-size: 9px; }
  .ug-app .panel, .ug-app .card { padding: 18px; border-radius: 10px; }
  .ug-app .grid, .ug-sketch .wrap, .ug-subdivision .wrap { gap: 20px; }
  .ug-app input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden]), .ug-app select, .ug-app textarea { font-size: 16px; }
  .ug-app .chip, .ug-app .seg > button { min-height: 42px; }
  .ug-app .prohead { flex-wrap: wrap; }
  .ug-app .stage:not([data-n]) { min-height: 340px; }
  .ug-app .results > .empty { min-height: 350px; }
  .ug-app .thread { height: 55vh; min-height: 370px; }
  .ug-app .thread .empty { min-height: 340px; padding: 22px 12px; }
  .ug-app .legend { grid-template-columns: 1fr; }
  .ug-app .cells { flex-direction: column; }
  .ug-app .row > .fld { flex: 1 1 100%; min-width: 0; }
  .ug-app .geo-row { flex-wrap: wrap; }
  .ug-app .geo-row input { min-width: 0; }
  .ug-app .target-grid, .ug-app .grid2, .ug-app .opts { gap: 12px; }
  .ug-home .ug-hero { grid-template-columns: 1fr; padding: 34px 0 30px; gap: 28px; }
  .ug-home .ug-hero h1 { font-size: 47px; margin: 17px 0 16px; }
  .ug-hero-description { max-width: 470px; font-size: 13px; }
  .ug-hero-actions { margin-top: 22px; }
  .ug-hero-footnote { margin-top: 20px; }
  .ug-hero-visual { transform: none; }
  .ug-visual-note { display: inline; }
  .ug-process { margin-bottom: 28px; padding: 16px 0; }
  .ug-process-item { padding-inline: 10px; gap: 8px; align-items: flex-start; }
  .ug-process-item strong { font-size: 10px; }
  .ug-process-item p { display: none; }
  .ug-process-number { font-size: 8px; padding-top: 2px; }
  .ug-library-head { align-items: stretch; gap: 16px; margin-bottom: 18px; }
  .ug-library-head > div { flex: 1 1 100%; }
  .ug-library-head h2 { font-size: 21px; }
  .ug-search { width: 100%; }
  .ug-app .ug-search input { font-size: 16px !important; }
  .ug-library-bar { gap: 10px; align-items: flex-start; }
  .ug-filters { gap: 3px; }
  .ug-filter { padding: 8px 10px; font-size: 10px; }
  .ug-tool-count { padding-top: 10px; flex-shrink: 0; }
  .ug-home .tools { gap: 16px; }
  .ug-home .t-title { font-size: 18px; }
  .ug-card-input { max-width: 50%; }
  .ug-app footer, .ug-app footer.contact { margin-top: 32px; }
  .ug-app footer.contact { margin-inline: 18px; }
  .ug-app .c-title, .ug-app .foot-studio { font-size: 22px; }
  body.ug-login { display: flex; flex-direction: column; justify-content: center; gap: 30px; padding: 35px 22px; }
  .ug-auth-intro { width: 100%; max-width: 430px; }
  .ug-auth-intro h2 { font-size: 33px; margin: 28px 0 12px; }
  .ug-auth-intro p { font-size: 12px; }
  .ug-auth-tools { display: none; }
  .ug-login .card { padding: 26px; }
}
@media (max-width: 480px) {
  .ug-home .tools { grid-template-columns: 1fr; }
  .ug-tool-art { aspect-ratio: 1 / 1; }
  .ug-card-body { padding: 20px; }
  .ug-home .t-title { font-size: 21px; }
  .ug-home .t-desc { font-size: 13px; }
  .ug-home .ug-hero h1 { font-size: 43px; }
  .ug-hero-footnote { flex-wrap: wrap; gap: 8px 18px; }
  .ug-header-top { flex-wrap: wrap; }
  .ug-app .uhead .ustatus-pill { max-width: 135px; }
  .ug-app .uhead .ustatus-pill > span:not(.udot) { max-width: 49px; }
}
@media (max-width: 370px) {
  .ug-header-inner { padding-inline: 12px; }
  .ug-app .uhead .ubrand-tx b { font-size: 16px; }
  .ug-head-actions { gap: 5px; }
  .ug-home .ug-hero h1 { font-size: 37px; }
  .ug-tool-count { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media print {
  header.uhead, .ug-skip, .ug-hero-actions, .ug-filters, .ug-search { display: none !important; }
  .ug-app .grid, .ug-sketch .wrap, .ug-subdivision .wrap, .ug-sequential { display: block; }
  .ug-app .panel, .ug-app .results, .ug-sequential > .ug-reference-panel { position: static !important; max-height: none !important; overflow: visible !important; }
}

/* Studio plan only: the 'Use your own OpenAI API key' box and the folded 'Other image providers' settings are hidden on all six
   tools (2026-11-03). The inputs and handlers stay in the pages, so a stored key or provider setting is still honoured by the
   engines; remove these two rules to show the sections again. */
.ug-app #byok, .ug-app details.ug-advanced { display: none !important; }
/* Quality is fixed on the Studio plan, so the Quality field (label, '1 image per picture' badge and its key/credit note) is
   hidden on all six tools (2026-11-03). The hidden #quality input stays, so the engines still receive the value. */
.ug-app .qfixed, .ug-app #qnote, .ug-instant .usehint, .ug-app .fieldwide:has(> #quality), .ug-app .fld:has(> #quality), .ug-app .probox:has(> #quality), .ug-app .seglbl:has(+ #quality) { display: none !important; }
