/* SNV workspace dialogs: desktop-first visual system and keyboard affordances. */
:root {
    --snv-dialog-ink: #172033;
    --snv-dialog-muted: #667085;
    --snv-dialog-line: #dfe4ec;
    --snv-dialog-soft-line: #edf0f4;
    --snv-dialog-surface: #ffffff;
    --snv-dialog-canvas: #f6f8fb;
    --snv-dialog-primary: #2563eb;
    --snv-dialog-primary-dark: #1d4ed8;
    --snv-dialog-danger: #b42318;
    --snv-dialog-danger-soft: #fff1f0;
    --snv-dialog-focus: rgba(59, 130, 246, 0.46);
}

.snv-workspace-dialog,
.snv-workspace-dialog * {
    box-sizing: border-box;
}

.snv-workspace-dialog {
    position: fixed !important;
    z-index: 96;
    top: 50% !important;
    right: auto !important;
    left: 50% !important;
    width: min(680px, calc(100vw - 48px)) !important;
    height: min(760px, calc(100vh - 48px)) !important;
    max-height: calc(100dvh - 48px);
    transform: translate(-50%, -50%) !important;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid #d9dee8;
    border-radius: 18px;
    color: var(--snv-dialog-ink);
    background: var(--snv-dialog-canvas);
    box-shadow: 0 26px 72px rgba(15, 23, 42, 0.3);
    font-family: Pretendard, sans-serif;
}

.snv-workspace-dialog[aria-hidden="true"] {
    display: none !important;
}

.snv-workspace-dialog[aria-hidden="false"] {
    display: flex !important;
}

.snv-dialog--building {
    width: min(760px, calc(100vw - 48px)) !important;
}

.snv-dialog--stair {
    width: min(700px, calc(100vw - 48px)) !important;
    height: min(650px, calc(100vh - 48px)) !important;
}

.snv-dialog--compact {
    width: min(560px, calc(100vw - 48px)) !important;
    height: auto !important;
    max-height: calc(100dvh - 48px);
}

.snv-dialog--simulation {
    width: min(860px, calc(100vw - 48px)) !important;
    height: min(680px, calc(100vh - 48px)) !important;
}

.snv-rooftop-dialog {
    width: min(590px, calc(100vw - 48px)) !important;
    height: min(700px, calc(100vh - 48px)) !important;
}

.snv-dialog--window-point {
    width: min(820px, calc(100vw - 48px)) !important;
    height: min(760px, calc(100vh - 48px)) !important;
}

.snv-workspace-dialog .snv-dialog-header {
    position: relative;
    z-index: 3;
    top: auto;
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    height: auto;
    min-height: 78px;
    padding: 17px 64px 15px 22px;
    border-bottom: 1px solid var(--snv-dialog-line);
    border-radius: 18px 18px 0 0;
    background: var(--snv-dialog-surface);
    cursor: default;
}

.snv-dialog-header > div:first-child {
    min-width: 0;
}

.snv-dialog-eyebrow {
    display: block;
    margin-bottom: 2px;
    color: var(--snv-dialog-primary);
    font-size: 10px;
    font-weight: 800;
    line-height: 14px;
    letter-spacing: 0.12em;
}

.snv-workspace-dialog .snv-dialog-header .SquareBox_title_text {
    position: static;
    height: auto;
    margin: 0;
    color: var(--snv-dialog-ink);
    font-size: 19px;
    font-weight: 800;
    line-height: 26px;
}

.snv-dialog-header p {
    margin: 3px 0 0;
    color: var(--snv-dialog-muted);
    font-size: 12px;
    line-height: 18px;
}

.snv-workspace-dialog .snv-dialog-close {
    position: absolute;
    top: 19px;
    right: 18px;
    display: inline-grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #475467;
    background: #f3f5f8;
    cursor: pointer;
    font: inherit;
}

.snv-dialog-close span {
    font-size: 25px;
    font-weight: 300;
    line-height: 1;
    transform: translateY(-1px);
}

.snv-dialog-close:hover {
    color: var(--snv-dialog-ink);
    background: #e8ecf2;
}

.snv-dialog-body {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    gap: 14px;
    padding: 18px 20px 22px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.snv-dialog-section {
    position: relative;
    flex: 0 0 auto;
    padding: 16px;
    border: 1px solid var(--snv-dialog-line);
    border-radius: 13px;
    background: var(--snv-dialog-surface);
}

.snv-dialog-section-heading {
    display: flex;
    min-height: 24px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.snv-dialog-section-heading h3,
.snv-dialog-section > h3 {
    margin: 0;
    color: #25324a;
    font-size: 14px;
    font-weight: 800;
    line-height: 20px;
}

.snv-dialog-section-heading > span {
    color: var(--snv-dialog-muted);
    font-size: 11px;
    line-height: 16px;
}

.snv-hierarchy-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.snv-field {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
    color: #344054;
}

.snv-field-label {
    display: block;
    color: #344054;
    font-size: 12px;
    font-weight: 750;
    line-height: 17px;
}

.snv-field-label small {
    color: var(--snv-dialog-muted);
    font-size: 11px;
    font-weight: 600;
}

.snv-field-label-row {
    display: flex;
    min-height: 17px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.snv-group-kind-badge {
    display: inline-flex;
    min-width: 42px;
    height: 18px;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border: 1px solid #d7dee9;
    border-radius: 999px;
    color: #667085;
    background: #f7f9fc;
    font-size: 10px;
    font-weight: 800;
    line-height: 16px;
    white-space: nowrap;
}

.snv-group-kind-badge[data-kind="new"] {
    border-color: #b9d3ff;
    color: #245bc3;
    background: #edf4ff;
}

.snv-group-kind-badge[data-kind="existing"] {
    border-color: #cfd6e1;
    color: #475467;
    background: #eef1f5;
}

.snv-dialog-body .SquareBox_input,
.snv-dialog-body .SquareBox_input2,
.snv-dialog-body .SquareBox_select,
.snv-dialog-body input[type="text"],
.snv-dialog-body select,
.snv-dialog-body textarea {
    position: static;
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 11px;
    border: 1px solid #cbd2dd;
    border-radius: 8px;
    outline: 0;
    color: var(--snv-dialog-ink);
    background: #fff;
    font: inherit;
    font-size: 13px;
    line-height: normal;
    text-align: left;
}

.snv-dialog-body textarea {
    height: auto;
    min-height: 94px;
    padding: 10px 12px;
    resize: vertical;
    line-height: 20px;
}

.snv-dialog-body input:focus,
.snv-dialog-body select:focus,
.snv-dialog-body textarea:focus {
    border-color: var(--snv-dialog-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
}

.snv-dialog-body [aria-invalid="true"] {
    border-color: #f04438 !important;
    box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.12) !important;
}

.snv-form-grid {
    display: grid;
    gap: 12px;
}

.snv-form-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.snv-form-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.snv-choice-list {
    position: relative;
    width: 100%;
    height: 104px;
    min-height: 104px;
    overflow: auto;
    border: 1px solid #d8dee8;
    border-radius: 9px;
    background: #fbfcfe;
}

.snv-choice-list[aria-disabled="true"],
.snv-choice-list.is-disabled {
    border-color: #e3e7ee;
    color: #98a2b3;
    background: #f2f4f7;
    opacity: 0.62;
    pointer-events: none;
}

.snv-choice-list ul,
.snv-floor-list ul {
    margin: 0;
    padding: 4px;
    list-style: none;
}

.snv-choice-list .SquareBox_scrollView_item3 {
    display: flex;
    width: 100%;
    height: 32px;
    min-height: 32px;
    align-items: center;
    padding: 0 9px;
    overflow: hidden;
    border-radius: 6px;
    color: #344054;
    font-size: 12px;
    font-weight: 650;
    line-height: 32px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.snv-choice-list .SquareBox_scrollView_item3:hover {
    background: #eef2f7;
}

.snv-choice-list .SquareBox_scrollView_item3[aria-selected="true"] {
    color: #174ea6;
    background: #eaf2ff !important;
    box-shadow: inset 3px 0 0 var(--snv-dialog-primary);
}

.snv-inline-actions {
    display: flex;
    gap: 7px;
}

.snv-inline-actions button {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #cbd2dd;
    border-radius: 7px;
    color: #475467;
    background: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
}

.snv-inline-actions button:hover {
    border-color: #98a2b3;
    background: #f8fafc;
}

.snv-floor-section .snv-dialog-section-heading {
    align-items: flex-end;
    gap: 16px;
}

.snv-floor-height-toolbar {
    display: flex;
    min-width: 0;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 8px;
}

.snv-floor-toolbar-field {
    display: grid;
    min-width: 0;
    gap: 4px;
    color: #667085;
    font-size: 10px;
    font-weight: 750;
    line-height: 13px;
}

.snv-floor-toolbar-field--parapet {
    flex: 0 0 92px;
}

.snv-floor-toolbar-field--maxfloor {
    flex: 0 0 72px;
}

.snv-floor-toolbar-field--bulk {
    flex: 0 0 104px;
}

.snv-floor-toolbar-field > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.snv-floor-bulk-input {
    display: flex;
    width: 100%;
    height: 34px;
    align-items: center;
    overflow: hidden;
    border: 1px solid #8490a3;
    border-radius: 8px;
    background: #fff;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.snv-floor-bulk-input:focus-within {
    border-color: var(--snv-dialog-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
}

.snv-floor-bulk-input:has(input[aria-invalid="true"]) {
    border-color: #f04438;
    box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.12);
}

.snv-dialog-body .snv-floor-bulk-input input {
    width: calc(100% - 28px);
    height: 32px;
    min-height: 0;
    padding: 0 4px 0 10px;
    border: 0;
    outline: 0;
    border-radius: 0;
    background: transparent;
    text-align: right;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    font-weight: 750;
    appearance: textfield;
    -moz-appearance: textfield;
}

.snv-dialog-body .snv-floor-bulk-input input:focus {
    box-shadow: none;
}

.snv-dialog-body .snv-floor-bulk-input input:focus-visible {
    outline: none;
    box-shadow: none;
}

.snv-dialog-body .snv-floor-bulk-input input[aria-invalid="true"] {
    box-shadow: none !important;
}

.snv-dialog-body .snv-floor-bulk-input input::-webkit-inner-spin-button,
.snv-dialog-body .snv-floor-bulk-input input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.snv-floor-bulk-input small {
    color: #98a2b3;
    font-size: 10px;
    font-weight: 750;
}

.snv-floor-height-toolbar > button {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #bfd0f6;
    border-radius: 8px;
    color: #1d4ed8;
    background: #eff6ff;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.snv-floor-height-toolbar > button:hover {
    border-color: #8eaceb;
    background: #dbeafe;
    transform: translateY(-1px);
}

.snv-floor-height-toolbar > button:focus-visible {
    outline: 3px solid var(--snv-dialog-focus);
    outline-offset: 2px;
}

.snv-floor-list {
    position: relative;
    width: 100%;
    height: 220px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid var(--snv-dialog-line);
    border-radius: 9px;
    background: #fbfcfe;
}

.snv-floor-list .SquareBox_scrollView_item2 {
    position: relative;
    display: grid;
    width: 100%;
    height: 44px !important;
    grid-template-columns: minmax(72px, 0.72fr) minmax(132px, 1.45fr) minmax(88px, 0.85fr);
    color: #344054;
    font-size: 12px;
}

.snv-floor-list .SquareBox_scrollView_item2 > div {
    position: relative !important;
    left: auto !important;
    display: flex;
    width: auto !important;
    height: 44px !important;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--snv-dialog-soft-line);
    background: transparent !important;
    line-height: normal !important;
}

.snv-floor-list .snv-floor-row--header {
    position: sticky;
    z-index: 2;
    top: 0;
    height: 36px !important;
}

.snv-floor-list .snv-floor-row--header > div {
    height: 36px !important;
    color: #475467;
    background: #eef2f7 !important;
    font-size: 11px;
    font-weight: 750;
}

.snv-floor-list input[type="number"] {
    position: static !important;
    width: min(132px, calc(100% - 18px)) !important;
    height: 32px !important;
    min-height: 0;
    padding: 0 9px !important;
    border: 1px solid #8490a3;
    border-radius: 7px;
    background: #fff;
    text-align: right !important;
    font-variant-numeric: tabular-nums;
}

.snv-floor-number {
    color: #344054;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}

.snv-floor-height-cell {
    gap: 6px;
}

.snv-floor-height-unit {
    color: #98a2b3;
    font-size: 10px;
    font-weight: 700;
}

.snv-floor-list input[type="checkbox"] {
    position: static !important;
    width: 18px !important;
    height: 18px !important;
    transform: none !important;
    accent-color: var(--snv-dialog-primary);
}

.snv-floor-empty {
    display: flex;
    min-height: 100%;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #667085;
    font-size: 12px;
    text-align: center;
}

.snv-dialog-actions,
.snv-workspace-dialog .building-makebox-actions {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    display: flex;
    flex: 0 0 auto;
    min-height: 66px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    width: 100%;
    padding: 13px 20px;
    border-top: 1px solid var(--snv-dialog-line);
    background: #fff;
    transform: none;
}

.snv-dialog-actions > .snv-dialog-status {
    flex: 0 0 100%;
    margin: 0;
    text-align: center;
}

.snv-dialog-actions > .snv-dialog-status:empty {
    display: none;
}

.snv-workspace-dialog .snv-button {
    position: static;
    display: inline-flex;
    width: auto;
    min-width: 108px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid #cbd2dd;
    border-radius: 9px;
    color: #344054;
    background: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    line-height: normal;
}

.snv-workspace-dialog .snv-button:hover {
    border-color: #98a2b3;
    background: #f8fafc;
}

.snv-workspace-dialog .snv-button--primary {
    border-color: var(--snv-dialog-primary);
    color: #fff;
    background: var(--snv-dialog-primary);
}

.snv-workspace-dialog .snv-button--primary:hover {
    border-color: var(--snv-dialog-primary-dark);
    background: var(--snv-dialog-primary-dark);
}

.snv-workspace-dialog .snv-button.snv-login-prompt-primary {
    border-color: #3478f6;
    background: linear-gradient(135deg, #3478f6, #5b5ce2);
    box-shadow: 0 8px 20px rgba(55, 92, 220, .22);
}

.snv-workspace-dialog .snv-button.snv-login-prompt-primary:hover {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #7c3aed);
}

.snv-workspace-dialog .snv-button--danger {
    border-color: #3478f6;
    color: #fff;
    background: linear-gradient(135deg, #3478f6, #5b5ce2);
    box-shadow: 0 8px 20px rgba(55, 92, 220, .22);
}

.snv-workspace-dialog .snv-button--danger:hover {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #7c3aed);
}

.snv-dialog-status {
    min-height: 18px;
    margin: 8px 0 0;
    color: var(--snv-dialog-muted);
    font-size: 12px;
    line-height: 18px;
}

.snv-dialog-status[data-state="error"] {
    color: var(--snv-dialog-danger);
}

.snv-dialog-status[data-state="success"] {
    color: #067647;
}

.snv-workspace-dialog .building-makebox-error {
    flex: 0 0 100%;
    margin: 0;
    color: #e53935;
    text-align: center;
}

.snv-workspace-dialog .building-makebox-error[data-state="success"] {
    color: #067647;
}

.snv-workspace-dialog .building-makebox-error[hidden] {
    display: none;
}

.snv-field-hint,
.snv-coordinate-fields p {
    margin: 0;
    color: var(--snv-dialog-muted);
    font-size: 11px;
    line-height: 17px;
}

.snv-option-group,
.snv-rule-card,
.snv-simulation-card,
.snv-time-grid fieldset,
.snv-project-check-grid fieldset,
.snv-project-target-grid fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.snv-option-group > legend,
.snv-rule-card > legend,
.snv-simulation-card > legend,
.snv-time-grid legend,
.snv-project-check-grid legend,
.snv-project-target-grid legend {
    padding: 0;
    color: #344054;
    font-size: 12px;
    font-weight: 750;
}

.snv-segmented-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.snv-segmented-options label {
    position: relative;
    cursor: pointer;
}

.snv-segmented-options input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.snv-segmented-options label > span {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 0 13px;
    border: 1px solid #cbd2dd;
    border-radius: 8px;
    color: #475467;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
}

.snv-segmented-options input:checked + span {
    border-color: var(--snv-dialog-primary);
    color: #174ea6;
    background: #eef5ff;
    box-shadow: 0 0 0 1px var(--snv-dialog-primary);
}

.snv-segmented-options input:focus-visible + span {
    outline: 3px solid var(--snv-dialog-focus);
    outline-offset: 2px;
}

/* Simulation */
.snv-simulation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.snv-simulation-card {
    height: 100%;
    padding: 20px;
    opacity: 0.72;
    transition: border-color 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

.snv-simulation-card[data-active="true"] {
    border-color: #93b4ef;
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.snv-simulation-card > legend label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 15px;
    line-height: 22px;
}

.snv-simulation-card > legend input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.snv-simulation-card > p {
    margin: 4px 0 18px;
    color: var(--snv-dialog-muted);
    font-size: 12px;
    line-height: 18px;
}

.snv-time-grid {
    display: grid;
    gap: 14px;
}

.snv-time-grid fieldset {
    display: grid;
    min-width: 0;
    margin: 0;
    padding: 0;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    column-gap: 8px;
    row-gap: 7px;
    align-items: center;
    border: 0;
}

.snv-time-grid fieldset > legend {
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
    grid-column: 1 / -1;
    line-height: 18px;
}

.snv-time-grid fieldset > input {
    clear: none;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    text-align: center;
}

.snv-time-grid fieldset > span {
    min-width: 12px;
    color: #667085;
    font-weight: 750;
    line-height: 40px;
    text-align: center;
}

.snv-time-grid > .snv-field {
    gap: 7px;
}

.snv-time-grid > .snv-field > input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.snv-resolution-options label > span {
    width: 100%;
    min-height: 48px;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    text-align: center;
    line-height: 16px;
}

.snv-resolution-options small {
    color: var(--snv-dialog-muted);
    font-size: 10px;
}

#Sun_simulationBox .snv-dialog-body {
    gap: 18px;
    padding: 22px;
}

#Sun_simulationBox .snv-option-group {
    margin-top: 18px;
}

#Sun_simulationBox .snv-resolution-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.snv-simulation-grid > .snv-dialog-status {
    grid-column: 1 / -1;
}

/* Rooftop editor */
.snv-rooftop-dialog .snv-dialog-body {
    gap: 14px;
    padding: 18px 20px 16px;
}

.snv-rooftop-toolbar {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 14px;
    border: 1px solid var(--snv-dialog-line);
    border-radius: 13px;
    background: var(--snv-dialog-surface);
}

.snv-rooftop-toolbar__actions {
    display: flex;
    min-width: 0;
    gap: 8px;
}

.snv-rooftop-tool {
    display: inline-flex;
    min-width: 112px;
    height: 42px;
    padding: 0 14px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #ccd4e0;
    border-radius: 10px;
    color: #344054;
    background: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.snv-rooftop-tool:hover {
    border-color: #9db4d9;
    color: #174ea6;
    background: #f5f8ff;
    transform: translateY(-1px);
}

.snv-rooftop-tool[aria-pressed="true"] {
    border-color: var(--snv-dialog-primary);
    color: #174ea6;
    background: #eef5ff;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.snv-rooftop-tool:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    transform: none;
}

.snv-rooftop-tool__icon {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.snv-rooftop-tool--edit .snv-rooftop-tool__icon::before {
    position: absolute;
    top: 8px;
    left: 1px;
    width: 15px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    box-shadow: 0 -5px 0 -0.5px currentColor;
    content: "";
    transform: rotate(-42deg);
}

.snv-rooftop-tool--edit .snv-rooftop-tool__icon::after {
    position: absolute;
    right: 0;
    bottom: 1px;
    width: 5px;
    height: 5px;
    border: 2px solid currentColor;
    border-radius: 2px;
    content: "";
}

.snv-rooftop-tool--clear .snv-rooftop-tool__icon::before {
    position: absolute;
    inset: 2px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    content: "";
}

.snv-rooftop-tool--clear .snv-rooftop-tool__icon::after {
    position: absolute;
    top: 1px;
    right: 0;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid currentColor;
    content: "";
    transform: rotate(-18deg);
}

.snv-rooftop-height {
    display: flex;
    min-width: 154px;
    flex-direction: column;
    gap: 6px;
    color: #344054;
    font-size: 12px;
    font-weight: 750;
}

.snv-rooftop-height__control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    overflow: hidden;
    border: 1px solid #cbd2dd;
    border-radius: 9px;
    background: #fff;
}

.snv-dialog-body .snv-rooftop-height__control input[type="number"] {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 10px;
    border: 0;
    outline: 0;
    color: var(--snv-dialog-ink);
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.snv-rooftop-height__control > span:last-child {
    padding: 0 12px 0 6px;
    color: var(--snv-dialog-muted);
    font-size: 12px;
    font-weight: 700;
}

.snv-rooftop-height__control:focus-within {
    border-color: var(--snv-dialog-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
}

.snv-rooftop-height__control:has(input[aria-invalid="true"]) {
    border-color: #f04438;
    box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.12);
}

.snv-rooftop-editor {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 14px;
    border: 1px solid var(--snv-dialog-line);
    border-radius: 14px;
    background: #fff;
}

.snv-rooftop-editor__heading {
    margin-bottom: 10px;
}

.snv-rooftop-stage {
    position: relative;
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
    border: 1px solid #cfd8e6;
    border-radius: 13px;
    background:
        linear-gradient(rgba(148, 163, 184, 0.13) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.13) 1px, transparent 1px),
        linear-gradient(145deg, #f8fbff, #eef3f9);
    background-size: 20px 20px, 20px 20px, auto;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.snv-rooftop-stage canvas {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: transparent;
    cursor: grab;
    touch-action: none;
}

.snv-rooftop-stage__hint {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 5px 8px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 999px;
    color: #667085;
    background: rgba(255, 255, 255, 0.84);
    font-size: 10px;
    font-weight: 650;
    line-height: 14px;
    pointer-events: none;
    backdrop-filter: blur(6px);
}

.snv-rooftop-status {
    min-height: 20px;
    margin: 0;
}

#RooftopBox > .snv-dialog-actions {
    justify-content: center;
    gap: 10px;
    padding: 14px 20px 16px;
}

#RooftopBox > .snv-dialog-actions .snv-button {
    min-width: 118px;
    height: 42px;
}

#RooftopBox button:focus-visible,
#RooftopBox canvas:focus-visible {
    outline: 3px solid var(--snv-dialog-focus);
    outline-offset: 3px;
}

/* Measurement point */
.snv-window-point-layout {
    display: grid;
    grid-template-columns: minmax(320px, 1.25fr) minmax(220px, 0.75fr);
    gap: 18px;
    align-items: center;
}

.snv-window-point-picker {
    /* 클릭 가능 영역: left + width, top + height가 각각 100%를 넘지 않게 조절합니다. */
    --window-pick-left: 1.923%;
    --window-pick-top: 18.359%;
    --window-pick-width: 88.034%;
    --window-pick-height: 78.125%;
    position: relative;
    width: 100%;
    min-height: 228px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #b8c4d6;
    border-radius: 12px;
    background: linear-gradient(145deg, #eaf8fa, #c9edf0);
    cursor: default;
}

.snv-window-pick-frame {
    display: block;
    position: absolute;
    z-index: 1;
    left: var(--window-pick-left);
    top: var(--window-pick-top);
    width: var(--window-pick-width);
    height: var(--window-pick-height);
    outline: 1px dashed rgba(37, 99, 235, 0.52);
    outline-offset: -1px;
    border-radius: 5px;
    cursor: crosshair;
}

.snv-window-preview {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: fill;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

#WindowSetBox_point {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 2px 3px rgba(15, 23, 42, 0.35));
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.snv-coordinate-fields {
    display: grid;
    gap: 14px;
}

.snv-check-card {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid var(--snv-dialog-line);
    border-radius: 10px;
    background: #f9fafb;
    cursor: pointer;
}

.snv-check-card input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
}

.snv-check-card span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.snv-check-card strong {
    font-size: 13px;
    line-height: 19px;
}

.snv-check-card small {
    color: var(--snv-dialog-muted);
    font-size: 11px;
    line-height: 17px;
}

/* Legacy-positioned analysis panels kept functionally compatible. */
.snv-dialog--legacy-layout {
    display: block;
}

.snv-dialog--suncheck {
    width: min(620px, calc(100vw - 48px)) !important;
    height: min(720px, calc(100vh - 48px)) !important;
}

.snv-suncheck-form {
    gap: 14px;
    padding: 18px 20px 20px;
}

.snv-suncheck-form .snv-dialog-section {
    padding: 16px 18px;
}

.snv-coordinate-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.snv-coordinate-summary > div {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid #e2e7ef;
    border-radius: 9px;
    background: #f8fafc;
}

.snv-coordinate-summary dt,
.snv-coordinate-summary dd {
    margin: 0;
    line-height: 18px;
}

.snv-coordinate-summary dt {
    color: var(--snv-dialog-muted);
    font-size: 12px;
    font-weight: 700;
}

.snv-coordinate-summary dd {
    overflow: hidden;
    color: #25324a;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    font-weight: 750;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.snv-sun-date-picker {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.snv-sun-date-presets {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
}

.snv-sun-date-option {
    position: relative;
    min-width: 0;
    margin: 0;
    cursor: pointer;
}

.snv-sun-date-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
}

.snv-sun-date-option > span {
    display: flex;
    min-height: 54px;
    padding: 8px 5px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 1px solid #dce3ed;
    border-radius: 10px;
    background: #fff;
    color: #475467;
    text-align: center;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease;
}

.snv-sun-date-option strong {
    overflow: hidden;
    max-width: 100%;
    font-size: 12px;
    font-weight: 800;
    line-height: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.snv-sun-date-option small {
    color: #98a2b3;
    font-size: 9px;
    font-weight: 650;
    line-height: 12px;
    white-space: nowrap;
}

.snv-sun-date-option:hover > span {
    border-color: #b9caee;
    background: #f8faff;
    transform: translateY(-1px);
}

.snv-sun-date-option input:checked + span {
    border-color: #7fa5f5;
    background: linear-gradient(145deg, #edf4ff, #f4f0ff);
    color: #174ea6;
    box-shadow: 0 6px 16px rgba(37, 99, 235, .12);
}

.snv-sun-date-option input:focus-visible + span {
    outline: 3px solid rgba(37, 99, 235, .4);
    outline-offset: 2px;
}

.snv-sun-custom-date {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 11px;
    padding: 11px;
    border: 1px solid #e4e9f1;
    border-radius: 10px;
    background: #f8fafc;
}

.snv-sun-custom-date:has(input:disabled) {
    opacity: .62;
}

.snv-sun-custom-date input:disabled {
    border-color: #e3e8ef !important;
    background: #f1f4f8 !important;
    color: #8b95a7;
    cursor: not-allowed;
}

.snv-sun-rule-grid {
    display: grid;
    gap: 14px;
}

.snv-sun-rule-grid .snv-rule-card {
    padding: 13px 14px 14px;
    border: 1px solid #e2e7ef;
    border-radius: 10px;
    background: #f8fafc;
}

.snv-sun-rule-grid .snv-rule-card > legend {
    float: none;
    width: auto;
    margin: 0 0 10px;
    padding: 0 6px;
    color: #25324a;
    font-size: 13px;
    line-height: 18px;
}

.snv-fixed-sun-rule {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 9px;
    margin: 0;
}

.snv-fixed-sun-rule > div {
    display: flex;
    min-width: 0;
    min-height: 44px;
    padding: 7px 10px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    border: 1px solid #e2e7ef;
    border-radius: 8px;
    background: #fff;
}

.snv-fixed-sun-rule dt,
.snv-fixed-sun-rule dd {
    margin: 0;
}

.snv-fixed-sun-rule dt {
    color: #7a8498;
    font-size: 10px;
    font-weight: 750;
    line-height: 13px;
}

.snv-fixed-sun-rule dd {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 5px;
    color: #25324a;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    line-height: 18px;
    white-space: nowrap;
}

.snv-fixed-sun-rule output {
    color: inherit;
    font: inherit;
}

.snv-sun-unit-field {
    width: min(180px, 100%);
}

.snv-dialog--project {
    width: 540px !important;
    height: min(820px, calc(100dvh - 40px)) !important;
    overflow-y: auto;
}

.snv-dialog--project .snv-dialog-header {
    position: sticky;
    top: 0 !important;
    min-height: 64px;
}

.snv-dialog--project > .SquareBox_group {
    margin-left: 20px;
}

.snv-dialog--project input,
.snv-dialog--project textarea {
    border-color: #cbd2dd !important;
    outline: none;
    background: #fff;
}

.snv-dialog--project > .snv-dialog-actions {
    position: absolute;
    top: 746px;
    right: 0;
    left: 0;
}

.snv-project-analysis-target-section {
    height: 286px !important;
}

.snv-project-analysis-target-section > .SquareBox_group_title2 {
    margin: 0;
}

.snv-project-analysis-targets {
    position: absolute;
    top: 26px;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    height: 252px;
    padding: 2px 7px 8px 1px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.snv-project-analysis-targets:focus-visible {
    border-radius: 12px;
    outline: 3px solid var(--snv-dialog-focus);
    outline-offset: 2px;
}

.snv-project-analysis-target-card {
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(31, 42, 68, 0.07);
}

.snv-project-analysis-target-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    color: #344054;
    font-size: 12px;
}

.snv-project-analysis-target-col--label {
    width: 13%;
}

.snv-project-analysis-target-col--minor-label {
    width: 13%;
}

.snv-project-analysis-target-col--primary-value {
    width: 24%;
}

.snv-project-analysis-target-col--wide-label {
    width: 23%;
}

.snv-project-analysis-target-col--secondary-value {
    width: 27%;
}

.snv-project-analysis-target-table th,
.snv-project-analysis-target-table td {
    height: 34px;
    padding: 4px 6px;
    border-right: 1px solid #e7edf5;
    border-bottom: 1px solid #e7edf5;
    vertical-align: middle;
}

.snv-project-analysis-target-table tr:last-child > th,
.snv-project-analysis-target-table tr:last-child > td {
    border-bottom: 0;
}

.snv-project-analysis-target-table tr > :last-child {
    border-right: 0;
}

.snv-project-analysis-target-table th {
    background: #f8fafc;
    color: #5b667a;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.snv-project-analysis-target-table td {
    background: #fff;
    color: #344054;
    text-align: center;
}

.snv-project-analysis-target-size-heading {
    border-bottom: 0 !important;
}

.snv-project-analysis-target-input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 26px;
    padding: 0 7px;
    border: 1px solid #d5dce7;
    border-radius: 6px;
    background: #fff;
    color: #344054;
    font: inherit;
    line-height: 24px;
    text-align: left;
}

.snv-project-analysis-target-input::placeholder {
    color: #98a2b3;
}

.snv-project-analysis-target-input:focus {
    border-color: #4f8cff !important;
    outline: 3px solid rgba(79, 140, 255, 0.18);
}

.snv-project-analysis-target-readonly-cell {
    background: #f9fbff !important;
}

.snv-project-analysis-target-value {
    display: flex;
    min-height: 26px;
    align-items: center;
    justify-content: center;
    color: #344054;
    font-weight: 700;
    line-height: 1.35;
}

.snv-project-analysis-target-value--name {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow-wrap: anywhere;
    text-align: left;
    white-space: normal;
}

.snv-project-analysis-target-name-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.snv-project-analysis-target-kind {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 20px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 2px 7px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.snv-project-analysis-target-kind--new {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.snv-project-analysis-target-kind--existing {
    border-color: #cfd6e1;
    background: #eef1f5;
    color: #475467;
}

.snv-project-analysis-target-value--metric {
    color: #285dd0;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.snv-project-analysis-target-count {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-height: 26px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
    color: #285dd0;
    font-size: 11px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.snv-project-analysis-target-empty {
    display: grid;
    flex: 1 0 100%;
    min-height: 218px;
    margin: 0;
    place-items: center;
    border: 1px dashed #c8d3e2;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.78);
    color: #667085;
    font-size: 13px;
    text-align: center;
}

.snv-dialog--private {
    width: min(760px, calc(100vw - 48px)) !important;
    height: min(720px, calc(100vh - 48px)) !important;
}

.snv-private-form {
    gap: 14px;
    padding: 18px 20px 20px;
}

.snv-dialog--private .snv-private-person {
    flex: 0 0 auto;
    padding: 16px 18px 18px;
}

.snv-dialog--private .snv-private-grades {
    display: flex;
    min-height: 320px;
    flex: 1 1 390px;
    flex-direction: column;
    padding: 16px 18px 18px;
}

.snv-input-with-suffix {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    overflow: hidden;
    border: 1px solid #cbd2dd;
    border-radius: 8px;
    background: #fff;
}

.snv-dialog-body .snv-input-with-suffix input[type="text"] {
    height: 40px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.snv-input-with-suffix > span:last-child {
    padding: 0 12px 0 8px;
    color: var(--snv-dialog-muted);
    font-size: 12px;
    font-weight: 700;
}

.snv-input-with-suffix:focus-within {
    border-color: var(--snv-dialog-primary);
    outline: 3px solid var(--snv-dialog-focus);
    outline-offset: 2px;
    box-shadow: none;
}

.snv-dialog-body .snv-input-with-suffix > input:focus-visible {
    outline: none;
}

.snv-input-with-suffix:has(> input[aria-invalid="true"]) {
    border-color: #f04438;
    outline: 3px solid rgba(240, 68, 56, 0.12);
    outline-offset: 1px;
}

.snv-dialog-body .snv-input-with-suffix > input[aria-invalid="true"] {
    box-shadow: none !important;
}

.snv-private-table-wrap {
    flex: 1 1 auto;
    min-height: 270px;
    overflow: hidden;
    border: 1px solid var(--snv-dialog-line);
    border-radius: 10px;
    background: #fff;
}

.snv-private-table-scroll {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.snv-private-grade-table {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    color: #344054;
    font-size: 12px;
}

.snv-private-grade-table th:nth-child(1) {
    width: 7% !important;
}

.snv-private-grade-table th:nth-child(2) {
    width: 36% !important;
}

.snv-private-grade-table th:nth-child(2),
.snv-private-grade-table td:nth-child(2) {
    overflow-wrap: normal;
    white-space: nowrap;
    word-break: keep-all;
}

.snv-private-grade-table th:nth-child(3) {
    width: 15% !important;
}

.snv-private-grade-table th:nth-child(4) {
    width: 27% !important;
}

.snv-private-grade-table th:nth-child(5) {
    width: 15% !important;
}

.snv-private-grade-table th {
    position: sticky;
    z-index: 1;
    top: 0;
    height: 40px;
    padding: 7px 8px;
    color: #fff;
    background: #25324a;
    font-weight: 700;
    line-height: 16px;
    word-break: keep-all;
}

.snv-private-grade-table td {
    height: 42px;
    padding: 5px 8px;
    border-bottom: 1px solid var(--snv-dialog-soft-line);
    color: #344054;
    background: #fff;
    line-height: 18px;
}

.snv-private-grade-table th,
.snv-private-grade-table td {
    min-width: 0;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.snv-private-grade-table tbody tr:nth-child(even) td,
.snv-private-grade-table tr:nth-child(even) td {
    background: #f8fafc;
}

.snv-private-grade-table input[type="text"] {
    width: 100% !important;
    height: 32px !important;
    padding: 0 8px;
    border: 1px solid #cbd2dd;
    border-radius: 6px;
    font: inherit;
    font-variant-numeric: tabular-nums;
    text-align: center !important;
}

.snv-private-grade-table input[type="checkbox"] {
    position: static !important;
    display: block;
    width: 18px !important;
    height: 18px !important;
    margin: 0 auto;
    accent-color: var(--snv-dialog-primary);
    transform: none !important;
}

/* Analysis dialog rhythm: keep primary decisions centered and equally weighted. */
#Sun_simulationBox > .snv-dialog-actions,
#suncheck_infobox > .snv-dialog-actions,
#WindowSetBox > .snv-dialog-actions,
#private_infobox > .snv-dialog-actions,
#viewcheck_infobox > .snv-dialog-actions {
    justify-content: center;
    gap: 10px;
    padding: 14px 24px 16px;
}

#Sun_simulationBox > .snv-dialog-actions .snv-button,
#suncheck_infobox > .snv-dialog-actions .snv-button,
#WindowSetBox > .snv-dialog-actions .snv-button,
#private_infobox > .snv-dialog-actions .snv-button,
#viewcheck_infobox > .snv-dialog-actions .snv-button {
    min-width: 124px;
    height: 42px;
}

#viewcheck_infobox {
    width: min(520px, calc(100vw - 48px)) !important;
}

#viewcheck_infobox .snv-dialog-body {
    gap: 12px;
    padding: 16px 18px 18px;
}

#viewcheck_infobox .snv-dialog-section {
    padding: 15px 16px;
}

#viewcheck_infobox .snv-dialog-section-heading {
    min-height: 0;
    margin-bottom: 10px;
}

#viewcheck_infobox #viewcheck_infobox_distance {
    max-width: 240px;
}

#WindowSetBox .snv-dialog-body {
    gap: 16px;
    padding: 20px 22px 24px;
}

#WindowSetBox .snv-dialog-section {
    padding: 18px;
}

#WindowSetBox .snv-hierarchy-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

#WindowSetBox .snv-window-point-picker {
    min-height: 216px;
}

.snv-area-building-dialog {
    width: min(520px, calc(100vw - 48px)) !important;
}

.snv-area-building-dialog__body {
    padding: 18px 20px 20px;
}

.snv-area-building-card {
    overflow: hidden;
    border: 1px solid #dce3ed;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}

.snv-area-building-card__identity {
    display: flex;
    min-width: 0;
    padding: 18px 18px 16px;
    flex-direction: column;
    gap: 3px;
    border-bottom: 1px solid #e6ebf2;
    background: linear-gradient(145deg, #f7faff, #f5f2ff);
}

.snv-area-building-card__identity > span {
    color: #667085;
    font-size: 10px;
    font-weight: 800;
    line-height: 14px;
    letter-spacing: .08em;
}

.snv-area-building-card__identity strong {
    overflow-wrap: anywhere;
    color: #172033;
    font-size: 19px;
    font-weight: 850;
    line-height: 27px;
}

.snv-area-building-card__identity small {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
    color: #526078;
    font-size: 12px;
    line-height: 18px;
}

.snv-area-building-card__identity small > span:first-child {
    flex: 0 0 auto;
    padding: 1px 6px;
    border-radius: 999px;
    color: #345ea8;
    background: #e7efff;
    font-size: 9px;
    font-weight: 800;
}

.snv-area-building-card__facts,
.snv-area-building-card__provenance {
    margin: 0;
}

.snv-area-building-card__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    padding: 1px;
    background: #e8edf4;
}

.snv-area-building-card__facts > div {
    min-width: 0;
    padding: 14px 16px;
    background: #fff;
}

.snv-area-building-card dt,
.snv-area-building-card dd {
    margin: 0;
}

.snv-area-building-card__facts dt {
    margin-bottom: 4px;
    color: #667085;
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
}

.snv-area-building-card__facts dd {
    overflow-wrap: anywhere;
    color: #25324a;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    line-height: 21px;
}

.snv-area-building-card__provenance {
    display: grid;
    gap: 7px;
    padding: 13px 17px;
    border-top: 1px solid #edf0f4;
    background: #fafbfc;
}

.snv-area-building-card__provenance > div {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.snv-area-building-card__provenance dt,
.snv-area-building-card__provenance dd {
    color: #667085;
    font-size: 11px;
    line-height: 17px;
}

.snv-area-building-card__provenance dt {
    font-weight: 700;
}

.snv-area-building-card__provenance dd {
    overflow-wrap: anywhere;
    text-align: right;
}

.snv-area-building-dialog > .snv-dialog-actions {
    justify-content: center;
}

.snv-area-building-dialog > .snv-dialog-actions .snv-button {
    width: auto;
    min-width: 120px;
}

.snv-workspace-dialog button:focus-visible,
.snv-workspace-dialog input:focus-visible,
.snv-workspace-dialog select:focus-visible,
.snv-workspace-dialog textarea:focus-visible,
.snv-workspace-dialog [role="option"]:focus-visible {
    outline: 3px solid var(--snv-dialog-focus);
    outline-offset: 2px;
}

#upContent_button_project_info:focus-visible,
.upContent_button2[role="button"]:focus-visible,
.leftbuttons3[role="button"]:focus-visible,
.sideContent_button2[role="button"]:focus-visible {
    outline: 3px solid var(--snv-dialog-focus);
    outline-offset: 3px;
}

.snv-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 700px) {
    .snv-hierarchy-grid,
    #WindowSetBox .snv-hierarchy-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .snv-floor-section .snv-dialog-section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .snv-floor-height-toolbar {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .snv-floor-toolbar-field {
        flex: 1 1 calc((100% - 16px) / 3);
    }

    .snv-floor-bulk-input {
        width: 100%;
    }

    .snv-dialog-body .snv-floor-bulk-input input {
        width: calc(100% - 28px);
    }

    .snv-floor-height-toolbar > button {
        width: 100%;
        flex: 1 0 100%;
    }

    .snv-floor-list .SquareBox_scrollView_item2 {
        grid-template-columns: minmax(44px, 0.7fr) minmax(88px, 1.45fr) minmax(56px, 0.85fr);
    }

    .snv-floor-list input[type="number"] {
        width: calc(100% - 10px) !important;
        padding-right: 6px !important;
        padding-left: 6px !important;
    }

    .snv-rooftop-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .snv-rooftop-toolbar__actions,
    .snv-rooftop-tool {
        width: 100%;
    }

    .snv-rooftop-tool {
        min-width: 0;
    }

    .snv-rooftop-height {
        min-width: 0;
    }

    .snv-dialog--private .snv-private-grades {
        padding-right: 10px;
        padding-left: 10px;
    }

    .snv-private-grade-table {
        font-size: 11px;
    }

    .snv-private-grade-table th,
    .snv-private-grade-table td {
        padding-right: 4px;
        padding-left: 4px;
    }
}

@media (max-width: 440px) {
    .snv-hierarchy-grid,
    #WindowSetBox .snv-hierarchy-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .snv-area-building-dialog {
        width: calc(100vw - 24px) !important;
    }

    .snv-area-building-dialog__body {
        padding: 12px;
    }

    .snv-area-building-card__facts > div {
        padding: 12px;
    }
}

/* Laptop-height safety: keep the form usable without introducing mobile layout. */
@media (max-height: 760px) {
    .snv-workspace-dialog {
        max-height: calc(100dvh - 24px);
    }

    .snv-dialog-body {
        padding-top: 14px;
        padding-bottom: 16px;
    }

    .snv-dialog--building .snv-floor-list {
        height: 170px;
    }

    .snv-workspace-dialog .snv-dialog-header {
        min-height: 66px;
        padding-top: 12px;
        padding-bottom: 11px;
    }

    #Sun_simulationBox .snv-dialog-body,
    #WindowSetBox .snv-dialog-body,
    #viewcheck_infobox .snv-dialog-body {
        padding-top: 14px;
        padding-bottom: 16px;
    }

    #WindowSetBox .snv-dialog-section {
        padding: 13px 14px;
    }

    #WindowSetBox .snv-choice-list {
        height: 86px;
        min-height: 86px;
    }

    #WindowSetBox .snv-window-point-picker {
        min-height: 186px;
    }

    .snv-rooftop-dialog .snv-dialog-body {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .snv-rooftop-toolbar {
        padding: 10px 12px;
    }

    .snv-rooftop-stage canvas {
        min-height: 230px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .snv-workspace-dialog,
    .snv-workspace-dialog * {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
