* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

:root {
    --bg: #0d0d0f;
    --bg2: #111114;
    --surface: #18181c;
    --surface2: #1f1f24;
    --border: rgba(255, 255, 255, 0.06);
    --border2: rgba(255, 255, 255, 0.1);
    --t1: #f0f0f2;
    --t2: #a1a1aa;
    --t3: #71717a;
    --accent: #7c6dfa;
    --accent-dim: rgba(124, 109, 250, 0.12);
    --red: #f04b4b;
    --red-dim: rgba(240, 75, 75, 0.1);
    --gold: #e0a94a;
    --green: #4ade80;
    --sw: 228px;
    --r: 10px;
    --r2: 7px;
    --ease: 0.13s ease;
}

body {
    background: var(--bg);
    color: var(--t1);
    font-family: 'Inter', system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    -webkit-font-smoothing: antialiased;
    font-size: 14px
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sw);
    background: var(--bg2);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.22s cubic-bezier(.4, 0, .2, 1)
}

.sidebar.open {
    transform: translateX(0)
}

.sb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 190;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s
}

.sb-overlay.open {
    opacity: 1;
    pointer-events: all
}

.sb-top {
    padding: 0;
    border-bottom: 1px solid var(--border)
}

.logo-icon {
    margin-left: 60px;
    width: 100px;
    height: 55px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0
}

.sb-nav {
    padding: 10px 8px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1px
}

.nl {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--t3);
    padding: 14px 8px 6px
}

.nl:first-child {
    padding-top: 4px
}

.ni {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--r2);
    color: var(--t2);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: var(--ease);
    position: relative;
    user-select: none
}

.ni:hover {
    color: var(--t1);
    background: rgba(255, 255, 255, 0.04)
}

.ni.locked {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(1);
}

.ni.active {
    color: var(--t1);
    background: var(--surface2)
}

.ni.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5px;
    height: 14px;
    background: var(--accent);
    border-radius: 0 2px 2px 0
}

.ni i {
    width: 14px;
    font-size: 12px;
    text-align: center;
    opacity: .6
}

.ni.active i {
    opacity: 1
}

.nb {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    color: var(--t2);
    padding: 1px 6px;
    border-radius: 20px
}

.sb-foot {
    padding: 10px 8px;
    border-top: 1px solid var(--border)
}

.user-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--r2)
}

.uav {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--surface2);
    object-fit: cover;
    flex-shrink: 0
}

.utxt {
    flex-grow: 1;
    overflow: hidden
}

.uname {
    font-size: 14px;
    font-weight: 600;
    color: var(--t1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.uemail {
    font-size: 12px;
    color: var(--t2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.logout {
    background: none;
    border: none;
    color: var(--t3);
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    font-size: 12px;
    transition: var(--ease);
    flex-shrink: 0
}

.logout:hover {
    color: var(--red)
}

/* MAIN */
.main {
    flex-grow: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column
}

@media(min-width:1024px) {
    .sidebar {
        transform: none
    }

    .sb-overlay {
        display: none
    }

    .main {
        margin-left: var(--sw)
    }
}

/* TOPBAR */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 54px;
    background: rgba(13, 13, 15, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 10px
}

.mob-toggle {
    background: none;
    border: none;
    color: var(--t2);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    display: none
}

.mob-brand {
    font-size: 15px;
    font-weight: 600;
    color: var(--t1);
    display: none;
    letter-spacing: -0.02em
}

@media(max-width:1023px) {

    .mob-toggle,
    .mob-brand {
        display: flex
    }

    .topbar {
        padding: 0 16px
    }
}

.search-wrap {
    position: relative;
    flex: 1;
    max-width: 300px;
    margin-left: auto
}

@media(max-width:1023px) {
    .search-wrap {
        max-width: none
    }
}

.search-wrap i {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--t3);
    font-size: 11px;
    pointer-events: none
}

.search-input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 7px 12px 7px 30px;
    border-radius: var(--r2);
    color: var(--t1);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: var(--ease)
}

.search-input::placeholder {
    color: var(--t3)
}

.search-input:focus {
    border-color: rgba(124, 109, 250, .4);
    background: var(--surface2);
    box-shadow: 0 0 0 3px rgba(124, 109, 250, .08)
}

/* TOPBAR BUTTONS */
.topbar-btns {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0
}

/* ⚡ Quick create — fires immediately */
.quick-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 7px 14px;
    border-radius: var(--r2);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--ease)
}

.quick-btn:hover {
    background: #6a5de8
}

.quick-btn:active {
    transform: scale(.97)
}

.quick-btn .qf-label {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

@media(max-width:640px) {
    .quick-btn .qf-label {
        display: none
    }
}

/* Change quick format button */
.change-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--surface2);
    color: var(--t2);
    border: 1px solid var(--border2);
    padding: 7px 11px;
    border-radius: var(--r2);
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--ease)
}

.change-btn:hover {
    color: var(--t1);
    border-color: rgba(124, 109, 250, .4)
}

.change-btn i {
    font-size: 10px
}

@media(max-width:640px) {
    .change-btn .cb-txt {
        display: none
    }
}

/* New — opens full format picker */
.new-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--surface);
    color: var(--t2);
    border: 1px solid var(--border2);
    padding: 7px 11px;
    border-radius: var(--r2);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--ease)
}

.new-btn:hover {
    color: var(--t1);
    border-color: rgba(255, 255, 255, .15)
}

/* CONTENT */
.center-col {
    flex: 1;
    min-width: 0;
    overflow-y: auto
}

.content {
    padding: 32px 28px 60px;
    max-width: 820px
}

@media(max-width:1023px) {
    .content {
        padding: 20px 16px 48px
    }
}

.page-head {
    margin-bottom: 24px
}

.page-head h1 {
    font-size: 22px;
    font-weight: 600;
    color: var(--t1);
    letter-spacing: -0.03em;
    margin-bottom: 3px
}

.page-head p {
    font-size: 14px;
    color: var(--t2)
}

.tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px
}

.tab {
    font-size: 14px;
    font-weight: 500;
    color: var(--t2);
    padding: 8px 0;
    margin-right: 24px;
    cursor: pointer;
    position: relative;
    transition: var(--ease);
    user-select: none
}

.tab:hover {
    color: var(--t1)
}

.tab.active {
    color: var(--t1)
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1.5px;
    background: var(--accent);
    border-radius: 2px
}

.list {
    display: flex;
    flex-direction: column;
    gap: 2px
}

/* SCRIPT ITEM */
.sitem {
    display: flex;
    align-items: center;
    padding: 11px 14px;
    border-radius: var(--r);
    cursor: pointer;
    transition: background var(--ease), border-color var(--ease);
    border: 1px solid transparent;
    color: inherit;
    position: relative
}

.sitem:hover {
    background: var(--surface);
    border-color: var(--border)
}

.sitem:hover .sacts {
    opacity: 1;
    pointer-events: all
}

.favbtn {
    background: none;
    border: none;
    color: var(--t3);
    cursor: pointer;
    font-size: 13px;
    padding: 3px 12px 3px 0;
    transition: var(--ease);
    flex-shrink: 0;
    line-height: 1
}

.favbtn:hover,
.favbtn.on {
    color: var(--gold)
}

.sbody {
    flex-grow: 1;
    min-width: 0
}

.stitle {
    font-size: 15px;
    font-weight: 600;
    color: var(--t1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
    letter-spacing: -0.01em
}

.smeta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--t2)
}

.bshared {
    background: var(--accent-dim);
    color: var(--accent);
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 20px
}

.savs {
    display: flex;
    align-items: center;
    margin: 0 12px;
    flex-shrink: 0
}

.savs img,
.sav-more {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--bg2);
    margin-left: -5px;
    object-fit: cover;
    background: var(--surface2)
}

.savs img:first-child,
.sav-more:first-child {
    margin-left: 0
}

.sav-more {
    font-size: 8.5px;
    font-weight: 600;
    color: var(--t2);
    display: flex;
    align-items: center;
    justify-content: center
}

.sacts {
    display: flex;
    align-items: center;
    gap: 1px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--ease);
    flex-shrink: 0
}

@media(max-width:1023px) {
    .sacts {
        opacity: 1 !important;
        pointer-events: all !important
    }
}

.abtn {
    width: 26px;
    height: 26px;
    border-radius: var(--r2);
    border: none;
    background: transparent;
    color: var(--t3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: var(--ease)
}

.abtn:hover {
    background: rgba(255, 255, 255, .06);
    color: var(--t1)
}

.mwrap {
    position: relative
}

.mmenu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: var(--surface2);
    border: 1px solid var(--border2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
    border-radius: var(--r);
    padding: 4px;
    width: 158px;
    z-index: 500;
    display: none;
    flex-direction: column;
    gap: 1px
}

.mmenu.show {
    display: flex
}

.mitem {
    padding: 7px 10px;
    font-size: 12.5px;
    color: var(--t2);
    display: flex;
    align-items: center;
    gap: 9px;
    border-radius: var(--r2);
    cursor: pointer;
    transition: var(--ease)
}

.mitem i {
    width: 12px;
    font-size: 11px;
    color: var(--t3);
    text-align: center
}

.mitem:hover {
    background: rgba(255, 255, 255, .05);
    color: var(--t1)
}

.mitem.danger {
    color: var(--red)
}

.mitem.danger i {
    color: var(--red)
}

.mitem.danger:hover {
    background: var(--red-dim)
}

/* EMPTY STATE */
.empty {
    text-align: center;
    padding: 64px 20px;
    border: 1px dashed var(--border2);
    border-radius: var(--r);
    cursor: pointer;
    transition: var(--ease)
}

.empty:hover {
    border-color: rgba(124, 109, 250, .3);
    background: var(--accent-dim)
}

.eicon {
    width: 44px;
    height: 44px;
    background: var(--surface);
    border-radius: 12px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--t3);
    transition: var(--ease)
}

.empty:hover .eicon {
    background: var(--accent-dim);
    color: var(--accent)
}

.empty h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--t1);
    margin-bottom: 6px;
    letter-spacing: -0.02em
}

.empty p {
    font-size: 13px;
    color: var(--t2)
}

/* ─── RIGHT PANEL ─── */
.body-split {
    display: flex;
    flex: 1;
    min-height: 0
}

.rpanel {
    display: none
}

.lock-badge {
    font-size: 8px;
    background: rgba(240, 75, 75, 0.1);
    color: var(--red);
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 800;
    margin-left: 6px;
    vertical-align: middle;
    border: 1px solid rgba(240, 75, 75, 0.2);
}

.is-locked {
    opacity: 0.6;
    cursor: not-allowed !important;
}

.fmt-lock-icon {
    color: var(--t3);
    font-size: 14px;
    margin-left: auto;
}

@media(min-width:1280px) {
    .rpanel {
        display: flex;
        flex-direction: column;
        width: 280px;
        flex-shrink: 0;
        border-left: 1px solid var(--border);
        padding: 24px 16px 40px;
        gap: 10px;
        overflow-y: auto;
        position: sticky;
        top: 54px;
        height: calc(100vh - 54px)
    }

    .rpanel::-webkit-scrollbar {
        display: none
    }
}

.rp-hd {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--t3);
    margin-bottom: 12px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    gap: 8px
}

.rp-hd::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border)
}

.fmt-card {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
    cursor: default;
    margin-bottom: 1px
}

.fmt-card:hover {
    border-color: var(--accent);
    background: rgba(124, 109, 250, 0.02)
}

.fmt-card-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--t1);
    letter-spacing: -0.01em;
    margin-bottom: 4px
}

.fmt-card-tag {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0.8
}

.fmt-card-body {
    font-size: 11.5px;
    color: var(--t2);
    line-height: 1.6;
    margin-bottom: 14px
}

.fmt-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-bottom: 16px
}

.fmt-pill {
    font-size: 10px;
    font-weight: 500;
    color: var(--t3);
    display: flex;
    align-items: center;
    gap: 6px
}

.fmt-pill::before {
    content: '•';
    color: var(--border2);
    font-size: 12px
}

.fmt-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    color: var(--t2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.15s ease;
    text-decoration: none
}

.fmt-readmore:hover {
    color: var(--accent)
}

.fmt-readmore i {
    font-size: 8px;
    transition: transform 0.15s ease
}

.fmt-readmore:hover i {
    transform: translate(2px, -2px)
}

/* LOADER */
#loverlay {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity .25s, visibility .25s
}

#loverlay.out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none
}

.ldots {
    display: flex;
    gap: 6px
}

.ldots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--t3);
    animation: ldot 1s ease-in-out infinite
}

.ldots span:nth-child(2) {
    animation-delay: .15s
}

.ldots span:nth-child(3) {
    animation-delay: .3s
}

@keyframes ldot {

    0%,
    80%,
    100% {
        transform: scale(.6);
        opacity: .3
    }

    40% {
        transform: scale(1);
        opacity: 1
    }
}

/* MODAL BASE */
.mbg {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(6px);
    z-index: 8000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px
}

.mbg.show {
    display: flex
}

.mbox {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
    overflow: hidden;
    animation: mpop .22s cubic-bezier(.4, 0, .2, 1)
}

@keyframes mpop {
    from {
        opacity: 0;
        transform: scale(.95) translateY(8px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.mtop {
    padding: 18px 20px 15px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center
}

.mtop h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--t1);
    letter-spacing: -0.02em
}

.mclosex {
    background: var(--surface2);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--t2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: var(--ease)
}

.mclosex:hover {
    color: var(--t1);
    background: rgba(255, 255, 255, .1)
}

.mscroll {
    padding: 18px 20px;
    max-height: 70vh;
    overflow-y: auto
}

.mscroll::-webkit-scrollbar {
    display: none
}

.msec {
    margin-bottom: 18px
}

.mlabel {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--t3);
    margin-bottom: 8px;
    display: block
}

.mbot {
    padding: 13px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 8px
}

.bcancel {
    background: none;
    border: 1px solid var(--border2);
    color: var(--t2);
    padding: 7px 16px;
    border-radius: var(--r2);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: var(--ease)
}

.bcancel:hover {
    color: var(--t1);
    background: rgba(255, 255, 255, .04)
}

.bsave {
    background: var(--accent);
    border: none;
    color: #fff;
    padding: 7px 18px;
    border-radius: var(--r2);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--ease)
}

.bsave:hover {
    background: #6a5de8
}

/* FORMAT PICKER */
.fmt-modal-box {
    max-width: 520px !important
}

.fmt-list {
    display: flex;
    flex-direction: column;
    gap: 3px
}

.fmt-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--r);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--ease)
}

.fmt-row:hover {
    background: var(--surface2);
    border-color: var(--border)
}

.fmt-row.is-selected {
    background: var(--accent-dim);
    border-color: rgba(124, 109, 250, .3)
}

.fmt-row.is-selected .fmt-check {
    opacity: 1
}

.fmt-emoji {
    font-size: 20px;
    width: 30px;
    text-align: center;
    flex-shrink: 0
}

.fmt-text {
    flex: 1;
    min-width: 0
}

.fmt-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--t1)
}

.fmt-hint {
    font-size: 11.5px;
    color: var(--t3);
    margin-top: 1px
}

.fmt-check {
    margin-left: auto;
    color: var(--accent);
    font-size: 13px;
    opacity: 0;
    transition: var(--ease);
    flex-shrink: 0
}

.fmt-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 0
}

/* SHARE */
.pubcard {
    background: var(--surface2);
    border-radius: var(--r2);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 11px
}

.pubicon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, .05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--t2);
    flex-shrink: 0
}

.pubinfo h4 {
    font-size: 13px;
    font-weight: 500;
    color: var(--t1);
    margin-bottom: 1px
}

.pubinfo p {
    font-size: 11.5px;
    color: var(--t2)
}

.pubinfo {
    flex-grow: 1
}

.tglsw {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    flex-shrink: 0
}

.tglsw input {
    opacity: 0;
    width: 0;
    height: 0
}

.ttrack {
    position: absolute;
    inset: 0;
    background: var(--border2);
    border-radius: 20px;
    cursor: pointer;
    transition: .22s
}

.ttrack::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: .22s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3)
}

.tglsw input:checked+.ttrack {
    background: var(--accent)
}

.tglsw input:checked+.ttrack::before {
    transform: translateX(16px)
}

.copybtn {
    width: 100%;
    margin-top: 8px;
    background: none;
    border: 1px solid var(--border2);
    color: var(--t2);
    padding: 8px;
    border-radius: var(--r2);
    font-size: 12.5px;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: var(--ease)
}

.copybtn:hover {
    background: rgba(255, 255, 255, .04);
    color: var(--t1)
}

.minput {
    width: 100%;
    background: var(--surface2);
    border: 1px solid var(--border);
    padding: 9px 12px;
    border-radius: var(--r2);
    font-size: 13px;
    font-family: inherit;
    color: var(--t1);
    outline: none;
    transition: var(--ease)
}

.minput:focus {
    border-color: rgba(124, 109, 250, .4);
    box-shadow: 0 0 0 3px rgba(124, 109, 250, .08)
}

.minput::placeholder {
    color: var(--t3)
}

.sdrop {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--surface2);
    border: 1px solid var(--border2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
    border-radius: var(--r);
    max-height: 180px;
    overflow-y: auto;
    display: none;
    z-index: 100
}

.sdrop.show {
    display: block
}

.sui {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--ease)
}

.sui:hover {
    background: rgba(255, 255, 255, .04)
}

.sui img {
    width: 26px;
    height: 26px;
    border-radius: 50%
}

.sui-name {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--t1)
}

.sui-email {
    font-size: 11px;
    color: var(--t3)
}

.crow {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--r2);
    background: var(--surface2);
    margin-bottom: 4px
}

.crow img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    flex-shrink: 0
}

.crinfo {
    flex-grow: 1;
    overflow: hidden
}

.crname {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--t1)
}

.cremail {
    font-size: 11px;
    color: var(--t3)
}

.rsel {
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    color: var(--accent);
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    padding: 3px 7px;
    border-radius: 6px;
    font-family: inherit;
    transition: var(--ease)
}

.rsel:hover {
    border-color: var(--accent)
}

.noscroll {
    overflow: hidden !important
}

@keyframes toastIn {
    from {
        transform: translateX(100%);
        opacity: 0
    }

    to {
        transform: translateX(0);
        opacity: 1
    }
}

@keyframes toastOut {
    from {
        transform: translateX(0);
        opacity: 1
    }

    to {
        transform: translateX(100%);
        opacity: 0
    }
}
/* PROFILE VIEW */
.pcard {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    margin-top: 20px;
}

.p-top {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.p-avatar-wrap {
    position: relative;
}

.p-cam {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--accent);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 2px solid var(--surface);
    cursor: pointer;
}

.p-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.p-badge {
    margin-top: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--accent-dim);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 20px;
    width: fit-content;
}

.p-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 500px;
}

.p-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.p-field label {
    font-size: 11px;
    font-weight: 600;
    color: var(--t2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tgl-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface2);
    padding: 12px 16px;
    border-radius: var(--r2);
    border: 1px solid var(--border);
}
