/* پنل نویسندگان نودهشتیا */
.nhwp-panel-wrap,
.nhwp-panel-wrap * {
    box-sizing: border-box;
}

.nhwp-panel-wrap {
    direction: rtl;
    display: flex;
    width: 100%;
    max-width: 1320px;
    min-height: 720px;
    margin: 35px auto;
    overflow: hidden;
    color: #292438;
    background: #f7f7fb;
    border: 1px solid #eceaf2;
    border-radius: 24px;
    box-shadow: 0 18px 55px rgba(37, 25, 65, 0.10);
    font-family: inherit;
}

/* نوار کناری */
.nhwp-sidebar {
    display: flex;
    flex: 0 0 265px;
    min-height: 720px;
    flex-direction: column;
    padding: 25px 16px 18px;
    color: #f9f7ff;
    background: linear-gradient(180deg, #302554 0%, #201936 100%);
}

.nhwp-brand {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 0 10px 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nhwp-brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    color: #fff;
    font-size: 22px;
    background: linear-gradient(135deg, #fa6eae, #9e73ff);
    border-radius: 12px;
}

.nhwp-brand strong,
.nhwp-brand small {
    display: block;
}

.nhwp-brand strong {
    font-size: 15px;
}

.nhwp-brand small {
    margin-top: 3px;
    color: #bdb5d5;
    font-size: 11px;
}

.nhwp-user-box {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 25px 10px 20px;
}

.nhwp-avatar img {
    display: block;
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50%;
}

.nhwp-user-info strong,
.nhwp-user-info span {
    display: block;
}

.nhwp-user-info strong {
    max-width: 150px;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nhwp-user-info span {
    margin-top: 4px;
    color: #bcb4d3;
    font-size: 11px;
}

.nhwp-menu {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.nhwp-menu a,
.nhwp-sidebar-bottom a {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 13px;
    color: #dcd7ea;
    font-size: 14px;
    text-decoration: none !important;
    border-radius: 11px;
    transition: 0.2s ease;
}

.nhwp-menu a span,
.nhwp-sidebar-bottom a span {
    display: inline-flex;
    width: 20px;
    justify-content: center;
    font-size: 18px;
}

.nhwp-menu a:hover,
.nhwp-menu a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.nhwp-sidebar-bottom {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.nhwp-sidebar-bottom a:hover {
    color: #fff;
    background: rgba(255, 95, 140, 0.16);
}

/* بخش محتوای اصلی */
.nhwp-main-content {
    flex: 1;
    min-width: 0;
    padding: 42px;
}

.nhwp-top-header {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.nhwp-small-title {
    display: block;
    margin-bottom: 7px;
    color: #937fae;
    font-size: 12px;
}

.nhwp-top-header h1 {
    margin: 0;
    color: #292137;
    font-size: 27px;
    line-height: 1.6;
}

.nhwp-top-header p {
    margin: 5px 0 0;
    color: #857f8f;
    font-size: 14px;
}

/* دکمه‌ها */
.nhwp-main-btn,
.nhwp-outline-btn {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 11px;
    transition: 0.2s ease;
}

.nhwp-main-btn {
    color: #fff !important;
    background: linear-gradient(135deg, #a257e8, #6e57db);
    box-shadow: 0 7px 17px rgba(115, 82, 214, 0.25);
}

.nhwp-main-btn:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 11px 22px rgba(115, 82, 214, 0.34);
}

.nhwp-outline-btn {
    color: #7054ba !important;
    background: #fff;
    border: 1px solid #ded6ef;
}

.nhwp-outline-btn:hover {
    color: #513b92 !important;
    background: #f7f2ff;
}

/* کارت‌های آمار */
.nhwp-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.nhwp-stat-card {
    display: flex;
    gap: 12px;
    align-items: center;
    min-height: 100px;
    padding: 18px;
    background: #fff;
    border: 1px solid #eeeaf5;
    border-radius: 16px;
}

.nhwp-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    font-size: 20px;
    border-radius: 13px;
}

.nhwp-stat-card small,
.nhwp-stat-card strong {
    display: block;
}

.nhwp-stat-card small {
    color: #898391;
    font-size: 12px;
}

.nhwp-stat-card strong {
    margin-top: 5px;
    color: #302a39;
    font-size: 25px;
    line-height: 1;
}

.nhwp-stat-purple .nhwp-stat-icon {
    background: #ede5ff;
}

.nhwp-stat-pink .nhwp-stat-icon {
    background: #ffe4ef;
}

.nhwp-stat-orange .nhwp-stat-icon {
    background: #fff0d9;
}

.nhwp-stat-green .nhwp-stat-icon {
    background: #dff8eb;
}

/* کارت خوش‌آمدگویی */
.nhwp-welcome-card {
    display: flex;
    position: relative;
    min-height: 220px;
    margin-bottom: 24px;
    overflow: hidden;
    padding: 32px 35px;
    color: #fff;
    background: linear-gradient(135deg, #483275 0%, #7354b0 55%, #a35ab7 100%);
    border-radius: 20px;
}

.nhwp-welcome-card::after {
    position: absolute;
    top: -90px;
    left: -60px;
    width: 260px;
    height: 260px;
    content: "";
    opacity: 0.2;
    border: 45px solid #fff;
    border-radius: 50%;
}

.nhwp-welcome-text {
    position: relative;
    z-index: 2;
    max-width: 620px;
}

.nhwp-welcome-text > span {
    color: #e9dfff;
    font-size: 12px;
}

.nhwp-welcome-text h2 {
    margin: 7px 0;
    color: #fff;
    font-size: 25px;
}

.nhwp-welcome-text p {
    margin: 0;
    color: #eee9f9;
    font-size: 14px;
    line-height: 2;
}

.nhwp-welcome-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.nhwp-welcome-card .nhwp-main-btn {
    background: #fff;
    color: #65449e !important;
    box-shadow: none;
}

.nhwp-welcome-art {
    position: absolute;
    z-index: 1;
    left: 55px;
    bottom: 23px;
    opacity: 0.9;
    font-size: 100px;
    transform: rotate(-8deg);
}

/* بخش پایین */
.nhwp-dashboard-bottom {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 20px;
}

.nhwp-dashboard-box {
    padding: 23px;
    background: #fff;
    border: 1px solid #eeeaf5;
    border-radius: 16px;
}

.nhwp-box-heading {
    margin-bottom: 16px;
}

.nhwp-box-heading h3 {
    margin: 0;
    color: #352d41;
    font-size: 17px;
}

.nhwp-quick-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 11px;
}

.nhwp-quick-links a {
    display: block;
    padding: 14px 11px;
    color: #332d3c;
    text-decoration: none !important;
    background: #faf9fc;
    border: 1px solid #f0edf4;
    border-radius: 12px;
    transition: 0.2s;
}

.nhwp-quick-links a:hover {
    background: #f4efff;
    border-color: #d9cafa;
    t: translateY(-2px);
}

.nhwp-quick-links a > span {
    display: block;
    margin-bottom: 8px;
    color: #895be0;
    font-size: 22px;
}

.nhwp-quick-links strong,
.nhwp-quick-links small {
    display: block;
}

.nhwp-quick-links strong {
    font-size: 12px;
}

.nhwp-quick-links small {
    margin-top: 4px;
    color: #89828e;
    font-size: 10px;
    line-height: 1.6;
}

.nhwp-guide-box ol {
    margin: 0;
    padding: 0 22px 0 0;
    color: #716a78;
    font-size: 13px;
    line-height: 2.25;
}

/* پیام ورود یا دسترسی */
.nhwp-login-required,
.nhwp-page-placeholder {
    max-width: 700px;
    margin: 45px auto;
    padding: 42px 25px;
    color: #423a4d;
    text-align: center;
    background: #fff;
    border: 1px solid #eeeaf5;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(40, 29, 67, 0.08);
}

.nhwp-login-icon,
.nhwp-page-placeholder > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin: 0 auto 15px;
    font-size: 27px;
    background: #f1eaff;
    border-radius: 50%;
}

.nhwp-login-required h2,
.nhwp-page-placeholder h1 {
    margin: 0 0 8px;
    font-size: 22px;
}

.nhwp-login-required p,
.nhwp-page-placeholder p {
    margin: 0 0 20px;
    color: #827b89;
    font-size: 14px;
}

/* موبایل و تبلت */
@media (max-width: 1050px) {
    .nhwp-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nhwp-dashboard-bottom {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .nhwp-panel-wrap {
        display: block;
        width: calc(100vw - 24px);
        min-height: auto;
        margin: 12px auto;
        border-radius: 16px;
    }

    .nhwp-sidebar {
        min-height: auto;
        padding: 18px 14px;
    }

    .nhwp-brand {
        padding-bottom: 15px;
    }

    .nhwp-user-box {
        padding: 15px 8px;
    }

    .nhwp-menu {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .nhwp-menu a {
        justify-content: center;
        min-width: 0;
        padding: 10px 7px;
        font-size: 12px;
        text-align: center;
    }

    .nhwp-menu a span {
        display: none;
    }

    .nhwp-sidebar-bottom {
        display: none;
    }

    .nhwp-main-content {
        padding: 23px 14px;
    }

    .nhwp-top-header {
        display: block;
        margin-bottom: 22px;
    }

    .nhwp-top-header h1 {
        font-size: 21px;
    }

    .nhwp-top-header p {
        font-size: 13px;
        line-height: 1.9;
    }

    .nhwp-top-header > .nhwp-main-btn {
        width: 100%;
        margin-top: 16px;
    }

    .nhwp-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .nhwp-stat-card {
        min-height: 88px;
        padding: 12px 10px;
    }

    .nhwp-stat-icon {
        width: 38px;
        height: 38px;
        font-size: 17px;
        border-radius: 11px;
    }

    .nhwp-stat-card small {
        font-size: 10px;
    }

    .nhwp-stat-card strong {
        font-size: 21px;
    }

    .nhwp-welcome-card {
        display: block;
        min-height: auto;
        padding: 24px 18px;
    }

    .nhwp-welcome-text h2 {
        font-size: 21px;
        line-height: 1.7;
    }

    .nhwp-welcome-text p {
        font-size: 13px;
    }

    .nhwp-welcome-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .nhwp-welcome-actions .nhwp-main-btn,
    .nhwp-welcome-actions .nhwp-outline-btn {
        width: 100%;
    }

    .nhwp-welcome-art {
        display: none;
    }

    .nhwp-dashboard-bottom {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .nhwp-dashboard-box {
        padding: 18px 14px;
    }

    .nhwp-quick-links {
        grid-template-columns: 1fr;
    }

    .nhwp-login-required,
    .nhwp-page-placeholder {
        margin: 18px 12px;
        padding: 30px 18px;
    }
}
   
/* فرم ایجاد و ویرایش رمان */
.nhwp-page-header {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.nhwp-page-header h1 {
    margin: 0;
    color: #292137;
    font-size: 27px;
}

.nhwp-page-header p {
    margin: 6px 0 0;
    color: #857f8f;
    font-size: 14px;
}

.nhwp-form-notice {
    margin-bottom: 20px;
    padding: 14px 17px;
    font-size: 14px;
    border-radius: 12px;
}

.nhwp-form-notice-success {
    color: #176b3a;
    background: #e5f8ec;
    border: 1px solid #c9eed6;
}

.nhwp-form-notice-error {
    color: #a72d3d;
    background: #fff0f2;
    border: 1px solid #ffd6dc;
}

.nhwp-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 21px;
    align-items: start;
}

.nhwp-form-main,
.nhwp-form-side {
    min-width: 0;
}

.nhwp-form-card {
    margin-bottom: 20px;
    padding: 25px;
    background: #fff;
    border: 1px solid #eeeaf5;
    border-radius: 17px;
}

.nhwp-form-card-heading {
    margin-bottom: 21px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0edf4;
}

.nhwp-form-card-heading h3,
.nhwp-submit-card h3 {
    margin: 0;
    color: #352d41;
    font-size: 17px;
}

.nhwp-form-card-heading p,
.nhwp-submit-card p {
    margin: 7px 0 0;
    color: #85808d;
    font-size: 12px;
    line-height: 1.9;
}

.nhwp-field {
    margin-bottom: 19px;
}

.nhwp-field:last-child {
    margin-bottom: 0;
}

.nhwp-field label {
    display: block;
    margin-bottom: 8px;
    color: #4a4352;
    font-size: 13px;
    font-weight: 700;
}

.nhwp-field label span {
    color: #d94c6a;
}

.nhwp-field input[type="text"],
.nhwp-field textarea,
.nhwp-field select {
    display: block;
    width: 100%;
    padding: 12px 13px;
    color: #403947;
    font: inherit;
    font-size: 13px;
    line-height: 1.9;
    background: #fdfcff;
    border: 1px solid #e5dfed;
    border-radius: 10px;
    outline: none;
    transition: 0.2s ease;
}

.nhwp-field textarea {
    resize: vertical;
}

.nhwp-field select {
    min-height: 48px;
    cursor: pointer;
}

.nhwp-field input:focus,
.nhwp-field textarea:focus,
.nhwp-field select:focus {
    background: #fff;
    border-color: #9a74df;
    box-shadow: 0 0 0 3px rgba(142, 97, 213, 0.12);
}

.nhwp-field small {
    display: block;
    margin-top: 6px;
    color: #9a939f;
    font-size: 11px;
}

.nhwp-two-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.nhwp-cover-card {
    padding: 20px;
}

.nhwp-cover-upload {
    display: flex;
    min-height: 240px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 14px;
    color: #6a5d7d;
    text-align: center;
    cursor: pointer;
    background: #fbf9ff;
    border: 2px dashed #d8cdec;
    border-radius: 14px;
    transition: 0.2s;
}

.nhwp-cover-upload:hover {
    background: #f5f0ff;
    border-color: #9a74df;
}

.nhwp-cover-upload input[type="file"] {
    display: none;
}

.nhwp-cover-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    margin-bottom: 13px;
    font-size: 25px;
    background: #ede5ff;
    border-radius: 50%;
}

.nhwp-cover-upload strong {
    color: #4b405d;
    font-size: 13px;
}

.nhwp-cover-upload small {
    display: block;
    margin-top: 7px;
    color: #958b9f;
    font-size: 10px;
    line-height: 1.8;
}

.nhwp-submit-card {
    padding: 21px;
}

.nhwp-submit-card p {
    margin-bottom: 17px;
}

.nhwp-full-btn {
    width: 100%;
    margin-top: 9px;
    cursor: pointer;
    border: 0;
}

button.nhwp-outline-btn {
    cursor: pointer;
}

@media (max-width: 900px) {
    .nhwp-form-grid {
        grid-template-columns: 1fr;
    }

    .nhwp-form-side {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .nhwp-form-side .nhwp-form-card {
        margin-bottom: 0;
    }
}

@media (max-width: 620px) {
    .nhwp-page-header {
        display: block;
    }

    .nhwp-page-header .nhwp-outline-btn {
        margin-top: 15px;
    }

    .nhwp-page-header h1 {
        font-size: 22px;
    }

    .nhwp-form-card {
        padding: 18px 15px;
    }

    .nhwp-two-fields,
    .nhwp-form-side {
        grid-template-columns: 1fr;
    }
}
/* صفحه رمان‌های من */
.nhwp-novels-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.nhwp-novel-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eeeaf5;
    border-radius: 18px;
    box-shadow: 0 7px 22px rgba(45, 33, 76, 0.04);
    transition: 0.22s ease;
}

.nhwp-novel-card:hover {
    border-color: #ddd0f5;
    box-shadow: 0 13px 30px rgba(67, 44, 111, 0.10);
    transform: translateY(-3px);
}

.nhwp-novel-cover {
    position: relative;
    width: 135px;
    min-width: 135px;
    min-height: 235px;
    overflow: hidden;
    background: linear-gradient(145deg, #47356f, #8e66bb);
}

.nhwp-novel-cover img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 235px;
    object-fit: cover;
}

.nhwp-novel-no-cover {
    display: flex;
    height: 100%;
    min-height: 235px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(145deg, #49376e, #9a65ad);
}

.nhwp-novel-no-cover span {
    margin-bottom: 8px;
    font-size: 39px;
}

.nhwp-novel-no-cover small {
    color: rgba(255,255,255,0.8);
    font-size: 11px;
}

.nhwp-publication-status {
    position: absolute;
    top: 10px;
    right: 8px;
    display: inline-flex;
    padding: 5px 8px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    background: rgba(42, 33, 57, 0.82);
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.nhwp-publication-published {
    background: rgba(26, 130, 73, 0.90);
}

.nhwp-publication-pending {
    color: #5f4300;
    background: rgba(255, 211, 107, 0.95);
}

.nhwp-publication-draft {
    color: #423b4d;
    background: rgba(239, 235, 245, 0.96);
}

.nhwp-novel-card-body {
    display: flex;
    width: calc(100% - 135px);
    min-width: 0;
    flex-direction: column;
    padding: 19px 17px 16px;
}

.nhwp-novel-title-row {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    justify-content: space-between;
}

.nhwp-novel-title-row h2 {
    margin: 0;
    overflow: hidden;
    color: #352d41;
    font-size: 16px;
    line-height: 1.6;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nhwp-writing-status {
    display: inline-flex;
    flex-shrink: 0;
    padding: 4px 7px;
    font-size: 9px;
    font-weight: 700;
    border-radius: 20px;
}

.nhwp-writing-ongoing {
    color: #5c3e9c;
    background: #eee7ff;
}

.nhwp-writing-completed {
    color: #13743c;
    background: #e2f8eb;
}

.nhwp-writing-paused {
    color: #986114;
    background: #fff2d9;
}

.nhwp-novel-meta {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 11px;
    color: #817989;
    font-size: 10px;
}

.nhwp-novel-excerpt {
    display: -webkit-box;
    margin: 12px 0 14px;
    overflow: hidden;
    color: #706a77;
    font-size: 12px;
    line-height: 1.9;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.nhwp-novel-card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1eef5;
}

.nhwp-card-primary-btn,
.nhwp-card-light-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 8px;
    transition: 0.2s ease;
}

.nhwp-card-primary-btn {
    color: #fff !important;
    background: linear-gradient(135deg, #9f60dc, #6e58d7);
}

.nhwp-card-primary-btn:hover {
    color: #fff !important;
    transform: translateY(-1px);
}

.nhwp-card-light-btn {
    color: #7154b5 !important;
    background: #f6f2ff;
}

.nhwp-card-light-btn:hover {
    color: #543c9c !important;
    background: #eee7ff;
}

.nhwp-card-waiting-text {
    color: #968d9d;
    font-size: 10px;
}

/* حالت خالی‌بودن لیست رمان‌ها */
.nhwp-empty-state {
    padding: 58px 25px;
    text-align: center;
    background: #fff;
    border: 1px solid #eeeaf5;
    border-radius: 18px;
}

.nhwp-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: 75px;
    margin: 0 auto 16px;
    font-size: 31px;
    background: #f0e9ff;
    border-radius: 50%;
}

.nhwp-empty-state h2 {
    margin: 0 0 8px;
    color: #3b3248;
    font-size: 20px;
}

.nhwp-empty-state p {
    max-width: 430px;
    margin: 0 auto 20px;
    color: #817a88;
    font-size: 13px;
    line-height: 2;
}

@media (max-width: 1050px) {
    .nhwp-novels-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .nhwp-novel-cover {
        width: 105px;
        min-width: 105px;
        min-height: 210px;
    }

    .nhwp-novel-cover img,
    .nhwp-novel-no-cover {
        min-height: 210px;
    }

    .nhwp-novel-card-body {
        width: calc(100% - 105px);
        padding: 14px 12px;
    }

    .nhwp-novel-title-row {
        display: block;
    }

    .nhwp-writing-status {
        margin-top: 6px;
    }

    .nhwp-novel-card-actions {
        flex-wrap: wrap;
    }
}
/* =========================================
   جلوگیری از محدودشدن پنل توسط کانتینر پوسته
========================================= */

.nhwp-panel-wrap {
    width: min(1320px, calc(100vw - 40px));
    max-width: none;
}

/*
 * در مانیتور و لپ‌تاپ‌های متوسط، سایدبار و محتوای پنل
 * بدون بریدگی و اسکرول افقی نمایش داده می‌شوند.
 */
@media (min-width: 761px) and (max-width: 1180px) {
    .nhwp-panel-wrap {
        width: calc(100vw - 32px);
        margin-top: 24px;
        margin-bottom: 24px;
        border-radius: 18px;
    }

    .nhwp-sidebar {
        flex-basis: 230px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .nhwp-main-content {
        padding: 28px 24px;
    }

    .nhwp-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nhwp-dashboard-bottom {
        grid-template-columns: 1fr;
    }

    .nhwp-quick-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .nhwp-panel-wrap {
        width: calc(100vw - 24px);
        max-width: none;
    }
}

/*
 * محافظت عمومی از بیرون‌زدگی متن، فیلدها و کارت‌ها
 */
.nhwp-main-content,
.nhwp-main-content * {
    min-width: 0;
}

.nhwp-main-content img {
    max-width: 100%;
    height: auto;
}
/* =========================================
   قالب تمام‌عرض اختصاصی پنل نویسندگان
   جلوگیری از تداخل قالب و سایدبارهای پوسته
========================================= */

.nhwp-writer-panel-template {
    display: block;
    width: 100%;
    max-width: none;
    min-height: 700px;
    margin: 0;
    padding: 0;
}

.nhwp-writer-panel-page,
.nhwp-writer-panel-page-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/*
 * پنل داخل قالب اختصاصی، فضای کامل نمایشگر را دریافت می‌کند.
 */
.nhwp-writer-panel-template .nhwp-panel-wrap {
    width: min(1360px, calc(100vw - 40px));
    max-width: none;
    margin: 35px auto;
}

/*
 * نمایشگرهای لپ‌تاپ با عرض متوسط
 */
@media (min-width: 761px) and (max-width: 1180px) {
    .nhwp-writer-panel-template .nhwp-panel-wrap {
        width: calc(100vw - 30px);
        margin: 22px auto;
    }
}

/*
 * گوشی
 */
@media (max-width: 760px) {
    .nhwp-writer-panel-template .nhwp-panel-wrap {
        width: calc(100vw - 24px);
        margin: 12px auto;
    }
}

