/* MiKO Writer Support v1 */
.miko-writer-support,
.miko-writer-support *{box-sizing:border-box}
.miko-writer-support{
  position:relative;
  margin:30px 0 26px;
  padding:20px;
  border:1.5px solid #ff6484;
  border-radius:18px;
  background:
    radial-gradient(circle at 92% 14%,rgba(255,96,132,.09),transparent 24%),
    linear-gradient(135deg,#fff 0%,#fff9fb 50%,#fff5f8 100%);
  box-shadow:0 12px 32px rgba(255,45,89,.08);
  color:#17345f;
  overflow:visible;
}
.mws-head{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.mws-head-icon{
  width:52px;height:52px;flex:0 0 52px;display:grid;place-items:center;
  border-radius:50%;background:linear-gradient(145deg,#ff2f64,#ff0046);color:#fff;
  font-size:24px;box-shadow:0 8px 20px rgba(255,0,70,.2)
}
.mws-head h2{display:flex;align-items:center;gap:7px;margin:0!important;color:#183a69!important;font-size:20px!important;line-height:1.2!important;font-weight:950!important}
.mws-head p{margin:4px 0 0!important;color:#6b7e97!important;font-size:11px!important;line-height:1.55!important}
.mws-info{
  width:20px;height:20px;border:1px solid #8aa0ba;border-radius:50%;background:#fff;color:#5e7693;
  font-size:11px;font-weight:900;line-height:18px;padding:0;cursor:help
}
.mws-grid{display:grid;grid-template-columns:235px minmax(0,1fr) 170px;gap:18px;align-items:stretch}
.mws-author{min-width:0;padding:5px 6px}
.mws-author-main{display:flex;align-items:center;gap:11px}
.mws-author-avatar{
  width:70px!important;height:70px!important;flex:0 0 70px!important;border-radius:50%!important;
  object-fit:cover!important;border:3px solid #fff!important;box-shadow:0 0 0 2px #efb4c2,0 8px 20px rgba(18,54,95,.1)!important
}
.mws-author-main strong{display:flex;align-items:center;gap:5px;color:#17365f;font-size:12px;line-height:1.35;font-weight:950}
.mws-author-main span{display:block;margin-top:3px;color:#7187a0;font-size:10px}
.mws-author blockquote{
  margin:14px 0 0!important;padding:0!important;border:0!important;background:transparent!important;
  color:#4e6682!important;font-size:9px!important;line-height:1.65!important;font-style:normal!important
}
.mws-control{min-width:0}
.mws-presets{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}
.mws-presets button{
  min-width:0;height:42px;border:1px solid #d7e1ec;border-radius:8px;background:#fff;color:#284a70;
  font-size:10px;font-weight:900;box-shadow:0 4px 12px rgba(25,65,104,.04);cursor:pointer;transition:.16s
}
.mws-presets button:hover:not(:disabled){border-color:#ff6b8d;color:#e91950;transform:translateY(-1px)}
.mws-presets button.is-active{
  border-color:#ff0b50;background:linear-gradient(145deg,#ff205a,#f70045);color:#fff;
  box-shadow:0 7px 16px rgba(247,0,69,.2)
}
.mws-presets button:disabled{opacity:.35;cursor:not-allowed}
.mws-custom-field{margin-top:8px}
.mws-custom-field label{display:grid;gap:5px;color:#60758f;font-size:9px;font-weight:800}
.mws-custom-field input{
  width:100%;height:40px;border:1px solid #d9e3ed;border-radius:8px;background:#fff;padding:0 11px;
  color:#173d69;font-size:11px;outline:none
}
.mws-control textarea{
  width:100%!important;min-height:62px!important;margin-top:9px!important;padding:10px 12px!important;
  border:1px solid #d8e2ed!important;border-radius:8px!important;background:#fff!important;color:#254665!important;
  font-size:10px!important;resize:vertical!important;box-shadow:none!important;outline:none!important
}
.mws-control textarea:focus,.mws-custom-field input:focus{border-color:#ff7895!important;box-shadow:0 0 0 3px rgba(255,59,103,.08)!important}
.mws-message-count{text-align:right;margin-top:2px;color:#91a0b1;font-size:8px}
.mws-anonymous{display:flex!important;align-items:center!important;gap:7px!important;margin:1px 0 9px!important;color:#516985!important;font-size:9px!important;font-weight:700!important}
.mws-anonymous input{width:18px;height:18px;accent-color:#ff1654}
.mws-status{min-height:15px;margin:2px 0;color:#d72c50;font-size:9px;font-weight:700}
.mws-status.is-success{color:#0c9b5c}
.mws-submit{
  width:100%;height:43px;display:flex;align-items:center;justify-content:center;gap:7px;
  border:0;border-radius:8px;background:linear-gradient(90deg,#ff174e,#f40043);color:#fff;
  font-size:11px;font-weight:950;box-shadow:0 8px 18px rgba(244,0,67,.2);cursor:pointer
}
.mws-submit:hover:not(:disabled){filter:brightness(.98);transform:translateY(-1px)}
.mws-submit:disabled{opacity:.5;cursor:not-allowed}
.mws-balance{
  display:flex;flex-direction:column;justify-content:center;gap:8px;padding:14px;border:1px solid #ffd2dd;
  border-radius:12px;background:linear-gradient(150deg,#fff,#fff0f4)
}
.mws-balance>div{display:flex;align-items:flex-start;gap:8px}
.mws-balance .coin,.mws-balance .clock{
  width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;border-radius:50%;
  font-size:11px;font-weight:950
}
.mws-balance .coin{background:#ffb033;color:#fff}.mws-balance .clock{background:#edf4fb;color:#5a7592}
.mws-balance p{margin:0!important;color:#60738a!important;font-size:9px!important;line-height:1.45!important}
.mws-balance strong{display:block;margin-top:3px;color:#16385f;font-size:14px;font-weight:950}
.mws-balance hr{width:100%;margin:4px 0;border:0;border-top:1px solid #f2d7df}
.mws-login-box,.mws-self-note{
  min-height:145px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;
  padding:18px;border:1px dashed #ffc0cf;border-radius:12px;background:#fff8fa;color:#586f88;font-size:10px
}
.mws-login-box p{margin:0 0 10px!important}
.mws-login-box a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 16px;border-radius:8px;background:#f90047;color:#fff!important;text-decoration:none!important;font-weight:900}
.mws-footer{
  display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:17px;padding-top:14px;border-top:1px solid #f1dce2
}
.mws-recent{display:flex;align-items:center;gap:10px;min-width:0}
.mws-recent>strong{font-size:10px;color:#294969;white-space:nowrap}
.mws-avatars{display:flex;align-items:center}
.mws-avatars img,.mws-empty-avatar,.mws-more{
  width:36px!important;height:36px!important;display:grid!important;place-items:center!important;margin-left:-6px!important;
  border:2px solid #fff!important;border-radius:50%!important;object-fit:cover!important;background:#eaf1f8;color:#667c96;font-size:9px;font-weight:900
}
.mws-avatars img:first-child,.mws-empty-avatar:first-child{margin-left:0!important}
.mws-empty-avatar{background:#ffe8ee;color:#ff2e61}
.mws-quote{margin:0!important;padding:0!important;border:0!important;background:transparent!important;color:#5e748e!important;font-size:9px!important;line-height:1.45!important;text-align:right!important;font-style:italic!important}
.mws-quote small{font-style:normal;color:#758aa2}

/* Success modal */
.mws-modal[hidden]{display:none!important}
.mws-modal{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:18px}
.mws-modal-backdrop{position:absolute;inset:0;background:rgba(7,24,50,.62);backdrop-filter:blur(4px)}
.mws-modal-card{
  position:relative;z-index:1;width:min(100%,430px);padding:28px 30px 26px;border-radius:20px;background:#fff;
  text-align:center;box-shadow:0 28px 80px rgba(6,29,63,.32);animation:mwsPop .2s ease-out
}
@keyframes mwsPop{from{opacity:0;transform:scale(.96) translateY(8px)}to{opacity:1;transform:none}}
.mws-modal-x{
  position:absolute;right:14px;top:10px;width:34px;height:34px;border:0;background:transparent;color:#5c7590;
  font-size:27px;line-height:34px;cursor:pointer
}
.mws-success-check{
  width:96px;height:96px;display:grid;place-items:center;margin:4px auto 18px;border-radius:50%;
  background:linear-gradient(145deg,#ff2b60,#f60046);color:#fff;font-size:49px;font-weight:900;
  box-shadow:0 0 0 9px #ffe5ec,0 12px 25px rgba(246,0,70,.22)
}
.mws-modal-card h2{margin:0!important;color:#143868!important;font-size:25px!important;font-weight:950!important}
.mws-modal-card>p{margin:12px 0 16px!important;color:#435f7d!important;font-size:13px!important;line-height:1.65!important}
.mws-modal-card>p strong{color:#17385f}
.mws-modal-card blockquote{
  margin:0 0 18px!important;padding:15px 18px!important;border:0!important;border-radius:12px!important;background:#fff1f5!important;
  color:#5f7188!important;font-size:12px!important;line-height:1.55!important;font-style:normal!important
}
.mws-modal-close{
  width:100%;height:48px;border:0;border-radius:10px;background:linear-gradient(90deg,#ff174f,#f40043);color:#fff;
  font-size:13px;font-weight:950;cursor:pointer
}

@media(max-width:980px){
  .mws-grid{grid-template-columns:220px minmax(0,1fr)}
  .mws-balance{grid-column:1/-1;display:grid;grid-template-columns:1fr auto 1fr}
  .mws-balance hr{width:1px;height:100%;border:0;border-left:1px solid #f2d7df}
}
@media(max-width:720px){
  .miko-writer-support{padding:15px;border-radius:14px}
  .mws-grid{grid-template-columns:1fr}
  .mws-author{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:center}
  .mws-author blockquote{margin:0!important}
  .mws-presets{grid-template-columns:repeat(3,minmax(0,1fr))}
  .mws-balance{grid-column:auto}
  .mws-footer{align-items:flex-start;flex-direction:column}
  .mws-quote{text-align:left!important}
}
@media(max-width:480px){
  .mws-head{align-items:flex-start}
  .mws-head-icon{width:44px;height:44px;flex-basis:44px;font-size:20px}
  .mws-head h2{font-size:18px!important}
  .mws-author{grid-template-columns:1fr}
  .mws-author-avatar{width:62px!important;height:62px!important;flex-basis:62px!important}
  .mws-presets{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mws-balance{grid-template-columns:1fr}
  .mws-balance hr{width:100%;height:auto;border-left:0;border-top:1px solid #f2d7df}
  .mws-modal-card{padding:25px 18px 20px}
  .mws-success-check{width:82px;height:82px;font-size:41px}
}