.wpms-stream {
    max-width: 760px;
    margin: 24px auto;
    padding: 0 12px;
    font-family: inherit;
}

.wpms-header {
    margin-bottom: 12px;
}

.wpms-title {
    margin: 0;
    font-size: 20px;
}

.wpms-subtitle {
    font-size: 13px;
    opacity: 0.7;
}

.wpms-card {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 12px;
    margin: 12px 0;
}

.wpms-compose-note {
    font-size: 14px;
    opacity: 0.85;
}

.wpms-feed-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.wpms-btn {
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 10px;
    padding: 8px 12px;
    background: transparent;
    cursor: pointer;
}

.wpms-btn:hover {
    opacity: 0.9;
}

.wpms-item {
    padding: 10px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.wpms-item:first-child {
    border-top: 0;
}

.wpms-item-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    opacity: 0.8;
}

.wpms-item-author {
    font-weight: 600;
    opacity: 0.95;
}

.wpms-item-time {
    text-decoration: none;
    opacity: 0.85;
}

.wpms-item-text {
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.35;
}

.wpms-loading,
.wpms-empty,
.wpms-error {
    padding: 10px 0;
    font-size: 14px;
    opacity: 0.85;
}

.wpms-feed-more {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.wpms-form {
    display: grid;
    gap: 8px;
}

.wpms-label {
    font-size: 13px;
    opacity: 0.85;
}

.wpms-textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.18);
}

.wpms-input {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.18);
}

.wpms-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    margin-top: 4px;
}

.wpms-status {
    font-size: 13px;
    opacity: 0.8;
}

.wpms-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    overflow: hidden;
}

.wpms-compose-tools {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}

.wpms-emoji-toggle {
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 10px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
}

.wpms-emoji-toggle:hover {
    opacity: 0.9;
}

.wpms-emoji-panel {
    margin-top: 8px;
    padding: 10px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.wpms-emoji-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 6px;
}

.wpms-emoji {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
}

.wpms-emoji:hover {
    background: rgba(0, 0, 0, 0.06);
}


/* Image preview */
.wpms-file {
    padding: 10px;
}

.wpms-image-preview {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
}

.wpms-image-preview-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.wpms-image-preview-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #eee;
}

.wpms-image-preview-meta {
    flex: 1;
    font-size: 13px;
    opacity: .85;
}

.wpms-image-preview-remove {
    border: 0;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    opacity: .7;
}

.wpms-image-preview-remove:hover {
    opacity: 1;
}

.wpms-item-image {
    margin-top: 10px;
}

.wpms-item-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid #eee;
    display: block;
}


/* Link preview (compose + feed) */
.wpms-link-preview {
    margin-top: 10px;
}

.wpms-link-preview__card {
    display: flex;
    gap: 12px;
    align-items: stretch;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 10px;
    text-decoration: none;
    color: inherit;
    max-width: 100%;
    overflow: hidden;
}

.wpms-link-preview__img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    flex: 0 0 auto;
}

.wpms-link-preview__body {
    min-width: 0;
}

.wpms-link-preview__title {
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 4px;
    word-break: break-word;
}

.wpms-link-preview__desc {
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.3;
    margin-bottom: 6px;
    max-height: 2.6em;
    overflow: hidden;
}

.wpms-link-preview__url {
    font-size: 12px;
    opacity: 0.7;
    word-break: break-all;
}

.wpms-link-preview__remove {
    margin-left: auto;
    border: 0;
    background: transparent;
    cursor: pointer;
    opacity: 0.7;
}

.wpms-item-content {
    display: block;
}

.wpms-item-content a {
    display: block;
    margin-top: 6px;
}


/* === UI polish (0.1.19) === */
.wpms-compose.wpms-card,
.wpms-feed.wpms-card {
    background: #fff;
}

.wpms-form {
    display: grid;
    gap: 10px;
}

.wpms-textarea {
    width: 100%;
    min-height: 92px;
    resize: vertical;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    padding: 10px 12px;
}

.wpms-textarea:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.28);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.wpms-compose-tools {
    display: flex;
    justify-content: flex-end;
    margin-top: -4px;
}

.wpms-emoji-toggle {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    background: #fff;
    cursor: pointer;
}

.wpms-emoji-toggle:hover {
    background: rgba(0, 0, 0, 0.04);
}

.wpms-upload {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wpms-upload-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    background: #fff;
    cursor: pointer;
    user-select: none;
}

.wpms-upload-btn:hover {
    background: rgba(0, 0, 0, 0.04);
}

.wpms-upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.wpms-upload-filename {
    font-size: 13px;
    opacity: 0.75;
}

.wpms-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wpms-status {
    font-size: 13px;
    opacity: 0.85;
}

.wpms-btn {
    transition: transform 0.02s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.wpms-btn:active {
    transform: translateY(1px);
}

.wpms-btn--primary {
    background: #111;
    color: #fff;
    border-color: rgba(0, 0, 0, 0.18);
}

.wpms-btn--primary:hover {
    background: #000;
}

.wpms-btn--primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.wpms-btn--ghost {
    background: #fff;
}

.wpms-btn--ghost:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* Feed items as cards */
.wpms-feed-items .wpms-item {
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 14px;
    padding: 12px;
    margin-top: 10px;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.10);
    /* override old rule */
}

.wpms-feed-items .wpms-item:first-child {
    margin-top: 0;
}

.wpms-item-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.wpms-item-author {
    font-weight: 600;
}

.wpms-item-time {
    font-size: 12px;
    opacity: 0.7;
    text-decoration: none;
}

.wpms-item-time:hover {
    text-decoration: underline;
}

.wpms-item-text {
    margin-top: 6px;
    line-height: 1.45;
}

.wpms-item-image {
    margin-top: 10px;
}

.wpms-item-img {
    border-radius: 12px;
}

.wpms-item-link-preview {
    margin-top: 10px;
}

.wpms-compose textarea {
    width: 100%;
    box-sizing: border-box;
}

/* Voorkom afkappen van tekst (zeker bij link preview cards) */
.wpms-item {
    overflow: visible;
}

.wpms-item-text {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.wpms-item-foot {
    margin-top: 8px;
}

.wpms-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.wpms-react-btn {
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: transparent;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.9;
}

.wpms-react-btn:hover {
    opacity: 1;
}

.wpms-react-btn.is-active {
    border-color: rgba(0, 0, 0, 0.25);
    font-weight: 600;
}

.wpms-react-count {
    margin-left: 4px;
    opacity: 0.85;
}

/* Character counter */
.wpms-charcount {
    margin-top: 6px;
    font-size: 12px;
    opacity: 0.75;
    text-align: right;
}

.wpms-charcount.is-near {
    opacity: 0.95;
}

.wpms-charcount.is-over {
    opacity: 1;
    font-weight: 700;
}

/* Item actions (edit/delete) */
.wpms-item-actions {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-left: 10px;
}

.wpms-item-action {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 8px;
    opacity: 0.85;
}

.wpms-item-action:hover {
    opacity: 1;
    text-decoration: underline;
}

.wpms-item-action.wpms-danger {
    opacity: 0.85;
}

/* Inline editor */
.wpms-edit {
    margin-top: 8px;
}

.wpms-textarea--edit {
    width: 100%;
    min-height: 90px;
}

.wpms-edit-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 8px;
}


/* Login required message (guest posting disabled) */
.wpms-login-required{
    padding: 10px 12px;
    font-size: 14px;
    opacity: 0.9;
}
