.stories-entry{margin:8px 16px 16px;padding:14px 18px!important;border-radius:18px!important;border:1px solid #d8e4d5!important;background:linear-gradient(115deg,#edf4e5,#fcf4e3)!important;color:#25553f;font-weight:750;text-align:left}
.stories-entry::after{content:'24 ч';float:right;border-radius:12px;background:#fff9;padding:1px 9px;font-size:12px}
dialog.story-modal{width:min(720px,calc(100vw - 24px));max-height:92dvh;padding:0;border:1px solid #e0e7dd;border-radius:28px;background:#f8faf5;box-shadow:0 30px 100px #102d3540}
.story-modal .modal-head{position:sticky;top:0;z-index:2;padding:20px 24px;background:#f8faf5f5;backdrop-filter:blur(18px);border-bottom:1px solid #e5ebe1}
.story-modal #modal-body{padding:20px 24px 24px}
.story-modal button{border-radius:14px;transition:background .15s,transform .15s}
.story-modal button:hover{transform:translateY(-1px)}
.story-modal button:focus-visible{outline:3px solid #d8a342;outline-offset:3px}
.story-hero{position:relative;isolation:isolate;overflow:hidden;border-radius:24px;padding:26px;background:linear-gradient(120deg,#1d483a,#427b59);color:white}
.story-hero::after{content:'✦';position:absolute;right:14px;top:-18px;font-size:160px;line-height:1;color:#f8ca7140;z-index:-1;transform:rotate(15deg)}
.story-hero h3{font-size:28px;letter-spacing:-.6px;margin:10px 0 8px}
.story-hero p{max-width:360px;margin:0;color:#dcebdc;line-height:1.5}
.story-eyebrow{font-size:11px;letter-spacing:2px;color:#f7ce83;font-weight:750}
.story-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0;align-items:center}
.story-toolbar input:not([type=range]){flex:1;min-width:140px}
.story-toolbar input[type=range]{accent-color:#326a4e;min-width:100px;flex:1}
.story-toolbar select{min-width:120px;flex:1}
.story-notice{font-size:.82rem;color:#63756b;line-height:1.5;margin:14px 0}
.story-editor{display:block;width:100%;height:min(38vh,340px);object-fit:contain;background:#182b22;border-radius:22px;touch-action:none;margin-top:14px}
.story-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin-top:20px}
.story-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:22px 14px!important;text-align:center;background:white;border:1px solid #e1e9de!important;border-radius:22px!important}
.story-card strong{overflow-wrap:anywhere}
.story-card .small{font-size:11px;color:#738477}
.story-ring{display:grid;place-items:center;width:72px;height:72px;border-radius:50%;background:linear-gradient(#eef4e9,#eef4e9) padding-box,linear-gradient(140deg,#f5ba53,#398963) border-box;border:3px solid transparent;box-shadow:inset 0 0 0 4px white;color:#2b5d45;font-size:25px;font-weight:700}
.story-image{display:block;max-width:100%;max-height:64vh;margin:16px auto;border-radius:22px;box-shadow:0 8px 30px #183c241a}
.story-empty{grid-column:1/-1;text-align:center;padding:30px 24px;color:#63756b;background:white;border:1px dashed #cddbc7;border-radius:22px;line-height:1.6}
.story-empty::before{content:'✦';display:block;font-size:36px;color:#d8a342;margin-bottom:12px}
@media(max-width:520px){.story-modal #modal-body{padding:16px}.story-modal .modal-head{padding:16px}.story-hero{padding:20px}.story-hero h3{font-size:25px}.story-list{grid-template-columns:repeat(2,minmax(0,1fr))}.story-toolbar button{padding:10px}.story-editor{height:32vh}}
@media(prefers-reduced-motion:reduce){.story-modal button{transition:none}.story-modal button:hover{transform:none}}
