/* Stayfit Core – ops.css (agentas M): kvietimai, pristabdymas, pranešimai, patikra, paskyros trynimas, nuotraukos pokalbyje.
   Tokenai iš app.css („VIENA DIZAINO SISTEMA“): --m-bg --m-card --m-line --m-ink --m-ink2 --m-brand --m-brand-d --m-brand-soft --m-warn --r-btn --r-input --r-card --sh-1 --m-font */

/* ---------- Bendra kortelė ---------- */
.dop-card { background: var(--m-card, #fffdf8); border-radius: var(--r-card, 22px); box-shadow: var(--sh-1, 0 1px 2px rgba(23,32,28,.06)); padding: 20px; margin: 0 0 14px; font-family: var(--m-font, inherit); color: var(--m-ink, #17201c); }
.dop-card--compact { padding: 16px; }
.dop-card h2 { margin: 0 0 6px; font-size: 17px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.dop-card__p, .dop-card p { margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: var(--m-ink2, #5b665f); }
.dop-card p:last-child { margin-bottom: 0; }
.dop-ok, .dop-err { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border-radius: 14px; font-size: 14px; font-weight: 600; }
.dop-ok { background: var(--m-brand-soft, #dcefe6); color: var(--m-brand-d, #0a4d3a); }
.dop-err { background: #fbe3dd; color: #8a3b2c; }

/* ---------- Mygtukai ---------- */
.dop-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border: 0; border-radius: var(--r-btn, 16px); font: 700 15px/1 var(--m-font, inherit); cursor: pointer; text-decoration: none !important; transition: transform .16s cubic-bezier(.23,1,.32,1), background-color .15s; }
.dop-btn:active { transform: scale(.97); }
.dop-btn:disabled { opacity: .55; cursor: default; }
.dop-btn--main { background: var(--m-brand, #0f6b52); color: #fff !important; }
.dop-btn--soft { background: var(--m-brand-soft, #dcefe6); color: var(--m-brand-d, #0a4d3a) !important; }
.dop-btn--danger { background: #fff; color: #a8321f !important; box-shadow: inset 0 0 0 1.5px #f0c9c0; }
.dop-btn--sm { height: 38px; padding: 0 14px; font-size: 13.5px; }
.dps__btn--danger { background: #c8503a; color: #fff; }
.dps__btn--danger:disabled { background: #e3a89d; }

/* ---------- Laukai ---------- */
.dop-f { display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px; font-size: 13.5px; font-weight: 700; color: var(--m-ink, #17201c); }
.dop-f em { font-style: normal; font-weight: 500; color: var(--m-ink2, #5b665f); }
.dop-f input, .dop-f textarea { width: 100%; border-radius: var(--r-input, 14px); border: 1.5px solid var(--m-line, #e6e1d5); background: #fff; padding: 12px 14px; font: 500 16px/1.4 var(--m-font, inherit); color: var(--m-ink, #17201c); box-sizing: border-box; }
.dop-f input { height: 50px; }
.dop-f input:focus, .dop-f textarea:focus { outline: 0; border-color: var(--m-brand, #0f6b52); box-shadow: 0 0 0 3px rgba(15,107,82,.18); }

/* ---------- Jungiklis ---------- */
.dop-switch { position: relative; display: inline-block; width: 48px; height: 28px; flex: none; }
.dop-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.dop-switch i { position: absolute; inset: 0; border-radius: 999px; background: #d9d3c6; transition: background-color .18s; }
.dop-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(23,32,28,.25); transition: transform .18s cubic-bezier(.23,1,.32,1); }
.dop-switch input:checked + i { background: #b4761b; }
.dop-switch input:checked + i::after { transform: translateX(20px); }
.dop-switch input:focus-visible + i { box-shadow: 0 0 0 3px rgba(15,107,82,.3); }

/* ---------- Pristabdymas ---------- */
.dop-pause__head { display: flex; align-items: flex-start; gap: 14px; }
.dop-pause__toggle { cursor: pointer; margin: 0; }
.dop-pause__t { display: flex; flex-direction: column; gap: 3px; }
.dop-pause__t b { font-size: 16px; line-height: 1.25; }
.dop-pause__t small { font-size: 13.5px; line-height: 1.45; color: var(--m-ink2, #5b665f); }
.dop-pause__more { display: none; margin: 14px 0 0 62px; }
.dop-pause--open .dop-pause__more, .dop-pause:has([data-dop-pause-toggle]:checked) .dop-pause__more { display: block; }
.dop-pause__more .dop-f input { max-width: 220px; }
.dop-pause--on { background: #fff8e8; box-shadow: inset 0 0 0 1.5px #f0d79a; }
.dop-pause__ico { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--m-warn, #fbe9c3); color: #8a5a07; }
.dop-pause--on h2 { color: #4b3609; }
.dop-pause--on p { color: #5b4310; }
.dop-pause__act { margin: 14px 0 0 58px; }
@media (max-width: 600px) { .dop-pause__more, .dop-pause__act { margin-left: 0; } }

/* Profilis / paslauga – juosta „nepriima“ */
.dop-paused-bar { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0; padding: 12px 14px; border-radius: 14px; background: var(--m-warn, #fbe9c3); color: #4b3609; font-size: 14px; line-height: 1.45; }
.dop-paused-bar svg { flex: none; margin-top: 2px; }
.domus-vhead .dop-paused-bar { margin: 12px 0 0; }
body.dop-paused .dop-swapped { background: var(--m-brand-soft, #dcefe6) !important; color: var(--m-brand-d, #0a4d3a) !important; box-shadow: none !important; }

/* ---------- Ženklelis „Vienas iš pirmųjų“ ---------- */
.dtb__i--pirmieji { background: var(--m-warn, #fbe9c3) !important; color: #4b3609 !important; }
.dop-first { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px 16px; border-radius: 18px; background: var(--m-warn, #fbe9c3); color: #4b3609; }
.dop-first__ico { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 12px; background: rgba(255,255,255,.6); }
.dop-first__t { display: flex; flex-direction: column; gap: 2px; }
.dop-first__t b { font-size: 15px; }
.dop-first__t small { font-size: 13px; line-height: 1.4; opacity: .85; }

/* /tiekejams/ */
.dtv-slots { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 4px 10px; border-radius: 999px; background: var(--m-warn, #fbe9c3); color: #4b3609; font-size: 12.5px; font-weight: 700; vertical-align: middle; }
.dop-invite { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 18px; padding: 14px 16px; border-radius: 18px; background: var(--m-warn, #fbe9c3); color: #4b3609; }
.dop-invite svg { flex: none; margin-top: 2px; }
.dop-invite b { display: block; font-size: 16px; margin-bottom: 2px; }
.dop-invite span { font-size: 14px; line-height: 1.45; }
.dop-invite--old { background: var(--m-brand-soft, #dcefe6); color: var(--m-brand-d, #0a4d3a); }

/* ---------- Pranešti / blokuoti ---------- */
.dop-radios { display: flex; flex-direction: column; gap: 6px; }
.dop-radio { display: flex; align-items: center; gap: 10px; margin: 0; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--m-line, #e6e1d5); font-size: 15px; font-weight: 600; cursor: pointer; }
.dop-radio input { width: 18px; height: 18px; accent-color: var(--m-brand, #0f6b52); margin: 0; flex: none; }
.dop-radio:has(input:checked) { border-color: var(--m-brand, #0f6b52); background: var(--m-brand-soft, #dcefe6); }
.dop-report__done { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 10px 0 0; color: var(--m-brand-d, #0a4d3a); }
.dop-report__done b { font-size: 17px; }
.dop-report__done span { font-size: 14px; color: var(--m-ink2, #5b665f); }
.dop-report__done .dps__btn { width: 100%; margin-top: 10px; }
.dop-report.is-done [data-dop-report-form] > :not(.dop-report__done):not(.dps__grab) { display: none; }
.dps[data-dop-report] .dps__chk { align-items: flex-start; line-height: 1.35; }
.dps[data-dop-report] .dps__chk input { margin-top: 2px; }
.dps__err:not([hidden]) { display: block; }
.domus-vhead__link--report { color: var(--m-ink2, #5b665f) !important; }
.dm-head__more { margin-left: auto; width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: transparent; color: var(--m-ink2, #5b665f); display: grid; place-items: center; cursor: pointer; font-size: 22px; line-height: 1; letter-spacing: 1px; }
.dm-head__more:hover { background: var(--m-brand-soft, #dcefe6); }
.dop-menu .dps__panel { gap: 6px; }
.dop-menu__i { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 0 12px; border: 0; border-radius: 14px; background: transparent; font: 600 15.5px/1.2 var(--m-font, inherit); color: var(--m-ink, #17201c); text-align: left; cursor: pointer; }
.dop-menu__i:hover { background: var(--m-bg, #f4f1ea); }
.dop-menu__i--danger { color: #a8321f; }
.dop-menu .dps__btn--soft { margin-top: 6px; }
.dm-blocked { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0 14px; padding: 12px 14px; border-radius: 14px; background: #fbe3dd; color: #8a3b2c; font-size: 14px; line-height: 1.4; }
.dm-blocked .dop-btn { margin-left: auto; }
.dop-blocked__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dop-blocked__list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--m-line, #e6e1d5); }
.dop-blocked__list li:first-child { border-top: 0; padding-top: 0; }
.dop-blocked__who { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.dop-blocked__list form { margin: 0; }

/* ---------- Patikros dokumentas ---------- */
.dop-patikra__head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.dop-patikra__ico { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--m-brand-soft, #dcefe6); color: var(--m-brand-d, #0a4d3a); }
.dop-patikra__ico--ok { background: var(--m-brand, #0f6b52); color: #fff; }
.dop-status { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 700; }
.dop-status--wait { background: var(--m-warn, #fbe9c3); color: #4b3609; }
.dop-status--ok { background: var(--m-brand-soft, #dcefe6); color: var(--m-brand-d, #0a4d3a); }
.dop-status--bad { background: #fbe3dd; color: #8a3b2c; }
.dop-patikra__f { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.dop-file { display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px; border-radius: 16px; border: 1.5px dashed #c9c2b2; background: #fff; cursor: pointer; transition: border-color .15s, background-color .15s; }
.dop-file:hover, .dop-file.is-set { border-color: var(--m-brand, #0f6b52); border-style: solid; }
.dop-file.is-set { background: var(--m-brand-soft, #dcefe6); }
.dop-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dop-file__ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--m-bg, #f4f1ea); color: var(--m-brand-d, #0a4d3a); }
.dop-file__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dop-file__t b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dop-file__t small { font-size: 13px; color: var(--m-ink2, #5b665f); }
.dop-patikra__f .dop-btn { align-self: flex-start; }
body a.dop-alert { background: #fbe3dd; color: #6b2a1c !important; }

/* ---------- Paskyros trynimas ---------- */
.dop-delete { border: 1.5px solid #f0c9c0; box-shadow: none; }
.dop-delete h2 { color: #a8321f; }
.dop-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 9999; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: var(--m-ink, #17201c); color: #fff; font: 600 14.5px/1.2 var(--m-font, inherit); box-shadow: 0 10px 30px rgba(23,32,28,.3); animation: dop-toast .3s cubic-bezier(.23,1,.32,1); }
@keyframes dop-toast { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Nuotraukos pokalbyje ---------- */
.dm-attach { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--m-brand-soft, #dcefe6); color: var(--m-brand-d, #0a4d3a); cursor: pointer; margin: 0; transition: transform .16s cubic-bezier(.23,1,.32,1); }
.dm-attach:active { transform: scale(.94); }
.dm-attach input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dm-attach.is-busy { opacity: .5; pointer-events: none; }
.dm-b--img { padding: 4px; }
.dm-b--img p { display: none; }
.dm-b--img time { margin: 4px 8px 4px 0; }
.dm-img { display: block; border-radius: 16px; overflow: hidden; line-height: 0; }
.dm-img img { display: block; max-width: min(260px, 70vw); max-height: 320px; width: auto; height: auto; object-fit: cover; }
.dm-b--in .dm-b--img, .dm-b--in.dm-b--img time { color: var(--m-ink2, #5b665f); }
.dm-file { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 2px; font-size: 14px; font-weight: 600; color: inherit !important; text-decoration: underline !important; }

/* ---------- wp-admin ---------- */
.dop-admin__lead { font-size: 14px; max-width: 760px; }
.dop-admin__links { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.dop-admin__links a { display: inline-block; padding: 10px 16px; background: #fff; border: 1px solid #c3c4c7; border-radius: 6px; text-decoration: none; font-weight: 600; }
.dop-admin__form textarea { width: 100%; max-width: 760px; font-family: Menlo, Consolas, monospace; font-size: 13px; }
.dop-admin__sum { font-size: 14px; }
.dop-admin__table { max-width: 1100px; }
.dop-admin__table td, .dop-admin__table th { vertical-align: middle; }
.dop-admin__url { font-size: 11px; word-break: break-all; }
.dop-admin__share { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.dop-admin__share textarea { width: 100%; font-size: 13px; }
.dop-admin__share .button { align-self: flex-start; }
.dop-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.dop-pill--ok { background: #dcefe6; color: #0a4d3a; }
.dop-pill--warn { background: #fbe9c3; color: #4b3609; }
.dop-pill--bad { background: #fbe3dd; color: #8a3b2c; }
.dop-pill--muted { background: #eceae4; color: #5b665f; }
.dop-row--bad td { background: #fff6f4 !important; }
.dop-fwd__or { text-align: center; color: #646970; margin: 6px 0; font-style: italic; }
.dop-fwd__log { margin: 0; padding-left: 18px; font-size: 12px; }
.dop-fwd__log li { margin-bottom: 4px; }
