body.notes2-open {
    padding-top: 52px;
}

body.notes2-open .container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 8px 12px 12px;
    box-sizing: border-box;
}

body.notes2-open #notes2Tab.tab-content.active {
    display: block;
}

.notes2-page {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 84px);
    min-width: 0;
}

.notes2-tab-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    overflow-x: auto;
    flex-shrink: 0;
}

.notes2-stage {
    position: relative;
    flex: 1;
    min-height: 520px;
    overflow: hidden;
    border-radius: 14px;
    background:
        radial-gradient(circle at 1px 1px, rgba(91, 124, 153, 0.16) 1px, transparent 0) 0 0 / 28px 28px,
        #f4f7fb;
    border: 1px solid rgba(91, 124, 153, 0.16);
    cursor: grab;
    touch-action: none;
}

.notes2-stage.is-panning {
    cursor: grabbing;
}

.notes2-world {
    position: absolute;
    left: 0;
    top: 0;
    transform-origin: 0 0;
    will-change: transform;
}

.notes2-guide {
    position: absolute;
    background: #5B7C99;
    pointer-events: none;
    z-index: 4000;
    opacity: 0.7;
}

.notes2-guide.is-x {
    width: 1px;
    top: -2000px;
    height: 6000px;
}

.notes2-guide.is-y {
    height: 1px;
    left: -2000px;
    width: 6000px;
}

.notes2-card {
    position: absolute;
    min-width: 160px;
    min-height: 120px;
    box-sizing: border-box;
    border-radius: 8px;
    box-shadow: 2px 4px 12px rgba(28, 41, 56, 0.12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: default;
}

.notes2-card.note-color-yellow { background: #fff9c4; }
.notes2-card.note-color-pink { background: #fce4ec; }
.notes2-card.note-color-green { background: #e8f5e9; }
.notes2-card.note-color-blue { background: #e3f2fd; }
.notes2-card.note-color-purple { background: #f3e5f5; }
.notes2-card.note-color-orange { background: #fff3e0; }

.notes2-card.is-selected {
    z-index: 3000 !important;
    box-shadow:
        0 0 0 2px #5B7C99,
        6px 12px 28px rgba(28, 41, 56, 0.18);
}

.notes2-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px 6px;
    cursor: grab;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.notes2-card.is-dragging .notes2-card-header,
.notes2-card-header:active {
    cursor: grabbing;
}

.notes2-title {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.8);
    outline: none;
}

.notes2-tools {
    display: none;
    gap: 4px;
    align-items: center;
}

.notes2-card.is-selected .notes2-tools {
    display: flex;
}

.notes2-tool {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.07);
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
}

.notes2-tool:hover {
    background: rgba(0, 0, 0, 0.14);
}

.notes2-tool.is-danger {
    color: #b91c1c;
}

.notes2-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 10px 12px 12px;
    outline: none;
    color: rgba(0, 0, 0, 0.82);
    line-height: 1.45;
}

.notes2-body.font-small { font-size: 14px; }
.notes2-body.font-medium { font-size: 16px; }
.notes2-body.font-large { font-size: 20px; }
.notes2-body.font-xlarge { font-size: 26px; }
.notes2-body.font-xxlarge { font-size: 34px; line-height: 1.2; }

.notes2-body:empty:before {
    content: attr(data-placeholder);
    color: rgba(0, 0, 0, 0.35);
}

.notes2-handle {
    display: none;
    position: absolute;
    width: 10px;
    height: 10px;
    background: #fff;
    border: 2px solid #5B7C99;
    border-radius: 50%;
    z-index: 3;
}

.notes2-card.is-selected .notes2-handle {
    display: block;
}

.notes2-handle.n { top: -5px; left: 50%; margin-left: -5px; cursor: ns-resize; }
.notes2-handle.s { bottom: -5px; left: 50%; margin-left: -5px; cursor: ns-resize; }
.notes2-handle.e { right: -5px; top: 50%; margin-top: -5px; cursor: ew-resize; }
.notes2-handle.w { left: -5px; top: 50%; margin-top: -5px; cursor: ew-resize; }
.notes2-handle.nw { left: -5px; top: -5px; cursor: nwse-resize; }
.notes2-handle.ne { right: -5px; top: -5px; cursor: nesw-resize; }
.notes2-handle.sw { left: -5px; bottom: -5px; cursor: nesw-resize; }
.notes2-handle.se { right: -5px; bottom: -5px; cursor: nwse-resize; }

.notes2-zoom {
    position: absolute;
    right: 22px;
    bottom: 42px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(28, 41, 56, 0.14);
    z-index: 5;
}

.notes2-zoom button {
    border: none;
    background: #eef3f8;
    color: #2C3E50;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 700;
}

.notes2-zoom #notes2ZoomReset {
    width: auto;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
}

.notes2-zoom span {
    min-width: 46px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #4a5d70;
}

.notes2-hint {
    margin: 8px 2px 0;
    color: rgba(44, 62, 80, 0.55);
    font-size: 0.82rem;
}

body.dark-mode .notes2-tab-bar {
    background: rgba(30, 30, 46, 0.9);
}

body.dark-mode .notes2-stage {
    background:
        radial-gradient(circle at 1px 1px, rgba(168, 197, 221, 0.16) 1px, transparent 0) 0 0 / 28px 28px,
        #1a2230;
    border-color: rgba(122, 156, 198, 0.22);
}

body.dark-mode .notes2-zoom {
    background: rgba(28, 32, 46, 0.94);
}

body.dark-mode .notes2-zoom button {
    background: rgba(255, 255, 255, 0.08);
    color: #E8EDF2;
}

body.dark-mode .notes2-zoom span,
body.dark-mode .notes2-hint {
    color: #9eb0c2;
}
