.wk-spacesettings {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.wk-spacesettings-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: var(--wk-line);
}

.wk-spacesettings-back {
    cursor: pointer;
    font-size: 18px;
    color: #666;
    padding: 2px 4px;
}

body[theme-mode=dark] .wk-spacesettings-back {
    color: #aaa;
}

.wk-spacesettings-title {
    font-size: 15px;
    font-weight: 600;
}

body[theme-mode=dark] .wk-spacesettings-title {
    color: #e0e0e0;
}

.wk-spacesettings-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.wk-spacesettings-field {
    margin-bottom: 16px;
}

.wk-spacesettings-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #333;
}

body[theme-mode=dark] .wk-spacesettings-label {
    color: #ccc;
}

.wk-spacesettings-btn {
    width: 100%;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 8px;
}

.wk-spacesettings-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.wk-spacesettings-btn-primary:hover {
    opacity: 0.9;
}

.wk-spacesettings-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wk-spacesettings-section {
    margin-top: 20px;
    border-top: var(--wk-line);
    padding-top: 12px;
}

.wk-spacesettings-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    cursor: pointer;
    font-size: 14px;
}

body[theme-mode=dark] .wk-spacesettings-menu-item {
    color: #e0e0e0;
}

.wk-spacesettings-menu-item:hover {
    opacity: 0.8;
}

.wk-spacesettings-arrow {
    color: #999;
}

.wk-spacesettings-danger-zone {
    margin-top: 24px;
    border-top: var(--wk-line);
    padding-top: 16px;
}

.wk-spacesettings-btn-warning {
    background-color: #fff3e0;
    color: #e67e22;
}

body[theme-mode=dark] .wk-spacesettings-btn-warning {
    background-color: rgba(230, 126, 34, 0.15);
}

.wk-spacesettings-btn-warning:hover {
    background-color: #ffe0b2;
}

body[theme-mode=dark] .wk-spacesettings-btn-warning:hover {
    background-color: rgba(230, 126, 34, 0.25);
}

.wk-spacesettings-btn-danger {
    background-color: #fef0ef;
    color: #e74c3c;
}

body[theme-mode=dark] .wk-spacesettings-btn-danger {
    background-color: rgba(231, 76, 60, 0.15);
}

.wk-spacesettings-btn-danger:hover {
    background-color: #fde2e0;
}

body[theme-mode=dark] .wk-spacesettings-btn-danger:hover {
    background-color: rgba(231, 76, 60, 0.25);
}

.wk-spacesettings-invite-result {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.wk-spacesettings-invite-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wk-spacesettings-invite-label {
    color: #999;
    font-size: 13px;
    white-space: nowrap;
}

.wk-spacesettings-invite-code {
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

body[theme-mode=dark] .wk-spacesettings-invite-code {
    background: #333;
    color: #eee;
}

.wk-spacesettings-copy-btn {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 12px;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
}

.wk-spacesettings-copy-btn:hover {
    background: #5a6fd6;
}

.wk-spacesettings-copy-link {
    width: 100%;
    padding: 8px;
}
