.properties-panel {
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #202124;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.properties-panel--floating {
    position: fixed;
    top: 110px;
    right: 16px;
    width: 320px;
    z-index: 2500;
}

.properties-panel.is-hidden {
    display: none;
}

.properties-panel__header {
    padding: 12px 14px;
    border-bottom: 1px solid #ececec;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.properties-panel__header h2 {
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.02em;
}

.properties-panel__status {
    font-size: 11px;
    color: #9aa0a6;
}

.properties-panel.is-empty {
    opacity: 0.75;
}

.properties-panel.is-empty .properties-panel__row--flow button,
.properties-panel.is-empty .properties-panel__align-grid button {
    pointer-events: none;
}

.properties-panel__body {
    display: grid;
    gap: 16px;
    padding: 12px 14px 16px;
    max-height: calc(100vh - 160px);
    overflow: auto;
}

.properties-panel__section {
    display: grid;
    gap: 8px;
}

.properties-panel__section.is-hidden {
    display: none;
}

.properties-panel__section-title {
    font-size: 12px;
    color: #5f6368;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.properties-panel__row {
    display: grid;
    gap: 6px;
    align-items: center;
}

.properties-panel__row--grid {
    grid-template-columns: 20px 1fr 80px;
}

.properties-panel__row--flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.properties-panel__row--split {
    grid-template-columns: 60px repeat(4, minmax(52px, 1fr));
    gap: 6px;
}

.properties-panel__row--split input {
    width: 100%;
}

.properties-panel__row--split[data-split="padding"] {
    display: none;
}

.properties-panel__row--split[data-split="padding"].is-open {
    display: grid;
    grid-template-columns: repeat(4, minmax(52px, 1fr));
}

.properties-panel__label {
    font-size: 12px;
    color: #5f6368;
}

.properties-panel__input {
    position: relative;
}

.properties-panel__input input {
    width: 100%;
    padding: 6px 22px 6px 8px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 12px;
}

.properties-panel select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 12px;
    background: #fff;
}

.properties-panel input[type="number"],
.properties-panel input[type="text"].properties-panel__body input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 12px;
    background: #fff;
}

.properties-panel .properties-panel__body input[type="text"] {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 12px;
    background: #fff;
}

.properties-panel__scrub-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    position: relative;
}

.properties-panel__scrub-wrap input {
    flex: 1;
    min-width: 0;
}

.properties-panel__scrub-handle {
    flex-shrink: 0;
    width: 12px;
    min-width: 12px;
    height: 20px;
    border-radius: 4px;
    background: #b0b0b0;
    cursor: ew-resize;
    border: 1px solid #999;
}

.properties-panel__scrub-handle:hover {
    background: #9a9a9a;
}

.properties-panel__scrub-handle:active {
    background: #7a7a7a;
}

.properties-panel__scrub {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 18px;
    border-radius: 4px;
    background: #e0e0e0;
    cursor: ew-resize;
}

.properties-panel__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #202124;
}

.properties-panel__toggle input {
    width: auto;
}

.properties-panel__row--flow button,
.properties-panel__align-grid button {
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    padding: 6px 4px;
    font-size: 11px;
    cursor: pointer;
}

.properties-panel__row--flow button.is-active,
.properties-panel__align-grid button.is-active {
    background: #e8f0fe;
    border-color: #4c8bf5;
}

.properties-panel__align-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.properties-panel__align-grid button {
    height: 28px;
    position: relative;
}

.properties-panel__align-grid button::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5f6368;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
