.wci-floating-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 999px;
    background: #009344;
    color: #fff;
    box-shadow: 0 18px 44px rgba(26, 21, 22, 0.22);
    cursor: pointer;
    font-size: 1.25rem;
}

.wci-floating-button[hidden] {
    display: none;
}

.wci-overlay {
    position: fixed;
    inset: 0;
    z-index: 8998;
    display: none;
    background: rgba(26, 21, 22, 0.24);
}

.wci-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 8999;
    display: flex;
    width: min(520px, 100vw);
    height: 100vh;
    transform: translateX(105%);
    flex-direction: column;
    border-left: 1px solid rgba(26, 21, 22, 0.12);
    background: #fbf7ef;
    color: #1a1516;
    box-shadow: -24px 0 60px rgba(26, 21, 22, 0.16);
    transition: transform 0.24s ease;
    font-family: Roboto, Arial, sans-serif;
}

.wci-is-open .wci-panel {
    transform: translateX(0);
}

.wci-is-open .wci-overlay {
    display: block;
}

.wci-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 24px 18px;
    border-bottom: 1px solid #e5d8c2;
}

.wci-kicker {
    margin: 0 0 4px;
    color: #009344;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.wci-title {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.2;
    font-weight: 700;
}

.wci-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.wci-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 12px;
}

.wci-action-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid #d8c8ae;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #2f4d39;
    cursor: pointer;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
}

.wci-action-button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.wci-action-status {
    min-height: 20px;
    color: #68605c;
    font-size: 0.78rem;
}

.wci-action-status.is-error {
    color: #a83a45;
}

.wci-locale-badge {
    align-self: center;
    min-height: 20px;
    padding: 0 8px;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.wci-close {
    border: 0;
    background: transparent;
    color: #434142;
    cursor: pointer;
    font-size: 1.35rem;
}

.wci-content {
    overflow: auto;
    padding: 20px 24px 30px;
}

.wci-section {
    padding: 18px 0;
    border-bottom: 1px solid #e5d8c2;
}

.wci-section:first-child {
    padding-top: 0;
}

.wci-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: #2f4d39;
    font-size: 0.95rem;
    font-weight: 700;
}

.wci-card {
    padding: 14px;
    border: 1px solid #e5d8c2;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.wci-card + .wci-card {
    margin-top: 12px;
}

.wci-collection {
    border: 1px solid #e5d8c2;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    overflow: hidden;
}

.wci-collection + .wci-collection {
    margin-top: 12px;
}

.wci-collection-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    padding: 14px;
    cursor: pointer;
    list-style: none;
}

.wci-collection-summary::-webkit-details-marker {
    display: none;
}

.wci-collection-name {
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
}

.wci-collection-meta {
    display: block;
    color: #68605c;
    font-size: 0.82rem;
}

.wci-collection-chevron {
    color: #2f4d39;
    transition: transform 0.18s ease;
}

.wci-collection[open] .wci-collection-chevron {
    transform: rotate(90deg);
}

.wci-collection-body {
    padding: 0 14px 14px;
}

.wci-collection-empty {
    margin: 10px 0 0;
}

.wci-item-card {
    padding: 14px;
    border: 1px solid #e5d8c2;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.wci-item-card + .wci-item-card {
    margin-top: 12px;
}

.wci-create-card {
    border-style: dashed;
    background: rgba(0, 147, 68, 0.05);
}

.wci-create-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #009344;
    cursor: pointer;
    font-weight: 800;
    list-style: none;
}

.wci-create-summary::-webkit-details-marker {
    display: none;
}

.wci-create-summary i:last-child {
    transition: transform 0.18s ease;
}

.wci-create-card[open] .wci-create-summary i:last-child {
    transform: rotate(90deg);
}

.wci-card-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 8px;
    font-weight: 700;
}

.wci-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(0, 147, 68, 0.11);
    color: #009344;
    font-size: 0.72rem;
    font-weight: 700;
}

.wci-muted {
    color: #68605c;
    font-size: 0.84rem;
}

.wci-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wci-list-row {
    display: grid;
    grid-template-columns: minmax(110px, 0.45fr) minmax(0, 1fr);
    gap: 10px;
    font-size: 0.84rem;
}

.wci-list-row code {
    color: #434142;
    white-space: normal;
    word-break: break-word;
}

.wci-form {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.wci-field label {
    display: block;
    margin-bottom: 5px;
    color: #434142;
    font-size: 0.78rem;
    font-weight: 700;
}

.wci-field-label-main {
    display: block;
}

.wci-field-label-meta {
    display: block;
    margin-top: 2px;
    color: #68605c;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.72rem;
    font-weight: 500;
    word-break: break-word;
}

.wci-field input,
.wci-field textarea {
    width: 100%;
    border: 1px solid #d8c8ae;
    border-radius: 12px;
    background: #fff;
    color: #1a1516;
    font: inherit;
    font-size: 0.9rem;
}

.wci-field input {
    min-height: 38px;
    padding: 0 11px;
}

.wci-field textarea {
    min-height: 132px;
    padding: 10px 11px;
    resize: vertical;
}

.wci-field textarea[data-wci-rich-content] {
    min-height: 220px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.82rem;
    line-height: 1.5;
}

.wci-rich-editor {
    overflow: hidden;
    border: 1px solid #d8c8ae;
    border-radius: 12px;
    background: #fff;
}

.wci-rich-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 7px;
    border-bottom: 1px solid #eadfcd;
    background: rgba(251, 247, 239, 0.88);
}

.wci-rich-toolbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #2f4d39;
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
}

.wci-rich-toolbar button:hover,
.wci-rich-toolbar button:focus {
    border-color: rgba(0, 147, 68, 0.22);
    background: rgba(0, 147, 68, 0.1);
    outline: none;
}

.wci-rich-toolbar-separator {
    width: 1px;
    margin: 3px 2px;
    background: #e5d8c2;
}

.wci-rich-surface {
    min-height: 240px;
    padding: 12px;
    color: #1a1516;
    font: inherit;
    font-size: 0.92rem;
    line-height: 1.58;
    outline: none;
}

.wci-rich-surface:focus {
    box-shadow: inset 0 0 0 2px rgba(0, 147, 68, 0.18);
}

.wci-rich-surface p,
.wci-rich-surface ul,
.wci-rich-surface ol,
.wci-rich-surface h2,
.wci-rich-surface h3 {
    margin: 0 0 10px;
}

.wci-rich-surface ul,
.wci-rich-surface ol {
    padding-left: 1.4em;
}

.wci-rich-surface > :last-child {
    margin-bottom: 0;
}

.wci-rich-source {
    margin-top: 8px;
}

.wci-rich-source summary {
    color: #68605c;
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 700;
}

.wci-rich-source textarea[data-wci-rich-content] {
    min-height: 150px;
    margin-top: 8px;
}

.wci-field-help {
    margin: 6px 0 0;
    color: #68605c;
    font-size: 0.76rem;
    line-height: 1.4;
}

.wci-field-group {
    margin: 4px 0 2px;
    padding-top: 12px;
    border-top: 1px solid #e5d8c2;
    color: #2f4d39;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wci-field-group.is-seo {
    margin-top: 0;
    padding: 10px 12px;
    border: 1px solid rgba(0, 147, 68, 0.24);
    border-radius: 12px;
    background: rgba(0, 147, 68, 0.08);
}

.wci-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.wci-checkbox input {
    width: auto;
    min-height: 0;
}

.wci-submit {
    justify-self: start;
    min-height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: #009344;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
}

.wci-status {
    min-height: 20px;
    color: #68605c;
    font-size: 0.82rem;
}

.wci-status.is-error {
    color: #a83a45;
}

[data-wci-highlighted] {
    outline: 3px solid #ff0000 !important;
    outline-offset: 7px !important;
    box-shadow: 0 0 0 7px rgba(255, 0, 0, 0.14), 0 18px 60px rgba(255, 0, 0, 0.18) !important;
    scroll-margin: 110px;
    transition: outline-color 0.18s ease, box-shadow 0.18s ease;
}

@media (max-width: 700px) {
    .wci-floating-button {
        right: 16px;
        bottom: 16px;
    }

    .wci-panel {
        width: 100vw;
        border-left: 0;
    }
}
