/* محفل تحوت */
.tm-root{--tm-acc:250 185 6;--tm-line:rgb(255 255 255/.12);--tm-surf:rgb(var(--color-surface-rgb,18 18 23));color:#ece6da;line-height:2}
.tm-root h2{font-size:1.25rem;margin:0 0 .6rem;color:#fff}
.tm-root h3{font-size:1.05rem;margin:0 0 .8rem;color:rgb(var(--tm-acc))}
.tm-intro{margin-block-end:1.5rem}
.tm-lead{font-size:1.08rem}
.tm-perks{margin:1rem 0;padding-inline-start:1.2rem}
.tm-perks li{margin-block-end:.5rem}
.tm-perks b{color:rgb(var(--tm-acc))}
.tm-card{background:var(--tm-surf);border:1px solid var(--tm-line);border-radius:16px;padding:1.25rem 1.3rem;margin-block-end:1.1rem}
.tm-form label{display:block;font-size:.92rem;margin:.8rem 0 .3rem;color:#d9d0bf}
.tm-form input,.tm-form select{width:100%;box-sizing:border-box;padding:.7rem .9rem;border-radius:12px;border:1px solid rgb(var(--tm-acc)/.4);background:rgb(var(--color-surface-2-rgb,24 24 28));color:#fff;font:inherit}
.tm-form input:focus,.tm-form select:focus{outline:2px solid rgb(var(--tm-acc)/.7);outline-offset:1px}
.tm-code{font-size:1.6rem!important;letter-spacing:.5em;text-align:center}
.tm-hp{opacity:0;position:absolute!important;top:0!important;right:0!important;left:auto!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;pointer-events:none!important}
.tm-btn{display:inline-block;border:0;border-radius:999px;padding:.6rem 1.4rem;background:rgb(var(--tm-acc));color:#17120a;font:inherit;font-weight:700;cursor:pointer;text-decoration:none;margin-block-start:1rem}
.tm-btn:disabled{opacity:.6;cursor:default}
.tm-btn.tm-ghost{background:none;border:1px solid rgb(var(--tm-acc)/.6);color:rgb(var(--tm-acc))}
.tm-link{background:none;border:0;padding:0;color:rgb(var(--tm-acc));font:inherit;font-size:.9rem;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.tm-row{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center}
.tm-row-s{gap:1.2rem;margin-block-start:.6rem}
.tm-err{color:#ff9b8a;margin:.6rem 0 0;font-size:.92rem;min-height:1em}
.tm-small{font-size:.82rem;opacity:.75;margin:.6rem 0 0}
.tm-muted{opacity:.75;margin:0}
.tm-loading{padding:2rem 0;text-align:center}
.tm-hello{margin-block-end:1.2rem}
.tm-hello p{margin:0;opacity:.85}
.tm-bar{display:block;height:6px;border-radius:99px;background:rgb(255 255 255/.12);overflow:hidden}
.tm-bar i{display:block;height:100%;background:rgb(var(--tm-acc));border-radius:99px}
.tm-ep{display:flex;gap:.9rem;align-items:center;text-decoration:none;color:inherit}
.tm-ep img{width:64px;height:64px;border-radius:10px;object-fit:cover;flex:none}
.tm-ep span{flex:1;min-width:0;display:flex;flex-direction:column;gap:.2rem}
.tm-ep b{color:#fff;font-weight:600;line-height:1.6}
.tm-ep small{opacity:.75}
.tm-sum{margin:0 0 .9rem}
.tm-sum b{color:rgb(var(--tm-acc))}
.tm-jrow{display:grid;grid-template-columns:8.5rem 1fr 5.5rem;gap:.7rem;align-items:center;margin-block-end:.45rem;font-size:.92rem}
.tm-jrow.zero{opacity:.55}
.tm-jc{text-align:end;font-size:.82rem;opacity:.85}
.tm-tabs{display:flex;gap:.4rem;margin-block-end:.8rem}
.tm-tabs button{border:1px solid var(--tm-line);background:none;color:#ddd;border-radius:999px;padding:.3rem 1rem;font:inherit;font-size:.9rem;cursor:pointer}
.tm-tabs button[aria-selected=true]{border-color:rgb(var(--tm-acc));color:rgb(var(--tm-acc))}
.tm-item{display:flex;align-items:center;gap:.6rem;padding:.45rem 0;border-bottom:1px solid var(--tm-line)}
.tm-item:last-child{border-bottom:0}
.tm-item a{flex:1;min-width:0;display:flex;gap:.75rem;align-items:center;color:#fff;text-decoration:none}
.tm-item img,.tm-noimg{width:48px;height:48px;border-radius:8px;object-fit:cover;flex:none;background:rgb(255 255 255/.06)}
.tm-item a span{display:flex;flex-direction:column;line-height:1.6}
.tm-item small{opacity:.7;font-size:.8rem}
.tm-x{border:0;background:none;color:#aaa;font-size:1.4rem;line-height:1;cursor:pointer;padding:.2rem .5rem}
.tm-x:hover{color:#fff}
.tm-srow{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem 1rem;padding:.6rem 0;border-bottom:1px solid var(--tm-line)}
.tm-sname{font-weight:600;color:#fff}
.tm-sname small{font-weight:400;opacity:.65;margin-inline-start:.3rem}
.tm-sctl{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
.tm-sctl select{width:auto;min-width:11rem;padding:.4rem .7rem}
.tm-some{font-size:.88rem;display:inline-flex;align-items:center;gap:.35rem}
.tm-some[hidden]{display:none}
.tm-some input{width:4.5rem!important;padding:.35rem .5rem!important}
/* buttons on episodes & posts */
.tm-acts{display:flex;gap:.4rem;margin-block-start:.35rem;flex-wrap:wrap}
.tm-act{display:inline-flex;align-items:center;gap:.25rem;border:1px solid rgb(255 255 255/.18);background:none;color:#d9d0bf;border-radius:999px;padding:.12rem .7rem;font:inherit;font-size:.75rem;line-height:1.7;cursor:pointer}
.tm-act i{font-style:normal}
.tm-act:hover{border-color:rgb(250 185 6/.6)}
.tm-act.on{border-color:rgb(250 185 6/.75);color:#fab906}
.tm-act-lg{font-size:.85rem;padding:.3rem 1rem}
.tm-postbar{display:flex;justify-content:center;margin-block-start:1rem}
/* modal & toast */
.tm-modal{position:fixed;inset:0;z-index:100001;background:rgba(0,0,0,.7);display:grid;place-items:center;padding:1rem;direction:rtl}
.tm-mcard{max-width:24rem;background:#1a1610;border:1px solid rgb(250 185 6/.45);border-radius:16px;padding:1.3rem;color:#f3ead7;line-height:1.9;font-size:.92rem}
.tm-mt{font-weight:700;color:#fab906;font-size:1rem;margin:0 0 .4rem}
.tm-mcard p{margin:0 0 .4rem}
.tm-toast{position:fixed;left:50%;bottom:1.5rem;transform:translate(-50%,20px);z-index:100002;background:#1a1610;color:#f3ead7;border:1px solid rgb(250 185 6/.5);border-radius:999px;padding:.5rem 1.2rem;font-size:.9rem;opacity:0;pointer-events:none;transition:all .25s;direction:rtl}
.tm-toast.show{opacity:1;transform:translate(-50%,0)}
body.tp-on .tm-toast{bottom:9rem}
@media (max-width:560px){.tm-jrow{grid-template-columns:6.5rem 1fr 4.5rem}.tm-card{padding:1rem}}

/* تالار من — مرحلهٔ دوم */
.tm-root h3 small{font-size:.8rem;opacity:.7;font-weight:400}
.tm-h4{font-size:.95rem;margin:1rem 0 .4rem;color:#e9dfc8}
.tm-h4 small{opacity:.65;font-weight:400}
.tm-chips{display:flex;flex-wrap:wrap;gap:.45rem;margin:.6rem 0 .4rem}
.tm-chip{border:1px solid rgb(255 255 255/.18);background:none;color:#d9d0bf;border-radius:999px;padding:.25rem .9rem;font:inherit;font-size:.85rem;cursor:pointer}
.tm-chip.on{border-color:rgb(250 185 6/.8);color:#17120a;background:#fab906}
.tm-bsel{width:auto!important;min-width:8.5rem;padding:.3rem .5rem!important;font-size:.8rem!important;border-radius:10px;border:1px solid rgb(250 185 6/.4);background:rgb(24 24 28);color:#fff;font:inherit}
.tm-note{padding:.7rem 0;border-bottom:1px solid var(--tm-line)}
.tm-note:last-child{border-bottom:0}
.tm-nh{display:flex;justify-content:space-between;gap:.6rem;align-items:baseline;flex-wrap:wrap}
.tm-nh a{color:#fff;text-decoration:none;font-weight:600}
.tm-nh small{opacity:.6;font-size:.78rem}
.tm-nt{white-space:pre-wrap;margin:.35rem 0 0;font-size:.92rem;opacity:.9;max-height:12em;overflow:auto}
.tm-nq{width:100%;box-sizing:border-box;padding:.5rem .8rem;border-radius:12px;border:1px solid rgb(250 185 6/.35);background:rgb(24 24 28);color:#fff;font:inherit;margin-bottom:.4rem}
.tm-ncard{max-width:34rem;width:100%}
.tm-nta{width:100%;box-sizing:border-box;padding:.7rem .9rem;border-radius:12px;border:1px solid rgb(250 185 6/.45);background:#0f0d09;color:#fff;font:inherit;line-height:1.9;resize:vertical;margin-top:.3rem}
.tm-ncard .tm-row{gap:.8rem}
.tm-libbox{display:flex;justify-content:center;flex-wrap:wrap;align-items:center;gap:.45rem;margin:.6rem 0 1rem;direction:rtl}
.tm-libl{font-size:.88rem;color:#d9d0bf}
.tm-postbar{gap:.5rem;flex-wrap:wrap}

.tm-modal{--tm-acc:250 185 6}
.tm-modal .tm-btn.tm-nsave{background:none;border:1px solid rgb(250 185 6/.6);color:#fab906}
.tm-modal .tm-btn{margin-block-start:.4rem}

/* سفر من: سرزمین‌ها و مجموعه‌ها */
.tm-jrealm .tm-jn{font-weight:700;color:#fff}
.tm-jsub{font-size:.85rem;margin-inline-start:1rem;opacity:.9}
.tm-jsub.zero{opacity:.5}
.tm-jsub .tm-jn::before{content:"↳ ";color:#fab906;opacity:.7}
.tm-rh{margin:1rem 0 .2rem;padding-bottom:.3rem;border-bottom:1px solid rgb(250 185 6/.35);color:#fab906;font-weight:700}
.tm-chip.sub{font-size:.78rem;padding:.18rem .75rem}
.tm-chip.sub::before{content:"↳ ";opacity:.6}
.tm-chipgrp{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center;width:100%}

/* میز تحریر */
.tm-desk .tm-row{margin:.4rem 0 .6rem}
.tm-prog{margin:.2rem 0 .6rem}
.tm-prog .tm-bar{margin-top:.3rem}
.tm-ditem{align-items:flex-start}
.tm-dt{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.7}
.tm-dt a{color:#fff;text-decoration:none;font-weight:600}
.tm-dt small{opacity:.75;font-size:.8rem}
.tm-st{color:#cfc6b4}
.tm-st-pending{color:#fab906}
.tm-st-publish{color:#8fd19e}
.tm-dnote{display:block;margin-top:.3rem;font-size:.82rem;white-space:pre-wrap;background:rgb(250 185 6/.08);border-inline-start:2px solid #fab906;padding:.3rem .6rem;border-radius:6px}
.tm-desk .tm-form label{margin-top:.6rem}
.tm-root a.tm-btn{color:#17120a!important;text-decoration:none!important}
.tm-root a.tm-btn.tm-ghost{color:#fab906!important}
.tm-dt a{text-decoration:none!important}

/* میز تحریر: رنگ لاجوردی */
.tm-desk{background:linear-gradient(135deg,rgb(52 84 168/.35),rgb(18 22 40/.9))!important;border:1px solid rgb(130 165 255/.5)!important}
.tm-desk h3{color:#a9c2ff!important}
.tm-desk h3 small{color:#d6e0ff;opacity:.85}
.tm-desk .tm-bar i{background:#7fa2ff}
.tm-desk .tm-dnote{background:rgb(130 165 255/.12);border-inline-start-color:#7fa2ff}
.tm-desk .tm-link{color:#a9c2ff}
.tm-desk .tm-row{align-items:center}
.tm-root .tm-desk .tm-btn.tm-ghost,.tm-root .tm-desk a.tm-btn.tm-ghost{border-color:rgb(130 165 255/.7);color:#c3d3ff!important}
.tm-desk .tm-btn:not(.tm-ghost){background:#7fa2ff;color:#0d1430!important}

/* اطلاعیه‌ها */
.tm-notices{margin:0 0 1rem}
.tm-notice{border:1px solid rgb(130 165 255/.35);border-radius:10px;padding:.45rem .8rem;margin:.4rem 0;background:rgb(10 16 40/.35)}
.tm-notice.new{border-color:#7fa2ff;box-shadow:0 0 0 1px rgb(127 162 255/.4)}
.tm-notice summary{cursor:pointer;color:#fff;font-weight:600;line-height:1.8}
.tm-notice summary small{font-weight:400;opacity:.65;font-size:.78rem;margin-inline-start:.3rem}
.tm-notice p{margin:.4rem 0 .2rem;white-space:pre-wrap;font-size:.92rem;opacity:.92}
.tm-new,.tm-own{display:inline-block;font-size:.7rem;font-weight:400;border-radius:999px;padding:0 .5rem;margin-inline-end:.4rem;vertical-align:middle}
.tm-new{background:#7fa2ff;color:#0d1430}
.tm-own{border:1px solid #a9c2ff;color:#a9c2ff}

/* صندوق پیشنهاد */
.tm-sugg{border-style:dashed!important}
.tm-sugg .tm-form label{margin-top:.6rem}
.tm-sg-ok{color:#8fd19e;margin:.6rem 0 0}

/* کشویی */
.tm-col > h3{cursor:pointer;display:flex;align-items:center;gap:.5rem;margin:0;user-select:none}
.tm-col > h3::after{content:"";margin-inline-start:auto;width:.55rem;height:.55rem;border-inline-end:2px solid currentColor;border-block-end:2px solid currentColor;transform:rotate(45deg);transition:transform .2s;opacity:.8}
.tm-col.closed > h3::after{transform:rotate(135deg)}
.tm-col:not(.closed) > h3{margin-bottom:.8rem}
.tm-col.closed > :not(h3){display:none!important}
.tm-col.closed{padding-block:.9rem}
/* نقشهٔ سفر */
.tm-pdone{flex:none;font-size:.72rem!important}
.tm-plan .tm-item a span{display:flex;flex-direction:column}
.tm-root .tm-col > h3{margin-block:0!important;padding:0!important;line-height:1.8}
.tm-root .tm-col:not(.closed) > h3{margin-block-end:.8rem!important}
.tm-root .tm-col.closed{padding-block:.85rem!important}
.tm-root .tm-col > h3::after{transform:rotate(225deg)}
.tm-root .tm-col.closed > h3::after{transform:rotate(45deg)}

.tm-outbar{text-align:center;margin:1.2rem 0 .4rem}
.tm-outbar p{margin:0}
.tm-outbar .tm-logout{opacity:.8}
