﻿* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: #fff;
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    display: flex;
    justify-content: center;
}

.hidden {
    display: none !important;
}

.wrap {
    width: min(100vw, calc(100dvh * 9 / 16), 430px);
    min-height: 100dvh;
    background: #000;
    color: #fff;
    padding: 18px;
    overflow-y: auto;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

h1,
h2,
p {
    margin: 0;
}

h1 {
    font-size: 26px;
}

h2 {
    font-size: 20px;
}

p {
    color: rgba(255,255,255,.65);
    margin-top: 5px;
    font-size: 14px;
}

a {
    color: #fff;
    text-decoration: none;
}

.logout-btn {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
}

.card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 22px;
    padding: 18px;
    margin-bottom: 18px;
    backdrop-filter: blur(10px);
}

.upload-form {
    display: grid;
    gap: 10px;
    margin-top: 15px;
}

input,
button {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 15px;
}

input::placeholder {
    color: rgba(255,255,255,.55);
}

button {
    background: #fff;
    color: #000;
    font-weight: 800;
    cursor: pointer;
}

.camera-btn,
.publish-btn {
    border-radius: 999px;
}
.camera-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.camera-buttons .camera-btn {
    min-height: 50px;
    font-size: 0;
}

.camera-buttons .camera-btn::before {
    font-size: 15px;
}

.camera-buttons .camera-btn:first-child::before {
    content: "Escolher da galeria";
}

.camera-buttons .camera-btn:nth-child(2)::before {
    content: "Escolher da galeria";
}
#fileName {
    color: rgba(255,255,255,.65) !important;
}

.grid {
    display: grid;
    gap: 12px;
    padding-bottom: 22px;
}

.story-card {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 12px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
    padding: 10px;
}

.thumb {
    width: 86px;
    aspect-ratio: 9 / 16;
    background: #111;
    border-radius: 14px;
    overflow: hidden;
}

.thumb img,
.thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.story-info strong {
    font-size: 15px;
}

.story-info p {
    font-size: 13px;
}

.story-link {
    display: inline-block;
    font-size: 13px;
    color: #fff;
    opacity: .9;
}

.delete-btn {
    background: rgba(255,45,85,.16);
    border: 1px solid rgba(255,45,85,.35);
    color: #ff4d6d;
    padding: 11px;
    border-radius: 12px;
}

.error {
    background: #4b1111;
    color: #fff;
    padding: 10px;
    border-radius: 10px;
    margin: 12px 0;
}

@media (min-width: 601px) {
    body {
        align-items: flex-start;
    }

    .wrap {
        margin: 0 auto;
        box-shadow: 0 20px 60px rgba(0,0,0,.18);
    }
}

@media (max-width: 600px) {
    .wrap {
        width: 100vw;
        min-height: 100dvh;
    }
}
.menu-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 0;
    margin-right: 12px;
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,.22);
    font-size: 22px;
}

.top-header {
    gap: 10px;
}

.top-header > div {
    flex: 1;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(8px);
}

.sidebar {
    position: fixed;
    top: 0;
    left: calc(50% - min(50vw, calc(100dvh * 9 / 32), 215px));
    transform: none;
    z-index: 999;
    width: min(82vw, 320px);
    height: 100dvh;
    background: #0b0b0f;
    border-right: 1px solid rgba(255,255,255,.12);
    box-shadow: 20px 0 60px rgba(0,0,0,.35);
    padding: 24px;
}

.sidebar h2 {
    margin-bottom: 22px;
}

.sidebar a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
    font-weight: 700;
}

.close-sidebar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 0;
    margin-bottom: 18px;
}
.upload-progress-box {
    margin-top: 12px;
}

.upload-progress-text {
    font-size: 13px;
    color: rgba(255,255,255,.75);
    margin-bottom: 8px;
}

.upload-progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,.12);
    border-radius: 999px;
    overflow: hidden;
}

.upload-progress-bar span {
    display: block;
    width: 0%;
    height: 100%;
    background: #fff;
    border-radius: 999px;
}

.quick-push-grid {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.quick-push-card {
    background: linear-gradient(
        180deg,
        rgba(255,255,255,.08),
        rgba(255,255,255,.04)
    );
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
    padding: 16px;
}

.quick-push-card strong {
    display: block;
    color: #fff;
    font-size: 15px;
    margin-bottom: 6px;
}

.quick-push-card p {
    color: rgba(255,255,255,.65);
    font-size: 13px;
    margin: 0 0 14px;
}

.quick-push-actions {
    display: flex;
    gap: 10px;
}

.quick-push-actions .publish-btn,
.quick-push-actions .edit-btn {
    flex: 1;
    border: 0;
    border-radius: 999px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.quick-push-actions .publish-btn {
    background: #fff;
    color: #111;
}

.quick-push-actions .edit-btn {
    background: rgba(255,255,255,.12);
    color: #fff;
}
@media (max-width: 600px) {
    input,
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* Admin chat page */
html {
    height: 100%;
    overflow: hidden;
}

html,
body.admin-chat-page,
body.admin-chat-page * {
    box-sizing: border-box;
}

body.admin-chat-page {
    margin: 0;
    background: #fff;
    color: #111;
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

body.admin-chat-page .wrap.inbox-wrap {
    position: relative;
    width: min(calc(100vw - 24px), calc((100dvh - 24px) * 9 / 16), 430px);
    max-width: 430px;
    height: auto;
    min-height: 0;
    aspect-ratio: 9 / 16;
    margin: 0;
    padding: 14px;
    background: #fff;
    color: #111;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
}

.inbox-wrap .page {
    flex: 1;
    height: 100%;
    min-height: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    background: #fff;
    overflow: hidden;
}

.inbox-wrap .sidebar {
    position: static;
    width: auto;
    height: 100%;
    min-height: 0;
    padding: 0;
    background: #fff;
    border: 0;
    box-shadow: none;
    color: #111;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.inbox-wrap .side-head {
    flex: 0 0 auto;
    padding: 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.admin-chat-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.admin-home-button {
    position: relative;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border: 1px solid #dedee6;
    border-radius: 50%;
    background: #f0f0f3;
    color: #111;
    cursor: pointer;
}

.admin-home-button::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 10px;
    width: 10px;
    height: 10px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.admin-chat-brand-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f3;
    border: 1px solid #e7e7ec;
}

.admin-chat-brand-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.inbox-wrap .side-head h2 {
    margin: 0;
    color: #111;
    font-size: 20px;
    line-height: 1.05;
}

.inbox-wrap .side-head p {
    margin-top: 4px;
    color: #666;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-wrap {
    flex: 0 0 auto;
    margin: 0 0 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid #e7e7ec;
    border-radius: 14px;
    box-shadow: none;
}

.search-wrap label {
    display: block;
    margin-bottom: 6px;
    color: #555;
    font-size: 12px;
    font-weight: 700;
}

.search-wrap input {
    width: 100%;
    border: 1px solid #dedee6;
    outline: 0;
    border-radius: 14px;
    padding: 12px;
    background: #f3f3f6;
    color: #111;
    font-size: 15px;
}

.search-wrap input::placeholder {
    color: #8a8a95;
}

.filters {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0 0 10px;
    padding: 0;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}

.filters::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
    border: 1px solid #dedee6;
    background: #fff;
    color: #111;
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,.04);
    scroll-snap-align: start;
}

.filter-btn.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.menu-trigger::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.filter-menu {
    position: relative;
    flex: 0 0 auto;
}

.filter-options {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: max-content;
    min-width: 178px;
    max-width: min(320px, calc(100vw - 24px));
    max-height: 280px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid #e7e7ec;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(0,0,0,.12);
}

.filter-options.hidden,
.admin-chat-page .filter-options.hidden,
.admin-chat-page .hidden.filter-options {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.filter-options button {
    width: 100%;
    display: block;
    border: 0;
    border-radius: 10px;
    padding: 10px 11px;
    background: transparent;
    color: #111;
    font-size: 13px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.filter-options button:hover,
.filter-options button.active {
    background: #f0f0f3;
}

.conversation-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 0 18px;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.conv {
    position: relative;
    width: 100%;
    display: block;
    margin-bottom: 10px;
    padding: 13px;
    text-align: left;
    color: #111;
    background: #fff;
    border: 1px solid #e7e7ec;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: none;
}

.conv.is-pinned {
    background: linear-gradient(180deg, #fffdf5 0%, #fff 100%);
    border-color: #f0d98a;
    box-shadow: 0 10px 28px rgba(194, 147, 24, .14);
    padding-bottom: 28px;
}

.conv.is-pinned::before {
    content: "Fixado";
    position: absolute;
    right: 10px;
    bottom: 9px;
    padding: 4px 7px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .02em;
}

.conv.is-pinned .conv-name::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
    background: #d6a919;
    box-shadow: 0 0 0 3px rgba(214,169,25,.16);
    vertical-align: 1px;
}

.conv-layout {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.conv-body {
    flex: 1;
    min-width: 0;
}

.admin-member-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 50%;
}

.admin-member-avatar-crop,
.admin-member-avatar-frame {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.admin-member-avatar-crop {
    inset: 4%;
    z-index: 1;
    overflow: hidden;
    background: transparent;
}

.admin-member-avatar-crop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.08);
}

.admin-member-avatar-frame {
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,.18));
}

.conv-avatar {
    margin-top: 1px;
}

.conv:hover,
.conv.active {
    background: #f7f7fa;
}

.conv-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.conv-name-row {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    overflow: hidden;
}

.conv-name {
    color: #111;
    font-weight: 800;
    flex: 0 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conv-level {
    color: #777;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: -2px 0 5px;
}

.unread-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #1877f2;
    box-shadow: 0 0 0 3px rgba(24,119,242,.12);
}

.conv-time {
    color: #666;
    font-size: 11px;
    flex: 0 0 auto;
}

.conv-msg {
    color: #666;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge {
    display: none !important;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 12px;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    margin-left: auto;
}

.badge.hidden,
.typing-indicator.hidden,
.list-empty.hidden {
    display: none !important;
}

.list-empty {
    padding: 28px 18px;
    color: #777;
    text-align: center;
    font-size: 13px;
}

.chat-area {
    min-width: 0;
    min-height: 0;
    background: #fff;
    color: #111;
    display: none;
    flex-direction: column;
}

body.chat-open .inbox-wrap .sidebar {
    display: none;
}

body.chat-open .inbox-wrap .chat-area {
    display: flex;
}

.chat-top {
    flex: 0 0 auto;
    min-height: 66px;
    margin: 0 0 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e7e7ec;
    border-radius: 14px;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    overflow: hidden;
}

.chat-top-avatar {
    width: 44px;
    height: 44px;
    cursor: pointer;
}

.chat-user {
    flex: 1;
    min-width: 0;
}

.chat-user strong {
    display: block;
    color: #111;
    font-size: 17px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.chat-user span,
.chat-status {
    color: #666;
    font-size: 13px;
    flex: 0 0 auto;
}

.chat-user span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-status {
    display: none;
}

.chat-home-button {
    width: 38px;
    height: 38px;
}

.chat-home-button::before {
    left: 14px;
    top: 11px;
}

.typing-indicator {
    display: block;
    margin-top: 3px;
    color: #0a8f4d !important;
    font-size: 12px;
}

.messages {
    flex: 1;
    min-height: 0;
    padding: 0 0 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
}

.follower-profile {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 2px 0 12px;
    color: #111;
}

.follower-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.follower-summary div {
    padding: 12px;
    border: 1px solid #e7e7ec;
    border-radius: 14px;
    background: #f7f7fa;
}

.follower-summary span {
    display: block;
    color: #666;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 5px;
}

.follower-summary strong {
    color: #111;
    font-size: 14px;
}

.follower-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.follower-stats div {
    padding: 14px;
    border: 1px solid #e7e7ec;
    border-radius: 14px;
    background: #fff;
}

.follower-stats strong {
    display: block;
    color: #111;
    font-size: 24px;
    line-height: 1;
    margin-bottom: 5px;
}

.follower-stats span {
    color: #666;
    font-size: 12px;
    font-weight: 800;
}

.follower-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.follower-action,
.follower-back-chat,
.follower-ban-btn,
.follower-confirm button {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
}

.follower-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #fff;
}

.follower-action.is-disabled {
    opacity: .45;
    cursor: not-allowed;
}

.follower-action-light {
    border: 1px solid #dedee6;
    background: #f0f0f3;
    color: #111;
}

.follower-action-light.is-active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.follower-note {
    display: block;
    margin-bottom: 8px;
}

.follower-note span {
    display: block;
    margin-bottom: 7px;
    color: #555;
    font-size: 12px;
    font-weight: 800;
}

.follower-note textarea {
    width: 100%;
    resize: vertical;
    min-height: 92px;
    border: 1px solid #dedee6;
    border-radius: 14px;
    padding: 12px;
    background: #f7f7fa;
    color: #111;
    font: inherit;
    font-size: 14px;
    outline: 0;
}

.follower-save-note {
    width: 100%;
    min-height: 42px;
    margin-bottom: 6px;
    border: 0;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.follower-note-status {
    min-height: 18px;
    margin-bottom: 10px;
    color: #666;
    font-size: 12px;
    font-weight: 800;
}

.follower-timeline {
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid #e7e7ec;
    border-radius: 16px;
    background: #fff;
}

.follower-timeline > strong {
    display: block;
    margin-bottom: 10px;
    color: #111;
    font-size: 14px;
}

.timeline-row {
    position: relative;
    padding: 0 0 10px 18px;
    color: #555;
    font-size: 13px;
    line-height: 1.3;
}

.timeline-row::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #111;
}

.timeline-row:last-child {
    padding-bottom: 0;
}

.follower-back-chat {
    margin-bottom: 10px;
    background: #f0f0f3;
    color: #111;
}

.follower-ban-btn {
    background: #fff1f4;
    color: #d9284f;
    border: 1px solid #ffd0da;
}

.follower-confirm {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #ffd0da;
    border-radius: 16px;
    background: #fff7f9;
}

.follower-confirm strong {
    display: block;
    color: #111;
    font-size: 15px;
    margin-bottom: 6px;
}

.follower-confirm p {
    margin: 0 0 12px;
    color: #666;
    font-size: 13px;
    line-height: 1.35;
}

.follower-confirm div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.confirm-danger {
    background: #d9284f;
    color: #fff;
}

.confirm-cancel {
    background: #f0f0f3;
    color: #111;
}

.chat-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #666;
    padding: 30px;
}

.system-row {
    align-self: center;
    max-width: 520px;
    margin: 12px auto;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f3f3f6;
    color: #666;
    font-size: 13px;
    text-align: center;
}

.msg {
    max-width: 82%;
    padding: 12px 14px;
    border-radius: 18px;
    line-height: 1.4;
    font-size: 14px;
    border: 1px solid #e1e1e7;
}

.msg.user {
    align-self: flex-start;
    background: #f1f1f5;
    color: #111;
}

.msg.admin {
    align-self: flex-end;
    background: #111;
    color: #fff;
    border-color: #111;
}

.msg-time {
    margin-top: 6px;
    font-size: 11px;
    opacity: .55;
    text-align: right;
}

.msg.user .msg-time {
    text-align: left;
}

.reply-form {
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 8px;
    background: #fff;
    border: 1px solid #e7e7ec;
    border-radius: 999px;
    box-shadow: none;
    min-width: 0;
    overflow: hidden;
}

.reply-form input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    border-radius: 999px;
    padding: 13px 14px;
    background: transparent;
    color: #111;
    font-size: 15px;
}

.reply-form input::placeholder {
    color: #8a8a95;
}

.reply-form button {
    width: auto;
    border: 0;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.reply-media-btn {
    position: relative;
    width: 44px !important;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    padding: 0;
    background: #f0f0f3 !important;
    color: #111 !important;
    flex: 0 0 auto;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

.reply-media-btn::before {
    content: "";
    position: absolute;
    inset: 11px;
    background: currentColor;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
}

.gallery-btn::before {
    mask-image: url("/assets/icons/chat-gallery.svg");
    -webkit-mask-image: url("/assets/icons/chat-gallery.svg");
}

.audio-btn::before {
    mask-image: url("/assets/icons/chat-mic.svg");
    -webkit-mask-image: url("/assets/icons/chat-mic.svg");
}

.reply-media-btn.recording {
    background-color: #ff2d55 !important;
    color: #fff !important;
}

.send-icon-btn {
    position: relative;
    width: 44px !important;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    flex: 0 0 auto;
    padding: 0 !important;
    border-radius: 50% !important;
    background: #111 !important;
    color: #fff !important;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

.send-icon-btn::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 11px;
    height: 11px;
    border-left: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: translate(-50%, -35%) rotate(45deg);
}

.send-icon-btn::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2px;
    height: 16px;
    border-radius: 999px;
    background: currentColor;
    transform: translate(-50%, -35%);
}

.reply-form.is-sending button[type="submit"] {
    opacity: .65;
    cursor: wait;
}

.reply-form.is-disabled {
    opacity: .55;
}

.reply-form.is-disabled input,
.reply-form.is-disabled button {
    cursor: not-allowed;
}

.story-ref {
    margin-bottom: 8px;
    padding: 8px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e2e2e8;
    display: flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;
}

.msg.admin .story-ref {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.2);
}

.story-ref-thumb {
    width: 38px;
    height: 52px;
    border-radius: 9px;
    overflow: hidden;
    background: #ddd;
    flex: 0 0 auto;
}

.story-ref-thumb img,
.story-ref-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-ref-text {
    min-width: 0;
}

.story-ref-text strong {
    display: block;
    font-size: 12px;
}

.story-ref-text span {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-chat-image,
.admin-chat-video {
    width: 240px;
    max-width: 100%;
    border-radius: 16px;
    display: block;
    background: #000;
}

.admin-chat-audio {
    width: 240px;
    max-width: 100%;
    display: block;
}

.chat-link-preview {
    display: block;
    margin-top: 10px;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e2e2e8;
    cursor: pointer;
}

.msg.admin .chat-link-preview {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.2);
}

.chat-link-image-wrap,
.chat-link-image.skeleton {
    width: 100%;
    height: 150px;
    background: #eee;
    overflow: hidden;
}

.chat-link-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.chat-link-content {
    padding: 12px;
}

.chat-link-title {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    color: inherit;
    margin-bottom: 5px;
}

.chat-link-domain {
    font-size: 12px;
    font-weight: 700;
    opacity: .65;
}

@media (min-width: 601px) {
    body.admin-chat-page .wrap.inbox-wrap {
        border-radius: 18px;
    }
}

@media (max-width: 600px) {
    body.admin-chat-page {
        background: #fff;
        padding: 0;
    }

    body.admin-chat-page .wrap.inbox-wrap {
        width: 100vw;
        max-width: none;
        height: 100dvh;
        min-height: 0;
        aspect-ratio: auto;
        border-radius: 0;
        box-shadow: none;
    }
}

/* Shared admin pages: dashboard, notifications, profile */
body.admin-panel-page {
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% -10%, rgba(168,255,96,.12), transparent 32%),
        #f4f4f2;
    color: #111;
}

body.admin-panel-page .wrap.admin-frame {
    position: relative;
    width: min(calc(100vw - 24px), calc((100dvh - 24px) * 9 / 16), 430px);
    max-width: 430px;
    height: auto;
    min-height: 0;
    aspect-ratio: 9 / 16;
    margin: 0;
    padding: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,248,246,.98)),
        #fff;
    color: #111;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
}

.admin-skeleton-loader {
    position: absolute;
    inset: 0;
    z-index: 120;
    display: grid;
    gap: 12px;
    align-content: start;
    padding: calc(18px + env(safe-area-inset-top)) 16px 16px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,248,246,.94)),
        #fff;
    transition: opacity .22s ease, visibility .22s ease;
}

body.admin-ready .admin-skeleton-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.admin-skeleton-head,
.admin-skeleton-line,
.admin-skeleton-card,
.admin-skeleton-pill {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #ececf0;
}

.admin-skeleton-head {
    width: 72%;
    height: 48px;
    border-radius: 24px;
}

.admin-skeleton-line {
    width: 46%;
    height: 14px;
    border-radius: 999px;
}

.admin-skeleton-card {
    height: 132px;
}

.admin-skeleton-pill {
    width: 100%;
    height: 54px;
    border-radius: 999px;
}

.admin-skeleton-loader *::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.62), transparent);
    transform: translateX(-100%);
    animation: admin-skeleton-shimmer 1.15s ease-in-out infinite;
}

@keyframes admin-skeleton-shimmer {
    to {
        transform: translateX(100%);
    }
}

.admin-scroll {
    height: 100%;
    overflow-y: auto;
    padding: calc(16px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom));
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,.18) transparent;
}

body.admin-panel-page .top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

body.admin-panel-page .top-header > .admin-brand-avatar {
    order: 0;
}

body.admin-panel-page .top-header > div {
    order: 1;
    flex: 1;
    min-width: 0;
}

body.admin-panel-page .top-header > .menu-btn {
    order: 2;
}

.admin-title-lockup {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.admin-brand-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid #e7e7ec;
    background: #f0f0f3;
}

.admin-brand-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.admin-panel-page h1,
body.admin-panel-page h2,
body.admin-panel-page p {
    margin: 0;
}

body.admin-panel-page h1 {
    color: #111;
    font-size: 22px;
    line-height: 1.05;
}

body.admin-panel-page h2 {
    color: #111;
    font-size: 17px;
    line-height: 1.15;
}

body.admin-panel-page p,
.admin-muted {
    color: #666;
    font-size: 13px;
    line-height: 1.35;
}

.admin-kicker {
    display: block;
    margin-top: 4px;
    color: #666;
    font-size: 12px;
    font-weight: 700;
}

body.admin-panel-page .menu-btn,
body.admin-panel-page .close-sidebar {
    position: relative;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border: 1px solid #dedee6;
    border-radius: 50%;
    background: #f0f0f3;
    color: #111;
    font-size: 0;
    cursor: pointer;
}

body.admin-panel-page .menu-btn::before,
body.admin-panel-page .close-sidebar::before,
.admin-icon::before {
    content: "";
    position: absolute;
    inset: 11px;
    background: currentColor;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
}

body.admin-panel-page .menu-btn::before {
    mask-image: url("/assets/icons/admin-menu.svg");
    -webkit-mask-image: url("/assets/icons/admin-menu.svg");
}

body.admin-panel-page .close-sidebar::before {
    inset: 13px;
    mask-image: url("/assets/icons/admin-logout.svg");
    -webkit-mask-image: url("/assets/icons/admin-logout.svg");
    transform: rotate(180deg);
}

body.admin-panel-page .card,
body.admin-panel-page .story-card,
body.admin-panel-page .quick-push-card {
    margin: 0 0 12px;
    padding: 14px;
    border: 1px solid #e7e7ec;
    border-radius: 16px;
    background: #fff;
    color: #111;
    box-shadow: 0 8px 24px rgba(0,0,0,.05);
    backdrop-filter: none;
}

body.admin-panel-page .card,
.dashboard-score-card,
.dashboard-metric-grid article,
.dashboard-story-row,
.past-story-card,
.feed-admin-take,
body.take-upload-body .take-info-grid article,
body.take-upload-body .take-upload-card,
body.take-upload-body .take-notify-card {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.admin-panel-page .card:active,
.dashboard-story-row:active,
.past-story-card:active,
.feed-admin-take:active {
    transform: scale(.992);
}

body.admin-panel-page .upload-form {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.take-upload-page {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: calc(18px + env(safe-area-inset-top)) 14px 44px;
}

.take-upload-hero {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: start;
    margin-bottom: 16px;
}

.take-upload-hero > a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e7e7ec;
    position: relative;
}

.take-upload-hero > a::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 14px;
    width: 10px;
    height: 10px;
    border-left: 2px solid #111;
    border-bottom: 2px solid #111;
    transform: rotate(45deg);
}

.take-upload-hero p {
    margin: 0 0 5px;
    color: #666;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.take-upload-hero h1 {
    margin: 0 0 8px;
    color: #111;
    font-size: 36px;
    line-height: 1;
}

.take-upload-hero span {
    display: block;
    color: #666;
    line-height: 1.45;
}

.take-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.take-info-grid article,
.take-upload-card {
    border: 1px solid #e7e7ec;
    border-radius: 16px;
    background: #fff;
}

.take-info-grid article {
    padding: 14px;
}

.take-info-grid strong,
.take-info-grid span {
    display: block;
}

.take-info-grid strong {
    margin-bottom: 5px;
    color: #111;
}

.take-info-grid span {
    color: #666;
    font-size: 12px;
    line-height: 1.35;
}

.take-upload-card {
    padding: 16px;
}

.take-upload-card form,
.take-upload-card label {
    display: grid;
    gap: 8px;
}

.take-upload-card form {
    gap: 12px;
}

.take-upload-card label span,
.take-toggle em {
    color: #666;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.take-upload-card input[type="url"],
.take-upload-card input[type="text"] {
    min-height: 46px;
    border: 1px solid #dedee6;
    border-radius: 13px;
    background: #f8f8fb;
    color: #111;
    padding: 0 12px;
    font: 800 14px/1 Inter, Arial, sans-serif;
    outline: 0;
}

.take-toggle {
    grid-template-columns: auto 1fr;
    align-items: start;
    padding: 12px;
    border-radius: 14px;
    background: #f8f8fb;
}

.take-toggle input {
    margin-top: 3px;
}

.take-toggle strong {
    display: block;
    margin-bottom: 3px;
    color: #111;
}

#chooseTakeFile {
    min-height: 50px;
    border: 0;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font: 900 14px/1 Inter, Arial, sans-serif;
    cursor: pointer;
}

.take-upload-status {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding: 14px;
    border-radius: 16px;
    background: #f8f8fb;
    border: 1px solid #e7e7ec;
}

.take-upload-status.hidden {
    display: none;
}

.take-status-head strong,
.take-status-head span,
.take-upload-status p {
    display: block;
}

.take-status-head strong {
    margin-bottom: 4px;
    color: #111;
}

.take-status-head span,
.take-upload-status p {
    margin: 0;
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

.take-status-bar {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e2e8;
}

.take-status-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #111, #8dff4f);
    transition: width .2s ease;
}

.take-upload-status.is-error {
    border-color: rgba(255,76,76,.26);
    background: rgba(255,76,76,.08);
}

.take-upload-status.is-error .take-status-bar span {
    background: #ff4c4c;
}

.take-upload-status.is-success {
    border-color: rgba(116,220,76,.36);
    background: rgba(116,220,76,.1);
}

@media (max-width: 640px) {
    .take-info-grid {
        grid-template-columns: 1fr;
    }
}

body.admin-panel-page input,
body.admin-panel-page textarea,
body.admin-panel-page button {
    width: 100%;
    border: 1px solid #dedee6;
    border-radius: 14px;
    padding: 13px 14px;
    background: #f7f7fa;
    color: #111;
    font: inherit;
    font-size: 15px;
}

body.admin-panel-page textarea {
    min-height: 112px;
    resize: vertical;
}

body.admin-panel-page input::placeholder,
body.admin-panel-page textarea::placeholder {
    color: #8a8a95;
}

body.admin-panel-page button,
body.admin-panel-page .publish-btn,
body.admin-panel-page .edit-btn {
    font-weight: 900;
    cursor: pointer;
}

body.admin-panel-page .publish-btn,
body.admin-panel-page .upload-form button[type="submit"] {
    border-color: #111;
    border-radius: 999px;
    background: #111;
    color: #fff;
}

.admin-action-row,
.camera-buttons,
.quick-push-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

body.admin-panel-page .camera-btn,
body.admin-panel-page .delete-btn,
body.admin-panel-page .edit-btn {
    position: relative;
    min-height: 44px;
    border-radius: 999px;
    text-align: center;
}

body.admin-panel-page .camera-btn {
    padding-left: 42px;
    background: #f0f0f3;
    color: #111;
}

body.admin-panel-page .camera-btn::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    width: 18px;
    height: 18px;
    background: currentColor;
    transform: translateY(-50%);
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
}

body.admin-panel-page .camera-buttons .camera-btn:first-child::before {
    content: "";
    mask-image: url("/assets/icons/admin-camera.svg");
    -webkit-mask-image: url("/assets/icons/admin-camera.svg");
}

body.admin-panel-page .camera-buttons .camera-btn:nth-child(2)::before {
    content: "";
    mask-image: url("/assets/icons/admin-gallery.svg");
    -webkit-mask-image: url("/assets/icons/admin-gallery.svg");
}

body.admin-panel-page .camera-buttons .camera-btn {
    font-size: 14px;
}

body.admin-panel-page .camera-buttons .camera-btn:first-child::after,
body.admin-panel-page .camera-buttons .camera-btn:nth-child(2)::after {
    content: none;
}

.admin-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.admin-stat {
    padding: 12px;
    border: 1px solid #e7e7ec;
    border-radius: 14px;
    background: #f7f7fa;
}

.admin-stat strong {
    display: block;
    color: #111;
    font-size: 22px;
    line-height: 1;
}

.admin-stat span {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
    font-weight: 800;
}

body.admin-panel-page .grid {
    display: grid;
    gap: 10px;
    padding-bottom: 8px;
}

body.admin-panel-page .story-card {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 12px;
}

body.admin-panel-page .thumb {
    width: 78px;
    aspect-ratio: 9 / 16;
    border-radius: 14px;
    background: #f0f0f3;
    overflow: hidden;
}

body.admin-panel-page .story-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.admin-panel-page .story-info strong {
    color: #111;
    font-size: 14px;
}

.story-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.story-metrics span {
    padding: 5px 8px;
    border-radius: 999px;
    background: #f0f0f3;
    color: #333;
    font-size: 11px;
    font-weight: 800;
}

body.admin-panel-page .delete-btn {
    border-color: #ffd0da;
    background: #fff1f4;
    color: #d9284f;
    padding-left: 38px;
}

body.admin-panel-page .delete-btn::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    width: 16px;
    height: 16px;
    background: currentColor;
    transform: translateY(-50%);
    mask: url("/assets/icons/admin-trash.svg") center / contain no-repeat;
    -webkit-mask: url("/assets/icons/admin-trash.svg") center / contain no-repeat;
}

.admin-notice {
    margin-top: 12px;
    padding: 11px 12px;
    border-radius: 14px;
    background: #f0f0f3;
    color: #333;
    font-size: 13px;
    font-weight: 800;
}

body.admin-panel-page .quick-push-grid {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

body.admin-panel-page .quick-push-card strong {
    color: #111;
}

body.admin-panel-page .quick-push-card p {
    color: #666;
    margin: 5px 0 12px;
}

body.admin-panel-page .quick-push-actions .publish-btn,
body.admin-panel-page .quick-push-actions .edit-btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    text-decoration: none;
}

body.admin-panel-page .quick-push-actions .edit-btn {
    border: 1px solid #dedee6;
    background: #f0f0f3;
    color: #111;
}

.admin-avatar-preview {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 1px solid #e7e7ec;
    background: #f0f0f3;
    object-fit: cover;
    display: block;
    box-shadow: 0 12px 28px rgba(0,0,0,.10);
}

.admin-profile-hero {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid #e7e7ec;
    border-radius: 18px;
    background:
        radial-gradient(circle at 12% 10%, rgba(0,0,0,.08), transparent 28%),
        linear-gradient(180deg, #fff 0%, #f7f7fa 100%);
    box-shadow: 0 10px 28px rgba(0,0,0,.06);
}

.admin-profile-avatar-xl {
    width: 92px;
    height: 92px;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid #e7e7ec;
    background: #f0f0f3;
    box-shadow: 0 14px 30px rgba(0,0,0,.12);
}

.admin-profile-avatar-xl img,
.admin-preview-avatar img,
.admin-app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.admin-profile-hero span {
    display: block;
    margin-bottom: 5px;
    color: #777;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.admin-profile-hero h2 {
    margin-bottom: 6px;
    font-size: 23px;
}

.admin-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.admin-card-head p {
    margin-top: 5px;
}

.admin-pill-link,
.admin-view-public {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.admin-preview-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e7e7ec;
    border-radius: 16px;
    background: #f7f7fa;
}

.admin-preview-avatar {
    width: 58px;
    height: 58px;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid #dedee6;
    background: #fff;
    flex: 0 0 auto;
}

.admin-preview-card strong,
.admin-avatar-editor strong,
.admin-icon-preview-row strong {
    display: block;
    color: #111;
    font-size: 15px;
}

.admin-preview-card span,
.admin-avatar-editor span,
.admin-icon-preview-row span,
.admin-preview-card small {
    display: block;
    margin-top: 3px;
    color: #666;
    font-size: 12px;
    line-height: 1.3;
}

.admin-avatar-editor,
.admin-icon-preview-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.admin-avatar-editor .admin-avatar-preview {
    width: 82px;
    height: 82px;
    flex: 0 0 auto;
}

.admin-file-picker {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px dashed #cfcfd8;
    border-radius: 14px;
    background: #f7f7fa;
    color: #111;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.admin-file-picker input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.admin-app-icon {
    width: 54px;
    height: 54px;
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid #e7e7ec;
    background: #f0f0f3;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    flex: 0 0 auto;
}

.admin-app-icon-lg {
    width: 66px;
    height: 66px;
    border-radius: 18px;
}

.admin-data-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.admin-data-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border: 1px solid #e7e7ec;
    border-radius: 14px;
    background: #f7f7fa;
}

.admin-data-list span {
    color: #666;
    font-size: 12px;
    font-weight: 900;
}

.admin-data-list strong {
    min-width: 0;
    color: #111;
    font-size: 13px;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-view-public {
    width: 100%;
    margin: 0 0 8px;
}

.dashboard-score-card {
    margin-bottom: 12px;
    padding: 16px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 15% 0, rgba(255,255,255,.18), transparent 30%),
        linear-gradient(180deg, #1d1d22 0%, #070709 100%);
    color: #fff;
    box-shadow: 0 14px 32px rgba(0,0,0,.16);
}

.dashboard-score-card span {
    display: block;
    color: rgba(255,255,255,.6);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.dashboard-score-card strong {
    display: block;
    margin-top: 7px;
    font-size: 23px;
    line-height: 1.05;
}

.dashboard-score-card p {
    margin-top: 8px;
    color: rgba(255,255,255,.72);
}

.dashboard-metric-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.dashboard-metric-grid article {
    min-height: 94px;
    padding: 13px;
    border: 1px solid #e7e7ec;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.05);
}

.dashboard-metric-grid article.wide {
    grid-column: 1 / -1;
}

.dashboard-metric-grid span,
.dashboard-mini-grid span {
    display: block;
    color: #666;
    font-size: 12px;
    font-weight: 900;
}

.dashboard-metric-grid strong {
    display: block;
    margin-top: 9px;
    color: #111;
    font-size: 28px;
    line-height: 1;
}

.dashboard-metric-grid small {
    display: block;
    margin-top: 5px;
    color: #777;
    font-size: 11px;
    font-weight: 800;
}

.dashboard-alerts {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.dashboard-alert {
    padding: 11px 12px;
    border-radius: 14px;
    border: 1px solid #e7e7ec;
    background: #f7f7fa;
    color: #333;
    font-size: 13px;
    font-weight: 900;
}

.dashboard-alert.is-warn {
    border-color: #ffd0da;
    background: #fff1f4;
    color: #d9284f;
}

.dashboard-alert.is-good {
    border-color: #cfeedd;
    background: #effaf4;
    color: #147a42;
}

.dashboard-alert.is-info {
    border-color: #d7e5ff;
    background: #f1f6ff;
    color: #2459a8;
}

.dashboard-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.dashboard-mini-grid div {
    padding: 12px;
    border-radius: 14px;
    background: #f7f7fa;
    border: 1px solid #e7e7ec;
}

.dashboard-mini-grid strong {
    display: block;
    color: #111;
    font-size: 21px;
    line-height: 1;
    margin-bottom: 6px;
}

.dashboard-tabs {
    display: flex;
    gap: 7px;
    margin: 12px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.dashboard-tabs::-webkit-scrollbar {
    display: none;
}

.dashboard-tabs button {
    flex: 0 0 auto;
    width: auto;
    padding: 9px 11px;
    border-radius: 999px;
    border: 1px solid #dedee6;
    background: #fff;
    color: #111;
    font-size: 12px;
    font-weight: 900;
}

.dashboard-tabs button.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.dashboard-rank-list {
    display: grid;
    gap: 8px;
}

.dashboard-rank-row {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 9px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: #f7f7fa;
    border: 1px solid #e7e7ec;
}

.dashboard-rank-row span {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.dashboard-rank-row strong {
    min-width: 0;
    overflow: hidden;
    color: #111;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-rank-row em {
    color: #666;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.dashboard-story-list {
    display: grid;
    gap: 10px;
}

.dashboard-story-upload-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.dashboard-story-upload-actions span {
    max-width: 260px;
    color: #666;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.dashboard-story-upload-actions button,
.dashboard-story-upload-actions a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dedee6;
    border-radius: 999px;
    background: #111;
    color: #fff;
    padding: 0 14px;
    font: 900 12px/1 Inter, Arial, sans-serif;
    cursor: pointer;
    text-decoration: none;
}

.dashboard-story-upload-card {
    display: grid;
    gap: 10px;
    margin: 12px 0;
    padding: 14px;
    border: 1px solid #e5e5eb;
    border-radius: 16px;
    background: #f8f8fb;
}

.dashboard-story-upload-card.hidden {
    display: none;
}

.dashboard-story-upload-card strong,
.dashboard-story-upload-card span {
    display: block;
}

.dashboard-story-upload-card strong {
    margin-bottom: 4px;
    color: #111;
    font-size: 14px;
}

.dashboard-story-upload-card span {
    color: #666;
    font-size: 12px;
    line-height: 1.35;
}

.dashboard-story-upload-bar {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e2e8;
}

.dashboard-story-upload-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #111, #8dff4f);
    transition: width .2s ease;
}

.dashboard-story-upload-card.is-error {
    border-color: rgba(255, 76, 76, .24);
    background: rgba(255, 76, 76, .07);
}

.dashboard-story-upload-card.is-error .dashboard-story-upload-bar span {
    background: #ff4c4c;
}

.dashboard-story-upload-card.is-success {
    border-color: rgba(116, 220, 76, .36);
    background: rgba(116, 220, 76, .1);
}

.dashboard-story-upload-card.is-success .dashboard-story-upload-bar span {
    background: #6ee23f;
}

.dashboard-story-row {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding: 10px;
    border: 1px solid #e7e7ec;
    border-radius: 16px;
    background: #fff;
}

.dashboard-story-body {
    min-width: 0;
}

.dashboard-story-row .thumb {
    width: 72px;
}

.dashboard-story-row strong {
    display: block;
    color: #111;
    font-size: 14px;
    line-height: 1.2;
}

.dashboard-story-row > div:last-child > span {
    display: block;
    margin: 5px 0 8px;
    color: #666;
    font-size: 12px;
    font-weight: 800;
}

.story-link-form {
    display: grid;
    gap: 8px;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #eeeeF3;
    border-radius: 14px;
    background: #fafafd;
}

.story-link-modal-btn {
    width: max-content;
    max-width: 100%;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #dedee6;
    border-radius: 999px;
    background: #f8f8fb;
    color: #111;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.story-link-modal-box {
    width: min(360px, 100%);
    display: grid;
    gap: 11px;
    padding: 18px;
    border: 1px solid #e7e7ec;
    border-radius: 18px;
    background: #fff;
    color: #111;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
}

.story-link-modal-box h2,
.story-link-modal-box p {
    margin: 0;
}

.story-link-modal-box p,
.story-link-modal-box small {
    color: #666;
    font-size: 12px;
    line-height: 1.35;
}

.story-link-modal-box label {
    display: grid;
    gap: 6px;
}

.story-link-modal-box label span {
    color: #666;
    font-size: 12px;
    font-weight: 900;
}

.story-link-modal-box input {
    min-height: 42px;
    border: 1px solid #dedee6;
    border-radius: 12px;
    background: #f8f8fb;
    color: #111;
    padding: 0 12px;
    font: 800 13px/1 Inter, Arial, sans-serif;
}

.story-link-fields {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(90px, .6fr);
    gap: 8px;
}

.story-link-fields label {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.story-link-fields span {
    color: #666;
    font-size: 11px;
    font-weight: 900;
}

.story-link-fields input {
    width: 100%;
    min-height: 38px;
    border: 1px solid #dedee6;
    border-radius: 11px;
    background: #fff;
    color: #111;
    padding: 0 10px;
    font: 800 12px/1 Inter, Arial, sans-serif;
    outline: 0;
}

.story-link-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.story-link-actions button {
    min-height: 34px;
    border: 1px solid #dedee6;
    border-radius: 999px;
    background: #111;
    color: #fff;
    padding: 0 12px;
    font: 900 12px/1 Inter, Arial, sans-serif;
    cursor: pointer;
}

.story-link-actions button:disabled {
    cursor: wait;
    opacity: .65;
}

.story-link-actions .story-link-clear {
    background: #fff;
    color: #333;
}

.story-link-actions small {
    color: #666;
    font-size: 11px;
    font-weight: 800;
}

.delete-story-form {
    margin-top: 10px;
}

.delete-story-btn {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 76, 76, .22);
    border-radius: 999px;
    background: rgba(255, 76, 76, .08);
    color: #d71f1f;
    padding: 0 13px;
    font: 900 12px/1 Inter, Arial, sans-serif;
    cursor: pointer;
}

.delete-story-btn:hover {
    background: rgba(255, 76, 76, .14);
}

.delete-story-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(0, 0, 0, .48);
}

.delete-story-modal.hidden {
    display: none;
}

.delete-story-modal-box {
    width: min(360px, 100%);
    border-radius: 22px;
    background: #fff;
    padding: 22px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .32);
}

.delete-story-modal-box h2 {
    margin: 0 0 8px;
    color: #111;
    font-size: 22px;
}

.delete-story-modal-box p {
    margin: 0;
    color: #666;
    line-height: 1.45;
}

.delete-story-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.delete-story-modal-actions button {
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    font: 900 13px/1 Inter, Arial, sans-serif;
    cursor: pointer;
}

.delete-story-modal-actions button:disabled {
    cursor: wait;
    opacity: .7;
}

#cancelDeleteStory {
    background: #f0f0f3;
    color: #191919;
}

#confirmDeleteStory {
    background: #ff4c4c;
    color: #fff;
}

.dashboard-chart {
    height: 150px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    align-items: end;
    margin-top: 14px;
}

.dashboard-chart-day {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
}

.dashboard-bars {
    width: 100%;
    height: 118px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    padding: 8px 4px;
    border-radius: 12px;
    background: #f7f7fa;
    border: 1px solid #e7e7ec;
}

.dashboard-bars span {
    width: 5px;
    min-height: 4px;
    border-radius: 999px;
    background: #111;
}

.dashboard-bars span:nth-child(2) {
    background: #2459a8;
}

.dashboard-bars span:nth-child(3) {
    background: #d9284f;
}

.dashboard-bars span:nth-child(4) {
    background: #147a42;
}

.dashboard-chart-day small {
    color: #777;
    font-size: 10px;
    font-weight: 900;
}

.dashboard-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.dashboard-chart-legend span {
    color: #666;
    font-size: 11px;
    font-weight: 900;
}

.past-summary-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.past-summary-card > div {
    min-height: 92px;
    padding: 15px;
    border: 1px solid #e7e7ec;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

.past-summary-card span {
    display: block;
    color: #666;
    font-size: 12px;
    font-weight: 800;
}

.past-summary-card strong {
    display: block;
    margin-top: 8px;
    color: #111;
    font-size: 30px;
    line-height: 1;
}

.past-story-list {
    display: grid;
    gap: 12px;
}

.past-story-card {
    position: relative;
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px;
    padding: 10px;
    border: 1px solid #e7e7ec;
    border-radius: 18px;
    background: #fff;
}

.past-delete-story-form {
    position: absolute;
    z-index: 3;
    top: 8px;
    right: 8px;
    margin: 0;
}

.past-delete-story-btn {
    position: relative;
    width: 34px;
    height: 34px;
    min-height: 0;
    padding: 0;
    border: 1px solid rgba(255,45,85,.28);
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: #ff2d55;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0,0,0,.1);
}

.past-delete-story-btn::before {
    content: "";
    position: absolute;
    inset: 9px;
    background: currentColor;
    mask: url("/assets/icons/admin-trash.svg") center / contain no-repeat;
    -webkit-mask: url("/assets/icons/admin-trash.svg") center / contain no-repeat;
}

.past-story-media {
    width: 76px;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 14px;
    background: #111;
}

.past-story-media img,
.past-story-media video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.past-story-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.past-story-title strong {
    display: block;
    color: #111;
    font-size: 14px;
    line-height: 1.2;
}

.past-story-title span {
    display: block;
    margin-top: 4px;
    color: #777;
    font-size: 11px;
    line-height: 1.25;
}

.past-story-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.past-story-metrics span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    border-radius: 999px;
    background: #f4f4f6;
    color: #555;
    font-size: 11px;
    font-weight: 800;
}

.past-story-metrics strong {
    color: #111;
}

.past-story-link {
    align-self: flex-start;
    padding: 8px 11px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.followers-toolbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 12px;
}

.followers-total-card,
.followers-download {
    position: relative;
    border: 1px solid #e7e7ec;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

.followers-total-card {
    padding: 15px;
}

.followers-total-card span {
    display: block;
    color: #666;
    font-size: 12px;
    font-weight: 800;
}

.followers-total-card strong {
    display: block;
    margin-top: 6px;
    color: #111;
    font-size: 30px;
    line-height: 1;
}

.followers-download {
    display: flex;
    align-items: stretch;
}

.followers-download > button {
    width: auto;
    min-width: 116px;
    border: 0;
    border-radius: 18px;
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.followers-download-menu {
    position: absolute;
    z-index: 40;
    top: calc(100% + 8px);
    right: 0;
    width: 218px;
    padding: 8px;
    border: 1px solid #e7e7ec;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(0,0,0,.14);
}

.followers-download-menu a {
    display: block;
    padding: 11px 12px;
    border-radius: 12px;
    color: #111;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.followers-download-menu a:hover {
    background: #f4f4f6;
}

.followers-filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.followers-filter-row label {
    display: block;
}

.followers-filter-row span {
    display: block;
    margin: 0 0 6px;
    color: #666;
    font-size: 11px;
    font-weight: 900;
}

.followers-filter-row select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #e1e1e8;
    border-radius: 14px;
    background: #f7f7fa;
    color: #111;
    font-size: 13px;
    font-weight: 800;
}

.followers-list {
    display: grid;
    gap: 10px;
    padding-bottom: 6px;
}

.follower-card {
    display: flex;
    gap: 11px;
    padding: 12px;
    border: 1px solid #e7e7ec;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0,0,0,.045);
}

.follower-avatar {
    width: 50px;
    height: 50px;
}

.follower-main {
    flex: 1;
    min-width: 0;
}

.follower-main > strong {
    display: block;
    color: #111;
    font-size: 15px;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.follower-main > span {
    display: block;
    margin-top: 4px;
    color: #666;
    font-size: 12px;
    font-weight: 800;
}

.follower-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
    align-items: center;
}

.follower-card-actions a,
.follower-card-actions button,
.follower-detail-actions a {
    width: auto;
    min-height: 32px;
    padding: 8px 10px;
    border: 0;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.follower-card-actions a,
.follower-card-actions button {
    min-height: 26px;
    padding: 5px 7px;
    font-size: 10px;
    line-height: 1;
}

.follower-card-actions a:nth-child(1),
.follower-detail-actions a:nth-child(1) {
    background: #16a34a;
}

.follower-card-actions a:nth-child(2),
.follower-detail-actions a:nth-child(2) {
    background: #2459a8;
}

.follower-card-actions .is-disabled,
.follower-detail-actions .is-disabled {
    pointer-events: none;
    opacity: .42;
}

.follower-modal {
    position: fixed;
    z-index: 1200;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0,0,0,.26);
    backdrop-filter: blur(8px);
}

.follower-modal-box {
    position: relative;
    width: min(100%, 390px);
    max-height: min(88dvh, 680px);
    overflow-y: auto;
    padding: 16px;
    border-radius: 22px;
    background: #fff;
    color: #111;
    box-shadow: 0 24px 80px rgba(0,0,0,.2);
}

.follower-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #e1e1e8;
    border-radius: 50%;
    background: #f4f4f6;
}

.follower-modal-close::before,
.follower-modal-close::after {
    content: "";
    position: absolute;
    left: 11px;
    top: 17px;
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: #111;
}

.follower-modal-close::before {
    transform: rotate(45deg);
}

.follower-modal-close::after {
    transform: rotate(-45deg);
}

.follower-modal-head {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-right: 42px;
}

.follower-modal-avatar {
    width: 66px;
    height: 66px;
}

.follower-modal-head strong {
    display: block;
    color: #111;
    font-size: 20px;
    line-height: 1.1;
}

.follower-modal-head span {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
    font-weight: 800;
}

.follower-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
}

.follower-modal-grid div,
.follower-modal-info div {
    padding: 11px;
    border: 1px solid #e7e7ec;
    border-radius: 14px;
    background: #f8f8fa;
}

.follower-modal-grid span,
.follower-modal-info span {
    display: block;
    color: #777;
    font-size: 11px;
    font-weight: 900;
}

.follower-modal-grid strong,
.follower-modal-info strong {
    display: block;
    margin-top: 4px;
    color: #111;
    font-size: 14px;
    line-height: 1.25;
    word-break: break-word;
}

.follower-modal-info {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.follower-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.followers-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 12px 0 4px;
    padding: 10px;
    border: 1px solid #e7e7ec;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0,0,0,.045);
}

.followers-pagination button {
    width: auto;
    min-height: 34px;
    padding: 8px 12px;
    border: 0;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.followers-pagination button:disabled {
    cursor: default;
    opacity: .38;
}

.followers-pagination span {
    color: #666;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}

body.admin-panel-page .sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(0,0,0,.18);
    backdrop-filter: blur(6px);
}

body.admin-panel-page .sidebar {
    position: fixed;
    z-index: 999;
    top: max(12px, calc((100dvh - min(calc(100vw - 24px), calc((100dvh - 24px) * 9 / 16), 430px) * 16 / 9) / 2));
    left: calc(50% - min(calc(100vw - 24px), calc((100dvh - 24px) * 9 / 16), 430px) / 2);
    width: min(82vw, 300px);
    height: min(calc(100dvh - 24px), 620px);
    padding: 18px;
    border: 1px solid #e7e7ec;
    border-radius: 18px;
    background: #fff;
    color: #111;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
}

body.admin-panel-page .sidebar h2 {
    margin: 0 0 14px;
}

body.admin-panel-page .sidebar a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0 0 36px;
    border-bottom: 1px solid #f0f0f3;
    color: #111;
    font-weight: 900;
    text-decoration: none;
}

body.admin-panel-page .sidebar a::before {
    content: "";
    position: absolute;
    left: 6px;
    width: 18px;
    height: 18px;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.nav-home::before {
    background-image: url("/assets/icons/admin-home.svg?v=2");
}

body.admin-panel-page .sidebar a[href="/"]::before {
    background-image: url("/assets/icons/admin-home.svg?v=2");
}

.nav-stories::before {
    background-image: url("/assets/icons/admin-stories.svg?v=2");
}

body.admin-panel-page .sidebar a[href="/admin/dashboard"]::before {
    background-image: url("/assets/icons/admin-stories.svg?v=2");
}

.nav-bell::before {
    background-image: url("/assets/icons/admin-bell.svg?v=2");
}

body.admin-panel-page .sidebar a[href="/admin/notificacoes"]::before {
    background-image: url("/assets/icons/admin-bell.svg?v=2");
}

.nav-followers::before {
    background-image: url("/assets/icons/admin-followers.svg?v=1");
}

body.admin-panel-page .sidebar a[href="/admin/seguidores"]::before {
    background-image: url("/assets/icons/admin-followers.svg?v=1");
}

.nav-past::before {
    background-image: url("/assets/icons/admin-past.svg?v=1");
}

body.admin-panel-page .sidebar a[href="/admin/passado"]::before {
    background-image: url("/assets/icons/admin-past.svg?v=1");
}

.nav-profile::before {
    background-image: url("/assets/icons/admin-user.svg?v=2");
}

body.admin-panel-page .sidebar a[href="/admin/perfil"]::before {
    background-image: url("/assets/icons/admin-user.svg?v=2");
}

.nav-logout::before {
    background-image: url("/assets/icons/admin-logout.svg?v=2");
}

body.admin-panel-page .sidebar a[href="/admin/logout"]::before {
    background-image: url("/assets/icons/admin-logout.svg?v=2");
}

@media (max-width: 600px) {
    body.admin-panel-page {
        align-items: stretch;
        justify-content: stretch;
    }

    body.admin-panel-page .wrap.admin-frame {
        width: 100vw;
        max-width: none;
        height: 100dvh;
        aspect-ratio: auto;
        border-radius: 0;
        box-shadow: none;
    }

    body.admin-panel-page .sidebar {
        top: 0;
        left: 0;
        height: 100dvh;
        border-radius: 0 18px 18px 0;
    }
}

.take-upload-body {
    min-height: 100dvh;
    background:
        radial-gradient(circle at 18% 0%, rgba(168, 255, 96, .16), transparent 34%),
        linear-gradient(180deg, #0b0d0b 0%, #050605 100%);
}

.take-upload-page {
    width: min(760px, calc(100% - 28px));
    min-height: 100dvh;
    margin: 0 auto;
    padding: max(22px, env(safe-area-inset-top)) 0 max(28px, env(safe-area-inset-bottom));
    color: #f7f8f4;
}

.take-upload-hero {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    margin-bottom: 14px;
}

.take-upload-hero > a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(247,248,244,.16);
    border-radius: 14px;
    background: rgba(255,255,255,.08);
    box-shadow: 0 14px 34px rgba(0,0,0,.28);
}

.take-upload-hero > a::before {
    content: "<";
    color: #fff;
    font-size: 22px;
    font-weight: 950;
    line-height: 1;
}

.take-upload-hero p {
    margin: 2px 0 7px;
    color: #a8ff60;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.take-upload-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 8vw, 58px);
    line-height: .96;
    letter-spacing: 0;
}

.take-upload-hero span {
    display: block;
    max-width: 560px;
    margin-top: 12px;
    color: rgba(247,248,244,.72);
    font-size: 15px;
    line-height: 1.45;
}

.take-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.take-info-grid article,
.take-upload-card,
.take-upload-status {
    border: 1px solid rgba(247,248,244,.12);
    border-radius: 18px;
    background: rgba(255,255,255,.06);
    box-shadow: 0 22px 56px rgba(0,0,0,.26);
}

.take-info-grid article {
    min-height: 118px;
    padding: 15px;
}

.take-info-grid strong {
    display: block;
    color: #fff;
    font-size: 17px;
    line-height: 1.1;
}

.take-info-grid span {
    display: block;
    margin-top: 8px;
    color: rgba(247,248,244,.66);
    font-size: 13px;
    line-height: 1.35;
}

.take-upload-card {
    padding: 18px;
    background:
        linear-gradient(145deg, rgba(168,255,96,.08), transparent 48%),
        rgba(255,255,255,.055);
}

.take-upload-card form {
    display: grid;
    gap: 13px;
}

.take-upload-card label {
    display: grid;
    gap: 7px;
}

.take-upload-card label > span:first-child {
    color: rgba(247,248,244,.82);
    font-size: 13px;
    font-weight: 900;
}

.take-upload-card input[type="url"],
.take-upload-card input[type="text"] {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(247,248,244,.15);
    border-radius: 14px;
    background: rgba(0,0,0,.18);
    color: #fff;
    padding: 0 14px;
    font: 800 15px Inter, Arial, sans-serif;
    outline: none;
}

.take-upload-card input::placeholder {
    color: rgba(247,248,244,.38);
}

.take-toggle {
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: start;
    padding: 13px;
    border: 1px solid rgba(168,255,96,.22);
    border-radius: 16px;
    background: rgba(168,255,96,.08);
}

.take-toggle input {
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: #a8ff60;
}

.take-toggle strong,
.take-toggle em {
    display: block;
}

.take-toggle strong {
    color: #fff;
    font-size: 14px;
    line-height: 1.25;
}

.take-toggle em {
    margin-top: 4px;
    color: rgba(247,248,244,.62);
    font-size: 12px;
    font-style: normal;
    line-height: 1.35;
}

#chooseTakeFile {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 16px;
    background: #a8ff60;
    color: #0b1508;
    font: 950 15px Inter, Arial, sans-serif;
    box-shadow: 0 16px 34px rgba(168,255,96,.2);
}

.take-upload-status {
    margin-top: 14px;
    padding: 14px;
    background: rgba(0,0,0,.22);
}

.take-status-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.take-status-head strong,
.take-status-head span {
    display: block;
}

.take-status-head strong {
    color: #fff;
    font-size: 15px;
}

.take-status-head span {
    color: rgba(247,248,244,.68);
    font-size: 12px;
    font-weight: 850;
    text-align: right;
}

.take-status-bar {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(247,248,244,.12);
}

.take-status-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #a8ff60, #58e6b2);
    transition: width .25s ease;
}

.take-upload-status p {
    margin: 10px 0 0;
    color: rgba(247,248,244,.58);
    font-size: 12px;
    line-height: 1.4;
}

.take-upload-status.is-success {
    border-color: rgba(168,255,96,.36);
    background: rgba(168,255,96,.09);
}

.take-upload-status.is-error {
    border-color: rgba(255,118,102,.4);
    background: rgba(255,118,102,.1);
}

@media (max-width: 620px) {
    .take-upload-page {
        width: 100%;
        padding: max(18px, env(safe-area-inset-top)) 12px max(22px, env(safe-area-inset-bottom));
    }

    .take-info-grid {
        grid-template-columns: 1fr;
    }

    .take-info-grid article {
        min-height: auto;
    }

    .take-status-head {
        flex-direction: column;
    }

    .take-status-head span {
        text-align: left;
    }
}

/* Final Take upload alignment: keep it inside the same creator admin phone frame. */
body.take-upload-body {
    background: #fff;
}

body.take-upload-body .wrap.admin-frame {
    background: #fff;
    color: #111;
}

body.take-upload-body .take-upload-scroll {
    padding: calc(16px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom));
}

body.take-upload-body .take-upload-page {
    width: 100%;
    min-height: auto;
    margin: 0;
    padding: 0;
    color: #111;
}

body.take-upload-body .take-upload-hero {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin-bottom: 16px;
    padding: 2px 0 4px;
}

body.take-upload-body .take-upload-hero > a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid #dedee6;
    border-radius: 50%;
    background: #fff;
    box-shadow: none;
}

body.take-upload-body .take-upload-hero > a::before {
    content: "";
    width: 10px;
    height: 10px;
    border-left: 2px solid #111;
    border-bottom: 2px solid #111;
    transform: rotate(45deg);
}

body.take-upload-body .take-upload-hero p {
    margin: 1px 0 5px;
    color: #666;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

body.take-upload-body .take-upload-hero h1 {
    margin: 0 0 8px;
    color: #111;
    font-size: 30px;
    line-height: .98;
}

body.take-upload-body .take-upload-hero span {
    display: block;
    max-width: none;
    color: #666;
    font-size: 13px;
    line-height: 1.35;
}

body.take-upload-body .take-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0 0 12px;
}

body.take-upload-body .take-info-single article {
    padding: 16px;
    background:
        radial-gradient(circle at 0 0, rgba(168,255,96,.18), transparent 44%),
        linear-gradient(145deg, rgba(168,255,96,.08), rgba(255,255,255,0) 52%),
        #fff;
}

body.take-upload-body .take-info-single strong {
    margin-bottom: 7px;
    font-size: 16px;
}

body.take-upload-body .take-info-single span {
    font-size: 13px;
    line-height: 1.42;
}

body.take-upload-body .take-notify-card {
    display: grid;
    gap: 9px;
    margin: 0 0 12px;
    padding: 14px;
    border: 1px solid #e7e7ec;
    border-radius: 16px;
    background: #fff;
    color: #111;
    box-shadow: 0 8px 24px rgba(0,0,0,.05);
}

body.take-upload-body .take-notify-card strong {
    color: #111;
    font-size: 13px;
    line-height: 1.35;
}

body.take-upload-body .take-notify-card button {
    width: 100%;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #dedee6;
    border-radius: 999px;
    background: #f8f8fb;
    color: #111;
    font: 900 12px/1 Inter, Arial, sans-serif;
}

body.take-upload-body .take-notify-card button.active {
    border-color: rgba(168,255,96,.55);
    background: rgba(168,255,96,.18);
}

body.take-upload-body .take-notify-card button:disabled {
    cursor: default;
    opacity: .6;
}

body.take-upload-body .take-notify-card span {
    min-height: 14px;
    color: #666;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
}

body.take-upload-body .take-notify-card span.is-error {
    color: #ff2d55;
}

body.take-upload-body .take-notify-card span.is-success {
    color: #328b1f;
}

body.take-upload-body .take-info-grid article,
body.take-upload-body .take-upload-card,
body.take-upload-body .take-upload-status {
    border: 1px solid #e7e7ec;
    border-radius: 16px;
    background: #fff;
    color: #111;
    box-shadow: 0 8px 24px rgba(0,0,0,.05);
}

body.take-upload-body .take-info-grid article {
    min-height: auto;
    padding: 13px;
}

body.take-upload-body .take-info-grid strong {
    color: #111;
    font-size: 15px;
}

body.take-upload-body .take-info-grid span {
    color: #666;
    font-size: 12px;
}

body.take-upload-body .take-upload-card {
    padding: 14px;
    background: #fff;
}

body.take-upload-body .take-upload-card form {
    display: grid;
    gap: 12px;
}

body.take-upload-body .take-upload-card label {
    display: grid;
    gap: 7px;
}

body.take-upload-body .take-upload-card label > span:first-child {
    color: #666;
    font-size: 12px;
    font-weight: 900;
}

body.take-upload-body .take-upload-card label > span:first-child em {
    margin-left: 5px;
    color: #8d8d98;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

body.take-upload-body .take-upload-card input[type="url"],
body.take-upload-body .take-upload-card input[type="text"] {
    min-height: 40px;
    border: 1px solid #dedee6;
    border-radius: 11px;
    background: #f8f8fb;
    color: #111;
    padding: 0 11px;
    font: 800 13px/1 Inter, Arial, sans-serif;
}

body.take-upload-body .take-upload-card input::placeholder {
    color: #8d8d98;
}

body.take-upload-body .take-toggle {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: start;
    padding: 12px;
    border: 1px solid rgba(168,255,96,.45);
    border-radius: 14px;
    background: rgba(168,255,96,.08);
}

body.take-upload-body .take-toggle input {
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: #a8ff60;
}

body.take-upload-body .take-toggle strong {
    display: block;
    color: #111;
    font-size: 13px;
    line-height: 1.2;
}

body.take-upload-body .take-toggle em {
    display: block;
    margin-top: 4px;
    color: #666;
    font-size: 12px;
    font-style: normal;
    line-height: 1.35;
}

body.take-upload-body .take-duration-note {
    margin: -2px 0 0;
    color: #666;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
}

body.take-upload-body .take-duration-note.is-error {
    color: #ff2d55;
}

body.take-upload-body #chooseTakeFile {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 999px;
    background: #a8ff60;
    color: #0b1508;
    font: 950 14px/1 Inter, Arial, sans-serif;
    box-shadow: none;
}

body.take-upload-body #chooseTakeFile:active {
    transform: scale(.985);
}

body.take-upload-body .take-retry-button {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(255, 118, 102, .24);
    border-radius: 16px;
    background: rgba(255, 118, 102, .13);
    color: #ff7666;
    font-weight: 950;
    cursor: pointer;
}

body.take-upload-body .take-retry-button.hidden {
    display: none;
}

body.take-upload-body .take-upload-card input:focus {
    border-color: rgba(17,17,17,.38);
    background: #fff;
}

.dashboard-score-card {
    position: relative;
    overflow: hidden;
}

.dashboard-score-card::after {
    content: "";
    position: absolute;
    right: -46px;
    top: -46px;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: rgba(168,255,96,.14);
    filter: blur(2px);
}

.dashboard-score-card > * {
    position: relative;
    z-index: 1;
}

.dashboard-metric-grid article {
    position: relative;
    overflow: hidden;
}

.dashboard-metric-grid article::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(168,255,96,.18);
}

.dashboard-story-row {
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(0,0,0,.045);
}

.dashboard-story-row .thumb,
.dashboard-story-row .thumb video,
.dashboard-story-row .thumb img {
    border-radius: 15px;
}

.dashboard-story-body .story-metrics {
    margin: 9px 0 10px;
}

.dashboard-story-body .story-metrics span {
    border: 1px solid #ededf2;
    background: #f7f7fa;
}

.story-link-modal-btn,
.delete-story-btn {
    margin-top: 2px;
}

.dashboard-chart {
    min-height: 160px;
    align-items: end;
    padding-top: 6px;
}

body.take-upload-body .take-upload-status {
    margin-top: 12px;
    padding: 13px;
    background: #f8f8fb;
}

body.take-upload-body .take-status-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
}

body.take-upload-body .take-status-head strong {
    color: #111;
    font-size: 14px;
}

body.take-upload-body .take-status-head span,
body.take-upload-body .take-upload-status p {
    color: #666;
    font-size: 12px;
}

body.take-upload-body .take-status-bar {
    height: 9px;
    background: #e2e2e8;
}

body.take-upload-body .take-status-bar span {
    background: linear-gradient(90deg, #111, #a8ff60);
}

/* Feed in the same phone-frame language as creator admin pages. */
.feed-admin-shell {
    display: grid;
    gap: 12px;
}

.feed-back-btn::before {
    inset: auto !important;
    width: 10px !important;
    height: 10px !important;
    left: 16px !important;
    top: 15px !important;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    background: transparent !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
    transform: rotate(45deg);
}

.feed-admin-grid {
    display: grid;
    gap: 12px;
}

.feed-admin-take {
    overflow: hidden;
    border: 1px solid #e7e7ec;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.05);
}

.feed-admin-media {
    background: #000;
}

.feed-admin-media video,
.feed-admin-media img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    background: #000;
}

.feed-admin-copy {
    display: grid;
    gap: 5px;
    padding: 12px;
}

.feed-admin-copy strong {
    color: #111;
    font-size: 15px;
}

.feed-admin-copy span {
    color: #666;
    font-size: 12px;
    font-weight: 800;
}

.feed-admin-copy a,
.feed-take-actions a {
    width: max-content;
    max-width: 100%;
    margin-top: 4px;
    padding: 8px 11px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

/* Phase 3 polish: Feed and Past feel closer to the main app. */
.feed-admin-page .admin-scroll,
body.admin-panel-page .admin-scroll {
    scroll-behavior: smooth;
}

.feed-admin-page .feed-empty,
.past-story-list > .admin-muted {
    min-height: 168px;
    display: grid;
    place-items: center;
    text-align: center;
    border-style: dashed;
    background:
        radial-gradient(circle at 50% 0, rgba(168,255,96,.16), transparent 42%),
        #fff;
}

.feed-admin-take {
    border-radius: 20px;
}

.feed-admin-media {
    aspect-ratio: 9 / 14;
    display: grid;
    place-items: center;
}

.feed-admin-media video,
.feed-admin-media img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
}

.feed-admin-copy {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 7px 10px;
}

.feed-admin-copy strong {
    grid-column: 1;
}

.feed-admin-copy span {
    grid-column: 1;
}

.feed-admin-copy a {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
}

.feed-take-actions {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    justify-content: center;
}

.feed-take-actions a {
    grid-column: auto;
    grid-row: auto;
    margin-top: 0;
}

.feed-profile-card {
    display: grid;
    gap: 12px;
}

.feed-profile-main {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 12px;
    align-items: center;
}

.feed-profile-main img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

.feed-profile-main span {
    color: #7a7a83;
    font-size: 12px;
    font-weight: 900;
}

.feed-profile-main h2 {
    margin: 2px 0 4px;
    color: #111;
    font-size: 24px;
    line-height: 1;
}

.feed-profile-main p {
    margin: 0;
    color: #61616b;
    font-size: 13px;
    line-height: 1.35;
}

.feed-profile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.feed-profile-links a,
.feed-filter-card button {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid #e5e5eb;
    background: #f7f7fa;
    color: #111;
    font-size: 12px;
    font-weight: 950;
    text-decoration: none;
}

.feed-filter-card {
    display: grid;
    gap: 9px;
    padding: 12px;
    border: 1px solid #e7e7ec;
    border-radius: 18px;
    background: #fff;
}

.feed-filter-card input {
    width: 100%;
    min-height: 42px;
    border: 1px solid #e5e5eb;
    border-radius: 14px;
    padding: 0 12px;
    color: #111;
    font-weight: 800;
}

.feed-filter-card div {
    display: flex;
    gap: 7px;
    overflow-x: auto;
}

.feed-filter-card button {
    cursor: pointer;
}

.feed-filter-card button.active {
    background: #111;
    border-color: #111;
    color: #fff;
}

.feed-pinned-badge {
    position: absolute;
    z-index: 2;
    left: 12px;
    top: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(168,255,96,.94);
    color: #0b1508;
    font-size: 11px;
    font-weight: 950;
}

.feed-category-badge {
    position: absolute;
    z-index: 2;
    right: 12px;
    top: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,.58);
    color: #fff;
    font-size: 11px;
    font-weight: 950;
    backdrop-filter: blur(10px);
}

.feed-category-strip {
    padding-top: 2px;
}

.feed-category-strip a {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid #e5e5eb;
    background: #fff;
    color: #111;
    font-size: 12px;
    font-weight: 950;
    text-decoration: none;
    white-space: nowrap;
}

.feed-category-strip a.active {
    background: #a8ff60;
    border-color: #a8ff60;
}

.feed-highlight-card {
    display: grid;
    gap: 11px;
}

.feed-highlight-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: end;
}

.feed-highlight-head h2 {
    margin: 0;
    color: #111;
}

.feed-highlight-head span {
    color: #777;
    font-size: 12px;
    font-weight: 900;
}

.feed-highlight-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.feed-highlight-strip a {
    width: 78px;
    flex: 0 0 78px;
    display: grid;
    gap: 6px;
    color: #111;
    text-align: center;
    text-decoration: none;
    font-size: 11px;
    font-weight: 950;
}

.feed-highlight-strip img {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #a8ff60;
    box-shadow: 0 8px 22px rgba(0,0,0,.1);
}

.feed-admin-take {
    position: relative;
}

.pin-story-form,
.highlight-story-form {
    display: inline;
}

.pin-story-btn,
.highlight-story-btn {
    margin-top: 2px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #e5e5eb;
    border-radius: 999px;
    background: #f7f7fa;
    color: #111;
    font-size: 12px;
    font-weight: 950;
    cursor: pointer;
}

.pin-story-btn.active,
.highlight-story-btn.active {
    background: #a8ff60;
    border-color: #a8ff60;
    color: #0b1508;
}

.retention-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.retention-grid article {
    padding: 13px;
    border: 1px solid #ededf2;
    border-radius: 16px;
    background: #f8f8fb;
}

.retention-grid span {
    display: block;
    margin-bottom: 8px;
    color: #777;
    font-size: 11px;
    font-weight: 900;
}

.retention-grid strong {
    color: #111;
    font-size: 24px;
    line-height: 1;
}

.community-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.community-list h3 {
    margin: 0 0 8px;
    color: #111;
}

.community-row {
    display: grid;
    gap: 3px;
    padding: 10px;
    border-radius: 14px;
    background: #f8f8fb;
    border: 1px solid #ededf2;
}

.community-row + .community-row {
    margin-top: 7px;
}

.community-row strong {
    color: #111;
    font-size: 13px;
}

.community-row span {
    color: #777;
    font-size: 12px;
    font-weight: 800;
}

.community-row.warning {
    background: rgba(245, 200, 75, .14);
    border-color: rgba(245, 200, 75, .34);
}

@media (max-width: 760px) {
    .retention-grid,
    .community-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .retention-grid,
    .community-list {
        grid-template-columns: 1fr;
    }
}

.creator-profile-form textarea {
    width: 100%;
    border: 1px solid #e4e4ea;
    border-radius: 16px;
    padding: 13px;
    color: #111;
    resize: vertical;
    font: 800 14px/1.4 Inter, Arial, sans-serif;
}

.creator-links-editor {
    display: grid;
    gap: 8px;
}

.creator-links-editor > strong {
    color: #111;
}

.creator-links-editor > span {
    color: #777;
    font-size: 12px;
    line-height: 1.35;
}

.creator-link-row {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 8px;
}

@media (max-width: 520px) {
    .creator-link-row {
        grid-template-columns: 1fr;
    }
}

.past-summary-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.past-summary-card > div {
    padding: 15px;
    border: 1px solid #e7e7ec;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.05);
}

.past-story-card {
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(0,0,0,.045);
}

.past-story-media {
    width: 82px;
    border-radius: 16px;
}

.past-story-metrics span {
    background: #f7f7fa;
    border: 1px solid #ededf2;
}

.past-story-title strong {
    padding-right: 34px;
}

