:root {
    --mp-navy: #24345f;
    --mp-cyan: #20b8c6;
    --mp-green: #6cab45;
    --mp-cream: #eef7e4;
    --mp-bg: #020617;
    --mp-border: rgba(215, 223, 235, 0.15);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    background-color: var(--mp-bg);
}

body.modal-open {
    overflow: hidden;
}

input,
textarea,
select {
    color: var(--mp-navy) !important;
    background-color: rgba(255, 255, 255, 0.94) !important;
    caret-color: var(--mp-navy);
    text-shadow: none;
}

input:focus,
textarea:focus,
select:focus {
    color: var(--mp-navy) !important;
}

input::placeholder,
textarea::placeholder {
    color: rgba(36, 52, 95, 0.58) !important;
}

select option {
    color: var(--mp-navy) !important;
    background: #ffffff !important;
}

select,
option,
input,
textarea {
    -webkit-text-fill-color: var(--mp-navy) !important;
}

select {
    color-scheme: light;
    appearance: auto;
}

select:focus,
select:hover,
select:active,
select option:checked,
select option:hover {
    color: var(--mp-navy) !important;
    background-color: #ffffff !important;
}

.grid-overlay {
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.85), transparent 85%);
}

.shadow-soft {
    box-shadow: 0 18px 50px rgba(25, 40, 78, 0.1);
}

.shadow-panel {
    box-shadow: 0 24px 70px rgba(21, 38, 80, 0.18);
}

summary::-webkit-details-marker {
    display: none;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 999px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}

.pdf-reader-stage {
    scrollbar-gutter: stable;
}

.pdf-page-shell {
    position: relative;
    line-height: 1;
}

.pdf-annotation-layer,
.pdf-text-layer {
    position: absolute;
    inset: 0;
}

.pdf-annotation-layer {
    overflow: hidden;
    pointer-events: none;
}

.pdf-text-layer {
    overflow: hidden;
    color: transparent;
    line-height: 1;
    transform-origin: 0 0;
    user-select: text;
    opacity: 1;
    pointer-events: none;
}

.pdf-annotation {
    position: absolute;
    border-radius: 0.2rem;
    pointer-events: none;
}

.pdf-annotation-layer.is-drawing {
    pointer-events: auto;
    cursor: crosshair;
}

.pdf-annotation-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.pdf-text-layer > span,
.pdf-text-layer > br {
    position: absolute;
    white-space: pre;
    transform-origin: 0 0;
    cursor: text;
}

.pdf-text-layer ::selection {
    background: rgba(32, 184, 198, 0.38);
}
