:root {
    --chrome: #F3F3F5;
    --panel: #F8F8FA;
    --surface: #FFFFFF;
    --canvas: #E7E8EB;
    --border: #DDDDE2;
    --line: #E5E5EA;
    --text: #32343B;
    --muted: #8B8D96;
    --subtle: #B1B3BA;
    --accent: #F17645;
    --blue: #4387F5;
    --selection: #DFEAFF;
    --input: #ECECF0;
    --hover: #E8E8ED;
    --shadow: 0 12px 50px #24273322;
    --left: 234px;
    --right: 268px;
    color-scheme: light;
}
[data-theme=dark] {
    --chrome: #24252A;
    --panel: #28292F;
    --surface: #33353C;
    --canvas: #1C1E23;
    --border: #3C3E46;
    --line: #373940;
    --text: #E3E4E9;
    --muted: #989BA8;
    --subtle: #676B76;
    --input: #353740;
    --hover: #3A3D47;
    --selection: #294975;
    --shadow: 0 16px 64px #0008;
    color-scheme: dark;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    overflow: hidden;
    font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
    font-size: 12px;
    color: var(--text);
    background: var(--chrome);
    -webkit-font-smoothing: antialiased;
}
button,input,select,textarea {
    font: inherit;
    color: inherit;
}
button {
    border: 0;
    cursor: pointer;
    background: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
button:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}
button:disabled {
    opacity: .35;
    cursor: default;
}
input,select,textarea {
    outline: none;
}
input:focus,select:focus,textarea:focus {
    border-color: var(--blue)!important;
    box-shadow: 0 0 0 2px #4387f522;
}
button:hover {
    background: var(--hover);
}
svg {
    display: block;
    flex: none;
}
button svg {
    pointer-events: none;
}
[hidden] {
    display: none!important;
}
.titlebar {
    height: 45px;
    display: grid;
    grid-template-columns: var(--left) 1fr auto;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding: 0 16px 0 17px;
    background: var(--chrome);
    user-select: none;
}
.brand-area {
    display: flex;
    align-items: center;
    gap: 22px;
}
.traffic {
    display: flex;
    gap: 7px;
}
.traffic i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #FC625E;
    box-shadow: inset 0 0 0 .6px #0001;
}
.traffic i:nth-child(2) {
    background: #FDBC40;
}
.traffic i:nth-child(3) {
    background: #35C94A;
}
.brand {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 3px 5px;
    border-radius: 5px;
}
.brand b {
    font-size: 14px;
    font-weight: 650;
    letter-spacing: -.45px;
}
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 7px;
    background: var(--accent);
    color: white;
    font-size: 20px;
    font-weight: 850;
    font-family: Arial;
    letter-spacing: -2px;
    padding-right: 2px;
    box-shadow: inset 0 1px 1px #ffffff44;
}
.tiny-chevron {
    font-size: 12px;
    color: var(--muted);
    padding-left: 3px;
}
.document-title {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 5px;
    padding: 6px 10px;
    white-space: nowrap;
}
.local-badge {
    font-size: 8px;
    font-weight: 600;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 3px;
    letter-spacing: .7px;
    padding: 2px 4px;
}
.title-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.save-status {
    font-size: 10px;
    color: var(--muted);
    margin-right: 5px;
}
.icon-button {
    padding: 5px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    color: var(--muted);
}
.icon-button.small {
    width: 24px;
    height: 24px;
    padding: 4px;
}
.icon-button:hover {
    color: var(--text);
}
.v-separator {
    display: inline-block;
    background: var(--border);
    height: 20px;
    width: 1px;
    margin: 0 6px;
    flex: none;
}
.avatar {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    color: #855F45;
    background: #EDD9C9;
    border: 2px solid var(--surface);
    font-size: 10px;
    font-weight: 700;
}
.share-button {
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 6px 11px;
    border-radius: 5px;
    font-size: 11px;
    box-shadow: 0 1px 1px #00000006;
}
.toolbar {
    height: 66px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 17px;
    border-bottom: 1px solid var(--border);
    background: var(--chrome);
}
.toolbar-start,.toolbar-middle,.toolbar-end {
    display: flex;
    align-items: center;
    gap: 10px;
}
.toolbar-start {
    min-width: 290px;
}
.toolbar-middle {
    gap: 12px;
    justify-content: center;
}
.toolbar-end {
    gap: 11px;
    padding-right: 0;
}
.toolbar-tool {
    height: 53px;
    min-width: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 10px;
    color: var(--text);
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
}
.toolbar-tool>span:first-child {
    height: 25px;
    display: flex;
    align-items: center;
}
.toolbar-tool svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.35;
}
.toolbar-tool small {
    color: var(--muted);
    font-size: 12px;
    padding-left: 4px;
}
.toolbar-tool.active {
    color: var(--blue);
    background: var(--selection);
}
.export-tool svg {
    color: var(--accent);
}
.workspace {
    display: grid;
    grid-template-columns: var(--left) minmax(0,1fr) var(--right);
    height: calc(100dvh - 111px);
}
.sidebar {
    background: var(--panel);
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.left-sidebar {
    border-right: 1px solid var(--border);
}
.right-sidebar {
    border-left: 1px solid var(--border);
}
.panel-tabs {
    height: 41px;
    flex: none;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    padding: 0 13px;
}
.panel-tabs>button:not(.icon-button) {
    height: 41px;
    padding: 0 5px;
    position: relative;
    color: var(--muted);
    font-size: 11px;
    font-weight: 550;
}
.panel-tabs>button.active {
    color: var(--text);
}
.panel-tabs>button.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 5px;
    right: 5px;
    height: 2px;
    background: var(--accent);
}
.panel-tabs>.icon-button {
    margin-left: auto;
}
.section-label {
    padding: 13px 16px 7px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 650;
    color: var(--muted);
    letter-spacing: .2px;
    height: 37px;
}
.section-label button {
    margin-right: -5px;
}
.page-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: calc(100% - 16px);
    margin: 2px 8px;
    padding: 7px 9px;
    border-radius: 5px;
    font-size: 11px;
    text-align: left;
}
.page-row svg {
    width: 15px;
    height: 15px;
    color: var(--muted);
}
.page-row.active {
    background: var(--selection);
    color: var(--blue);
}
.page-row.active svg {
    color: var(--blue);
}
.page-row .page-count {
    margin-left: auto;
    color: var(--muted);
    font-size: 9px;
}
.layer-search {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 15px 12px 3px;
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 5px 7px;
    background: var(--surface);
    color: var(--muted);
    height: 27px;
}
.layer-search svg {
    height: 13px;
    width: 13px;
}
.layer-search input {
    border: 0;
    background: none;
    min-width: 0;
    width: 100%;
    font-size: 10px;
    color: var(--text);
    padding: 0;
}
.layer-search input:focus {
    box-shadow: none;
}
.layer-search kbd {
    font-size: 9px;
    white-space: nowrap;
    color: var(--subtle);
}
#layers-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}
.layers-heading {
    height: 36px;
    flex: none;
}
#layer-tree {
    overflow: auto;
    flex: 1;
    padding-bottom: 30px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.layer-row {
    height: 29px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-right: 10px;
    position: relative;
    cursor: default;
    border: 1px solid transparent;
    font-size: 10.5px;
    user-select: none;
}
.layer-row:hover {
    background: var(--hover);
}
.layer-row.selected {
    background: var(--selection);
    color: var(--blue);
}
.layer-row.layer-hidden {
    opacity: .45;
}
.layer-row .tree-toggle {
    width: 13px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex: none;
    color: var(--muted);
    border-radius: 3px;
}
.tree-toggle svg {
    width: 11px;
    height: 11px;
    transition: transform .1s;
}
.tree-toggle.open svg {
    transform: rotate(90deg);
}
.layer-icon svg {
    width: 14px;
    height: 14px;
    color: var(--muted);
    stroke-width: 1.35;
}
.layer-row.selected .layer-icon svg {
    color: var(--blue);
}
.layer-icon.symbol svg {
    color: #A479D4;
}
.layer-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}
.layer-row .layer-action {
    opacity: 0;
    padding: 2px;
    width: 17px;
    height: 21px;
    color: var(--muted);
    flex: none;
    border-radius: 3px;
}
.layer-row:hover .layer-action,.layer-row .layer-action.on {
    opacity: 1;
}
.layer-action svg {
    height: 12px;
    width: 12px;
}
.layer-row.drag-over {
    border-top-color: var(--blue);
}
.sidebar-footer {
    height: 39px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    border-top: 1px solid var(--border);
    font-size: 9px;
    color: var(--muted);
    flex: none;
}
.sidebar-footer button {
    margin-left: auto;
}
.local-dot {
    height: 5px;
    width: 5px;
    border-radius: 50%;
    background: #79A483;
}
.canvas-heading {
    height: 41px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 13px;
    background: var(--panel);
    flex: none;
}
.canvas-heading>div {
    display: flex;
    align-items: center;
    gap: 4px;
}
.breadcrumb {
    font-size: 10px;
    color: var(--muted);
    gap: 8px!important;
}
.breadcrumb>span:first-child svg {
    width: 13px;
    height: 13px;
}
.crumb-divider {
    padding: 0 3px;
    color: var(--subtle);
}
#selection-crumb {
    color: var(--text);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#canvas-shell {
    min-width: 0;
    min-height: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--canvas);
}
#stage {
    position: relative;
    flex: 1;
    overflow: hidden;
    touch-action: none;
    outline: none;
}
#stage>canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: block;
}
#overlay-canvas {
    z-index: 1;
}
#text-editor {
    position: absolute;
    z-index: 4;
    background: transparent;
    resize: none;
    border: 1px solid var(--blue);
    padding: 0;
    margin: 0;
    border-radius: 0;
    white-space: pre-wrap;
    overflow: hidden;
    transform-origin: 0 0;
    box-shadow: 0 0 0 2px #4387f511;
    color: #111;
    user-select: text;
}
.floating-tools {
    position: absolute;
    bottom: 49px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    padding: 5px;
    gap: 3px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 11px;
    z-index: 5;
    box-shadow: 0 6px 20px #0000000c;
    user-select: none;
}
.floating-tools button {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
}
.floating-tools button:hover {
    color: var(--text);
}
.floating-tools button.active {
    background: var(--blue);
    color: white;
    box-shadow: 0 2px 3px #4387f530;
}
.floating-tools>span {
    width: 1px;
    height: 18px;
    background: var(--border);
    margin: 0 3px;
}
.canvas-status {
    height: 31px;
    border-top: 1px solid var(--border);
    background: var(--panel);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 11px;
    font-size: 9px;
    color: var(--muted);
    user-select: none;
    flex: none;
}
#tool-hint {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-right: 10px;
}
.canvas-status-right {
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex: none;
    gap: 1px;
}
.canvas-status-right .v-separator {
    height: 13px;
    margin: 0 9px;
}
.canvas-status button {
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 4px;
    height: 23px;
}
.canvas-status .zoom-minus,.canvas-status .zoom-plus {
    font-size: 15px;
    color: var(--muted);
}
.renderer-badge {
    display: flex;
    gap: 5px;
    align-items: center;
}
.renderer-badge i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #60A784;
}
.renderer-badge span {
    font-size: 9px;
}
#zoom-value {
    min-width: 44px;
    color: var(--text);
}
.inspector-tabs {
    justify-content: flex-start;
    gap: 12px;
}
#inspector {
    overflow: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.inspector-section {
    border-bottom: 1px solid var(--border);
    padding: 15px 15px 16px;
}
.inspector-section h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    margin: 0 0 12px;
    font-weight: 650;
    letter-spacing: .1px;
}
.inspector-section h3 .icon-button {
    margin: -5px 0;
}
.inspector-section .description {
    font-size: 10px;
    line-height: 1.6;
    color: var(--muted);
    margin: 0;
}
.align-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 11px;
    border-bottom: 1px solid var(--border);
}
.align-row button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 25px;
    border-radius: 4px;
    color: var(--muted);
}
.align-row svg {
    width: 17px;
    height: 17px;
}
.property-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px 10px;
}
.property {
    height: 28px;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
    background: var(--input);
    border: 1px solid transparent;
    border-radius: 5px;
    min-width: 0;
    padding: 0 8px;
}
.property:focus-within {
    border-color: var(--blue);
}
.property>span {
    font-size: 10px;
    color: var(--muted);
    width: 16px;
    flex: none;
}
.property input {
    width: 100%;
    border: 0;
    background: none;
    text-align: right;
    min-width: 0;
    font-size: 11px;
    padding: 0;
    appearance: textfield;
}
.property input::-webkit-inner-spin-button {
    appearance: none;
}
.property input:focus {
    box-shadow: none;
}
.property.wide {
    grid-column: 1/-1;
}
.property .unit {
    width: auto;
    font-size: 9px;
    color: var(--muted);
}
.property-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    color: var(--muted);
    margin: 10px 0 5px;
}
.input-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 9px;
}
.input-row .property {
    flex: 1;
}
.input-row>label {
    font-size: 10px;
    color: var(--muted);
    min-width: 42px;
}
.inspector-select {
    width: 100%;
    background: var(--input);
    border: 1px solid transparent;
    border-radius: 5px;
    height: 28px;
    padding: 0 6px;
    font-size: 10.5px;
}
.segmented {
    display: flex;
    gap: 2px;
    padding: 2px;
    background: var(--input);
    border-radius: 5px;
}
.segmented button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    font-size: 10px;
    border-radius: 4px;
    height: 25px;
}
.segmented button.active {
    background: var(--surface);
    box-shadow: 0 1px 3px #0001;
    color: var(--blue);
}
.fill-row {
    display: flex;
    align-items: center;
    gap: 7px;
}
.color-well {
    height: 28px;
    width: 31px;
    padding: 0;
    border: 1px solid #0001;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    background: repeating-conic-gradient(#ddd 0 25%,#fff 0 50%) 50%/8px 8px;
    flex: none;
}
.color-well input {
    position: absolute;
    inset: -4px;
    width: 40px;
    height: 40px;
    border: 0;
    cursor: pointer;
    padding: 0;
    opacity: 1;
}
.hex-input {
    background: var(--input);
    border: 1px solid transparent;
    border-radius: 5px;
    height: 28px;
    padding: 0 8px;
    font-family: ui-monospace,SFMono-Regular,Consolas,monospace;
    font-size: 10px;
    width: 95px;
    flex: 1;
    min-width: 0;
}
.check-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    cursor: pointer;
}
.check-label input {
    accent-color: var(--blue);
    width: 12px;
    height: 12px;
    margin: 0;
}
.row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}
.swatch-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}
.swatch {
    height: 20px;
    width: 20px;
    border-radius: 4px;
    border: 1px solid #0001;
}
.swatch:hover {
    box-shadow: 0 0 0 2px var(--panel),0 0 0 3px var(--blue);
}
.primary-button {
    background: var(--blue);
    color: white;
    padding: 9px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 550;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.primary-button:hover {
    background: #3377E5;
}
.secondary-button {
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 8px 11px;
    border-radius: 6px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.full-width {
    width: 100%;
    margin-top: 10px;
}
.inspector-footer {
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 13px;
    border-top: 1px solid var(--border);
    font-size: 9px;
    color: var(--muted);
}
.selection-title {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 13px;
}
.selection-title svg {
    width: 16px;
    height: 16px;
    color: var(--blue);
}
.selection-title input {
    background: none;
    border: 1px solid transparent;
    font-size: 11px;
    min-width: 0;
    width: 100%;
    font-weight: 550;
    border-radius: 3px;
    padding: 3px 4px;
}
.mini-tags {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}
.mini-tag {
    background: var(--input);
    color: var(--muted);
    border-radius: 4px;
    padding: 4px 6px;
    font-size: 9px;
}
.menu {
    position: fixed;
    z-index: 50;
    width: 239px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 5px;
    border-radius: 9px;
    box-shadow: 0 8px 40px #0002;
    max-height: 80vh;
    overflow: auto;
}
.menu-item {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    padding: 8px 9px;
    border-radius: 5px;
    text-align: left;
    font-size: 11px;
    min-height: 30px;
}
.menu-item:hover {
    background: var(--blue);
    color: white;
}
.menu-item svg {
    width: 15px;
    height: 15px;
}
.menu-item kbd {
    margin-left: auto;
    font-size: 10px;
    color: var(--muted);
    font-family: inherit;
}
.menu-item:hover kbd {
    color: #ffffffaa;
}
.menu-divider {
    height: 1px;
    background: var(--line);
    margin: 5px;
}
.menu-label {
    padding: 7px 9px;
    font-size: 9px;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--muted);
}
#toast {
    position: fixed;
    bottom: 47px;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    z-index: 100;
    background: #282B33;
    color: #F4F5F7;
    border: 1px solid #ffffff18;
    border-radius: 9px;
    padding: 11px 17px;
    font-size: 11px;
    box-shadow: 0 5px 25px #0002;
    opacity: 0;
    transition: opacity .15s,transform .15s;
    pointer-events: none;
    max-width: 80vw;
    line-height: 1.5;
}
#toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
dialog {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 0;
    box-shadow: var(--shadow);
    width: 510px;
    max-width: calc(100vw - 32px);
    max-height: 85vh;
}
dialog::backdrop {
    background: #1C253650;
    backdrop-filter: blur(4px);
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px 15px;
    border-bottom: 1px solid var(--line);
}
.modal-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -.3px;
}
.modal-body {
    padding: 21px 23px;
}
.modal-body p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
    margin: 0 0 16px;
}
.modal-footer {
    padding: 15px 22px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: flex-end;
    gap: 9px;
}
.modal-input {
    width: 100%;
    height: 37px;
    padding: 8px 11px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--input);
    font-size: 12px;
}
.command-input {
    font-size: 17px;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px;
    width: 100%;
    background: transparent;
}
.command-list {
    padding: 7px;
    max-height: 420px;
    overflow: auto;
}
.command-list .menu-item {
    padding: 11px 12px;
}
.command-list .menu-item.focused {
    background: var(--selection);
    color: var(--blue);
}
.shortcut-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 11px;
    border-bottom: 1px solid var(--line);
}
kbd {
    font-family: inherit;
}
.shortcut-row kbd,.modal-footer kbd {
    background: var(--input);
    padding: 4px 7px;
    border-radius: 4px;
    font-size: 10px;
    color: var(--muted);
}
.shortcuts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
}
.modal-body h4 {
    font-size: 10px;
    color: var(--muted);
    letter-spacing: .6px;
    text-transform: uppercase;
    margin: 18px 0 8px;
}
.asset-card {
    margin: 10px 12px;
    padding: 13px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}
.asset-card:hover {
    border-color: var(--blue);
}
.asset-card .asset-preview {
    height: 75px;
    background: var(--input);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    margin-bottom: 10px;
    color: var(--muted);
    overflow: hidden;
}
.asset-card .asset-name {
    font-size: 11px;
    font-weight: 550;
}
.asset-card p {
    font-size: 9px;
    color: var(--muted);
    margin: 4px 0 0;
}
#assets-panel {
    overflow: auto;
    flex: 1;
}
.empty-panel {
    text-align: center;
    color: var(--muted);
    padding: 30px 18px;
    font-size: 11px;
    line-height: 1.6;
}
.empty-panel svg {
    margin: 0 auto 12px;
    color: var(--subtle);
    width: 35px;
    height: 35px;
}
#drop-hint {
    position: absolute;
    z-index: 20;
    inset: 24px;
    border: 2px dashed var(--blue);
    border-radius: 15px;
    background: color-mix(in srgb,var(--panel) 92%,transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    color: var(--muted);
    pointer-events: none;
}
#drop-hint b {
    color: var(--text);
    font-size: 18px;
}
#drop-hint svg {
    width: 38px;
    height: 38px;
    color: var(--blue);
}
#empty-state {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 3;
    padding-bottom: 90px;
}
#empty-state>* {
    pointer-events: auto;
}
.empty-art {
    font-size: 66px;
    color: var(--accent);
    margin-bottom: 10px;
}
#empty-state h2 {
    font-family: Georgia,serif;
    font-weight: 400;
    font-size: 33px;
    letter-spacing: -1px;
    margin: 0 0 12px;
}
#empty-state p {
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 22px;
}
#empty-state>div {
    display: flex;
    gap: 8px;
}
#empty-state small {
    font-size: 10px;
    color: var(--muted);
    margin-top: 22px;
}
#prototype-view {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: #1E2027;
    display: flex;
    flex-direction: column;
    color: #EEE;
}
#prototype-view header {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 24px;
    border-bottom: 1px solid #ffffff10;
}
#prototype-title {
    color: #9DA2B0;
    margin-left: 15px;
    margin-right: auto;
}
#prototype-view .secondary-button {
    background: #333640;
    border-color: #474B58;
    color: #ECEEF4;
}
#prototype-stage {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px;
    overflow: hidden;
}
#prototype-canvas {
    box-shadow: 0 15px 65px #0005;
    max-width: 100%;
    max-height: 100%;
    cursor: pointer;
}
#prototype-view footer {
    text-align: center;
    padding: 12px;
    font-size: 10px;
    color: #979CAA;
}
#tooltip {
    position: fixed;
    z-index: 120;
    background: #252831;
    color: #F4F5F7;
    font-size: 10px;
    border: 1px solid #ffffff22;
    border-radius: 5px;
    padding: 6px 8px;
    pointer-events: none;
    white-space: nowrap;
}
.color-section-head {
    display: flex;
    align-items: center;
    gap: 8px;
}
.help-card {
    padding: 12px;
    background: var(--input);
    border-radius: 7px;
    line-height: 1.6;
    font-size: 10px;
    color: var(--muted);
    margin-top: 13px;
}
.help-card b {
    color: var(--text);
    display: block;
    margin-bottom: 4px;
}
.inspector-textarea {
    width: 100%;
    height: 76px;
    border-radius: 5px;
    border: 1px solid var(--border);
    padding: 7px;
    background: var(--input);
    font-size: 11px;
    resize: vertical;
    line-height: 1.5;
}
.modal-code {
    white-space: pre-wrap;
    word-break: break-word;
    background: var(--input);
    padding: 14px;
    border-radius: 6px;
    font: 11px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;
    max-height: 360px;
    overflow: auto;
}
.export-thumb {
    height: 145px;
    background: var(--canvas);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 17px;
    overflow: hidden;
    padding: 10px;
}
.export-thumb svg {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}
.danger {
    color: #E96767;
}
.layer-rename {
    width: 100%;
    font-size: 10px;
    border: 1px solid var(--blue);
    border-radius: 2px;
    background: var(--surface);
    padding: 2px;
}
.frame-preset {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    width: 100%;
    text-align: left;
}
.frame-preset span:last-child {
    font-size: 10px;
    color: var(--muted);
}
.inspector-section .section-note {
    color: var(--muted);
    font-size: 9px;
    margin: 7px 0 0;
    line-height: 1.5;
}
.metric-row {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
}
.metric-row span:last-child {
    font-family: ui-monospace,monospace;
}
.loading-error {
    padding: 25px;
    font-size: 14px;
    line-height: 1.7;
}
@media(min-width:1800px) {
    :root {
        --left: 248px;
        --right: 286px;
    }
    .toolbar-middle {
        gap: 22px;
    }
    .toolbar {
        padding-left: 23px;
        padding-right: 23px;
    }
}
@media(max-width:1200px) {
    :root {
        --left: 205px;
        --right: 245px;
    }
    .toolbar-start {
        min-width: 235px;
    }
    .toolbar-middle {
        gap: 1px;
    }
    .toolbar-tool {
        padding: 4px 6px;
    }
    .toolbar-start,.toolbar-end {
        gap: 3px;
    }
    .titlebar {
        padding: 0 10px;
    }
    .save-status {
        display: none;
    }
    .brand-area {
        gap: 10px;
    }
    .toolbar-middle .v-separator {
        margin: 0 4px;
    }
    .document-title {
        font-size: 11px;
    }
    .toolbar {
        padding: 5px 9px;
    }
}
@media(max-width:960px) {
    :root {
        --left: 180px;
        --right: 225px;
    }
    .toolbar-middle .toolbar-tool[data-action=ungroup],.toolbar-middle .toolbar-tool[data-action=mask] {
        display: none;
    }
    .toolbar-start {
        min-width: 215px;
    }
    .titlebar {
        grid-template-columns: var(--left) 1fr auto;
    }
    .traffic {
        display: none;
    }
    .title-actions {
        gap: 5px;
    }
    .local-badge {
        display: none;
    }
    .title-actions .v-separator,.avatar {
        display: none;
    }
    .toolbar-tool {
        font-size: 9px;
    }
    .floating-tools {
        gap: 1px;
    }
    .floating-tools button {
        width: 30px;
    }
    .panel-tabs {
        gap: 4px;
        padding: 0 9px;
    }
    .inspector-section {
        padding: 12px;
    }
    .property-grid {
        gap: 8px;
    }
    .titlebar .document-title {
        max-width: 300px;
        overflow: hidden;
    }
    .titlebar #doc-name {
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .toolbar-middle .toolbar-tool[data-action=group] {
        display: none;
    }
    .toolbar-middle .v-separator {
        display: none;
    }
}
@media(max-width:760px) {
    :root {
        --left: 0px;
        --right: 215px;
    }
    .left-sidebar {
        display: none;
    }
    .titlebar {
        grid-template-columns: 110px 1fr auto;
    }
    .title-actions .icon-button {
        display: none;
    }
    .toolbar-middle {
        display: none;
    }
    .toolbar-start {
        min-width: 0;
    }
    .toolbar {
        height: 60px;
    }
    .workspace {
        height: calc(100dvh - 105px);
    }
    .floating-tools {
        max-width: calc(100% - 20px);
        overflow-x: auto;
    }
    .floating-tools button {
        width: 29px;
        flex: none;
    }
    .floating-tools span {
        display: none;
    }
    .floating-tools button[data-tool=line],.floating-tools button[data-tool=frame],.floating-tools button[data-action=importImage] {
        display: none;
    }
    .canvas-status #tool-hint {
        display: none;
    }
    .canvas-status {
        justify-content: flex-end;
    }
    .breadcrumb #selection-crumb,.crumb-divider {
        display: none;
    }
    .document-title {
        font-size: 10px;
        padding: 4px;
    }
    .titlebar .share-button {
        font-size: 9px;
        padding: 6px;
    }
    .canvas-heading {
        padding: 0 6px;
    }
    .canvas-heading .v-separator {
        margin: 0 2px;
    }
}
@media(max-width:530px) {
    :root {
        --right: 0px;
    }
    .right-sidebar {
        display: none;
    }
    .title-actions .share-button {
        display: none;
    }
    .titlebar {
        grid-template-columns: 95px 1fr 0;
    }
    .toolbar-tool[data-action=component] {
        display: none;
    }
    .toolbar-start .v-separator {
        display: none;
    }
    .floating-tools {
        gap: 3px;
    }
    .floating-tools button {
        width: 34px;
    }
    .floating-tools button[data-tool=line],.floating-tools button[data-tool=frame],.floating-tools button[data-action=importImage] {
        display: flex;
    }
    #empty-state h2 {
        font-size: 28px;
    }
    #prototype-view header {
        padding: 10px;
        gap: 6px;
        font-size: 10px;
    }
    #prototype-title {
        display: none;
    }
    .titlebar .document-title {
        justify-self: end;
    }
    .shortcuts-grid {
        grid-template-columns: 1fr;
    }
    .toolbar-end {
        gap: 8px;
    }
}
.input-row>.inspector-select {
    flex: 1;
    min-width: 0;
    width: 0;
}
.input-row>.property {
    flex: 1;
    min-width: 0;
}
.asset-preview>svg {
    max-width: 94%;
    max-height: 80%;
    width: auto;
    height: auto;
}
/* Explicit grid placement is important when a responsive sidebar is hidden. */
.left-sidebar {
    grid-column: 1;
    grid-row: 1;
}
#canvas-shell {
    grid-column: 2;
    grid-row: 1;
}
.right-sidebar {
    grid-column: 3;
    grid-row: 1;
}
.mobile-layers-toggle,.mobile-inspector-toggle {
    display: none;
}
@media(max-width:760px) {
    .mobile-layers-toggle {
        display: inline-flex;
    }
    .wide-layer-icon {
        display: none;
    }
    .workspace.show-layers>.left-sidebar {
        display: flex;
        position: fixed;
        top: 146px;
        bottom: 0;
        left: 0;
        width: 234px;
        z-index: 15;
        box-shadow: var(--shadow);
    }
    .breadcrumb #page-name {
        max-width: 130px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
@media(max-width:530px) {
    .mobile-inspector-toggle {
        display: inline-flex;
    }
    .workspace.show-inspector>.right-sidebar {
        display: flex;
        position: fixed;
        top: 146px;
        bottom: 0;
        right: 0;
        width: 268px;
        z-index: 15;
        box-shadow: var(--shadow);
    }
    .breadcrumb #page-name {
        max-width: 115px;
    }
}
