.dj-ui {
    --dj-night: #183247;
    --dj-ink: #25374a;
    --dj-gold: #a87830;
    --dj-paper: #fffaef;
    color: var(--dj-ink);
    font: 400 15px/1.48 system-ui, sans-serif;
    box-sizing: border-box;
}
.dj-ui [hidden], .dj-ui[hidden] { display: none !important; }
#dj-banner, #dj-dialog {
    color: var(--dj-ink);
    background: linear-gradient(135deg, #fffdf7, #fbf0dc);
    border: 1px solid #bb975b;
    border-radius: 17px;
    box-shadow: inset 0 0 0 4px #fff9eb, inset 0 0 0 5px #d9c398, 0 10px 38px #081a2d38;
    padding: 22px 24px 15px;
    overflow: auto;
    overscroll-behavior: contain;
    color-scheme: light;
}
#dj-banner {
    position: fixed; z-index: 100000; left: max(16px, env(safe-area-inset-left));
    bottom: max(16px, env(safe-area-inset-bottom)); width: min(415px, calc(100% - 32px));
    max-height: 78vh; max-height: 78dvh;
}
#dj-dialog { position: fixed; inset: 0; margin: auto; width: min(455px, calc(100% - 24px)); height: fit-content; max-height: calc(100dvh - 28px); }
#dj-dialog::backdrop { background: rgb(8 25 42 / .58); }
.dj-head { display: flex; align-items: center; gap: 14px; }
.dj-ui h2 { margin: 0; color: var(--dj-night); font: 600 clamp(21px, 3.5vw, 26px)/1.14 Georgia, serif; letter-spacing: -.025em; }
#dj-dialog h2 { padding-right: 21px; }
.dj-stamp {
    display: block; flex: 0 0 49px; height: 38px;
    border: 3px solid #fff9e4; outline: 1px dashed #a0783b; outline-offset: 1px;
    border-radius: 2px; box-shadow: 1px 2px 4px #4e381429; transform: rotate(-5deg);
    background: #174050 url('/wp-content/uploads/2026/11/jeziskov-domcek-a-soby-300x167.png') center / cover;
}
.dj-ui p { margin: 12px 0 14px; color: var(--dj-ink); font: inherit; }
.dj-ui button, .dj-ui select, .dj-ui a { box-sizing: border-box; font: inherit; }
.dj-ui button, .dj-ui select { cursor: pointer; text-transform: none; letter-spacing: normal; }
.dj-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 13px; }
.dj-actions button {
    min-height: 44px; padding: 8px 5px; border: 1px solid var(--dj-night); border-radius: 9px;
    background: var(--dj-night); color: #fffaf0; font-size: 14px; font-weight: 650; box-shadow: none;
}
.dj-actions button:hover { background: #304f65; border-color: #304f65; }
.dj-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 5px 19px; margin: 7px 0 0; }
.dj-links a, .dj-links button {
    display: inline-flex; align-items: center; min-height: 32px; padding: 2px 0; border: 0; border-radius: 0;
    color: #364b59; background: none; font-size: 13px; text-decoration: underline; text-underline-offset: 3px;
}
.dj-ui :is(button, a, select, input):focus-visible { outline: 3px solid #936915; outline-offset: 3px; }
#dj-close {
    position: absolute; right: 9px; top: 8px; width: 38px; height: 38px; border: 0; border-radius: 50%;
    background: transparent; color: var(--dj-night); font: 400 27px/1 system-ui;
}
#dj-close:hover, .dj-links button:hover { color: #714c19; }
.dj-row { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 9px 0; border-top: 1px solid #d9c6a6; }
label.dj-row { cursor: pointer; }
.dj-row strong { display: block; color: var(--dj-night); font-size: 15px; }
.dj-row small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.42; }
.dj-always { flex: none; font-size: 12px; color: #535048; font-style: italic; }
.dj-row input { width: 21px; height: 21px; flex: 0 0 21px; accent-color: var(--dj-night); margin: 0 5px; cursor: pointer; }
.dj-ui .dj-error { margin: 6px 0; color: #872716; font-size: 13px; }
#dj-controls {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 18px;
    padding: 11px max(12px, env(safe-area-inset-left)) max(11px, env(safe-area-inset-bottom));
    background: #152e40; border-top: 1px solid #806d48; color: #fff4d6;
}
#dj-controls button, #dj-translator select {
    max-width: 100%; min-height: 35px; padding: 5px 9px; border: 0; border-radius: 5px;
    font: 500 14px/1.4 system-ui, sans-serif; color: #fff4d6; background: #152e40;
}
#dj-controls button { text-decoration: underline; text-underline-offset: 4px; }
#dj-controls :focus-visible { outline-color: #f6dc91; }
#dj-translator:empty { display: none; }
@media (max-width: 460px) {
    #dj-banner { left: max(8px, env(safe-area-inset-left)); bottom: max(8px, env(safe-area-inset-bottom)); width: calc(100% - 16px); }
    #dj-banner, #dj-dialog { padding: 17px 17px 10px; }
    .dj-head { gap: 12px; }
    .dj-ui p { margin: 9px 0 11px; font-size: 14px; }
}
@media (max-width: 310px) {
    .dj-actions { grid-template-columns: 1fr; }
    .dj-ui .dj-stamp { display: none; }
}
