Overhaul GeoIntel model selection and map UX
This commit is contained in:
@@ -1826,3 +1826,270 @@ button.overview-command-card { cursor: pointer; }
|
||||
overflow-wrap: anywhere;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
/* Central task-oriented model selector */
|
||||
.model-selector {
|
||||
display: grid;
|
||||
gap: 0.35rem;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.model-selector-label {
|
||||
color: var(--gi-text-muted);
|
||||
font-size: var(--gi-text-2xs);
|
||||
font-weight: 750;
|
||||
letter-spacing: 0.06em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.model-selector-trigger {
|
||||
display: grid;
|
||||
grid-template-columns: 2.25rem minmax(0, 1fr) auto;
|
||||
gap: 0.65rem;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
min-height: 3.25rem;
|
||||
border: 1px solid var(--gi-line-strong);
|
||||
border-radius: var(--gi-radius-md);
|
||||
padding: 0.45rem 0.6rem;
|
||||
background: var(--gi-surface);
|
||||
color: var(--gi-text);
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.model-selector-trigger:hover:not(:disabled) { border-color: var(--gi-brand-500); background: var(--gi-brand-50); }
|
||||
.model-selector-trigger:focus-visible { outline: 3px solid color-mix(in srgb, var(--gi-brand-500) 28%, transparent); outline-offset: 2px; }
|
||||
.model-selector-trigger > span:nth-child(2) { display: grid; gap: 0.08rem; min-width: 0; }
|
||||
.model-selector-trigger strong,
|
||||
.model-selector-trigger small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.model-selector-trigger strong { font-size: var(--gi-text-sm); }
|
||||
.model-selector-trigger small { color: var(--gi-text-muted); font-size: var(--gi-text-xs); }
|
||||
.model-selector-trigger > svg { width: 1rem; color: var(--gi-text-muted); }
|
||||
.model-selector-trigger-icon { display: grid; width: 2.25rem; height: 2.25rem; place-items: center; border-radius: var(--gi-radius-sm); background: var(--gi-brand-100); color: var(--gi-brand-700); }
|
||||
.model-selector-trigger-icon svg { width: 1.05rem; }
|
||||
|
||||
.model-selector-dialog {
|
||||
width: min(46rem, calc(100vw - 2rem));
|
||||
max-height: min(47rem, calc(100dvh - 2rem));
|
||||
border: 0;
|
||||
border-radius: var(--gi-radius-xl);
|
||||
padding: 0;
|
||||
background: var(--gi-surface);
|
||||
color: var(--gi-text);
|
||||
box-shadow: 0 1.5rem 4rem rgba(4, 45, 39, 0.24);
|
||||
}
|
||||
.model-selector-dialog::backdrop { background: rgba(3, 27, 24, 0.52); backdrop-filter: blur(3px); }
|
||||
.model-selector-dialog-header { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--gi-line); padding: 1.15rem 1.25rem 1rem; }
|
||||
.model-selector-dialog-header h2 { margin: 0.15rem 0 0; font-size: clamp(1.15rem, 3vw, 1.45rem); }
|
||||
.model-selector-dialog-header p { max-width: 34rem; margin: 0.3rem 0 0; color: var(--gi-text-muted); font-size: var(--gi-text-sm); }
|
||||
.model-selector-dialog .icon-action { flex: 0 0 auto; min-width: 2.75rem; min-height: 2.75rem; }
|
||||
.model-selector-options { display: grid; gap: 0.65rem; max-height: min(31rem, calc(100dvh - 15rem)); overflow-y: auto; padding: 1rem 1.25rem; }
|
||||
.model-selector-advanced { border-top: 1px solid var(--gi-line); padding-top: 0.65rem; }
|
||||
.model-selector-advanced > summary { display: flex; justify-content: space-between; min-height: 2.75rem; align-items: center; color: var(--gi-brand-800); font-weight: 750; cursor: pointer; }
|
||||
.model-selector-advanced > summary small { color: var(--gi-text-muted); font-weight: 600; }
|
||||
.model-selector-advanced-grid { display: grid; gap: 0.55rem; padding-top: 0.45rem; }
|
||||
|
||||
.model-option-card {
|
||||
display: grid;
|
||||
grid-template-columns: 2.5rem minmax(0, 1fr) 1.5rem;
|
||||
gap: 0.75rem;
|
||||
width: 100%;
|
||||
min-height: 5.25rem;
|
||||
border: 1px solid var(--gi-line);
|
||||
border-radius: var(--gi-radius-lg);
|
||||
padding: 0.8rem;
|
||||
background: var(--gi-surface);
|
||||
color: var(--gi-text);
|
||||
text-align: left;
|
||||
}
|
||||
.model-option-card:hover:not(:disabled) { border-color: var(--gi-brand-400); background: var(--gi-brand-50); }
|
||||
.model-option-card:focus-visible { outline: 3px solid color-mix(in srgb, var(--gi-brand-500) 30%, transparent); outline-offset: 2px; }
|
||||
.model-option-card:disabled { cursor: not-allowed; opacity: 0.62; }
|
||||
.model-option-selected { border-color: var(--gi-brand-600); box-shadow: inset 3px 0 0 var(--gi-brand-600); }
|
||||
.model-option-icon { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border-radius: var(--gi-radius-md); background: var(--gi-brand-100); color: var(--gi-brand-700); }
|
||||
.model-option-icon svg { width: 1.15rem; }
|
||||
.model-option-copy { display: grid; gap: 0.25rem; min-width: 0; }
|
||||
.model-option-copy > span:not(.model-option-heading):not(.model-option-facts) { color: var(--gi-text-muted); font-size: var(--gi-text-sm); }
|
||||
.model-option-copy > small { color: var(--gi-text); font-size: var(--gi-text-xs); }
|
||||
.model-option-heading { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; justify-content: space-between; }
|
||||
.model-option-heading strong { font-size: var(--gi-text-md); }
|
||||
.model-option-heading em { border-radius: 999px; padding: 0.15rem 0.42rem; background: var(--gi-brand-100); color: var(--gi-brand-800); font-size: 0.62rem; font-style: normal; font-weight: 750; }
|
||||
.model-option-facts { display: flex; flex-wrap: wrap; gap: 0.3rem 0.7rem; margin-top: 0.15rem; color: var(--gi-text-muted); }
|
||||
.model-option-facts small { font-size: 0.68rem; }
|
||||
.model-option-technical { margin-top: 0.2rem; }
|
||||
.model-option-technical summary { width: fit-content; color: var(--gi-brand-700); font-size: 0.68rem; font-weight: 700; cursor: pointer; }
|
||||
.model-option-technical small { display: block; margin-top: 0.2rem; color: var(--gi-text-muted); font-size: 0.65rem; }
|
||||
.model-option-check { display: grid; width: 1.5rem; height: 1.5rem; place-items: center; align-self: center; border: 1px solid var(--gi-line-strong); border-radius: 50%; color: var(--gi-brand-700); }
|
||||
.model-option-selected .model-option-check { border-color: var(--gi-brand-600); background: var(--gi-brand-100); }
|
||||
.model-option-check svg { width: 0.9rem; }
|
||||
.model-selector-dialog-footer { display: flex; gap: 0.75rem; align-items: center; justify-content: space-between; border-top: 1px solid var(--gi-line); padding: 0.75rem 1.25rem; background: var(--gi-surface-muted); }
|
||||
.model-selector-dialog-footer > span { display: flex; gap: 0.4rem; align-items: center; color: var(--gi-text-muted); font-size: var(--gi-text-xs); }
|
||||
.model-selector-dialog-footer svg { width: 0.95rem; }
|
||||
.model-selector-loading { display: flex; gap: 0.5rem; align-items: center; padding: 1rem 1.25rem; color: var(--gi-text-muted); }
|
||||
.model-selector-loading svg { width: 1rem; animation: gi-spin 1s linear infinite; }
|
||||
|
||||
.assistant-context-strip { grid-template-columns: minmax(11rem, 0.8fr) minmax(18rem, 1.3fr) !important; }
|
||||
.assistant-context-strip .model-selector { min-width: 0; }
|
||||
|
||||
@media (max-width: 700px) {
|
||||
.model-selector-dialog { width: 100%; max-width: none; max-height: 88dvh; margin: auto 0 0; border-radius: var(--gi-radius-xl) var(--gi-radius-xl) 0 0; }
|
||||
.model-selector-options { max-height: calc(88dvh - 13rem); padding-inline: 0.8rem; }
|
||||
.model-selector-dialog-header, .model-selector-dialog-footer { padding-inline: 0.9rem; }
|
||||
.model-selector-dialog-footer { align-items: stretch; flex-direction: column; }
|
||||
.model-selector-dialog-footer .secondary-action { width: 100%; min-height: 2.75rem; }
|
||||
.model-option-card { grid-template-columns: 2.25rem minmax(0, 1fr) 1.35rem; gap: 0.55rem; padding: 0.7rem; }
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.model-selector-loading svg { animation: none; }
|
||||
}
|
||||
/* Calm analysis context and readable theme navigation */
|
||||
.workbench-topbar {
|
||||
gap: var(--gi-space-2);
|
||||
padding-block: 0.35rem;
|
||||
}
|
||||
|
||||
.context-bar {
|
||||
display: flex;
|
||||
gap: 0;
|
||||
align-items: center;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.context-bar > div,
|
||||
.context-bar > div:first-child {
|
||||
position: relative;
|
||||
display: grid;
|
||||
flex: 0 1 auto;
|
||||
grid-template-columns: auto minmax(0, auto);
|
||||
gap: 0.25rem;
|
||||
align-items: baseline;
|
||||
max-width: min(22rem, 28vw);
|
||||
min-height: 0;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
padding: 0.25rem 0.75rem;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.context-bar > div + div::before {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0;
|
||||
width: 1px;
|
||||
height: 1.4rem;
|
||||
background: var(--gi-line);
|
||||
content: '';
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
|
||||
.context-bar span { font-size: 0.58rem !important; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
|
||||
.context-bar strong { max-width: 18rem; overflow: hidden; margin: 0; font-size: var(--gi-text-xs); text-overflow: ellipsis; white-space: nowrap; }
|
||||
.context-health { min-width: auto; border: 0; padding-inline: 0.45rem; background: transparent; box-shadow: none; }
|
||||
.context-account { border-color: var(--gi-line); box-shadow: none; }
|
||||
|
||||
.geo-explorer-layout,
|
||||
.workbench-shell-guest .geo-explorer-layout {
|
||||
grid-template-columns: clamp(18rem, 18vw, 22rem) minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.geo-theme-search {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex: 0 0 auto;
|
||||
gap: 0.45rem;
|
||||
align-items: center;
|
||||
margin: 0 var(--gi-space-3) var(--gi-space-2);
|
||||
border: 1px solid var(--gi-line);
|
||||
border-radius: var(--gi-radius-md);
|
||||
padding: 0.45rem 0.6rem;
|
||||
background: var(--gi-surface);
|
||||
}
|
||||
.geo-theme-search:focus-within { border-color: var(--gi-brand-500); box-shadow: var(--gi-focus-ring); }
|
||||
.geo-theme-search svg { flex: 0 0 auto; width: 0.95rem; color: var(--gi-text-muted); }
|
||||
.geo-theme-search input { width: 100%; min-width: 0; border: 0; padding: 0; background: transparent; font: inherit; font-size: var(--gi-text-xs); outline: 0; }
|
||||
|
||||
.geo-theme-option > span:nth-child(2) > :where(strong, small) {
|
||||
overflow: visible;
|
||||
overflow-wrap: anywhere;
|
||||
text-overflow: clip;
|
||||
white-space: normal;
|
||||
}
|
||||
.geo-theme-option > span:nth-child(2) { display: grid; gap: 0.12rem; }
|
||||
.geo-theme-option > span:nth-child(2) strong { line-height: 1.25; }
|
||||
.geo-theme-option > span:nth-child(2) small { line-height: 1.3; }
|
||||
.geo-theme-list { scrollbar-gutter: stable; }
|
||||
.geo-loaded-scope small { line-height: 1.45; }
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
.context-bar > div:nth-child(n+3) { display: none; }
|
||||
.geo-explorer-layout,
|
||||
.workbench-shell-guest .geo-explorer-layout { grid-template-columns: clamp(17rem, 29vw, 20rem) minmax(0, 1fr); }
|
||||
}
|
||||
|
||||
@media (max-width: 760px) {
|
||||
.workbench-topbar { grid-template-columns: minmax(0, 1fr) auto; }
|
||||
.context-health { display: none; }
|
||||
.context-bar > div { max-width: 46vw; padding-inline: 0.45rem; }
|
||||
.context-bar > div:nth-child(n+2) { display: none; }
|
||||
.geo-explorer-layout,
|
||||
.workbench-shell-guest .geo-explorer-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(28rem, 68vh); }
|
||||
.geo-theme-panel { max-height: min(22rem, 42dvh); }
|
||||
.geo-theme-list { max-height: 12rem; }
|
||||
}
|
||||
/* Semantic model-card split: selection button and optional disclosure are siblings. */
|
||||
.model-option-card { display: block; min-height: 0; padding: 0; overflow: hidden; }
|
||||
.model-option-select { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) 1.5rem; gap: 0.75rem; width: 100%; min-height: 5.25rem; border: 0; padding: 0.8rem; background: transparent; color: inherit; text-align: left; }
|
||||
.model-option-card:hover:has(.model-option-select:not(:disabled)) { border-color: var(--gi-brand-400); background: var(--gi-brand-50); }
|
||||
.model-option-select:focus-visible { outline: 3px solid color-mix(in srgb, var(--gi-brand-500) 30%, transparent); outline-offset: -3px; }
|
||||
.model-option-select:disabled { cursor: not-allowed; opacity: 0.62; }
|
||||
.model-option-card > .model-option-technical { border-top: 1px solid var(--gi-line); margin: 0; padding: 0.45rem 0.8rem 0.55rem 4.05rem; background: color-mix(in srgb, var(--gi-surface-muted) 64%, transparent); }
|
||||
@media (max-width: 700px) { .model-option-select { grid-template-columns: 2.25rem minmax(0, 1fr) 1.35rem; gap: 0.55rem; padding: 0.7rem; } .model-option-card > .model-option-technical { padding-left: 3.5rem; } }
|
||||
/* Smartphone: preserve a usable map viewport above the fold. */
|
||||
@media (max-width: 480px) {
|
||||
.workbench-layout { grid-template-rows: auto minmax(0, 1fr); }
|
||||
.workbench-sidebar { min-height: 4.25rem; max-height: 4.25rem; padding: 0.3rem 0.55rem; }
|
||||
.workbench-sidebar .brand-block, .workbench-sidebar .itworx-signature { display: none; }
|
||||
.workbench-sidebar nav { flex: 1 1 auto; gap: 0.25rem; align-items: center; overflow: hidden; }
|
||||
.workbench-sidebar .nav-item { min-width: 4.35rem; min-height: 3.45rem; padding: 0.35rem 0.5rem; }
|
||||
.workbench-stage { min-height: calc(100dvh - 4.25rem); }
|
||||
.workbench-topbar { min-height: 3rem; padding: 0.3rem 0.65rem; }
|
||||
.workbench-topbar .context-bar, .workbench-topbar .context-health { display: none; }
|
||||
.mobile-brand { display: flex; }
|
||||
.context-account { justify-self: end; min-height: 2.4rem; border: 0; padding: 0; background: transparent; }
|
||||
.context-account > span { display: none; }
|
||||
.context-account button { min-width: 2.75rem; min-height: 2.75rem; padding: 0.45rem; }
|
||||
.context-account button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
|
||||
.guest-mode-banner { min-height: 3.25rem; padding: 0.45rem 0.7rem; }
|
||||
.guest-mode-banner span:not(.guest-mode-badge) { display: none; }
|
||||
.guest-mode-badge { font-size: 0.58rem; }
|
||||
.workbench-content, .workbench-content > * { padding: 0 !important; }
|
||||
.geo-explorer { gap: 0; }
|
||||
.geo-explorer-header { padding: 0.55rem 0.7rem; }
|
||||
.geo-explorer-header p { max-width: 100%; line-height: 1.35; }
|
||||
.geo-readonly-notice { padding: 0.45rem 0.7rem; }
|
||||
.geo-readonly-notice span { display: none; }
|
||||
.geo-explorer-layout, .workbench-shell-guest .geo-explorer-layout { grid-template-rows: 12rem minmax(25rem, 66vh); }
|
||||
.geo-theme-panel { max-height: 12rem; }
|
||||
.geo-panel-heading { padding: 0.55rem 0.7rem; }
|
||||
.geo-panel-heading p { display: none; }
|
||||
.geo-loaded-scope { display: none; }
|
||||
.geo-theme-search { margin: 0 0.7rem 0.45rem; min-height: 2.6rem; }
|
||||
.geo-theme-list { max-height: 4.6rem; padding-inline: 0.7rem !important; }
|
||||
.geo-theme-option { min-height: 3.75rem; }
|
||||
.geo-theme-actions { grid-template-columns: minmax(0, 1fr) auto; gap: 0.45rem; align-items: center; padding: 0.45rem 0.7rem; }
|
||||
.geo-theme-actions > span { display: none; }
|
||||
.geo-theme-actions button { min-height: 2.75rem; }
|
||||
.geo-theme-actions small { grid-column: 1 / -1; }
|
||||
}@media (max-width: 480px) {
|
||||
.geo-theme-panel .geo-panel-heading { min-height: 2.4rem; padding-block: 0.35rem; }
|
||||
.geo-theme-panel .geo-panel-heading h3 { font-size: var(--gi-text-sm); }
|
||||
.geo-theme-panel .geo-source-summary { display: none; }
|
||||
.geo-theme-actions small { display: none; }
|
||||
}@media (max-width: 480px) {
|
||||
.geo-explorer-layout, .workbench-shell-guest .geo-explorer-layout { grid-template-rows: 15rem minmax(25rem, 62vh); }
|
||||
.geo-theme-panel { max-height: 15rem; }
|
||||
.geo-theme-list { max-height: 7.2rem; min-height: 4.75rem; }
|
||||
}
|
||||
Reference in New Issue
Block a user