/* G-16 Layout Plan -- protected pan/zoom viewer.
   Separate from custom.css on purpose, so this addition stays easy to find and revert. */

.g16-layout-viewer {
    border: 1px solid #e2e4de;
    border-radius: 10px;
    background: #fbfbf9;
    overflow: hidden;
    max-width: 1100px;
    margin: 0 auto 18px;
}

.g16-layout-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #e2e4de;
    background: #fff;
    flex-wrap: wrap;
    gap: 8px;
}

.g16-layout-toolbar .g16-label {
    font-size: 13px;
    color: #555;
    font-family: 'Public Sans', Arial, sans-serif;
}

.g16-layout-controls { display: flex; gap: 8px; }

.g16-layout-controls button {
    border: 1px solid #d7dad2;
    background: #fff;
    color: #1F2E22;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    font-size: 17px;
    cursor: pointer;
    line-height: 1;
}

.g16-layout-controls button:hover { background: #f1f3ee; }

.g16-layout-stage {
    position: relative;
    height: 560px;
    background:
        linear-gradient(45deg,#eceee8 25%,transparent 25%),
        linear-gradient(-45deg,#eceee8 25%,transparent 25%),
        linear-gradient(45deg,transparent 75%,#eceee8 75%),
        linear-gradient(-45deg,transparent 75%,#eceee8 75%);
    background-size: 22px 22px;
    background-position: 0 0,0 11px,11px -11px,-11px 0px;
    overflow: hidden;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
}

.g16-layout-stage.g16-grabbing { cursor: grabbing; }

.g16-layout-stage canvas {
    position: absolute;
    top: 0; left: 0;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.g16-watermark-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.g16-watermark-layer span {
    position: absolute;
    white-space: nowrap;
    color: rgba(10,60,15,0.10);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    transform: rotate(-22deg);
    font-family: 'Public Sans', Arial, sans-serif;
}

.g16-layout-footnote {
    padding: 12px 16px;
    font-size: 12.5px;
    color: #777;
    border-top: 1px solid #e2e4de;
    background: #fff;
    font-family: 'Public Sans', Arial, sans-serif;
}

@media (max-width: 700px) {
    .g16-layout-stage { height: 380px; }
}
