/*
 * MYKINO.CC — Orange Noir | DLE notification + alert UI v3
 * DLE engine.css remains untouched. No DLE callbacks/handlers are replaced.
 * Styling targets: info.tpl, DLEPush success/warning/error, jQuery UI DLEalert/DLEconfirm/DLEprompt.
 */
:root{
  --mk-notice-bg:#171920;
  --mk-notice-bg-deep:#101217;
  --mk-notice-border:rgba(255,255,255,.12);
  --mk-notice-text:#f6f6f8;
  --mk-notice-muted:#a7adb9;
  --mk-notice-orange:#ff783e;
  --mk-notice-success:#45d5a5;
  --mk-notice-warning:#ffc16c;
  --mk-notice-error:#ff7284;
}

/* DLE page-level {info}: works on registration, recovery, messages and profile. */
body.mk-dle .mk-dle-info:not(:empty){display:block;max-width:100%; margin-top: 90px;}
body.mk-dle .mk-info-message{
  --mk-notice-tone:var(--mk-notice-orange);
  --mk-notice-glow:rgba(255,120,62,.11);
  position:relative;display:flex;align-items:flex-start;gap:14px;
  margin:18px auto 23px;padding:17px 18px;
  width:100%;max-width:100%;min-width:0;
  background:linear-gradient(118deg,var(--mk-notice-glow),transparent 63%),var(--mk-notice-bg);
  border:1px solid var(--mk-notice-border);
  border-left:3px solid var(--mk-notice-tone);
  border-radius:13px;color:var(--mk-notice-text);
  box-shadow:0 12px 30px rgba(0,0,0,.19);
  font-family:"Noto Sans Georgian",system-ui,sans-serif;
}
body.mk-dle .mk-info-message[data-mk-notice=success]{--mk-notice-tone:var(--mk-notice-success);--mk-notice-glow:rgba(69,213,165,.10)}
body.mk-dle .mk-info-message[data-mk-notice=warning]{--mk-notice-tone:var(--mk-notice-warning);--mk-notice-glow:rgba(255,193,108,.10)}
body.mk-dle .mk-info-message[data-mk-notice=error]{--mk-notice-tone:var(--mk-notice-error);--mk-notice-glow:rgba(255,114,132,.09)}
body.mk-dle .mk-info-message .mk-info-icon{
  flex:none;display:grid;place-items:center;width:36px;height:36px;
  border:1px solid color-mix(in srgb,var(--mk-notice-tone) 38%,transparent);
  border-radius:10px;background:color-mix(in srgb,var(--mk-notice-tone) 12%,transparent);
  color:var(--mk-notice-tone);font:800 20px/1 system-ui,sans-serif;
}
body.mk-dle .mk-info-body{min-width:0;flex:1}
body.mk-dle .mk-info-heading{display:flex;align-items:start;justify-content:space-between;gap:14px;min-height:25px}
body.mk-dle .mk-info-title{
  display:block;flex:1;font-weight:850;font-size:14px;line-height:1.5;
  color:var(--mk-notice-text);margin:0;padding:0;border:0;
}
body.mk-dle .mk-info-text{
  font-size:12px;line-height:1.75;color:var(--mk-notice-muted);
  margin-top:5px;overflow-wrap:anywhere;
}
body.mk-dle .mk-info-text :is(p,ul,ol){margin:5px 0}
body.mk-dle .mk-info-text a{color:#ffad84;text-decoration:underline;text-underline-offset:2px}
body.mk-dle .mk-info-close{
  display:grid;place-items:center;flex:none;width:28px;height:28px;
  padding:0;margin:-4px -4px 0 0;border:1px solid transparent;
  border-radius:8px;background:transparent;color:#9298a5;
  font-size:20px;line-height:1;cursor:pointer;
}
body.mk-dle .mk-info-close:hover{color:#fff;background:#ffffff12;border-color:#ffffff18}
body.mk-dle .mk-info-close:focus-visible{outline:2px solid var(--mk-notice-orange);outline-offset:2px}

/* MYKINO.CC — DLEPush V3: complete native layout, independent of engine.css.
   Only presentation: native dismissal, message content and timers are untouched. */
body.mk-dle .DLEPush {
  position: fixed !important;
  top: calc(var(--header, 76px) + 14px + env(safe-area-inset-top, 0px)) !important;
  right: max(18px, env(safe-area-inset-right, 0px)) !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 100100 !important;
  box-sizing: border-box;
  width: min(390px, calc(100vw - 36px));
  max-width: calc(100vw - 36px);
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none;
}
body.mk-dle .DLEPush-notification.wrapper {
  --mk-push-tone: var(--mk-notice-orange);
  --mk-push-glow: rgba(255,120,62,.10);
  position: relative;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 40px minmax(0,1fr) 30px;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  width: 100%; min-width: 0; max-width: 100%;
  min-height: 76px;
  margin: 0 0 10px;
  padding: 14px 12px 14px 14px;
  background: linear-gradient(110deg,var(--mk-push-glow),transparent 66%),#171920 !important;
  border: 1px solid #ffffff20;
  border-left: 3px solid var(--mk-push-tone);
  border-radius: 13px;
  box-shadow: 0 12px 36px #0009, inset 0 1px #ffffff06;
  color: #f6f6f8 !important;
  font-family: var(--mk-georgian-font, "BPG WEB 001", "Noto Sans Georgian", system-ui, sans-serif);
  line-height: 1.55;
  pointer-events: auto;
  animation: mk-push-enter .24s ease-out both;
}
body.mk-dle .DLEPush-notification.wrapper.push-success { --mk-push-tone:#45d5a5; --mk-push-glow:#45d5a512; }
body.mk-dle .DLEPush-notification.wrapper.push-warning { --mk-push-tone:#ffc16c; --mk-push-glow:#ffc16c12; }
body.mk-dle .DLEPush-notification.wrapper.push-error { --mk-push-tone:#ff7284; --mk-push-glow:#ff728412; }
body.mk-dle .DLEPush-notification .DLEPush-icon {
  grid-column: 1; grid-row: 1 / span 2;
  align-self: center; justify-self: center;
  display: flex !important; align-items: center; justify-content: center;
  box-sizing: border-box;
  width: 40px; height: 40px; min-width: 40px;
  margin: 0; padding: 0;
  border: 1px solid var(--mk-push-tone);
  border-color: color-mix(in srgb,var(--mk-push-tone) 35%,transparent);
  border-radius: 11px;
  background: var(--mk-push-glow) !important;
  color: var(--mk-push-tone) !important;
  font-size: 21px; line-height: 1;
}
body.mk-dle .DLEPush-notification .DLEPush-icon svg {
  display: block; flex: none;
  width: 21px !important; height: 21px !important;
  max-width: 21px; max-height: 21px;
  margin: 0; padding: 0;
  scale: 1;
}
body.mk-dle .DLEPush-notification .DLEPush-header {
  grid-column: 2; grid-row: 1;
  align-self: end; min-width: 0;
  margin: 0 0 4px; padding: 0;
  color: #f6f6f8; font-size: 13px; font-weight: 700;
  line-height: 1.5; overflow-wrap: anywhere;
}
body.mk-dle .DLEPush-notification .DLEPush-header:empty { display: none; }
body.mk-dle .DLEPush-notification .DLEPush-message {
  grid-column: 2; grid-row: 2;
  align-self: start; min-width: 0;
  margin: 0; padding: 0;
  color: #e1e2e8; font-size: 12px; line-height: 1.7;
  overflow-wrap: anywhere;
}
body.mk-dle .DLEPush-notification:not(:has(.DLEPush-header:not(:empty))) .DLEPush-message {
  grid-row: 1 / span 2; align-self: center;
}
body.mk-dle .DLEPush-notification .DLEPush-header:empty + .DLEPush-message {
  grid-row: 1 / span 2; align-self: center;
}
body.mk-dle .DLEPush-notification .DLEPush-message :is(p,ul,ol) { margin: 0; }
body.mk-dle .DLEPush-notification .DLEPush-message a { color: #ffb18b; text-decoration: underline; }
body.mk-dle .DLEPush-notification .DLEPush-close {
  grid-column: 3; grid-row: 1 / span 2;
  position: relative; inset: auto;
  align-self: center; justify-self: end;
  display: grid; place-items: center;
  box-sizing: border-box;
  width: 30px; height: 30px; min-width: 30px;
  padding: 0; margin: 0;
  color: #a9adb8; opacity: 1;
  background: #ffffff08; border: 1px solid #ffffff13;
  border-radius: 8px;
  font: 400 19px/1 system-ui,sans-serif;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
body.mk-dle .DLEPush-notification .DLEPush-close:hover {
  background: #ff783e18; color: #ff9565; border-color: #ff783e50;
}
body.mk-dle .DLEPush-notification .DLEPush-close:focus-visible { outline: 2px solid #ff9565; outline-offset: 2px; }
body.mk-dle .DLEPush-notification .DLEPush-close svg { display: block; width: 15px; height: 15px; }
@keyframes mk-push-enter { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
@media(max-width:600px) {
  body.mk-dle .DLEPush {
    right: max(12px, env(safe-area-inset-right,0px)) !important;
    width: min(390px,calc(100vw - 24px)); max-width: calc(100vw - 24px);
  }
  body.mk-dle .DLEPush-notification.wrapper {
    grid-template-columns: 36px minmax(0,1fr) 32px;
    column-gap: 9px; padding: 12px 10px; min-height: 68px;
  }
  body.mk-dle .DLEPush-notification .DLEPush-icon { width:36px; height:36px; min-width:36px; border-radius:9px; }
  body.mk-dle .DLEPush-notification .DLEPush-icon svg { width:19px !important; height:19px !important; max-width:19px; max-height:19px; }
  body.mk-dle .DLEPush-notification .DLEPush-close { width:32px; height:32px; min-width:32px; }
}

/* Native DLE jQuery-UI alert / confirm / prompt dialogs. Only dialogs detected as DLE notice dialogs are decorated. */
body.mk-dle .ui-widget-overlay{background:#050609!important;opacity:.78!important;backdrop-filter:blur(4px)}
body.mk-dle .ui-dialog.mk-dle-dialog{
  max-width:min(94vw,540px)!important;
  width:min(94vw,500px)!important;
  border:1px solid #ffffff24!important;border-radius:15px!important;
  padding:0!important;background:#171920!important;color:#f6f6f8!important;
  box-shadow:0 28px 85px #000b!important;
  overflow:hidden!important;
}
body.mk-dle .ui-dialog.mk-dle-dialog .ui-dialog-titlebar{
  cursor:default!important;position:relative;
  min-height:55px;padding:15px 50px 14px 20px!important;
  background:linear-gradient(120deg,#242027,#171920)!important;
  border:0!important;border-bottom:1px solid #ffffff17!important;
  color:#fff!important;
}
body.mk-dle .ui-dialog.mk-dle-dialog .ui-dialog-title{
  float:none;display:block;font-size:14px!important;font-weight:850!important;
  line-height:1.6;color:#fff!important;text-shadow:none!important;
}
body.mk-dle .ui-dialog.mk-dle-dialog .ui-dialog-titlebar-close{
  position:absolute;right:12px;top:12px;margin:0!important;width:31px;height:31px!important;
  padding:0!important;background:#ffffff10!important;border:1px solid #ffffff1b!important;
  border-radius:8px!important;color:#fff!important;
}
body.mk-dle .ui-dialog.mk-dle-dialog .ui-dialog-titlebar-close:hover{background:#ff783e24!important;border-color:#ff783e66!important}
body.mk-dle .ui-dialog.mk-dle-dialog .ui-dialog-content{
  box-sizing:border-box;padding:20px 22px!important;border:0!important;
  color:#d0d3dc!important;background:#171920!important;
  line-height:1.8;font-size:12px;max-height:min(72vh,540px);
}
body.mk-dle .ui-dialog.mk-dle-dialog .ui-dialog-content :is(a,em){color:#ffb18c}
body.mk-dle .ui-dialog.mk-dle-dialog .ui-dialog-buttonpane{
  display:block;background:#171920!important;border:0!important;
  border-top:1px solid #ffffff17!important;padding:12px 17px!important;
}
body.mk-dle .ui-dialog.mk-dle-dialog .ui-dialog-buttonset{float:none;display:flex;justify-content:flex-end;gap:7px;flex-wrap:wrap}
body.mk-dle .ui-dialog.mk-dle-dialog .ui-dialog-buttonset .ui-button{
  min-width:82px;min-height:38px;margin:0!important;
  padding:9px 15px!important;border-radius:9px!important;
  background:#252730!important;border:1px solid #ffffff22!important;
  color:#eeeef3!important;text-shadow:none!important;
  font-family:inherit;font-size:12px;font-weight:800;
}
body.mk-dle .ui-dialog.mk-dle-dialog .ui-dialog-buttonset .ui-button:hover{border-color:#ff783e80!important;color:#ffb18c!important}
body.mk-dle .ui-dialog.mk-dle-dialog .ui-dialog-buttonset .ui-button:last-child:not(.ui-button-delete){background:#ff783e!important;border-color:#ff783e!important;color:#1c100b!important}
body.mk-dle .ui-dialog.mk-dle-dialog .ui-dialog-buttonset .ui-button:last-child:not(.ui-button-delete):hover{background:#ff9666!important}
body.mk-dle .ui-dialog.mk-dle-dialog .ui-dialog-buttonset .ui-button.ui-button-delete{background:#a63745!important;border-color:#cf5363!important;color:#fff!important}
body.mk-dle .ui-dialog.mk-dle-dialog :is(input[type=text],input[type=password],textarea){max-width:100%;background:#20232d!important;border:1px solid #ffffff26!important;color:#fff!important;border-radius:9px!important}
body.mk-dle .ui-dialog.mk-dle-dialog :is(input,textarea):focus{outline:2px solid #ff783e88!important}

/* Optional manual notices for custom UI modules. DLEPush remains the preferred native transport. */
body.mk-dle .mk-toast-stack{
  position:fixed;z-index:99999;right:18px;top:calc(18px + env(safe-area-inset-top));
  width:min(390px,calc(100vw - 28px));display:grid;gap:10px;
  pointer-events:none;
}
body.mk-dle .mk-toast-card{
  --mk-toast-tone:var(--mk-notice-orange);--mk-toast-glow:rgba(255,120,62,.10);
  display:flex;gap:12px;align-items:flex-start;pointer-events:auto;
  padding:14px 14px;border:1px solid #ffffff20;border-left:3px solid var(--mk-toast-tone);
  border-radius:12px;background:linear-gradient(120deg,var(--mk-toast-glow),transparent 70%),#181a22;
  color:#fff;box-shadow:0 12px 44px #000a;
  animation:mk-notice-arrive .2s ease-out;
}
body.mk-dle .mk-toast-card[data-kind=success]{--mk-toast-tone:var(--mk-notice-success);--mk-toast-glow:rgba(69,213,165,.09)}
body.mk-dle .mk-toast-card[data-kind=warning]{--mk-toast-tone:var(--mk-notice-warning);--mk-toast-glow:rgba(255,193,108,.10)}
body.mk-dle .mk-toast-card[data-kind=error]{--mk-toast-tone:var(--mk-notice-error);--mk-toast-glow:rgba(255,114,132,.09)}
body.mk-dle .mk-toast-card .mk-toast-symbol{color:var(--mk-toast-tone);font-size:19px;font-weight:800;line-height:1.3}
body.mk-dle .mk-toast-card .mk-toast-copy{flex:1;min-width:0}
body.mk-dle .mk-toast-card .mk-toast-copy strong{display:block;font-size:12px;font-weight:850}
body.mk-dle .mk-toast-card .mk-toast-copy p{margin:5px 0 0;color:#acb1bd;font-size:11px;line-height:1.65;overflow-wrap:anywhere}
body.mk-dle .mk-toast-card .mk-toast-dismiss{color:#a6aab2;border:0;background:transparent;border-radius:6px;font-size:19px;line-height:1;cursor:pointer}
body.mk-dle .mk-toast-card .mk-toast-dismiss:hover{color:#fff;background:#ffffff12}
@keyframes mk-notice-arrive{from{opacity:0;transform:translateY(-7px)}to{opacity:1;transform:none}}
@media(max-width:600px){
 body.mk-dle .mk-toast-stack{left:14px;right:14px;top:calc(11px + env(safe-area-inset-top));width:auto}
 body.mk-dle .mk-info-message{padding:14px 12px;gap:11px}
 body.mk-dle .mk-info-message .mk-info-icon{width:32px;height:32px}
 body.mk-dle .ui-dialog.mk-dle-dialog{left:3vw!important;max-width:94vw!important;width:94vw!important}
 body.mk-dle .ui-dialog.mk-dle-dialog .ui-dialog-content{padding:17px!important}
}
@media(prefers-reduced-motion:reduce){
 body.mk-dle .mk-toast-card,body.mk-dle .DLEPush-notification.wrapper{animation:none!important}
}
