.wp-layout-panel { margin: 0 0 20px; padding: 20px; border: 1px solid #c3d1d8; border-radius: 16px; background: #f7fafc; color: #2d4658; box-shadow: 0 3px 20px #314c6a0b; }
.wp-layout-panel[hidden] { display: none !important; }
.wp-layout-panel-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 17px; }
.wp-layout-panel-heading h2 { margin: 0 !important; font-size: 20px !important; }
.wp-layout-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.wp-layout-history-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.wp-layout-history-actions button { min-height: 36px; padding: 6px 10px; font-size: 12px; }
.wp-layout-history-actions button:disabled { opacity: .42; cursor: default; }
.wp-layout-panel .wp-layout-primary { background: #356a94; border-color: #356a94; color: white; }
.wp-layout-settings-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.wp-layout-group { margin: 0; padding: 15px; border: 1px solid #d9e2e9; border-radius: 10px; background: white; min-width: 0; }
.wp-layout-group legend { color: #365b77; font-size: 12px; font-weight: 750; }
.wp-layout-panel .wp-layout-field { display: flex; flex-direction: column; gap: 4px; margin: 0 0 11px; font-size: 12px; }
.wp-layout-panel .wp-layout-field input,.wp-layout-panel .wp-layout-field select { font-size: 13px; min-height: 38px; padding: 7px 9px; }
.wp-layout-panel .wp-layout-checkbox { flex-direction: row; align-items: center; justify-content: flex-start; min-height: 32px; }
.wp-layout-checkbox span { order: 1; }
.wp-layout-panel .wp-layout-checkbox input { width: 18px; height: 18px; min-height: 18px; margin: 0 3px 0 0; }
.wp-layout-panel input[type="color"] { height: 38px; padding: 3px; }
.wp-layout-panel input:disabled,.wp-layout-panel select:disabled { background: #f0f3f6; color: #8b98a2; }
.wp-layout-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.wp-layout-help { margin: 6px 0 0; font-size: 11px; line-height: 1.8; color: #61788b; }
.wp-layout-workspace-settings { display: grid; grid-template-columns: minmax(185px,.65fr) minmax(0,1.65fr); gap: 18px; }
.wp-layout-gallery-panel { min-width: 0; }
.wp-layout-panel .wp-layout-gallery-panel h3 { margin: 0 0 8px; color: #365b77; font-size: 12px; }
.wp-layout-samples { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.wp-layout-panel .wp-layout-sample { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 0; padding: 7px; border: 1px solid #c3d4e1; border-radius: 9px; background: white; color: #3b5d76; font-size: 11px; }
.wp-layout-sample-preview { display: block; position: relative; height: 70px; overflow: hidden; border: 1px solid #e1e8ef; border-radius: 3px; background: #f5f8fc; }
.wp-layout-sample-preview i { position: absolute; display: block; background: #c7ddea; border: 1px solid #7da5bf; border-radius: 2px; }
.wp-layout-sample-preview i:first-child { background: #85aecb; }
.wp-layout-sample-preview i:nth-child(3) { background: #bad8cb; }
.wp-layout-template-panel { margin-top: 16px; padding-top: 13px; border-top: 1px solid #d8e3ec; }
.wp-layout-template-row { display: flex; align-items: end; flex-wrap: wrap; gap: 7px; }
.wp-layout-template-row > .wp-layout-field { flex: 1 1 150px; margin: 0; }
.wp-layout-template-row > button { flex: 0 1 auto; min-height: 38px; padding: 6px 9px; font-size: 11px; }
.wp-layout-template-actions { margin-top: 7px; }
.wp-layout-template-actions button { padding: 5px 8px; min-height: 31px; font-size: 10px; }
.wp-layout-component-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.wp-layout-component-list button { min-height: 32px; padding: 5px 9px; font-size: 11px; }
.wp-layout-component-list button[aria-pressed="true"] { background: #e2edf6; border-color: #5c87a8; }
.wp-layout-component-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.wp-layout-dialog .wp-layout-dialog-body { margin-top: 18px; }
.wp-layout-dialog .wp-layout-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; font-size: 12px; }
.wp-layout-dialog .wp-layout-field input,.wp-layout-dialog .wp-layout-field select { min-height: 38px; padding: 7px 9px; font-size: 13px; }
.wp-layout-dialog .wp-layout-checkbox { flex-direction: row; align-items: center; }
.wp-layout-dialog .wp-layout-checkbox input { min-height: 18px; }
.wp-layout-dialog .wp-layout-primary { background: #356a94; border-color: #356a94; color: white; }
.wp-layout-dialog input[type="color"] { width: 100%; height: 38px; padding: 3px; }
.wp-layout-panel-footer { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: start; gap: 16px; margin-top: 15px; }
.wp-layout-status { min-height: 18px; margin: 9px 0 0; font-size: 12px; color: #3b7186; }
.wp-layout-status.is-error { color: #a13e34; }
.wp-sheet.wp-layout-canvas { padding: 0; overflow: visible; }
.wp-layout-canvas > .wp-layout-box { position: absolute; box-sizing: border-box; border-width: 1px; border-color: var(--wp-line,#b9c9d5); }
.wp-layout-box[hidden] { display: none !important; }
.wp-layout-content { display: flow-root; }
.wp-layout-content > * { margin: 0 !important; }
.wp-layout-canvas > .wp-layout-box > .wp-layout-content { position: absolute; transform-origin: top left; }
.wp-layout-flow > .wp-layout-box { position: relative; margin-top: 14px; border-width: 1px; border-color: var(--wp-line,#b9c9d5); box-sizing: border-box; }
.wp-layout-flow > .wp-layout-box:first-child { margin-top: 0; }
.wp-layout-flow > .wp-layout-box > .wp-layout-content { position: static; width: auto; transform: none; }
.wp-layout-editing.wp-layout-canvas { background-image: linear-gradient(#7b9caf10 1px,transparent 1px),linear-gradient(90deg,#7b9caf10 1px,transparent 1px); background-size: var(--wp-layout-snap,10px) var(--wp-layout-snap,10px); }
.wp-layout-editing > .wp-layout-box { outline: 1px dashed #789bb2; outline-offset: -1px; }
.wp-layout-editing > .wp-layout-box.is-selected { z-index: 30; outline: 3px solid #286c9e; outline-offset: -3px; }
.wp-layout-editing > .wp-layout-box.is-hidden { opacity: .3; }
.wp-layout-editing .wp-layout-content { pointer-events: none; user-select: none; }
.wp-layout-box-toolbar { position: absolute; top: -29px; left: 0; max-width: 100%; display: inline-flex; align-items: center; height: 27px; border: 1px solid #7796aa; border-radius: 5px 5px 0 0; background: #eef5fa; box-shadow: 0 -2px 5px #39678c0a; }
.wp-sheet .wp-layout-box-toolbar button { width: auto; min-height: 25px; padding: 3px 6px; background: transparent; color: #315c7a; font: 600 11px/1.4 Arial,"Malgun Gothic",sans-serif; white-space: nowrap; }
.wp-sheet .wp-layout-box-toolbar .wp-layout-grip { flex: 0 0 26px; width: 26px; touch-action: none; cursor: grab; border-right: 1px solid #b2c9db; text-align: center; }
.wp-sheet .wp-layout-box-toolbar .wp-layout-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.wp-sheet .wp-layout-box-toolbar .wp-layout-gear { flex: 0 0 27px; text-align: center; font-size: 15px; border-left: 1px solid #b2c9db; }
.wp-layout-box.is-blocked { outline-color: #bb6644 !important; }
.wp-sheet .wp-layout-resize { position: absolute; right: -8px; bottom: -8px; display: grid; place-items: center; width: 22px; min-width: 22px; height: 22px; padding: 0; border: 1px solid #4a7c9d; border-radius: 5px; color: #255c84; background: #eaf4fb; font: 700 18px/1 Arial,sans-serif; cursor: nwse-resize; touch-action: none; }
.wp-layout-dragging,.wp-layout-dragging * { user-select: none !important; }
.wp-layout-precision { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 15px; }
.wp-layout-precision .wp-layout-selected-name { min-width: 110px; font-size: 13px; }
.wp-layout-panel .wp-layout-precision .wp-layout-checkbox { margin-bottom: 0; }
.wp-layout-precision .wp-layout-help { flex-basis: 100%; margin: 0; }
.wp-layout-precision .wp-layout-actions button { font-size: 12px; padding: 6px 10px; min-height: 34px; }
.wp-layout-box.is-locked { outline-color: #8c8b9b !important; }
.wp-sheet .wp-layout-box-toolbar .wp-layout-grip:disabled,.wp-sheet .wp-layout-resize:disabled { cursor: not-allowed; opacity: .55; }
.wp-layout-guide { position: absolute; display: block; pointer-events: none; z-index: 30; background: #cb3f8f; box-shadow: 0 0 0 1px #ffffff80; }
.wp-layout-guide-x { width: 1px; }
.wp-layout-guide-y { height: 1px; }
@media(max-width:900px) { .wp-layout-settings-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .wp-layout-group:last-child { grid-column: 1/-1; } }
@media(max-width:650px) { .wp-layout-workspace-settings { grid-template-columns: 1fr; } .wp-layout-workspace-settings > .wp-layout-group { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 12px; } .wp-layout-workspace-settings > .wp-layout-group > .wp-layout-pair { grid-column: 1/-1; } }
@media(max-width:520px) { .wp-layout-panel { padding: 14px; } .wp-layout-settings-grid { grid-template-columns: 1fr; gap: 12px; } .wp-layout-panel-footer { grid-template-columns: 1fr; } .wp-layout-component-grid { grid-template-columns: 1fr; } .wp-layout-samples { gap: 5px; } .wp-layout-sample-preview { height: 54px; } .wp-layout-panel .wp-layout-sample { padding: 4px; font-size: 10px; } }
@media print { .wp-layout-panel,.wp-layout-box-toolbar,.wp-layout-grip,.wp-layout-resize { display: none !important; } }
